Class AsyncRawBillingLedgerPeriodsClient


  • public class AsyncRawBillingLedgerPeriodsClient
    extends java.lang.Object
    • Constructor Detail

      • AsyncRawBillingLedgerPeriodsClient

        public AsyncRawBillingLedgerPeriodsClient​(ClientOptions clientOptions)
    • Method Detail

      • getByIdV1

        public java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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)
      • openV1

        public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.String>> openV1​(java.lang.String billingLedgerId,
                                                                                                    OpenPeriodReq request)
        Opens a new period on an ACTIVE billing ledger. Operator supplies cycle, rate_usd, and at least one of (period_start_at_timestamp, period_end_at_timestamp) — the other is derived from cycle (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.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.String>> openV1​(java.lang.String billingLedgerId,
                                                                                                    OpenPeriodReq request,
                                                                                                    RequestOptions requestOptions)
        Opens a new period on an ACTIVE billing ledger. Operator supplies cycle, rate_usd, and at least one of (period_start_at_timestamp, period_end_at_timestamp) — the other is derived from cycle (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.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> updateV1​(java.lang.String billingLedgerPeriodId)
        Updates an OPEN billing ledger period's bounds, cycle, and/or rate_usd. Lenient: only end > start is 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 java.util.concurrent.CompletableFuture<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: only end > start is 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 java.util.concurrent.CompletableFuture<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: only end > start is 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)