@sp-api-sdk/merchant-fulfillment-api-v0 3.0.9 → 3.1.1

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.
@@ -56,6 +56,9 @@ __exportStar(require("./liquid-volume"), exports);
56
56
  __exportStar(require("./model-error"), exports);
57
57
  __exportStar(require("./package-dimensions"), exports);
58
58
  __exportStar(require("./predefined-package-dimensions"), exports);
59
+ __exportStar(require("./rate-item"), exports);
60
+ __exportStar(require("./rate-item-id"), exports);
61
+ __exportStar(require("./rate-item-type"), exports);
59
62
  __exportStar(require("./rejected-shipping-service"), exports);
60
63
  __exportStar(require("./seller-input-definition"), exports);
61
64
  __exportStar(require("./shipment"), exports);
@@ -0,0 +1,22 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.RateItemID = void 0;
17
+ /**
18
+ * Unique identifier for the RateItem.
19
+ */
20
+ exports.RateItemID = {
21
+ FbmShipPlusCredit: 'FBM_SHIP_PLUS_CREDIT'
22
+ };
@@ -0,0 +1,22 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.RateItemType = void 0;
17
+ /**
18
+ * Type for the RateItem.
19
+ */
20
+ exports.RateItemType = {
21
+ Included: 'INCLUDED'
22
+ };
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -40,6 +40,9 @@ export * from './liquid-volume';
40
40
  export * from './model-error';
41
41
  export * from './package-dimensions';
42
42
  export * from './predefined-package-dimensions';
43
+ export * from './rate-item';
44
+ export * from './rate-item-id';
45
+ export * from './rate-item-type';
43
46
  export * from './rejected-shipping-service';
44
47
  export * from './seller-input-definition';
45
48
  export * from './shipment';
