Class RawBillingLedgerPeriodsClient
- java.lang.Object
-
- com.chrt.api.resources.billing.billingledgerperiods.RawBillingLedgerPeriodsClient
-
public class RawBillingLedgerPeriodsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description RawBillingLedgerPeriodsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChrtApiHttpResponse<java.lang.String>closeV1(java.lang.String billingLedgerPeriodId)Closes an OPEN billing ledger period.ChrtApiHttpResponse<java.lang.String>closeV1(java.lang.String billingLedgerPeriodId, RequestOptions requestOptions)Closes an OPEN billing ledger period.ChrtApiHttpResponse<BillingLedgerPeriod1>getByIdV1(java.lang.String id)Retrieves a billing ledger period the caller's org owns or is a payment counterparty on.ChrtApiHttpResponse<BillingLedgerPeriod1>getByIdV1(java.lang.String id, RequestOptions requestOptions)Retrieves a billing ledger period the caller's org owns or is a payment counterparty on.ChrtApiHttpResponse<BillingLedgerPeriodListRes>listV1()Lists billing ledger periods the caller's org owns or is a payment counterparty on.ChrtApiHttpResponse<BillingLedgerPeriodListRes>listV1(BillingLedgerPeriodsListV1Request request)Lists billing ledger periods the caller's org owns or is a payment counterparty on.ChrtApiHttpResponse<BillingLedgerPeriodListRes>listV1(BillingLedgerPeriodsListV1Request request, RequestOptions requestOptions)Lists billing ledger periods the caller's org owns or is a payment counterparty on.ChrtApiHttpResponse<java.lang.String>openV1(java.lang.String billingLedgerId, OpenPeriodReq request)Opens a new period on an ACTIVE billing ledger.ChrtApiHttpResponse<java.lang.String>openV1(java.lang.String billingLedgerId, OpenPeriodReq request, RequestOptions requestOptions)Opens a new period on an ACTIVE billing ledger.ChrtApiHttpResponse<java.lang.Boolean>updateV1(java.lang.String billingLedgerPeriodId)Updates an OPEN billing ledger period's bounds, cycle, and/or rate_usd.ChrtApiHttpResponse<java.lang.Boolean>updateV1(java.lang.String billingLedgerPeriodId, BillingLedgerPeriodClientUpdate1 request)Updates an OPEN billing ledger period's bounds, cycle, and/or rate_usd.ChrtApiHttpResponse<java.lang.Boolean>updateV1(java.lang.String billingLedgerPeriodId, BillingLedgerPeriodClientUpdate1 request, RequestOptions requestOptions)Updates an OPEN billing ledger period's bounds, cycle, and/or rate_usd.
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
RawBillingLedgerPeriodsClient
public RawBillingLedgerPeriodsClient(ClientOptions clientOptions)
-
-
Method Detail
-
getByIdV1
public ChrtApiHttpResponse<BillingLedgerPeriod1> getByIdV1(java.lang.String id)
Retrieves a billing ledger period the caller's org owns or is a payment counterparty on. | authz_personas=[billing_ledger_period_org_operators] | () -> (BillingLedgerPeriod1)
-
getByIdV1
public ChrtApiHttpResponse<BillingLedgerPeriod1> getByIdV1(java.lang.String id, RequestOptions requestOptions)
Retrieves a billing ledger period the caller's org owns or is a payment counterparty on. | authz_personas=[billing_ledger_period_org_operators] | () -> (BillingLedgerPeriod1)
-
listV1
public ChrtApiHttpResponse<BillingLedgerPeriodListRes> listV1()
Lists billing ledger periods the caller's org owns or is a payment counterparty on. | authz_personas=[billing_ledger_period_org_operators] | () -> (BillingLedgerPeriodListRes)
-
listV1
public ChrtApiHttpResponse<BillingLedgerPeriodListRes> listV1(BillingLedgerPeriodsListV1Request request)
Lists billing ledger periods the caller's org owns or is a payment counterparty on. | authz_personas=[billing_ledger_period_org_operators] | () -> (BillingLedgerPeriodListRes)
-
listV1
public ChrtApiHttpResponse<BillingLedgerPeriodListRes> listV1(BillingLedgerPeriodsListV1Request request, RequestOptions requestOptions)
Lists billing ledger periods the caller's org owns or is a payment counterparty on. | authz_personas=[billing_ledger_period_org_operators] | () -> (BillingLedgerPeriodListRes)
-
openV1
public ChrtApiHttpResponse<java.lang.String> openV1(java.lang.String billingLedgerId, OpenPeriodReq request)
Opens a new period on an ACTIVE billing ledger. Operator suppliescycle,rate_usd, and at least one of(period_start_at_timestamp, period_end_at_timestamp)— the other is derived fromcycle(calendar-aware). A period spans exactly one cycle. Multiple OPEN periods per ledger are allowed and may overlap. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_owner_operators] | (OpenPeriodReq) -> (PydanticObjectId)
-
openV1
public ChrtApiHttpResponse<java.lang.String> openV1(java.lang.String billingLedgerId, OpenPeriodReq request, RequestOptions requestOptions)
Opens a new period on an ACTIVE billing ledger. Operator suppliescycle,rate_usd, and at least one of(period_start_at_timestamp, period_end_at_timestamp)— the other is derived fromcycle(calendar-aware). A period spans exactly one cycle. Multiple OPEN periods per ledger are allowed and may overlap. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_owner_operators] | (OpenPeriodReq) -> (PydanticObjectId)
-
closeV1
public ChrtApiHttpResponse<java.lang.String> closeV1(java.lang.String billingLedgerPeriodId)
Closes an OPEN billing ledger period. 400 if the period is already CLOSED. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_period_owner_operators] | () -> (PydanticObjectId)
-
closeV1
public ChrtApiHttpResponse<java.lang.String> closeV1(java.lang.String billingLedgerPeriodId, RequestOptions requestOptions)
Closes an OPEN billing ledger period. 400 if the period is already CLOSED. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_period_owner_operators] | () -> (PydanticObjectId)
-
updateV1
public ChrtApiHttpResponse<java.lang.Boolean> updateV1(java.lang.String billingLedgerPeriodId)
Updates an OPEN billing ledger period's bounds, cycle, and/or rate_usd. Lenient: onlyend > startis enforced after the patch — span need not equal cycle. CLOSED periods are immutable. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_period_owner_operators] | (BillingLedgerPeriodClientUpdate1) -> (bool)
-
updateV1
public ChrtApiHttpResponse<java.lang.Boolean> updateV1(java.lang.String billingLedgerPeriodId, BillingLedgerPeriodClientUpdate1 request)
Updates an OPEN billing ledger period's bounds, cycle, and/or rate_usd. Lenient: onlyend > startis enforced after the patch — span need not equal cycle. CLOSED periods are immutable. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_period_owner_operators] | (BillingLedgerPeriodClientUpdate1) -> (bool)
-
updateV1
public ChrtApiHttpResponse<java.lang.Boolean> updateV1(java.lang.String billingLedgerPeriodId, BillingLedgerPeriodClientUpdate1 request, RequestOptions requestOptions)
Updates an OPEN billing ledger period's bounds, cycle, and/or rate_usd. Lenient: onlyend > startis enforced after the patch — span need not equal cycle. CLOSED periods are immutable. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_period_owner_operators] | (BillingLedgerPeriodClientUpdate1) -> (bool)
-
-