@sp-api-sdk/merchant-fulfillment-api-v0 3.1.11 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +775 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +2022 -0
  5. package/dist/index.d.ts +2022 -0
  6. package/dist/index.js +716 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/merchant-fulfillment-api.js +0 -355
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/additional-inputs.js +0 -15
  16. package/dist/cjs/api-model/models/additional-seller-input.js +0 -15
  17. package/dist/cjs/api-model/models/additional-seller-inputs.js +0 -15
  18. package/dist/cjs/api-model/models/address.js +0 -15
  19. package/dist/cjs/api-model/models/available-carrier-will-pick-up-option.js +0 -15
  20. package/dist/cjs/api-model/models/available-delivery-experience-option.js +0 -15
  21. package/dist/cjs/api-model/models/available-shipping-service-options.js +0 -15
  22. package/dist/cjs/api-model/models/benefits.js +0 -15
  23. package/dist/cjs/api-model/models/cancel-shipment-response.js +0 -15
  24. package/dist/cjs/api-model/models/carrier-will-pick-up-option.js +0 -24
  25. package/dist/cjs/api-model/models/constraint.js +0 -15
  26. package/dist/cjs/api-model/models/create-shipment-request.js +0 -15
  27. package/dist/cjs/api-model/models/create-shipment-response.js +0 -15
  28. package/dist/cjs/api-model/models/currency-amount.js +0 -15
  29. package/dist/cjs/api-model/models/dangerous-goods-details.js +0 -36
  30. package/dist/cjs/api-model/models/delivery-experience-option.js +0 -26
  31. package/dist/cjs/api-model/models/delivery-experience-type.js +0 -25
  32. package/dist/cjs/api-model/models/excluded-benefit.js +0 -15
  33. package/dist/cjs/api-model/models/file-contents.js +0 -15
  34. package/dist/cjs/api-model/models/file-type.js +0 -24
  35. package/dist/cjs/api-model/models/get-additional-seller-inputs-request.js +0 -15
  36. package/dist/cjs/api-model/models/get-additional-seller-inputs-response.js +0 -15
  37. package/dist/cjs/api-model/models/get-additional-seller-inputs-result.js +0 -15
  38. package/dist/cjs/api-model/models/get-eligible-shipment-services-request.js +0 -15
  39. package/dist/cjs/api-model/models/get-eligible-shipment-services-response.js +0 -15
  40. package/dist/cjs/api-model/models/get-eligible-shipment-services-result.js +0 -15
  41. package/dist/cjs/api-model/models/get-shipment-response.js +0 -15
  42. package/dist/cjs/api-model/models/hazmat-type.js +0 -23
  43. package/dist/cjs/api-model/models/index.js +0 -75
  44. package/dist/cjs/api-model/models/input-target-type.js +0 -23
  45. package/dist/cjs/api-model/models/item-level-fields.js +0 -15
  46. package/dist/cjs/api-model/models/item.js +0 -15
  47. package/dist/cjs/api-model/models/label-customization.js +0 -15
  48. package/dist/cjs/api-model/models/label-dimensions.js +0 -15
  49. package/dist/cjs/api-model/models/label-format-option-request.js +0 -15
  50. package/dist/cjs/api-model/models/label-format-option.js +0 -15
  51. package/dist/cjs/api-model/models/label-format.js +0 -26
  52. package/dist/cjs/api-model/models/label.js +0 -15
  53. package/dist/cjs/api-model/models/length.js +0 -15
  54. package/dist/cjs/api-model/models/liquid-volume.js +0 -25
  55. package/dist/cjs/api-model/models/model-error.js +0 -15
  56. package/dist/cjs/api-model/models/package-dimensions.js +0 -15
  57. package/dist/cjs/api-model/models/predefined-package-dimensions.js +0 -71
  58. package/dist/cjs/api-model/models/rate-item-id.js +0 -22
  59. package/dist/cjs/api-model/models/rate-item-type.js +0 -22
  60. package/dist/cjs/api-model/models/rate-item.js +0 -15
  61. package/dist/cjs/api-model/models/rejected-shipping-service.js +0 -15
  62. package/dist/cjs/api-model/models/seller-input-definition.js +0 -15
  63. package/dist/cjs/api-model/models/shipment-request-details.js +0 -15
  64. package/dist/cjs/api-model/models/shipment-status.js +0 -25
  65. package/dist/cjs/api-model/models/shipment.js +0 -15
  66. package/dist/cjs/api-model/models/shipping-offering-filter.js +0 -15
  67. package/dist/cjs/api-model/models/shipping-service-options.js +0 -15
  68. package/dist/cjs/api-model/models/shipping-service.js +0 -15
  69. package/dist/cjs/api-model/models/standard-id-for-label.js +0 -22
  70. package/dist/cjs/api-model/models/temporarily-unavailable-carrier.js +0 -15
  71. package/dist/cjs/api-model/models/terms-and-conditions-not-accepted-carrier.js +0 -15
  72. package/dist/cjs/api-model/models/unit-of-length.js +0 -23
  73. package/dist/cjs/api-model/models/unit-of-weight.js +0 -23
  74. package/dist/cjs/api-model/models/weight.js +0 -15
  75. package/dist/cjs/client.js +0 -49
  76. package/dist/cjs/index.js +0 -19
  77. package/dist/es/api-model/api/merchant-fulfillment-api.js +0 -345
  78. package/dist/es/api-model/api.js +0 -14
  79. package/dist/es/api-model/base.js +0 -44
  80. package/dist/es/api-model/common.js +0 -110
  81. package/dist/es/api-model/configuration.js +0 -94
  82. package/dist/es/api-model/index.js +0 -16
  83. package/dist/es/api-model/models/additional-inputs.js +0 -14
  84. package/dist/es/api-model/models/additional-seller-input.js +0 -14
  85. package/dist/es/api-model/models/additional-seller-inputs.js +0 -14
  86. package/dist/es/api-model/models/address.js +0 -14
  87. package/dist/es/api-model/models/available-carrier-will-pick-up-option.js +0 -14
  88. package/dist/es/api-model/models/available-delivery-experience-option.js +0 -14
  89. package/dist/es/api-model/models/available-shipping-service-options.js +0 -14
  90. package/dist/es/api-model/models/benefits.js +0 -14
  91. package/dist/es/api-model/models/cancel-shipment-response.js +0 -14
  92. package/dist/es/api-model/models/carrier-will-pick-up-option.js +0 -21
  93. package/dist/es/api-model/models/constraint.js +0 -14
  94. package/dist/es/api-model/models/create-shipment-request.js +0 -14
  95. package/dist/es/api-model/models/create-shipment-response.js +0 -14
  96. package/dist/es/api-model/models/currency-amount.js +0 -14
  97. package/dist/es/api-model/models/dangerous-goods-details.js +0 -33
  98. package/dist/es/api-model/models/delivery-experience-option.js +0 -23
  99. package/dist/es/api-model/models/delivery-experience-type.js +0 -22
  100. package/dist/es/api-model/models/excluded-benefit.js +0 -14
  101. package/dist/es/api-model/models/file-contents.js +0 -14
  102. package/dist/es/api-model/models/file-type.js +0 -21
  103. package/dist/es/api-model/models/get-additional-seller-inputs-request.js +0 -14
  104. package/dist/es/api-model/models/get-additional-seller-inputs-response.js +0 -14
  105. package/dist/es/api-model/models/get-additional-seller-inputs-result.js +0 -14
  106. package/dist/es/api-model/models/get-eligible-shipment-services-request.js +0 -14
  107. package/dist/es/api-model/models/get-eligible-shipment-services-response.js +0 -14
  108. package/dist/es/api-model/models/get-eligible-shipment-services-result.js +0 -14
  109. package/dist/es/api-model/models/get-shipment-response.js +0 -14
  110. package/dist/es/api-model/models/hazmat-type.js +0 -20
  111. package/dist/es/api-model/models/index.js +0 -59
  112. package/dist/es/api-model/models/input-target-type.js +0 -20
  113. package/dist/es/api-model/models/item-level-fields.js +0 -14
  114. package/dist/es/api-model/models/item.js +0 -14
  115. package/dist/es/api-model/models/label-customization.js +0 -14
  116. package/dist/es/api-model/models/label-dimensions.js +0 -14
  117. package/dist/es/api-model/models/label-format-option-request.js +0 -14
  118. package/dist/es/api-model/models/label-format-option.js +0 -14
  119. package/dist/es/api-model/models/label-format.js +0 -23
  120. package/dist/es/api-model/models/label.js +0 -14
  121. package/dist/es/api-model/models/length.js +0 -14
  122. package/dist/es/api-model/models/liquid-volume.js +0 -22
  123. package/dist/es/api-model/models/model-error.js +0 -14
  124. package/dist/es/api-model/models/package-dimensions.js +0 -14
  125. package/dist/es/api-model/models/predefined-package-dimensions.js +0 -68
  126. package/dist/es/api-model/models/rate-item-id.js +0 -19
  127. package/dist/es/api-model/models/rate-item-type.js +0 -19
  128. package/dist/es/api-model/models/rate-item.js +0 -14
  129. package/dist/es/api-model/models/rejected-shipping-service.js +0 -14
  130. package/dist/es/api-model/models/seller-input-definition.js +0 -14
  131. package/dist/es/api-model/models/shipment-request-details.js +0 -14
  132. package/dist/es/api-model/models/shipment-status.js +0 -22
  133. package/dist/es/api-model/models/shipment.js +0 -14
  134. package/dist/es/api-model/models/shipping-offering-filter.js +0 -14
  135. package/dist/es/api-model/models/shipping-service-options.js +0 -14
  136. package/dist/es/api-model/models/shipping-service.js +0 -14
  137. package/dist/es/api-model/models/standard-id-for-label.js +0 -19
  138. package/dist/es/api-model/models/temporarily-unavailable-carrier.js +0 -14
  139. package/dist/es/api-model/models/terms-and-conditions-not-accepted-carrier.js +0 -14
  140. package/dist/es/api-model/models/unit-of-length.js +0 -20
  141. package/dist/es/api-model/models/unit-of-weight.js +0 -20
  142. package/dist/es/api-model/models/weight.js +0 -14
  143. package/dist/es/client.js +0 -45
  144. package/dist/es/index.js +0 -3
  145. package/dist/types/api-model/api/merchant-fulfillment-api.d.ts +0 -228
  146. package/dist/types/api-model/api.d.ts +0 -12
  147. package/dist/types/api-model/base.d.ts +0 -42
  148. package/dist/types/api-model/common.d.ts +0 -34
  149. package/dist/types/api-model/configuration.d.ts +0 -98
  150. package/dist/types/api-model/index.d.ts +0 -14
  151. package/dist/types/api-model/models/additional-inputs.d.ts +0 -22
  152. package/dist/types/api-model/models/additional-seller-input.d.ts +0 -44
  153. package/dist/types/api-model/models/additional-seller-inputs.d.ts +0 -22
  154. package/dist/types/api-model/models/address.d.ts +0 -60
  155. package/dist/types/api-model/models/available-carrier-will-pick-up-option.d.ts +0 -20
  156. package/dist/types/api-model/models/available-delivery-experience-option.d.ts +0 -20
  157. package/dist/types/api-model/models/available-shipping-service-options.d.ts +0 -26
  158. package/dist/types/api-model/models/benefits.d.ts +0 -25
  159. package/dist/types/api-model/models/cancel-shipment-response.d.ts +0 -22
  160. package/dist/types/api-model/models/carrier-will-pick-up-option.d.ts +0 -20
  161. package/dist/types/api-model/models/constraint.d.ts +0 -24
  162. package/dist/types/api-model/models/create-shipment-request.d.ts +0 -35
  163. package/dist/types/api-model/models/create-shipment-response.d.ts +0 -22
  164. package/dist/types/api-model/models/currency-amount.d.ts +0 -24
  165. package/dist/types/api-model/models/dangerous-goods-details.d.ts +0 -54
  166. package/dist/types/api-model/models/delivery-experience-option.d.ts +0 -22
  167. package/dist/types/api-model/models/delivery-experience-type.d.ts +0 -21
  168. package/dist/types/api-model/models/excluded-benefit.d.ts +0 -24
  169. package/dist/types/api-model/models/file-contents.d.ts +0 -26
  170. package/dist/types/api-model/models/file-type.d.ts +0 -20
  171. package/dist/types/api-model/models/get-additional-seller-inputs-request.d.ts +0 -26
  172. package/dist/types/api-model/models/get-additional-seller-inputs-response.d.ts +0 -22
  173. package/dist/types/api-model/models/get-additional-seller-inputs-result.d.ts +0 -26
  174. package/dist/types/api-model/models/get-eligible-shipment-services-request.d.ts +0 -20
  175. package/dist/types/api-model/models/get-eligible-shipment-services-response.d.ts +0 -22
  176. package/dist/types/api-model/models/get-eligible-shipment-services-result.d.ts +0 -36
  177. package/dist/types/api-model/models/get-shipment-response.d.ts +0 -22
  178. package/dist/types/api-model/models/hazmat-type.d.ts +0 -19
  179. package/dist/types/api-model/models/index.d.ts +0 -59
  180. package/dist/types/api-model/models/input-target-type.d.ts +0 -19
  181. package/dist/types/api-model/models/item-level-fields.d.ts +0 -25
  182. package/dist/types/api-model/models/item.d.ts +0 -47
  183. package/dist/types/api-model/models/label-customization.d.ts +0 -22
  184. package/dist/types/api-model/models/label-dimensions.d.ts +0 -26
  185. package/dist/types/api-model/models/label-format-option-request.d.ts +0 -20
  186. package/dist/types/api-model/models/label-format-option.d.ts +0 -22
  187. package/dist/types/api-model/models/label-format.d.ts +0 -22
  188. package/dist/types/api-model/models/label.d.ts +0 -28
  189. package/dist/types/api-model/models/length.d.ts +0 -22
  190. package/dist/types/api-model/models/liquid-volume.d.ts +0 -34
  191. package/dist/types/api-model/models/model-error.d.ts +0 -28
  192. package/dist/types/api-model/models/package-dimensions.d.ts +0 -32
  193. package/dist/types/api-model/models/predefined-package-dimensions.d.ts +0 -67
  194. package/dist/types/api-model/models/rate-item-id.d.ts +0 -18
  195. package/dist/types/api-model/models/rate-item-type.d.ts +0 -18
  196. package/dist/types/api-model/models/rate-item.d.ts +0 -26
  197. package/dist/types/api-model/models/rejected-shipping-service.d.ts +0 -36
  198. package/dist/types/api-model/models/seller-input-definition.d.ts +0 -41
  199. package/dist/types/api-model/models/shipment-request-details.d.ts +0 -47
  200. package/dist/types/api-model/models/shipment-status.d.ts +0 -21
  201. package/dist/types/api-model/models/shipment.d.ts +0 -60
  202. package/dist/types/api-model/models/shipping-offering-filter.d.ts +0 -28
  203. package/dist/types/api-model/models/shipping-service-options.d.ts +0 -28
  204. package/dist/types/api-model/models/shipping-service.d.ts +0 -72
  205. package/dist/types/api-model/models/standard-id-for-label.d.ts +0 -18
  206. package/dist/types/api-model/models/temporarily-unavailable-carrier.d.ts +0 -20
  207. package/dist/types/api-model/models/terms-and-conditions-not-accepted-carrier.d.ts +0 -20
  208. package/dist/types/api-model/models/unit-of-length.d.ts +0 -19
  209. package/dist/types/api-model/models/unit-of-weight.d.ts +0 -19
  210. package/dist/types/api-model/models/weight.d.ts +0 -22
  211. package/dist/types/client.d.ts +0 -6
  212. package/dist/types/index.d.ts +0 -3
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/client.ts","../src/api-model/api/merchant-fulfillment-api.ts","../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/configuration.ts","../src/api-model/models/carrier-will-pick-up-option.ts","../src/api-model/models/dangerous-goods-details.ts","../src/api-model/models/delivery-experience-option.ts","../src/api-model/models/delivery-experience-type.ts","../src/api-model/models/file-type.ts","../src/api-model/models/hazmat-type.ts","../src/api-model/models/input-target-type.ts","../src/api-model/models/label-format.ts","../src/api-model/models/liquid-volume.ts","../src/api-model/models/predefined-package-dimensions.ts","../src/api-model/models/rate-item-id.ts","../src/api-model/models/rate-item-type.ts","../src/api-model/models/shipment-status.ts","../src/api-model/models/standard-id-for-label.ts","../src/api-model/models/unit-of-length.ts","../src/api-model/models/unit-of-weight.ts"],"sourcesContent":["import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {Configuration, MerchantFulfillmentApi} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n {\n method: 'post',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/mfn/v0/eligibleShippingServices$'),\n rate: 6,\n burst: 12,\n },\n {\n method: 'get',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/mfn/v0/shipments/[^/]*$'),\n rate: 1,\n burst: 1,\n },\n {\n method: 'delete',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/mfn/v0/shipments/[^/]*$'),\n rate: 1,\n burst: 1,\n },\n {\n method: 'post',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/mfn/v0/shipments$'),\n rate: 2,\n burst: 2,\n },\n {\n method: 'post',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/mfn/v0/additionalSellerInputs$'),\n rate: 1,\n burst: 1,\n },\n]\n\nexport class MerchantFulfillmentApiClient extends MerchantFulfillmentApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { CancelShipmentResponse } from '../models/index.js';\n// @ts-ignore\nimport type { CreateShipmentRequest } from '../models/index.js';\n// @ts-ignore\nimport type { CreateShipmentResponse } from '../models/index.js';\n// @ts-ignore\nimport type { GetAdditionalSellerInputsRequest } from '../models/index.js';\n// @ts-ignore\nimport type { GetAdditionalSellerInputsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { GetEligibleShipmentServicesRequest } from '../models/index.js';\n// @ts-ignore\nimport type { GetEligibleShipmentServicesResponse } from '../models/index.js';\n// @ts-ignore\nimport type { GetShipmentResponse } from '../models/index.js';\n/**\n * MerchantFulfillmentApi - axios parameter creator\n */\nexport const MerchantFulfillmentApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n cancelShipment: async (shipmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'shipmentId' is not null or undefined\n assertParamExists('cancelShipment', 'shipmentId', shipmentId)\n const localVarPath = `/mfn/v0/shipments/{shipmentId}`\n .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {CreateShipmentRequest} body The request schema for the &#x60;CreateShipment&#x60; operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createShipment: async (body: CreateShipmentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'body' is not null or undefined\n assertParamExists('createShipment', 'body', body)\n const localVarPath = `/mfn/v0/shipments`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {GetAdditionalSellerInputsRequest} body The request schema for the &#x60;GetAdditionalSellerInputs&#x60; operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getAdditionalSellerInputs: async (body: GetAdditionalSellerInputsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'body' is not null or undefined\n assertParamExists('getAdditionalSellerInputs', 'body', body)\n const localVarPath = `/mfn/v0/additionalSellerInputs`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 6 | 12 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {GetEligibleShipmentServicesRequest} body The request schema for the &#x60;GetEligibleShipmentServices&#x60; operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getEligibleShipmentServices: async (body: GetEligibleShipmentServicesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'body' is not null or undefined\n assertParamExists('getEligibleShipmentServices', 'body', body)\n const localVarPath = `/mfn/v0/eligibleShippingServices`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getShipment: async (shipmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'shipmentId' is not null or undefined\n assertParamExists('getShipment', 'shipmentId', shipmentId)\n const localVarPath = `/mfn/v0/shipments/{shipmentId}`\n .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * MerchantFulfillmentApi - functional programming interface\n */\nexport const MerchantFulfillmentApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = MerchantFulfillmentApiAxiosParamCreator(configuration)\n return {\n /**\n * Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async cancelShipment(shipmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelShipmentResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.cancelShipment(shipmentId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['MerchantFulfillmentApi.cancelShipment']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {CreateShipmentRequest} body The request schema for the &#x60;CreateShipment&#x60; operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createShipment(body: CreateShipmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateShipmentResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createShipment(body, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['MerchantFulfillmentApi.createShipment']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {GetAdditionalSellerInputsRequest} body The request schema for the &#x60;GetAdditionalSellerInputs&#x60; operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getAdditionalSellerInputs(body: GetAdditionalSellerInputsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAdditionalSellerInputsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getAdditionalSellerInputs(body, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['MerchantFulfillmentApi.getAdditionalSellerInputs']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 6 | 12 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {GetEligibleShipmentServicesRequest} body The request schema for the &#x60;GetEligibleShipmentServices&#x60; operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getEligibleShipmentServices(body: GetEligibleShipmentServicesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEligibleShipmentServicesResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getEligibleShipmentServices(body, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['MerchantFulfillmentApi.getEligibleShipmentServices']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getShipment(shipmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetShipmentResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getShipment(shipmentId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['MerchantFulfillmentApi.getShipment']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * MerchantFulfillmentApi - factory interface\n */\nexport const MerchantFulfillmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = MerchantFulfillmentApiFp(configuration)\n return {\n /**\n * Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {MerchantFulfillmentApiCancelShipmentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n cancelShipment(requestParameters: MerchantFulfillmentApiCancelShipmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelShipmentResponse> {\n return localVarFp.cancelShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));\n },\n /**\n * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createShipment(requestParameters: MerchantFulfillmentApiCreateShipmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateShipmentResponse> {\n return localVarFp.createShipment(requestParameters.body, options).then((request) => request(axios, basePath));\n },\n /**\n * Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getAdditionalSellerInputs(requestParameters: MerchantFulfillmentApiGetAdditionalSellerInputsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAdditionalSellerInputsResponse> {\n return localVarFp.getAdditionalSellerInputs(requestParameters.body, options).then((request) => request(axios, basePath));\n },\n /**\n * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 6 | 12 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getEligibleShipmentServices(requestParameters: MerchantFulfillmentApiGetEligibleShipmentServicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetEligibleShipmentServicesResponse> {\n return localVarFp.getEligibleShipmentServices(requestParameters.body, options).then((request) => request(axios, basePath));\n },\n /**\n * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getShipment(requestParameters: MerchantFulfillmentApiGetShipmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetShipmentResponse> {\n return localVarFp.getShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for cancelShipment operation in MerchantFulfillmentApi.\n */\nexport interface MerchantFulfillmentApiCancelShipmentRequest {\n /**\n * The Amazon-defined shipment identifier for the shipment to cancel.\n */\n readonly shipmentId: string\n}\n\n/**\n * Request parameters for createShipment operation in MerchantFulfillmentApi.\n */\nexport interface MerchantFulfillmentApiCreateShipmentRequest {\n /**\n * The request schema for the &#x60;CreateShipment&#x60; operation.\n */\n readonly body: CreateShipmentRequest\n}\n\n/**\n * Request parameters for getAdditionalSellerInputs operation in MerchantFulfillmentApi.\n */\nexport interface MerchantFulfillmentApiGetAdditionalSellerInputsRequest {\n /**\n * The request schema for the &#x60;GetAdditionalSellerInputs&#x60; operation.\n */\n readonly body: GetAdditionalSellerInputsRequest\n}\n\n/**\n * Request parameters for getEligibleShipmentServices operation in MerchantFulfillmentApi.\n */\nexport interface MerchantFulfillmentApiGetEligibleShipmentServicesRequest {\n /**\n * The request schema for the &#x60;GetEligibleShipmentServices&#x60; operation.\n */\n readonly body: GetEligibleShipmentServicesRequest\n}\n\n/**\n * Request parameters for getShipment operation in MerchantFulfillmentApi.\n */\nexport interface MerchantFulfillmentApiGetShipmentRequest {\n /**\n * The Amazon-defined shipment identifier for the shipment.\n */\n readonly shipmentId: string\n}\n\n/**\n * MerchantFulfillmentApi - object-oriented interface\n */\nexport class MerchantFulfillmentApi extends BaseAPI {\n /**\n * Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {MerchantFulfillmentApiCancelShipmentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public cancelShipment(requestParameters: MerchantFulfillmentApiCancelShipmentRequest, options?: RawAxiosRequestConfig) {\n return MerchantFulfillmentApiFp(this.configuration).cancelShipment(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public createShipment(requestParameters: MerchantFulfillmentApiCreateShipmentRequest, options?: RawAxiosRequestConfig) {\n return MerchantFulfillmentApiFp(this.configuration).createShipment(requestParameters.body, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public getAdditionalSellerInputs(requestParameters: MerchantFulfillmentApiGetAdditionalSellerInputsRequest, options?: RawAxiosRequestConfig) {\n return MerchantFulfillmentApiFp(this.configuration).getAdditionalSellerInputs(requestParameters.body, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 6 | 12 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public getEligibleShipmentServices(requestParameters: MerchantFulfillmentApiGetEligibleShipmentServicesRequest, options?: RawAxiosRequestConfig) {\n return MerchantFulfillmentApiFp(this.configuration).getEligibleShipmentServices(requestParameters.body, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public getShipment(requestParameters: MerchantFulfillmentApiGetShipmentRequest, options?: RawAxiosRequestConfig) {\n return MerchantFulfillmentApiFp(this.configuration).getShipment(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n return mime !== null && jsonMime.test(mime);\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Carrier will pick up option.\n */\n\nexport const CarrierWillPickUpOption = {\n CarrierWillPickUp: 'CarrierWillPickUp',\n ShipperWillDropOff: 'ShipperWillDropOff',\n NoPreference: 'NoPreference',\n} as const;\n\nexport type CarrierWillPickUpOption = typeof CarrierWillPickUpOption[keyof typeof CarrierWillPickUpOption];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Details related to any dangerous goods or items that are shipped.\n */\nexport interface DangerousGoodsDetails {\n /**\n * The specific UNID of the item being shipped.\n */\n 'UnitedNationsRegulatoryId'?: string;\n /**\n * The specific regulatory class of the shipped item.\n */\n 'TransportationRegulatoryClass'?: string;\n /**\n * The specific packaging group of the item being shipped.\n */\n 'PackingGroup'?: DangerousGoodsDetailsPackingGroupEnum;\n /**\n * The specific packing instruction of the item being shipped.\n */\n 'PackingInstruction'?: DangerousGoodsDetailsPackingInstructionEnum;\n}\n\nexport const DangerousGoodsDetailsPackingGroupEnum = {\n I: 'I',\n Ii: 'II',\n Iii: 'III',\n} as const;\n\nexport type DangerousGoodsDetailsPackingGroupEnum = typeof DangerousGoodsDetailsPackingGroupEnum[keyof typeof DangerousGoodsDetailsPackingGroupEnum];\nexport const DangerousGoodsDetailsPackingInstructionEnum = {\n Pi965SectionIa: 'PI965_SECTION_IA',\n Pi965SectionIb: 'PI965_SECTION_IB',\n Pi965SectionIi: 'PI965_SECTION_II',\n Pi966SectionI: 'PI966_SECTION_I',\n Pi966SectionIi: 'PI966_SECTION_II',\n Pi967SectionI: 'PI967_SECTION_I',\n Pi967SectionIi: 'PI967_SECTION_II',\n Pi968SectionIa: 'PI968_SECTION_IA',\n Pi968SectionIb: 'PI968_SECTION_IB',\n Pi969SectionI: 'PI969_SECTION_I',\n Pi969SectionIi: 'PI969_SECTION_II',\n Pi970SectionI: 'PI970_SECTION_I',\n Pi970SectionIi: 'PI970_SECTION_II',\n} as const;\n\nexport type DangerousGoodsDetailsPackingInstructionEnum = typeof DangerousGoodsDetailsPackingInstructionEnum[keyof typeof DangerousGoodsDetailsPackingInstructionEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The delivery confirmation level.\n */\n\nexport const DeliveryExperienceOption = {\n DeliveryConfirmationWithAdultSignature: 'DeliveryConfirmationWithAdultSignature',\n DeliveryConfirmationWithSignature: 'DeliveryConfirmationWithSignature',\n DeliveryConfirmationWithoutSignature: 'DeliveryConfirmationWithoutSignature',\n NoTracking: 'NoTracking',\n NoPreference: 'NoPreference',\n} as const;\n\nexport type DeliveryExperienceOption = typeof DeliveryExperienceOption[keyof typeof DeliveryExperienceOption];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The delivery confirmation level.\n */\n\nexport const DeliveryExperienceType = {\n DeliveryConfirmationWithAdultSignature: 'DeliveryConfirmationWithAdultSignature',\n DeliveryConfirmationWithSignature: 'DeliveryConfirmationWithSignature',\n DeliveryConfirmationWithoutSignature: 'DeliveryConfirmationWithoutSignature',\n NoTracking: 'NoTracking',\n} as const;\n\nexport type DeliveryExperienceType = typeof DeliveryExperienceType[keyof typeof DeliveryExperienceType];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The file type for a label.\n */\n\nexport const FileType = {\n ApplicationPdf: 'application/pdf',\n ApplicationZpl: 'application/zpl',\n ImagePng: 'image/png',\n} as const;\n\nexport type FileType = typeof FileType[keyof typeof FileType];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Hazardous materials options for a package. Consult the terms and conditions for each carrier for more information on hazardous materials.\n */\n\nexport const HazmatType = {\n None: 'None',\n LqHazmat: 'LQHazmat',\n} as const;\n\nexport type HazmatType = typeof HazmatType[keyof typeof HazmatType];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Indicates whether the additional seller input is at the item or shipment level.\n */\n\nexport const InputTargetType = {\n ShipmentLevel: 'SHIPMENT_LEVEL',\n ItemLevel: 'ITEM_LEVEL',\n} as const;\n\nexport type InputTargetType = typeof InputTargetType[keyof typeof InputTargetType];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The label format.\n */\n\nexport const LabelFormat = {\n Pdf: 'PDF',\n Png: 'PNG',\n Zpl203: 'ZPL203',\n Zpl300: 'ZPL300',\n ShippingServiceDefault: 'ShippingServiceDefault',\n} as const;\n\nexport type LabelFormat = typeof LabelFormat[keyof typeof LabelFormat];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Liquid volume.\n */\nexport interface LiquidVolume {\n /**\n * The unit of measurement.\n */\n 'Unit': LiquidVolumeUnitEnum;\n /**\n * The measurement value.\n */\n 'Value': number;\n}\n\nexport const LiquidVolumeUnitEnum = {\n Ml: 'ML',\n L: 'L',\n FlOz: 'FL_OZ',\n Gal: 'GAL',\n Pt: 'PT',\n Qt: 'QT',\n C: 'C',\n} as const;\n\nexport type LiquidVolumeUnitEnum = typeof LiquidVolumeUnitEnum[keyof typeof LiquidVolumeUnitEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * An enumeration of predefined parcel tokens. If you specify a `PredefinedPackageDimensions` token, you are not obligated to use a branded package from a carrier. For example, if you specify the `FedEx_Box_10kg` token, you do not have to use that particular package from FedEx. You are only obligated to use a box that matches the dimensions specified by the token. Note: Carriers can have restrictions on the type of package allowed for certain ship methods. Check the carrier website for details. Example: Flat rate pricing is available when materials are sent by USPS in a USPS-produced Flat Rate envelope or box.\n */\n\nexport const PredefinedPackageDimensions = {\n FedExBox10kg: 'FedEx_Box_10kg',\n FedExBox25kg: 'FedEx_Box_25kg',\n FedExBoxExtraLarge1: 'FedEx_Box_Extra_Large_1',\n FedExBoxExtraLarge2: 'FedEx_Box_Extra_Large_2',\n FedExBoxLarge1: 'FedEx_Box_Large_1',\n FedExBoxLarge2: 'FedEx_Box_Large_2',\n FedExBoxMedium1: 'FedEx_Box_Medium_1',\n FedExBoxMedium2: 'FedEx_Box_Medium_2',\n FedExBoxSmall1: 'FedEx_Box_Small_1',\n FedExBoxSmall2: 'FedEx_Box_Small_2',\n FedExEnvelope: 'FedEx_Envelope',\n FedExPaddedPak: 'FedEx_Padded_Pak',\n FedExPak1: 'FedEx_Pak_1',\n FedExPak2: 'FedEx_Pak_2',\n FedExTube: 'FedEx_Tube',\n FedExXlPak: 'FedEx_XL_Pak',\n UpsBox10kg: 'UPS_Box_10kg',\n UpsBox25kg: 'UPS_Box_25kg',\n UpsExpressBox: 'UPS_Express_Box',\n UpsExpressBoxLarge: 'UPS_Express_Box_Large',\n UpsExpressBoxMedium: 'UPS_Express_Box_Medium',\n UpsExpressBoxSmall: 'UPS_Express_Box_Small',\n UpsExpressEnvelope: 'UPS_Express_Envelope',\n UpsExpressHardPak: 'UPS_Express_Hard_Pak',\n UpsExpressLegalEnvelope: 'UPS_Express_Legal_Envelope',\n UpsExpressPak: 'UPS_Express_Pak',\n UpsExpressTube: 'UPS_Express_Tube',\n UpsLaboratoryPak: 'UPS_Laboratory_Pak',\n UpsPadPak: 'UPS_Pad_Pak',\n UpsPallet: 'UPS_Pallet',\n UspsCard: 'USPS_Card',\n UspsFlat: 'USPS_Flat',\n UspsFlatRateCardboardEnvelope: 'USPS_FlatRateCardboardEnvelope',\n UspsFlatRateEnvelope: 'USPS_FlatRateEnvelope',\n UspsFlatRateGiftCardEnvelope: 'USPS_FlatRateGiftCardEnvelope',\n UspsFlatRateLegalEnvelope: 'USPS_FlatRateLegalEnvelope',\n UspsFlatRatePaddedEnvelope: 'USPS_FlatRatePaddedEnvelope',\n UspsFlatRateWindowEnvelope: 'USPS_FlatRateWindowEnvelope',\n UspsLargeFlatRateBoardGameBox: 'USPS_LargeFlatRateBoardGameBox',\n UspsLargeFlatRateBox: 'USPS_LargeFlatRateBox',\n UspsLetter: 'USPS_Letter',\n UspsMediumFlatRateBox1: 'USPS_MediumFlatRateBox1',\n UspsMediumFlatRateBox2: 'USPS_MediumFlatRateBox2',\n UspsRegionalRateBoxA1: 'USPS_RegionalRateBoxA1',\n UspsRegionalRateBoxA2: 'USPS_RegionalRateBoxA2',\n UspsRegionalRateBoxB1: 'USPS_RegionalRateBoxB1',\n UspsRegionalRateBoxB2: 'USPS_RegionalRateBoxB2',\n UspsRegionalRateBoxC: 'USPS_RegionalRateBoxC',\n UspsSmallFlatRateBox: 'USPS_SmallFlatRateBox',\n UspsSmallFlatRateEnvelope: 'USPS_SmallFlatRateEnvelope',\n} as const;\n\nexport type PredefinedPackageDimensions = typeof PredefinedPackageDimensions[keyof typeof PredefinedPackageDimensions];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Unique identifier for the RateItem.\n */\n\nexport const RateItemID = {\n FbmShipPlusCredit: 'FBM_SHIP_PLUS_CREDIT',\n} as const;\n\nexport type RateItemID = typeof RateItemID[keyof typeof RateItemID];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Type for the RateItem.\n */\n\nexport const RateItemType = {\n Included: 'INCLUDED',\n} as const;\n\nexport type RateItemType = typeof RateItemType[keyof typeof RateItemType];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The shipment status.\n */\n\nexport const ShipmentStatus = {\n Purchased: 'Purchased',\n RefundPending: 'RefundPending',\n RefundRejected: 'RefundRejected',\n RefundApplied: 'RefundApplied',\n} as const;\n\nexport type ShipmentStatus = typeof ShipmentStatus[keyof typeof ShipmentStatus];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The type of standard identifier to print on the label.\n */\n\nexport const StandardIdForLabel = {\n AmazonOrderId: 'AmazonOrderId',\n} as const;\n\nexport type StandardIdForLabel = typeof StandardIdForLabel[keyof typeof StandardIdForLabel];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The unit of length.\n */\n\nexport const UnitOfLength = {\n Inches: 'inches',\n Centimeters: 'centimeters',\n} as const;\n\nexport type UnitOfLength = typeof UnitOfLength[keyof typeof UnitOfLength];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Merchant Fulfillment\n * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\\'s Buy Shipping Services.\n *\n * The version of the OpenAPI document: v0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The unit of weight.\n */\n\nexport const UnitOfWeight = {\n Oz: 'oz',\n G: 'g',\n} as const;\n\nexport type UnitOfWeight = typeof UnitOfWeight[keyof typeof UnitOfWeight];\n\n\n\n"],"mappings":";AAAA,SAAkC,2BAA0C;;;ACiB5E,OAAOA,kBAAiB;;;ACExB,OAAO,iBAAiB;AAEjB,IAAM,YAAY,0CAA0C,QAAQ,QAAQ,EAAE;AAc9E,IAAM,UAAN,MAAc;AAAA,EAGjB,YAAY,eAAyC,WAAmB,WAAqB,QAAuB,aAAa;AAA5E;AAAwC;AACzF,QAAI,eAAe;AACf,WAAK,gBAAgB;AACrB,WAAK,WAAW,cAAc,YAAY;AAAA,IAC9C;AAAA,EACJ;AAAA,EALqD;AAAA,EAAwC;AAAA,EAFnF;AAQd;AAEO,IAAM,gBAAN,cAA4B,MAAM;AAAA,EACrC,YAAmB,OAAe,KAAc;AAC5C,UAAM,GAAG;AADM;AAEf,SAAK,OAAO;AAAA,EAChB;AAAA,EAHmB;AAIvB;AASO,IAAM,qBAAgC,CAC7C;;;AC1CO,IAAM,iBAAiB;AAMvB,IAAM,oBAAoB,SAAU,cAAsB,WAAmB,YAAqB;AACrG,MAAI,eAAe,QAAQ,eAAe,QAAW;AACjD,UAAM,IAAI,cAAc,WAAW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eAAe;AACnB;;;ACFO,IAAM,eAAe;AAAA,EACxB,QAAQ;AAAA,EACR,aAAa;AACjB;;;ACHO,IAAM,eAAe;AAAA,EACxB,IAAI;AAAA,EACJ,GAAG;AACP;;;ApBnBO,IAAM,mBAAgC;AAAA,EAC3C;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,oCAAoC;AAAA,IACzD,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,2BAA2B;AAAA,IAChD,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,2BAA2B;AAAA,IAChD,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,qBAAqB;AAAA,IAC1C,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,kCAAkC;AAAA,IACvD,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AACF;AAEO,IAAM,+BAAN,cAA2C,uBAAuB;AAAA,EACvE,YAAY,eAAoC;AAC9C,UAAM,EAAC,OAAO,SAAQ,IAAI,oBAAoB,eAAe,gBAAgB;AAE7E,UAAM,IAAI,cAAc,GAAG,UAAU,KAAK;AAAA,EAC5C;AACF;","names":["globalAxios","globalAxios","BASE_PATH","globalAxios"]}
package/package.json CHANGED
@@ -2,24 +2,35 @@
2
2
  "name": "@sp-api-sdk/merchant-fulfillment-api-v0",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon's Buy Shipping Services.",
5
- "version": "3.1.11",
6
- "main": "dist/cjs/index.js",
7
- "module": "dist/es/index.js",
8
- "types": "dist/types/index.d.ts",
5
+ "version": "4.0.0",
9
6
  "license": "MIT",
7
+ "type": "module",
8
+ "sideEffects": false,
9
+ "source": "./src/index.ts",
10
+ "main": "./dist/index.cjs",
11
+ "module": "./dist/index.js",
12
+ "types": "./dist/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "import": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
18
+ },
19
+ "require": {
20
+ "types": "./dist/index.d.cts",
21
+ "default": "./dist/index.cjs"
22
+ }
23
+ }
24
+ },
10
25
  "publishConfig": {
11
26
  "access": "public"
12
27
  },
