/** * The Selling Partner API for Amazon External Fulfillment Shipments Processing * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon's external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements. * * The version of the OpenAPI document: 2024-09-11 * Contact: marketplaceapitest@amazon.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. * */ import { ApiClient } from '../ApiClient.js'; import { InvoiceResponse } from '../model/InvoiceResponse.js'; import { Package } from '../model/Package.js'; import { PackageDeliveryStatus } from '../model/PackageDeliveryStatus.js'; import { Packages } from '../model/Packages.js'; import { ShipLabelsInput } from '../model/ShipLabelsInput.js'; import { ShipLabelsResponse } from '../model/ShipLabelsResponse.js'; import { ShipmentAcknowledgementRequest } from '../model/ShipmentAcknowledgementRequest.js'; import { ShippingOptionsResponse } from '../model/ShippingOptionsResponse.js'; /** * ShipmentProcessing service. * @module externalfulfillmentshipments_v2024_09_11/api/ShipmentProcessingApi * @version 2024-09-11 */ export declare class ShipmentProcessingApi { #private; apiClient: any; /** * Constructs a new ShipmentProcessingApi. * @alias module:externalfulfillmentshipments_v2024_09_11/api/ShipmentProcessingApi * @class * @param {ApiClient} [apiClient] Optional API client implementation to use, * default to {@link ApiClient#instance} if unspecified. */ constructor(apiClient?: ApiClient); /** * Initialize rate limiters for API operations */ initializeDefaultRateLimiterMap(): void; /** * Get rate limiter for a specific operation * @param {String} operation name */ getRateLimiter(operation: string): any; /** * Provide details about the packages in the specified shipment. * @param {String} shipmentId The ID of the shipment. * @param {Packages} body A list of packages in the shipment. * @return {Promise} */ createPackagesWithHttpInfo(shipmentId: string, body: Packages): Promise; /** * Provide details about the packages in the specified shipment. * @param {String} shipmentId The ID of the shipment. * @param {Packages} body A list of packages in the shipment. * @return {Promise} */ createPackages(shipmentId: string, body: Packages): Promise; /** * Get invoices for the shipment you specify. * @param {String} shipmentId The ID of the shipment whose invoice you want. * @return {Promise} */ generateInvoiceWithHttpInfo(shipmentId: string): Promise; /** * Get invoices for the shipment you specify. * @param {String} shipmentId The ID of the shipment whose invoice you want. * @return {Promise} */ generateInvoice(shipmentId: string): Promise; /** * Generate and retrieve all shipping labels for one or more packages in the shipment you specify. * @param {String} shipmentId The ID of the shipment whose shipping labels you want to generate and retrieve. * @param {String} operation Specify whether you want to generate or regenerate a label. For retrieving existing labels, set this value to `GENERATE` * @param {Object} [opts] Optional parameters * @param {String} [opts.shippingOptionId] The ID of the shipping option whose shipping labels you want. * @param {ShipLabelsInput} [opts.body] Shipping details for when shipping is not done by the marketplace channel. * @return {Promise} */ generateShipLabelsWithHttpInfo(shipmentId: string, operation: string, opts?: { shippingOptionId?: string; body?: ShipLabelsInput; }): Promise; /** * Generate and retrieve all shipping labels for one or more packages in the shipment you specify. * @param {String} shipmentId The ID of the shipment whose shipping labels you want to generate and retrieve. * @param {String} operation Specify whether you want to generate or regenerate a label. For retrieving existing labels, set this value to `GENERATE` * @param {Object} [opts] Optional parameters * @param {String} [opts.shippingOptionId] The ID of the shipping option whose shipping labels you want. * @param {ShipLabelsInput} [opts.body] Shipping details for when shipping is not done by the marketplace channel. * @return {Promise} */ generateShipLabels(shipmentId: string, operation: string, opts?: { shippingOptionId?: string; body?: ShipLabelsInput; }): Promise; /** * Confirm or reject the specified shipment. * @param {String} shipmentId The ID of the shipment you want to confirm or reject. * @param {String} operation The status of the shipment. * @param {Object} [opts] Optional parameters * @param {ShipmentAcknowledgementRequest} [opts.body] Information about the shipment and its line items. * @return {Promise} */ processShipmentWithHttpInfo(shipmentId: string, operation: string, opts?: { body?: ShipmentAcknowledgementRequest; }): Promise; /** * Confirm or reject the specified shipment. * @param {String} shipmentId The ID of the shipment you want to confirm or reject. * @param {String} operation The status of the shipment. * @param {Object} [opts] Optional parameters * @param {ShipmentAcknowledgementRequest} [opts.body] Information about the shipment and its line items. * @return {Promise} */ processShipment(shipmentId: string, operation: string, opts?: { body?: ShipmentAcknowledgementRequest; }): Promise; /** * Retrieve invoices for the shipment you specify. * @param {String} shipmentId The ID of the shipment whose invoice you want to retrieve. * @return {Promise} */ retrieveInvoiceWithHttpInfo(shipmentId: string): Promise; /** * Retrieve invoices for the shipment you specify. * @param {String} shipmentId The ID of the shipment whose invoice you want to retrieve. * @return {Promise} */ retrieveInvoice(shipmentId: string): Promise; /** * Get a list of shipping options for a package in a shipment given the shipment's marketplace and channel. If the marketplace and channel have a pre-determined shipping option, then this operation returns an empty response. * @param {String} shipmentId The ID of the shipment to which the package belongs. * @param {String} packageId The ID of the package for which you want to retrieve shipping options. * @return {Promise} */ retrieveShippingOptionsWithHttpInfo(shipmentId: string, packageId: string): Promise; /** * Get a list of shipping options for a package in a shipment given the shipment's marketplace and channel. If the marketplace and channel have a pre-determined shipping option, then this operation returns an empty response. * @param {String} shipmentId The ID of the shipment to which the package belongs. * @param {String} packageId The ID of the package for which you want to retrieve shipping options. * @return {Promise} */ retrieveShippingOptions(shipmentId: string, packageId: string): Promise; /** * Updates the details about the packages that will be used to fulfill the specified shipment. * @param {String} shipmentId The ID of the shipment to which the package belongs. * @param {String} packageId The ID of the package whose information you want to update. * @param {Package} body The body of the request. * @return {Promise} */ updatePackageWithHttpInfo(shipmentId: string, packageId: string, body: Package): Promise; /** * Updates the details about the packages that will be used to fulfill the specified shipment. * @param {String} shipmentId The ID of the shipment to which the package belongs. * @param {String} packageId The ID of the package whose information you want to update. * @param {Package} body The body of the request. * @return {Promise} */ updatePackage(shipmentId: string, packageId: string, body: Package): Promise; /** * Updates the status of the packages. * @param {String} shipmentId The ID of the shipment to which the package belongs. * @param {String} packageId The ID of the package whose status you want to update. * @param {Object} [opts] Optional parameters * @param {String} [opts.status] **This field is only used for the Seller Flex program**. For the Self Delivery program, package statuses are defined in the body parameter. * @param {PackageDeliveryStatus} [opts.body] The body of the request. * @return {Promise} */ updatePackageStatusWithHttpInfo(shipmentId: string, packageId: string, opts?: { status?: string; body?: PackageDeliveryStatus; }): Promise; /** * Updates the status of the packages. * @param {String} shipmentId The ID of the shipment to which the package belongs. * @param {String} packageId The ID of the package whose status you want to update. * @param {Object} [opts] Optional parameters * @param {String} [opts.status] **This field is only used for the Seller Flex program**. For the Self Delivery program, package statuses are defined in the body parameter. * @param {PackageDeliveryStatus} [opts.body] The body of the request. * @return {Promise} */ updatePackageStatus(shipmentId: string, packageId: string, opts?: { status?: string; body?: PackageDeliveryStatus; }): Promise; } //# sourceMappingURL=ShipmentProcessingApi.d.ts.map