Class AsyncRawBillingLedgersClient
- java.lang.Object
-
- com.chrt.api.resources.billing.billingledgers.AsyncRawBillingLedgersClient
-
public class AsyncRawBillingLedgersClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncRawBillingLedgersClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.String>>createV1(BillingLedgerClientCreate1 request)Creates a billing ledger owned by the caller's org.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.String>>createV1(BillingLedgerClientCreate1 request, RequestOptions requestOptions)Creates a billing ledger owned by the caller's org.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>deactivateV1(java.lang.String id)Flips a billing ledger to INACTIVE and stampsinactive_at_timestamp.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>deactivateV1(java.lang.String id, RequestOptions requestOptions)Flips a billing ledger to INACTIVE and stampsinactive_at_timestamp.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<BillingLedger1>>getByIdV1(java.lang.String id)Retrieves a billing ledger the caller's org owns or is a payment counterparty on.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<BillingLedger1>>getByIdV1(java.lang.String id, RequestOptions requestOptions)Retrieves a billing ledger the caller's org owns or is a payment counterparty on.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<BillingLedgerListRes>>listV1()Lists billing ledgers the caller's org owns or is a payment counterparty on.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<BillingLedgerListRes>>listV1(BillingLedgersListV1Request request)Lists billing ledgers the caller's org owns or is a payment counterparty on.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<BillingLedgerListRes>>listV1(BillingLedgersListV1Request request, RequestOptions requestOptions)Lists billing ledgers the caller's org owns or is a payment counterparty on.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>updateV1(java.lang.String id)Updates a billing ledger'snameandcomments.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>updateV1(java.lang.String id, BillingLedgerClientUpdate1 request)Updates a billing ledger'snameandcomments.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>updateV1(java.lang.String id, BillingLedgerClientUpdate1 request, RequestOptions requestOptions)Updates a billing ledger'snameandcomments.
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncRawBillingLedgersClient
public AsyncRawBillingLedgersClient(ClientOptions clientOptions)
-
-
Method Detail
-
getByIdV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<BillingLedger1>> getByIdV1(java.lang.String id)
Retrieves a billing ledger the caller's org owns or is a payment counterparty on. | authz_personas=[billing_ledger_org_operators] | () -> (BillingLedger1)
-
getByIdV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<BillingLedger1>> getByIdV1(java.lang.String id, RequestOptions requestOptions)
Retrieves a billing ledger the caller's org owns or is a payment counterparty on. | authz_personas=[billing_ledger_org_operators] | () -> (BillingLedger1)
-
listV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<BillingLedgerListRes>> listV1()
Lists billing ledgers the caller's org owns or is a payment counterparty on. | authz_personas=[billing_ledger_org_operators] | () -> (BillingLedgerListRes)
-
listV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<BillingLedgerListRes>> listV1(BillingLedgersListV1Request request)
Lists billing ledgers the caller's org owns or is a payment counterparty on. | authz_personas=[billing_ledger_org_operators] | () -> (BillingLedgerListRes)
-
listV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<BillingLedgerListRes>> listV1(BillingLedgersListV1Request request, RequestOptions requestOptions)
Lists billing ledgers the caller's org owns or is a payment counterparty on. | authz_personas=[billing_ledger_org_operators] | () -> (BillingLedgerListRes)
-
createV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.String>> createV1(BillingLedgerClientCreate1 request)
Creates a billing ledger owned by the caller's org. Caller must be the receiving provider for shipper-pay-provider, or the paying provider for provider-pay-provider/driver. | authz: allowed_org_types=[provider], min_org_role=operator | (BillingLedgerClientCreate1) -> (PydanticObjectId)
-
createV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.String>> createV1(BillingLedgerClientCreate1 request, RequestOptions requestOptions)
Creates a billing ledger owned by the caller's org. Caller must be the receiving provider for shipper-pay-provider, or the paying provider for provider-pay-provider/driver. | authz: allowed_org_types=[provider], min_org_role=operator | (BillingLedgerClientCreate1) -> (PydanticObjectId)
-
updateV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> updateV1(java.lang.String id)
Updates a billing ledger'snameandcomments. Cycle and rate are per-period values supplied atbilling_ledger_periods/open/v1time; the ledger does not carry them. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_owner_operators] | (BillingLedgerClientUpdate1) -> (bool)
-
updateV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> updateV1(java.lang.String id, BillingLedgerClientUpdate1 request)
Updates a billing ledger'snameandcomments. Cycle and rate are per-period values supplied atbilling_ledger_periods/open/v1time; the ledger does not carry them. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_owner_operators] | (BillingLedgerClientUpdate1) -> (bool)
-
updateV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> updateV1(java.lang.String id, BillingLedgerClientUpdate1 request, RequestOptions requestOptions)
Updates a billing ledger'snameandcomments. Cycle and rate are per-period values supplied atbilling_ledger_periods/open/v1time; the ledger does not carry them. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_owner_operators] | (BillingLedgerClientUpdate1) -> (bool)
-
deactivateV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> deactivateV1(java.lang.String id)
Flips a billing ledger to INACTIVE and stampsinactive_at_timestamp. Idempotent; the current OPEN period is left untouched. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_owner_operators] | () -> (bool)
-
deactivateV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> deactivateV1(java.lang.String id, RequestOptions requestOptions)
Flips a billing ledger to INACTIVE and stampsinactive_at_timestamp. Idempotent; the current OPEN period is left untouched. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_owner_operators] | () -> (bool)
-
-