Class BillingLedgerPeriodsClient
- java.lang.Object
-
- com.chrt.api.resources.billing.billingledgerperiods.BillingLedgerPeriodsClient
-
public class BillingLedgerPeriodsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description BillingLedgerPeriodsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcloseV1(java.lang.String billingLedgerPeriodId)Closes an OPEN billing ledger period.java.lang.StringcloseV1(java.lang.String billingLedgerPeriodId, RequestOptions requestOptions)Closes an OPEN billing ledger period.BillingLedgerPeriod1getByIdV1(java.lang.String id)Retrieves a billing ledger period the caller's org owns or is a payment counterparty on.BillingLedgerPeriod1getByIdV1(java.lang.String id, RequestOptions requestOptions)Retrieves a billing ledger period the caller's org owns or is a payment counterparty on.BillingLedgerPeriodListReslistV1()Lists billing ledger periods the caller's org owns or is a payment counterparty on.BillingLedgerPeriodListReslistV1(BillingLedgerPeriodsListV1Request request)Lists billing ledger periods the caller's org owns or is a payment counterparty on.BillingLedgerPeriodListReslistV1(BillingLedgerPeriodsListV1Request request, RequestOptions requestOptions)Lists billing ledger periods the caller's org owns or is a payment counterparty on.java.lang.StringopenV1(java.lang.String billingLedgerId, OpenPeriodReq request)Opens a new period on an ACTIVE billing ledger.java.lang.StringopenV1(java.lang.String billingLedgerId, OpenPeriodReq request, RequestOptions requestOptions)Opens a new period on an ACTIVE billing ledger.booleanupdateV1(java.lang.String billingLedgerPeriodId)Updates an OPEN billing ledger period's bounds, cycle, and/or rate_usd.booleanupdateV1(java.lang.String billingLedgerPeriodId, BillingLedgerPeriodClientUpdate1 request)Updates an OPEN billing ledger period's bounds, cycle, and/or rate_usd.booleanupdateV1(java.lang.String billingLedgerPeriodId, BillingLedgerPeriodClientUpdate1 request, RequestOptions requestOptions)Updates an OPEN billing ledger period's bounds, cycle, and/or rate_usd.RawBillingLedgerPeriodsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
BillingLedgerPeriodsClient
public BillingLedgerPeriodsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawBillingLedgerPeriodsClient withRawResponse()
Get responses with HTTP metadata like headers
-
getByIdV1
public 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 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 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 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 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 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 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 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 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 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 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 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)
-
-