public final class DefaultInventoryApi extends BaseApi implements InventoryApi
BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultInventoryApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultInventoryApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultInventoryApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.public DefaultInventoryApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers, HttpCallback httpCallback)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.httpCallback - Callback to be called before and after the HTTP call.@Deprecated public RetrieveInventoryAdjustmentResponse deprecatedRetrieveInventoryAdjustment(String adjustmentId) throws ApiException, IOException
deprecatedRetrieveInventoryAdjustment in interface InventoryApiadjustmentId - Required parameter: ID of the
[InventoryAdjustment]($m/InventoryAdjustment) to retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated public CompletableFuture<RetrieveInventoryAdjustmentResponse> deprecatedRetrieveInventoryAdjustmentAsync(String adjustmentId)
deprecatedRetrieveInventoryAdjustmentAsync in interface InventoryApiadjustmentId - Required parameter: ID of the
[InventoryAdjustment]($m/InventoryAdjustment) to retrieve.public RetrieveInventoryAdjustmentResponse retrieveInventoryAdjustment(String adjustmentId) throws ApiException, IOException
retrieveInventoryAdjustment in interface InventoryApiadjustmentId - Required parameter: ID of the
[InventoryAdjustment]($m/InventoryAdjustment) to retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveInventoryAdjustmentResponse> retrieveInventoryAdjustmentAsync(String adjustmentId)
retrieveInventoryAdjustmentAsync in interface InventoryApiadjustmentId - Required parameter: ID of the
[InventoryAdjustment]($m/InventoryAdjustment) to retrieve.@Deprecated public BatchChangeInventoryResponse deprecatedBatchChangeInventory(BatchChangeInventoryRequest body) throws ApiException, IOException
deprecatedBatchChangeInventory in interface InventoryApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated public CompletableFuture<BatchChangeInventoryResponse> deprecatedBatchChangeInventoryAsync(BatchChangeInventoryRequest body)
deprecatedBatchChangeInventoryAsync in interface InventoryApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.@Deprecated public BatchRetrieveInventoryChangesResponse deprecatedBatchRetrieveInventoryChanges(BatchRetrieveInventoryChangesRequest body) throws ApiException, IOException
deprecatedBatchRetrieveInventoryChanges in interface InventoryApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated public CompletableFuture<BatchRetrieveInventoryChangesResponse> deprecatedBatchRetrieveInventoryChangesAsync(BatchRetrieveInventoryChangesRequest body)
deprecatedBatchRetrieveInventoryChangesAsync in interface InventoryApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.@Deprecated public BatchRetrieveInventoryCountsResponse deprecatedBatchRetrieveInventoryCounts(BatchRetrieveInventoryCountsRequest body) throws ApiException, IOException
deprecatedBatchRetrieveInventoryCounts in interface InventoryApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated public CompletableFuture<BatchRetrieveInventoryCountsResponse> deprecatedBatchRetrieveInventoryCountsAsync(BatchRetrieveInventoryCountsRequest body)
deprecatedBatchRetrieveInventoryCountsAsync in interface InventoryApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public BatchChangeInventoryResponse batchChangeInventory(BatchChangeInventoryRequest body) throws ApiException, IOException
batchChangeInventory in interface InventoryApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<BatchChangeInventoryResponse> batchChangeInventoryAsync(BatchChangeInventoryRequest body)
batchChangeInventoryAsync in interface InventoryApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public BatchRetrieveInventoryChangesResponse batchRetrieveInventoryChanges(BatchRetrieveInventoryChangesRequest body) throws ApiException, IOException
batchRetrieveInventoryChanges in interface InventoryApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<BatchRetrieveInventoryChangesResponse> batchRetrieveInventoryChangesAsync(BatchRetrieveInventoryChangesRequest body)
batchRetrieveInventoryChangesAsync in interface InventoryApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public BatchRetrieveInventoryCountsResponse batchRetrieveInventoryCounts(BatchRetrieveInventoryCountsRequest body) throws ApiException, IOException
batchRetrieveInventoryCounts in interface InventoryApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<BatchRetrieveInventoryCountsResponse> batchRetrieveInventoryCountsAsync(BatchRetrieveInventoryCountsRequest body)
batchRetrieveInventoryCountsAsync in interface InventoryApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.@Deprecated public RetrieveInventoryPhysicalCountResponse deprecatedRetrieveInventoryPhysicalCount(String physicalCountId) throws ApiException, IOException
deprecatedRetrieveInventoryPhysicalCount in interface InventoryApiphysicalCountId - Required parameter: ID of the
[InventoryPhysicalCount]($m/InventoryPhysicalCount) to retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated public CompletableFuture<RetrieveInventoryPhysicalCountResponse> deprecatedRetrieveInventoryPhysicalCountAsync(String physicalCountId)
deprecatedRetrieveInventoryPhysicalCountAsync in interface InventoryApiphysicalCountId - Required parameter: ID of the
[InventoryPhysicalCount]($m/InventoryPhysicalCount) to retrieve.public RetrieveInventoryPhysicalCountResponse retrieveInventoryPhysicalCount(String physicalCountId) throws ApiException, IOException
retrieveInventoryPhysicalCount in interface InventoryApiphysicalCountId - Required parameter: ID of the
[InventoryPhysicalCount]($m/InventoryPhysicalCount) to retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveInventoryPhysicalCountResponse> retrieveInventoryPhysicalCountAsync(String physicalCountId)
retrieveInventoryPhysicalCountAsync in interface InventoryApiphysicalCountId - Required parameter: ID of the
[InventoryPhysicalCount]($m/InventoryPhysicalCount) to retrieve.public RetrieveInventoryTransferResponse retrieveInventoryTransfer(String transferId) throws ApiException, IOException
retrieveInventoryTransfer in interface InventoryApitransferId - Required parameter: ID of the [InventoryTransfer]($m/InventoryTransfer)
to retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveInventoryTransferResponse> retrieveInventoryTransferAsync(String transferId)
retrieveInventoryTransferAsync in interface InventoryApitransferId - Required parameter: ID of the [InventoryTransfer]($m/InventoryTransfer)
to retrieve.public RetrieveInventoryCountResponse retrieveInventoryCount(String catalogObjectId, String locationIds, String cursor) throws ApiException, IOException
retrieveInventoryCount in interface InventoryApicatalogObjectId - Required parameter: ID of the [CatalogObject]($m/CatalogObject) to
retrieve.locationIds - Optional parameter: The [Location]($m/Location) IDs to look up as a
comma-separated list. An empty list queries all locations.cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this to retrieve the next set of results for the original query.
See the
[Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide
for more information.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveInventoryCountResponse> retrieveInventoryCountAsync(String catalogObjectId, String locationIds, String cursor)
retrieveInventoryCountAsync in interface InventoryApicatalogObjectId - Required parameter: ID of the [CatalogObject]($m/CatalogObject) to
retrieve.locationIds - Optional parameter: The [Location]($m/Location) IDs to look up as a
comma-separated list. An empty list queries all locations.cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this to retrieve the next set of results for the original query.
See the
[Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide
for more information.@Deprecated public RetrieveInventoryChangesResponse retrieveInventoryChanges(String catalogObjectId, String locationIds, String cursor) throws ApiException, IOException
retrieveInventoryChanges in interface InventoryApicatalogObjectId - Required parameter: ID of the [CatalogObject]($m/CatalogObject) to
retrieve.locationIds - Optional parameter: The [Location]($m/Location) IDs to look up as a
comma-separated list. An empty list queries all locations.cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this to retrieve the next set of results for the original query.
See the
[Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide
for more information.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated public CompletableFuture<RetrieveInventoryChangesResponse> retrieveInventoryChangesAsync(String catalogObjectId, String locationIds, String cursor)
retrieveInventoryChangesAsync in interface InventoryApicatalogObjectId - Required parameter: ID of the [CatalogObject]($m/CatalogObject) to
retrieve.locationIds - Optional parameter: The [Location]($m/Location) IDs to look up as a
comma-separated list. An empty list queries all locations.cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this to retrieve the next set of results for the original query.
See the
[Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide
for more information.Copyright © 2022. All rights reserved.