Class ShipmentInvoiceApi
- java.lang.Object
-
- software.amazon.spapi.api.invoicing.v0.ShipmentInvoiceApi
-
public class ShipmentInvoiceApi extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShipmentInvoiceApi.Builder
-
Constructor Summary
Constructors Constructor Description ShipmentInvoiceApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClient
getApiClient()
GetInvoiceStatusResponse
getInvoiceStatus(java.lang.String shipmentId)
Returns the invoice status for the shipment you specify.okhttp3.Call
getInvoiceStatusAsync(java.lang.String shipmentId, ApiCallback<GetInvoiceStatusResponse> callback)
(asynchronously) Returns the invoice status for the shipment you specify.okhttp3.Call
getInvoiceStatusCall(java.lang.String shipmentId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getInvoiceStatusApiResponse<GetInvoiceStatusResponse>
getInvoiceStatusWithHttpInfo(java.lang.String shipmentId)
Returns the invoice status for the shipment you specify.GetShipmentDetailsResponse
getShipmentDetails(java.lang.String shipmentId)
Returns the shipment details required to issue an invoice for the specified shipment.okhttp3.Call
getShipmentDetailsAsync(java.lang.String shipmentId, ApiCallback<GetShipmentDetailsResponse> callback)
(asynchronously) Returns the shipment details required to issue an invoice for the specified shipment.okhttp3.Call
getShipmentDetailsCall(java.lang.String shipmentId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getShipmentDetailsApiResponse<GetShipmentDetailsResponse>
getShipmentDetailsWithHttpInfo(java.lang.String shipmentId)
Returns the shipment details required to issue an invoice for the specified shipment.void
setApiClient(ApiClient apiClient)
SubmitInvoiceResponse
submitInvoice(SubmitInvoiceRequest body, java.lang.String shipmentId)
Submits a shipment invoice document for a given shipment.okhttp3.Call
submitInvoiceAsync(SubmitInvoiceRequest body, java.lang.String shipmentId, ApiCallback<SubmitInvoiceResponse> callback)
(asynchronously) Submits a shipment invoice document for a given shipment.okhttp3.Call
submitInvoiceCall(SubmitInvoiceRequest body, java.lang.String shipmentId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for submitInvoiceApiResponse<SubmitInvoiceResponse>
submitInvoiceWithHttpInfo(SubmitInvoiceRequest body, java.lang.String shipmentId)
Submits a shipment invoice document for a given shipment.
-
-
-
Constructor Detail
-
ShipmentInvoiceApi
public ShipmentInvoiceApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getInvoiceStatusCall
public okhttp3.Call getInvoiceStatusCall(java.lang.String shipmentId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for getInvoiceStatus- Parameters:
shipmentId
- The shipment identifier for the shipment. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body objectLWAException
- If calls to fetch LWA access token fails
-
getInvoiceStatus
public GetInvoiceStatusResponse getInvoiceStatus(java.lang.String shipmentId) throws ApiException, LWAException
Returns the invoice status for the shipment you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
shipmentId
- The shipment identifier for the shipment. (required)- Returns:
- GetInvoiceStatusResponse
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyLWAException
- If calls to fetch LWA access token fails
-
getInvoiceStatusWithHttpInfo
public ApiResponse<GetInvoiceStatusResponse> getInvoiceStatusWithHttpInfo(java.lang.String shipmentId) throws ApiException, LWAException
Returns the invoice status for the shipment you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
shipmentId
- The shipment identifier for the shipment. (required)- Returns:
- ApiResponse<GetInvoiceStatusResponse>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyLWAException
- If calls to fetch LWA access token fails
-
getInvoiceStatusAsync
public okhttp3.Call getInvoiceStatusAsync(java.lang.String shipmentId, ApiCallback<GetInvoiceStatusResponse> callback) throws ApiException, LWAException
(asynchronously) Returns the invoice status for the shipment you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
shipmentId
- The shipment identifier for the shipment. (required)callback
- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException
- If fail to process the API call, e.g. serializing the request body objectLWAException
- If calls to fetch LWA access token fails
-
getShipmentDetailsCall
public okhttp3.Call getShipmentDetailsCall(java.lang.String shipmentId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for getShipmentDetails- Parameters:
shipmentId
- The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body objectLWAException
- If calls to fetch LWA access token fails
-
getShipmentDetails
public GetShipmentDetailsResponse getShipmentDetails(java.lang.String shipmentId) throws ApiException, LWAException
Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
shipmentId
- The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). (required)- Returns:
- GetShipmentDetailsResponse
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyLWAException
- If calls to fetch LWA access token fails
-
getShipmentDetailsWithHttpInfo
public ApiResponse<GetShipmentDetailsResponse> getShipmentDetailsWithHttpInfo(java.lang.String shipmentId) throws ApiException, LWAException
Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
shipmentId
- The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). (required)- Returns:
- ApiResponse<GetShipmentDetailsResponse>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyLWAException
- If calls to fetch LWA access token fails
-
getShipmentDetailsAsync
public okhttp3.Call getShipmentDetailsAsync(java.lang.String shipmentId, ApiCallback<GetShipmentDetailsResponse> callback) throws ApiException, LWAException
(asynchronously) Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
shipmentId
- The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). (required)callback
- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException
- If fail to process the API call, e.g. serializing the request body objectLWAException
- If calls to fetch LWA access token fails
-
submitInvoiceCall
public okhttp3.Call submitInvoiceCall(SubmitInvoiceRequest body, java.lang.String shipmentId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for submitInvoice- Parameters:
body
- (required)shipmentId
- The identifier for the shipment. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body objectLWAException
- If calls to fetch LWA access token fails
-
submitInvoice
public SubmitInvoiceResponse submitInvoice(SubmitInvoiceRequest body, java.lang.String shipmentId) throws ApiException, LWAException
Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
body
- (required)shipmentId
- The identifier for the shipment. (required)- Returns:
- SubmitInvoiceResponse
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyLWAException
- If calls to fetch LWA access token fails
-
submitInvoiceWithHttpInfo
public ApiResponse<SubmitInvoiceResponse> submitInvoiceWithHttpInfo(SubmitInvoiceRequest body, java.lang.String shipmentId) throws ApiException, LWAException
Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
body
- (required)shipmentId
- The identifier for the shipment. (required)- Returns:
- ApiResponse<SubmitInvoiceResponse>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyLWAException
- If calls to fetch LWA access token fails
-
submitInvoiceAsync
public okhttp3.Call submitInvoiceAsync(SubmitInvoiceRequest body, java.lang.String shipmentId, ApiCallback<SubmitInvoiceResponse> callback) throws ApiException, LWAException
(asynchronously) Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
body
- (required)shipmentId
- The identifier for the shipment. (required)callback
- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException
- If fail to process the API call, e.g. serializing the request body objectLWAException
- If calls to fetch LWA access token fails
-
-