Class AsyncOrderSchedulesClient
- java.lang.Object
-
- com.chrt.api.resources.shipping.orderschedules.AsyncOrderSchedulesClient
-
public class AsyncOrderSchedulesClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptionsprotected java.util.function.Supplier<AsyncDraftClient>draftClientprotected java.util.function.Supplier<AsyncOrderManifestClient>orderManifestClient
-
Constructor Summary
Constructors Constructor Description AsyncOrderSchedulesClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<OrderScheduleAboutRes>aboutV1(java.lang.String orderScheduleId)Retrieves the generated order count and live orchestrator status from Temporal.java.util.concurrent.CompletableFuture<OrderScheduleAboutRes>aboutV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Retrieves the generated order count and live orchestrator status from Temporal.java.util.concurrent.CompletableFuture<java.lang.Boolean>activateV1(java.lang.String orderScheduleId)Validates a draft order schedule, creates its Temporal orchestrator schedule, and activates it.java.util.concurrent.CompletableFuture<java.lang.Boolean>activateV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Validates a draft order schedule, creates its Temporal orchestrator schedule, and activates it.java.util.concurrent.CompletableFuture<java.lang.Boolean>archiveV1(java.lang.String orderScheduleId)Archives an order schedule and deletes its Temporal schedule, preventing future runs.java.util.concurrent.CompletableFuture<java.lang.Boolean>archiveV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Archives an order schedule and deletes its Temporal schedule, preventing future runs.AsyncDraftClientdraft()java.util.concurrent.CompletableFuture<OrderSchedule1>getByIdV1(java.lang.String orderScheduleId)Retrieves an order schedule by ID.java.util.concurrent.CompletableFuture<OrderSchedule1>getByIdV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Retrieves an order schedule by ID.java.util.concurrent.CompletableFuture<OrderScheduleListRes>listV1()Lists order schedules for the caller's organization with filtering, sorting, and pagination.java.util.concurrent.CompletableFuture<OrderScheduleListRes>listV1(OrderSchedulesListV1Request request)Lists order schedules for the caller's organization with filtering, sorting, and pagination.java.util.concurrent.CompletableFuture<OrderScheduleListRes>listV1(OrderSchedulesListV1Request request, RequestOptions requestOptions)Lists order schedules for the caller's organization with filtering, sorting, and pagination.AsyncOrderManifestClientorderManifest()java.util.concurrent.CompletableFuture<java.lang.Boolean>pauseV1(java.lang.String orderScheduleId)Pauses an active order schedule.java.util.concurrent.CompletableFuture<java.lang.Boolean>pauseV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Pauses an active order schedule.java.util.concurrent.CompletableFuture<java.lang.Boolean>syncWithOrchestratorV1(java.lang.String orderScheduleId)Re-syncs the Temporal schedule to match the order schedule's intended status.java.util.concurrent.CompletableFuture<java.lang.Boolean>syncWithOrchestratorV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Re-syncs the Temporal schedule to match the order schedule's intended status.java.util.concurrent.CompletableFuture<java.lang.Boolean>takeOwnershipV1(java.lang.String orderScheduleId)Transfers order schedule workflow ownership to the caller.java.util.concurrent.CompletableFuture<java.lang.Boolean>takeOwnershipV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Transfers order schedule workflow ownership to the caller.java.util.concurrent.CompletableFuture<java.lang.Boolean>triggerV1(java.lang.String orderScheduleId)Triggers an order schedule immediately.java.util.concurrent.CompletableFuture<java.lang.Boolean>triggerV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Triggers an order schedule immediately.java.util.concurrent.CompletableFuture<java.lang.Boolean>unpauseV1(java.lang.String orderScheduleId)Unpauses a paused order schedule.java.util.concurrent.CompletableFuture<java.lang.Boolean>unpauseV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Unpauses a paused order schedule.AsyncRawOrderSchedulesClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
draftClient
protected final java.util.function.Supplier<AsyncDraftClient> draftClient
-
orderManifestClient
protected final java.util.function.Supplier<AsyncOrderManifestClient> orderManifestClient
-
-
Constructor Detail
-
AsyncOrderSchedulesClient
public AsyncOrderSchedulesClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawOrderSchedulesClient withRawResponse()
Get responses with HTTP metadata like headers
-
listV1
public java.util.concurrent.CompletableFuture<OrderScheduleListRes> listV1()
Lists order schedules for the caller's organization with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OrderScheduleListRes)
-
listV1
public java.util.concurrent.CompletableFuture<OrderScheduleListRes> listV1(OrderSchedulesListV1Request request)
Lists order schedules for the caller's organization with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OrderScheduleListRes)
-
listV1
public java.util.concurrent.CompletableFuture<OrderScheduleListRes> listV1(OrderSchedulesListV1Request request, RequestOptions requestOptions)
Lists order schedules for the caller's organization with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OrderScheduleListRes)
-
getByIdV1
public java.util.concurrent.CompletableFuture<OrderSchedule1> getByIdV1(java.lang.String orderScheduleId)
Retrieves an order schedule by ID. | authz: min_org_role=operator | () -> (OrderSchedule1)
-
getByIdV1
public java.util.concurrent.CompletableFuture<OrderSchedule1> getByIdV1(java.lang.String orderScheduleId, RequestOptions requestOptions)
Retrieves an order schedule by ID. | authz: min_org_role=operator | () -> (OrderSchedule1)
-
aboutV1
public java.util.concurrent.CompletableFuture<OrderScheduleAboutRes> aboutV1(java.lang.String orderScheduleId)
Retrieves the generated order count and live orchestrator status from Temporal. | authz: min_org_role=operator | () -> (OrderScheduleAboutRes)
-
aboutV1
public java.util.concurrent.CompletableFuture<OrderScheduleAboutRes> aboutV1(java.lang.String orderScheduleId, RequestOptions requestOptions)
Retrieves the generated order count and live orchestrator status from Temporal. | authz: min_org_role=operator | () -> (OrderScheduleAboutRes)
-
activateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> activateV1(java.lang.String orderScheduleId)
Validates a draft order schedule, creates its Temporal orchestrator schedule, and activates it. | authz: min_org_role=operator | () -> (bool)
-
activateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> activateV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Validates a draft order schedule, creates its Temporal orchestrator schedule, and activates it. | authz: min_org_role=operator | () -> (bool)
-
triggerV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> triggerV1(java.lang.String orderScheduleId)
Triggers an order schedule immediately. | authz: min_org_role=operator | () -> (bool)
-
triggerV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> triggerV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Triggers an order schedule immediately. | authz: min_org_role=operator | () -> (bool)
-
pauseV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> pauseV1(java.lang.String orderScheduleId)
Pauses an active order schedule. | authz: min_org_role=operator | () -> (bool)
-
pauseV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> pauseV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Pauses an active order schedule. | authz: min_org_role=operator | () -> (bool)
-
unpauseV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> unpauseV1(java.lang.String orderScheduleId)
Unpauses a paused order schedule. | authz: min_org_role=operator | () -> (bool)
-
unpauseV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> unpauseV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Unpauses a paused order schedule. | authz: min_org_role=operator | () -> (bool)
-
takeOwnershipV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> takeOwnershipV1(java.lang.String orderScheduleId)
Transfers order schedule workflow ownership to the caller. | authz: min_org_role=operator | () -> (bool)
-
takeOwnershipV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> takeOwnershipV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Transfers order schedule workflow ownership to the caller. | authz: min_org_role=operator | () -> (bool)
-
archiveV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> archiveV1(java.lang.String orderScheduleId)
Archives an order schedule and deletes its Temporal schedule, preventing future runs. | authz: min_org_role=operator | () -> (bool)
-
archiveV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> archiveV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Archives an order schedule and deletes its Temporal schedule, preventing future runs. | authz: min_org_role=operator | () -> (bool)
-
syncWithOrchestratorV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> syncWithOrchestratorV1(java.lang.String orderScheduleId)
Re-syncs the Temporal schedule to match the order schedule's intended status. | authz: min_org_role=operator | () -> (bool)
-
syncWithOrchestratorV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> syncWithOrchestratorV1(java.lang.String orderScheduleId, RequestOptions requestOptions)Re-syncs the Temporal schedule to match the order schedule's intended status. | authz: min_org_role=operator | () -> (bool)
-
draft
public AsyncDraftClient draft()
-
orderManifest
public AsyncOrderManifestClient orderManifest()
-
-