@@ -0,0 +1,19 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Merchant Fulfillment
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Unique identifier for the RateItem.
16
+ */
17
+ export const RateItemID = {
18
+ FbmShipPlusCredit: 'FBM_SHIP_PLUS_CREDIT'
19
+ };
@@ -0,0 +1,19 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Merchant Fulfillment
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Type for the RateItem.
16
+ */
17
+ export const RateItemType = {
18
+ Included: 'INCLUDED'
19
+ };
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Merchant Fulfillment
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -196,33 +196,33 @@ export declare class MerchantFulfillmentApi extends BaseAPI {
196
196
  * @param {*} [options] Override http request option.
197
197
  * @throws {RequiredError}
198
198
  */
199
- cancelShipment(requestParameters: MerchantFulfillmentApiCancelShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CancelShipmentResponse, any>>;
199
+ cancelShipment(requestParameters: MerchantFulfillmentApiCancelShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CancelShipmentResponse, any, {}>>;
200
200
  /**
201
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
202
  * @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
203
203
  * @param {*} [options] Override http request option.
204
204
  * @throws {RequiredError}
205
205
  */
206
- createShipment(requestParameters: MerchantFulfillmentApiCreateShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateShipmentResponse, any>>;
206
+ createShipment(requestParameters: MerchantFulfillmentApiCreateShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateShipmentResponse, any, {}>>;
207
207
  /**
208
208
  * 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).
209
209
  * @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.
210
210
  * @param {*} [options] Override http request option.
211
211
  * @throws {RequiredError}
212
212
  */
213
- getAdditionalSellerInputs(requestParameters: MerchantFulfillmentApiGetAdditionalSellerInputsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetAdditionalSellerInputsResponse, any>>;
213
+ getAdditionalSellerInputs(requestParameters: MerchantFulfillmentApiGetAdditionalSellerInputsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetAdditionalSellerInputsResponse, any, {}>>;
214
214
  /**
215
215
  * 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).
216
216
  * @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
217
217
  * @param {*} [options] Override http request option.
218
218
  * @throws {RequiredError}
219
219
  */
220
- getEligibleShipmentServices(requestParameters: MerchantFulfillmentApiGetEligibleShipmentServicesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetEligibleShipmentServicesResponse, any>>;
220
+ getEligibleShipmentServices(requestParameters: MerchantFulfillmentApiGetEligibleShipmentServicesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetEligibleShipmentServicesResponse, any, {}>>;
221
221
  /**
222
222
  * 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).
223
223
  * @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
224
224
  * @param {*} [options] Override http request option.
225
225
  * @throws {RequiredError}
226
226
  */
227
- getShipment(requestParameters: MerchantFulfillmentApiGetShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentResponse, any>>;
227
+ getShipment(requestParameters: MerchantFulfillmentApiGetShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentResponse, any, {}>>;
228
228
  }
@@ -40,6 +40,9 @@ export * from './liquid-volume';
40
40
  export * from './model-error';
41
41
  export * from './package-dimensions';
42
42
  export * from './predefined-package-dimensions';
43
+ export * from './rate-item';
44
+ export * from './rate-item-id';
45
+ export * from './rate-item-type';
43
46
  export * from './rejected-shipping-service';
44
47
  export * from './seller-input-definition';
45
48
  export * from './shipment';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Selling Partner API for Merchant Fulfillment
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Unique identifier for the RateItem.
14
+ */
15
+ export declare const RateItemID: {
16
+ readonly FbmShipPlusCredit: "FBM_SHIP_PLUS_CREDIT";
17
+ };
18
+ export type RateItemID = typeof RateItemID[keyof typeof RateItemID];
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Selling Partner API for Merchant Fulfillment
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Type for the RateItem.
14
+ */
15
+ export declare const RateItemType: {
16
+ readonly Included: "INCLUDED";
17
+ };
18
+ export type RateItemType = typeof RateItemType[keyof typeof RateItemType];
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Selling Partner API for Merchant Fulfillment
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CurrencyAmount } from './currency-amount';
13
+ import type { RateItemID } from './rate-item-id';
14
+ import type { RateItemType } from './rate-item-type';
15
+ /**
16
+ * Rate item for shipping costs and adjustments.
17
+ */
18
+ export interface RateItem {
19
+ 'RateItemID': RateItemID;
20
+ 'RateItemType'?: RateItemType;
21
+ 'RateItemCharge'?: CurrencyAmount;
22
+ /**
23
+ * Localized name for the RateItem.
24
+ */
25
+ 'RateItemNameLocalization'?: string;
26
+ }
@@ -14,6 +14,7 @@ import type { Benefits } from './benefits';
14
14
  import type { CurrencyAmount } from './currency-amount';
15
15
  import type { LabelFormat } from './label-format';
16
16
  import type { LabelFormatOption } from './label-format-option';
17
+ import type { RateItem } from './rate-item';
17
18
  import type { ShippingServiceOptions } from './shipping-service-options';
18
19
  /**
19
20
  * A shipping service offer made by a carrier.
@@ -48,6 +49,11 @@ export interface ShippingService {
48
49
  */
49
50
  'LatestEstimatedDeliveryDate'?: string;
50
51
  'Rate': CurrencyAmount;
52
+ 'RateWithAdjustments': CurrencyAmount;
53
+ /**
54
+ * List of adjustments.
55
+ */
56
+ 'AdjustmentItemList'?: Array<RateItem>;
51
57
  'ShippingServiceOptions': ShippingServiceOptions;
52
58
  'AvailableShippingServiceOptions'?: AvailableShippingServiceOptions;
53
59
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
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.0.9",
5
+ "version": "3.1.1",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.18",
22
- "axios": "^1.11.0"
21
+ "@sp-api-sdk/common": "2.1.20",
22
+ "axios": "^1.12.2"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,26 +40,5 @@
40
40
  "sp sdk",
41
41
  "merchant fulfillment api"
42
42
  ],
43
- "xo": {
44
- "extends": [
45
- "xo-bizon"
46
- ],
47
- "settings": {
48
- "import/internal-regex": "^@sp-api-sdk/"
49
- },
50
- "semicolon": false,
51
- "space": 2,
52
- "prettier": true,
53
- "ignores": [
54
- "src/api-model/**"
55
- ],
56
- "rules": {
57
- "unicorn/prevent-abbreviations": "off"
58
- }
59
- },
60
- "prettier": {
61
- "printWidth": 100,
62
- "jsxSingleQuote": true
63
- },
64
- "gitHead": "4c9d1270205ee00090d635b31eeabb323860546d"
43
+ "gitHead": "03484c02930fb24976769bd4688b4750908169b6"
65
44
  }