public final class OrdersController extends BaseController
GLOBAL_ERROR_CASES| Constructor and Description |
|---|
OrdersController(io.apimatic.core.GlobalConfiguration globalConfig)
Initializes the controller.
|
| Modifier and Type | Method and Description |
|---|---|
ApiResponse<OrderAuthorizeResponse> |
authorizeOrder(AuthorizeOrderInput input)
Authorizes payment for an order.
|
CompletableFuture<ApiResponse<OrderAuthorizeResponse>> |
authorizeOrderAsync(AuthorizeOrderInput input)
Authorizes payment for an order.
|
ApiResponse<Order> |
captureOrder(CaptureOrderInput input)
Captures payment for an order.
|
CompletableFuture<ApiResponse<Order>> |
captureOrderAsync(CaptureOrderInput input)
Captures payment for an order.
|
ApiResponse<Order> |
confirmOrder(ConfirmOrderInput input)
Payer confirms their intent to pay for the the Order with the given payment source.
|
CompletableFuture<ApiResponse<Order>> |
confirmOrderAsync(ConfirmOrderInput input)
Payer confirms their intent to pay for the the Order with the given payment source.
|
ApiResponse<Order> |
createOrder(CreateOrderInput input)
Creates an order.
|
CompletableFuture<ApiResponse<Order>> |
createOrderAsync(CreateOrderInput input)
Creates an order.
|
ApiResponse<Order> |
createOrderTracking(CreateOrderTrackingInput input)
Adds tracking information for an Order.
|
CompletableFuture<ApiResponse<Order>> |
createOrderTrackingAsync(CreateOrderTrackingInput input)
Adds tracking information for an Order.
|
ApiResponse<Order> |
getOrder(GetOrderInput input)
Shows details for an order, by ID.
|
CompletableFuture<ApiResponse<Order>> |
getOrderAsync(GetOrderInput input)
Shows details for an order, by ID.
|
ApiResponse<Void> |
patchOrder(PatchOrderInput input)
Updates an order with a `CREATED` or `APPROVED` status.
|
CompletableFuture<ApiResponse<Void>> |
patchOrderAsync(PatchOrderInput input)
Updates an order with a `CREATED` or `APPROVED` status.
|
ApiResponse<Void> |
updateOrderTracking(UpdateOrderTrackingInput input)
Updates or cancels the tracking information for a PayPal order, by ID.
|
CompletableFuture<ApiResponse<Void>> |
updateOrderTrackingAsync(UpdateOrderTrackingInput input)
Updates or cancels the tracking information for a PayPal order, by ID.
|
getClientInstance, getGlobalConfiguration, getHttpCallbackpublic OrdersController(io.apimatic.core.GlobalConfiguration globalConfig)
globalConfig - Configurations added in client.public ApiResponse<Order> createOrder(CreateOrderInput input) throws ApiException, IOException
input - CreateOrderInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Order>> createOrderAsync(CreateOrderInput input)
input - CreateOrderInput object containing request parameterspublic ApiResponse<Order> getOrder(GetOrderInput input) throws ApiException, IOException
input - GetOrderInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Order>> getOrderAsync(GetOrderInput input)
input - GetOrderInput object containing request parameterspublic ApiResponse<Void> patchOrder(PatchOrderInput input) throws ApiException, IOException
input - PatchOrderInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Void>> patchOrderAsync(PatchOrderInput input)
input - PatchOrderInput object containing request parameterspublic ApiResponse<Order> confirmOrder(ConfirmOrderInput input) throws ApiException, IOException
input - ConfirmOrderInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Order>> confirmOrderAsync(ConfirmOrderInput input)
input - ConfirmOrderInput object containing request parameterspublic ApiResponse<OrderAuthorizeResponse> authorizeOrder(AuthorizeOrderInput input) throws ApiException, IOException
input - AuthorizeOrderInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<OrderAuthorizeResponse>> authorizeOrderAsync(AuthorizeOrderInput input)
input - AuthorizeOrderInput object containing request parameterspublic ApiResponse<Order> captureOrder(CaptureOrderInput input) throws ApiException, IOException
input - CaptureOrderInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Order>> captureOrderAsync(CaptureOrderInput input)
input - CaptureOrderInput object containing request parameterspublic ApiResponse<Order> createOrderTracking(CreateOrderTrackingInput input) throws ApiException, IOException
input - CreateOrderTrackingInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Order>> createOrderTrackingAsync(CreateOrderTrackingInput input)
input - CreateOrderTrackingInput object containing request parameterspublic ApiResponse<Void> updateOrderTracking(UpdateOrderTrackingInput input) throws ApiException, IOException
input - UpdateOrderTrackingInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Void>> updateOrderTrackingAsync(UpdateOrderTrackingInput input)
input - UpdateOrderTrackingInput object containing request parametersCopyright © 2025. All rights reserved.