13
- "directories": {
14
- "lib": "dist"
15
- },
16
28
  "files": [
17
- "dist/**/*.js",
18
- "dist/**/*.d.ts"
29
+ "dist"
19
30
  ],
20
31
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.30",
22
- "axios": "^1.13.6"
32
+ "@sp-api-sdk/common": "3.0.0",
33
+ "axios": "^1.16.1"
23
34
  },
24
35
  "repository": {
25
36
  "type": "git",
@@ -40,5 +51,5 @@
40
51
  "sp sdk",
41
52
  "merchant fulfillment api"
42
53
  ],
43
- "gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
54
+ "gitHead": "fc6f28dc89089e9987831b8a1a008f1871e55289"
44
55
  }
@@ -1,355 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for Merchant Fulfillment
6
- * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\'s Buy Shipping Services.
7
- *
8
- * The version of the OpenAPI document: v0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.MerchantFulfillmentApi = exports.MerchantFulfillmentApiFactory = exports.MerchantFulfillmentApiFp = exports.MerchantFulfillmentApiAxiosParamCreator = void 0;
20
- const axios_1 = __importDefault(require("axios"));
21
- // Some imports not used depending on template conditions
22
- // @ts-ignore
23
- const common_1 = require("../common");
24
- // @ts-ignore
25
- const base_1 = require("../base");
26
- /**
27
- * MerchantFulfillmentApi - axios parameter creator
28
- */
29
- const MerchantFulfillmentApiAxiosParamCreator = function (configuration) {
30
- return {
31
- /**
32
- * Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
33
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
34
- * @param {*} [options] Override http request option.
35
- * @throws {RequiredError}
36
- */
37
- cancelShipment: async (shipmentId, options = {}) => {
38
- // verify required parameter 'shipmentId' is not null or undefined
39
- (0, common_1.assertParamExists)('cancelShipment', 'shipmentId', shipmentId);
40
- const localVarPath = `/mfn/v0/shipments/{shipmentId}`
41
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
42
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
44
- let baseOptions;
45
- if (configuration) {
46
- baseOptions = configuration.baseOptions;
47
- }
48
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
49
- const localVarHeaderParameter = {};
50
- const localVarQueryParameter = {};
51
- localVarHeaderParameter['Accept'] = 'application/json';
52
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
53
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
55
- return {
56
- url: (0, common_1.toPathString)(localVarUrlObj),
57
- options: localVarRequestOptions,
58
- };
59
- },
60
- /**
61
- * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
62
- * @param {CreateShipmentRequest} body The request schema for the &#x60;CreateShipment&#x60; operation.
63
- * @param {*} [options] Override http request option.
64
- * @throws {RequiredError}
65
- */
66
- createShipment: async (body, options = {}) => {
67
- // verify required parameter 'body' is not null or undefined
68
- (0, common_1.assertParamExists)('createShipment', 'body', body);
69
- const localVarPath = `/mfn/v0/shipments`;
70
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
71
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
72
- let baseOptions;
73
- if (configuration) {
74
- baseOptions = configuration.baseOptions;
75
- }
76
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
77
- const localVarHeaderParameter = {};
78
- const localVarQueryParameter = {};
79
- localVarHeaderParameter['Content-Type'] = 'application/json';
80
- localVarHeaderParameter['Accept'] = 'application/json';
81
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
82
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
83
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
84
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
85
- return {
86
- url: (0, common_1.toPathString)(localVarUrlObj),
87
- options: localVarRequestOptions,
88
- };
89
- },
90
- /**
91
- * Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
92
- * @param {GetAdditionalSellerInputsRequest} body The request schema for the &#x60;GetAdditionalSellerInputs&#x60; operation.
93
- * @param {*} [options] Override http request option.
94
- * @throws {RequiredError}
95
- */
96
- getAdditionalSellerInputs: async (body, options = {}) => {
97
- // verify required parameter 'body' is not null or undefined
98
- (0, common_1.assertParamExists)('getAdditionalSellerInputs', 'body', body);
99
- const localVarPath = `/mfn/v0/additionalSellerInputs`;
100
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
102
- let baseOptions;
103
- if (configuration) {
104
- baseOptions = configuration.baseOptions;
105
- }
106
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
107
- const localVarHeaderParameter = {};
108
- const localVarQueryParameter = {};
109
- localVarHeaderParameter['Content-Type'] = 'application/json';
110
- localVarHeaderParameter['Accept'] = 'application/json';
111
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
112
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
113
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
114
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
115
- return {
116
- url: (0, common_1.toPathString)(localVarUrlObj),
117
- options: localVarRequestOptions,
118
- };
119
- },
120
- /**
121
- * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 6 | 12 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
122
- * @param {GetEligibleShipmentServicesRequest} body The request schema for the &#x60;GetEligibleShipmentServices&#x60; operation.
123
- * @param {*} [options] Override http request option.
124
- * @throws {RequiredError}
125
- */
126
- getEligibleShipmentServices: async (body, options = {}) => {
127
- // verify required parameter 'body' is not null or undefined
128
- (0, common_1.assertParamExists)('getEligibleShipmentServices', 'body', body);
129
- const localVarPath = `/mfn/v0/eligibleShippingServices`;
130
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
131
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
132
- let baseOptions;
133
- if (configuration) {
134
- baseOptions = configuration.baseOptions;
135
- }
136
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
137
- const localVarHeaderParameter = {};
138
- const localVarQueryParameter = {};
139
- localVarHeaderParameter['Content-Type'] = 'application/json';
140
- localVarHeaderParameter['Accept'] = 'application/json';
141
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
142
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
144
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
145
- return {
146
- url: (0, common_1.toPathString)(localVarUrlObj),
147
- options: localVarRequestOptions,
148
- };
149
- },
150
- /**
151
- * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
152
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.
153
- * @param {*} [options] Override http request option.
154
- * @throws {RequiredError}
155
- */
156
- getShipment: async (shipmentId, options = {}) => {
157
- // verify required parameter 'shipmentId' is not null or undefined
158
- (0, common_1.assertParamExists)('getShipment', 'shipmentId', shipmentId);
159
- const localVarPath = `/mfn/v0/shipments/{shipmentId}`
160
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
161
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
162
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
163
- let baseOptions;
164
- if (configuration) {
165
- baseOptions = configuration.baseOptions;
166
- }
167
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
168
- const localVarHeaderParameter = {};
169
- const localVarQueryParameter = {};
170
- localVarHeaderParameter['Accept'] = 'application/json';
171
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
172
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
173
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
174
- return {
175
- url: (0, common_1.toPathString)(localVarUrlObj),
176
- options: localVarRequestOptions,
177
- };
178
- },
179
- };
180
- };
181
- exports.MerchantFulfillmentApiAxiosParamCreator = MerchantFulfillmentApiAxiosParamCreator;
182
- /**
183
- * MerchantFulfillmentApi - functional programming interface
184
- */
185
- const MerchantFulfillmentApiFp = function (configuration) {
186
- const localVarAxiosParamCreator = (0, exports.MerchantFulfillmentApiAxiosParamCreator)(configuration);
187
- return {
188
- /**
189
- * Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
190
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
191
- * @param {*} [options] Override http request option.
192
- * @throws {RequiredError}
193
- */
194
- async cancelShipment(shipmentId, options) {
195
- const localVarAxiosArgs = await localVarAxiosParamCreator.cancelShipment(shipmentId, options);
196
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
197
- const localVarOperationServerBasePath = base_1.operationServerMap['MerchantFulfillmentApi.cancelShipment']?.[localVarOperationServerIndex]?.url;
198
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
199
- },
200
- /**
201
- * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
202
- * @param {CreateShipmentRequest} body The request schema for the &#x60;CreateShipment&#x60; operation.
203
- * @param {*} [options] Override http request option.
204
- * @throws {RequiredError}
205
- */
206
- async createShipment(body, options) {
207
- const localVarAxiosArgs = await localVarAxiosParamCreator.createShipment(body, options);
208
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
209
- const localVarOperationServerBasePath = base_1.operationServerMap['MerchantFulfillmentApi.createShipment']?.[localVarOperationServerIndex]?.url;
210
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
211
- },
212
- /**
213
- * Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
214
- * @param {GetAdditionalSellerInputsRequest} body The request schema for the &#x60;GetAdditionalSellerInputs&#x60; operation.
215
- * @param {*} [options] Override http request option.
216
- * @throws {RequiredError}
217
- */
218
- async getAdditionalSellerInputs(body, options) {
219
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAdditionalSellerInputs(body, options);
220
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
221
- const localVarOperationServerBasePath = base_1.operationServerMap['MerchantFulfillmentApi.getAdditionalSellerInputs']?.[localVarOperationServerIndex]?.url;
222
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
223
- },
224
- /**
225
- * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 6 | 12 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
226
- * @param {GetEligibleShipmentServicesRequest} body The request schema for the &#x60;GetEligibleShipmentServices&#x60; operation.
227
- * @param {*} [options] Override http request option.
228
- * @throws {RequiredError}
229
- */
230
- async getEligibleShipmentServices(body, options) {
231
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEligibleShipmentServices(body, options);
232
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
233
- const localVarOperationServerBasePath = base_1.operationServerMap['MerchantFulfillmentApi.getEligibleShipmentServices']?.[localVarOperationServerIndex]?.url;
234
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
235
- },
236
- /**
237
- * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
238
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.
239
- * @param {*} [options] Override http request option.
240
- * @throws {RequiredError}
241
- */
242
- async getShipment(shipmentId, options) {
243
- const localVarAxiosArgs = await localVarAxiosParamCreator.getShipment(shipmentId, options);
244
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
245
- const localVarOperationServerBasePath = base_1.operationServerMap['MerchantFulfillmentApi.getShipment']?.[localVarOperationServerIndex]?.url;
246
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
247
- },
248
- };
249
- };
250
- exports.MerchantFulfillmentApiFp = MerchantFulfillmentApiFp;
251
- /**
252
- * MerchantFulfillmentApi - factory interface
253
- */
254
- const MerchantFulfillmentApiFactory = function (configuration, basePath, axios) {
255
- const localVarFp = (0, exports.MerchantFulfillmentApiFp)(configuration);
256
- return {
257
- /**
258
- * Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
259
- * @param {MerchantFulfillmentApiCancelShipmentRequest} requestParameters Request parameters.
260
- * @param {*} [options] Override http request option.
261
- * @throws {RequiredError}
262
- */
263
- cancelShipment(requestParameters, options) {
264
- return localVarFp.cancelShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
265
- },
266
- /**
267
- * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
268
- * @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
269
- * @param {*} [options] Override http request option.
270
- * @throws {RequiredError}
271
- */
272
- createShipment(requestParameters, options) {
273
- return localVarFp.createShipment(requestParameters.body, options).then((request) => request(axios, basePath));
274
- },
275
- /**
276
- * Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
277
- * @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.
278
- * @param {*} [options] Override http request option.
279
- * @throws {RequiredError}
280
- */
281
- getAdditionalSellerInputs(requestParameters, options) {
282
- return localVarFp.getAdditionalSellerInputs(requestParameters.body, options).then((request) => request(axios, basePath));
283
- },
284
- /**
285
- * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 6 | 12 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
286
- * @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
287
- * @param {*} [options] Override http request option.
288
- * @throws {RequiredError}
289
- */
290
- getEligibleShipmentServices(requestParameters, options) {
291
- return localVarFp.getEligibleShipmentServices(requestParameters.body, options).then((request) => request(axios, basePath));
292
- },
293
- /**
294
- * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
295
- * @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
296
- * @param {*} [options] Override http request option.
297
- * @throws {RequiredError}
298
- */
299
- getShipment(requestParameters, options) {
300
- return localVarFp.getShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
301
- },
302
- };
303
- };
304
- exports.MerchantFulfillmentApiFactory = MerchantFulfillmentApiFactory;
305
- /**
306
- * MerchantFulfillmentApi - object-oriented interface
307
- */
308
- class MerchantFulfillmentApi extends base_1.BaseAPI {
309
- /**
310
- * Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
311
- * @param {MerchantFulfillmentApiCancelShipmentRequest} requestParameters Request parameters.
312
- * @param {*} [options] Override http request option.
313
- * @throws {RequiredError}
314
- */
315
- cancelShipment(requestParameters, options) {
316
- return (0, exports.MerchantFulfillmentApiFp)(this.configuration).cancelShipment(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
317
- }
318
- /**
319
- * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
320
- * @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
321
- * @param {*} [options] Override http request option.
322
- * @throws {RequiredError}
323
- */
324
- createShipment(requestParameters, options) {
325
- return (0, exports.MerchantFulfillmentApiFp)(this.configuration).createShipment(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
326
- }
327
- /**
328
- * Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
329
- * @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.
330
- * @param {*} [options] Override http request option.
331
- * @throws {RequiredError}
332
- */
333
- getAdditionalSellerInputs(requestParameters, options) {
334
- return (0, exports.MerchantFulfillmentApiFp)(this.configuration).getAdditionalSellerInputs(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
335
- }
336
- /**
337
- * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 6 | 12 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
338
- * @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
339
- * @param {*} [options] Override http request option.
340
- * @throws {RequiredError}
341
- */
342
- getEligibleShipmentServices(requestParameters, options) {
343
- return (0, exports.MerchantFulfillmentApiFp)(this.configuration).getEligibleShipmentServices(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
344
- }
345
- /**
346
- * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the SP-API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
347
- * @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
348
- * @param {*} [options] Override http request option.
349
- * @throws {RequiredError}
350
- */
351
- getShipment(requestParameters, options) {
352
- return (0, exports.MerchantFulfillmentApiFp)(this.configuration).getShipment(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
353
- }
354
- }
355
- exports.MerchantFulfillmentApi = MerchantFulfillmentApi;