Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sp-api-sdk/merchant-fulfillment-api-v0

Package Overview
Dependencies
Maintainers
2
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sp-api-sdk/merchant-fulfillment-api-v0 - npm Package Compare versions

Comparing version 1.11.9 to 1.11.10

48

dist/cjs/src/api-model/api/merchant-fulfillment-api.js

@@ -361,71 +361,71 @@ "use strict";

* Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
* @param {MerchantFulfillmentApiCancelShipmentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
cancelShipment(shipmentId, options) {
return localVarFp.cancelShipment(shipmentId, options).then((request) => request(axios, basePath));
cancelShipment(requestParameters, options) {
return localVarFp.cancelShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
},
/**
* Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
* @param {MerchantFulfillmentApiCancelShipmentOldRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
cancelShipmentOld(shipmentId, options) {
return localVarFp.cancelShipmentOld(shipmentId, options).then((request) => request(axios, basePath));
cancelShipmentOld(requestParameters, options) {
return localVarFp.cancelShipmentOld(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
},
/**
* Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {CreateShipmentRequest} body
* @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createShipment(body, options) {
return localVarFp.createShipment(body, options).then((request) => request(axios, basePath));
createShipment(requestParameters, options) {
return localVarFp.createShipment(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* 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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {GetAdditionalSellerInputsRequest} body
* @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getAdditionalSellerInputs(body, options) {
return localVarFp.getAdditionalSellerInputs(body, options).then((request) => request(axios, basePath));
getAdditionalSellerInputs(requestParameters, options) {
return localVarFp.getAdditionalSellerInputs(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* Get 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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {GetAdditionalSellerInputsRequest} body
* @param {MerchantFulfillmentApiGetAdditionalSellerInputsOldRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getAdditionalSellerInputsOld(body, options) {
return localVarFp.getAdditionalSellerInputsOld(body, options).then((request) => request(axios, basePath));
getAdditionalSellerInputsOld(requestParameters, options) {
return localVarFp.getAdditionalSellerInputsOld(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {GetEligibleShipmentServicesRequest} body
* @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getEligibleShipmentServices(body, options) {
return localVarFp.getEligibleShipmentServices(body, options).then((request) => request(axios, basePath));
getEligibleShipmentServices(requestParameters, options) {
return localVarFp.getEligibleShipmentServices(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {GetEligibleShipmentServicesRequest} body
* @param {MerchantFulfillmentApiGetEligibleShipmentServicesOldRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getEligibleShipmentServicesOld(body, options) {
return localVarFp.getEligibleShipmentServicesOld(body, options).then((request) => request(axios, basePath));
getEligibleShipmentServicesOld(requestParameters, options) {
return localVarFp.getEligibleShipmentServicesOld(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.
* @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getShipment(shipmentId, options) {
return localVarFp.getShipment(shipmentId, options).then((request) => request(axios, basePath));
getShipment(requestParameters, options) {
return localVarFp.getShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
},

@@ -432,0 +432,0 @@ };

@@ -18,4 +18,2 @@ "use strict";

const tslib_1 = require("tslib");
// Some imports not used depending on template conditions
// @ts-ignore
const axios_1 = tslib_1.__importDefault(require("axios"));

@@ -61,8 +59,8 @@ exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");

field;
name = "RequiredError";
constructor(field, msg) {
super(msg);
this.field = field;
this.name = "RequiredError";
}
}
exports.RequiredError = RequiredError;

@@ -84,2 +84,4 @@ "use strict";

function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
if (parameter == null)
return;
if (typeof parameter === "object") {

@@ -86,0 +88,0 @@ if (Array.isArray(parameter)) {

@@ -355,71 +355,71 @@ /* tslint:disable */

* Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
* @param {MerchantFulfillmentApiCancelShipmentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
cancelShipment(shipmentId, options) {
return localVarFp.cancelShipment(shipmentId, options).then((request) => request(axios, basePath));
cancelShipment(requestParameters, options) {
return localVarFp.cancelShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
},
/**
* Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
* @param {MerchantFulfillmentApiCancelShipmentOldRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
cancelShipmentOld(shipmentId, options) {
return localVarFp.cancelShipmentOld(shipmentId, options).then((request) => request(axios, basePath));
cancelShipmentOld(requestParameters, options) {
return localVarFp.cancelShipmentOld(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
},
/**
* Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {CreateShipmentRequest} body
* @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createShipment(body, options) {
return localVarFp.createShipment(body, options).then((request) => request(axios, basePath));
createShipment(requestParameters, options) {
return localVarFp.createShipment(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* 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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {GetAdditionalSellerInputsRequest} body
* @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getAdditionalSellerInputs(body, options) {
return localVarFp.getAdditionalSellerInputs(body, options).then((request) => request(axios, basePath));
getAdditionalSellerInputs(requestParameters, options) {
return localVarFp.getAdditionalSellerInputs(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* Get 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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {GetAdditionalSellerInputsRequest} body
* @param {MerchantFulfillmentApiGetAdditionalSellerInputsOldRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getAdditionalSellerInputsOld(body, options) {
return localVarFp.getAdditionalSellerInputsOld(body, options).then((request) => request(axios, basePath));
getAdditionalSellerInputsOld(requestParameters, options) {
return localVarFp.getAdditionalSellerInputsOld(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {GetEligibleShipmentServicesRequest} body
* @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getEligibleShipmentServices(body, options) {
return localVarFp.getEligibleShipmentServices(body, options).then((request) => request(axios, basePath));
getEligibleShipmentServices(requestParameters, options) {
return localVarFp.getEligibleShipmentServices(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {GetEligibleShipmentServicesRequest} body
* @param {MerchantFulfillmentApiGetEligibleShipmentServicesOldRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getEligibleShipmentServicesOld(body, options) {
return localVarFp.getEligibleShipmentServicesOld(body, options).then((request) => request(axios, basePath));
getEligibleShipmentServicesOld(requestParameters, options) {
return localVarFp.getEligibleShipmentServicesOld(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.
* @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getShipment(shipmentId, options) {
return localVarFp.getShipment(shipmentId, options).then((request) => request(axios, basePath));
getShipment(requestParameters, options) {
return localVarFp.getShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
},

@@ -426,0 +426,0 @@ };

@@ -14,4 +14,2 @@ /* tslint:disable */

*/
// Some imports not used depending on template conditions
// @ts-ignore
import globalAxios from 'axios';

@@ -56,7 +54,7 @@ export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");

field;
name = "RequiredError";
constructor(field, msg) {
super(msg);
this.field = field;
this.name = "RequiredError";
}
}

@@ -76,2 +76,4 @@ /* tslint:disable */

function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
if (parameter == null)
return;
if (typeof parameter === "object") {

@@ -78,0 +80,0 @@ if (Array.isArray(parameter)) {

@@ -12,4 +12,4 @@ /**

*/
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import { Configuration } from '../configuration';
import type { Configuration } from '../configuration';
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import { RequestArgs, BaseAPI } from '../base';

@@ -155,56 +155,56 @@ import { CancelShipmentResponse } from '../models';

* Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
* @param {MerchantFulfillmentApiCancelShipmentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
cancelShipment(shipmentId: string, options?: any): AxiosPromise<CancelShipmentResponse>;
cancelShipment(requestParameters: MerchantFulfillmentApiCancelShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<CancelShipmentResponse>;
/**
* Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
* @param {MerchantFulfillmentApiCancelShipmentOldRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
cancelShipmentOld(shipmentId: string, options?: any): AxiosPromise<CancelShipmentResponse>;
cancelShipmentOld(requestParameters: MerchantFulfillmentApiCancelShipmentOldRequest, options?: AxiosRequestConfig): AxiosPromise<CancelShipmentResponse>;
/**
* Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {CreateShipmentRequest} body
* @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createShipment(body: CreateShipmentRequest, options?: any): AxiosPromise<CreateShipmentResponse>;
createShipment(requestParameters: MerchantFulfillmentApiCreateShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<CreateShipmentResponse>;
/**
* 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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {GetAdditionalSellerInputsRequest} body
* @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getAdditionalSellerInputs(body: GetAdditionalSellerInputsRequest, options?: any): AxiosPromise<GetAdditionalSellerInputsResponse>;
getAdditionalSellerInputs(requestParameters: MerchantFulfillmentApiGetAdditionalSellerInputsRequest, options?: AxiosRequestConfig): AxiosPromise<GetAdditionalSellerInputsResponse>;
/**
* Get 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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {GetAdditionalSellerInputsRequest} body
* @param {MerchantFulfillmentApiGetAdditionalSellerInputsOldRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getAdditionalSellerInputsOld(body: GetAdditionalSellerInputsRequest, options?: any): AxiosPromise<GetAdditionalSellerInputsResponse>;
getAdditionalSellerInputsOld(requestParameters: MerchantFulfillmentApiGetAdditionalSellerInputsOldRequest, options?: AxiosRequestConfig): AxiosPromise<GetAdditionalSellerInputsResponse>;
/**
* Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {GetEligibleShipmentServicesRequest} body
* @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getEligibleShipmentServices(body: GetEligibleShipmentServicesRequest, options?: any): AxiosPromise<GetEligibleShipmentServicesResponse>;
getEligibleShipmentServices(requestParameters: MerchantFulfillmentApiGetEligibleShipmentServicesRequest, options?: AxiosRequestConfig): AxiosPromise<GetEligibleShipmentServicesResponse>;
/**
* Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {GetEligibleShipmentServicesRequest} body
* @param {MerchantFulfillmentApiGetEligibleShipmentServicesOldRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getEligibleShipmentServicesOld(body: GetEligibleShipmentServicesRequest, options?: any): AxiosPromise<GetEligibleShipmentServicesResponse>;
getEligibleShipmentServicesOld(requestParameters: MerchantFulfillmentApiGetEligibleShipmentServicesOldRequest, options?: AxiosRequestConfig): AxiosPromise<GetEligibleShipmentServicesResponse>;
/**
* Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
* @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.
* @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getShipment(shipmentId: string, options?: any): AxiosPromise<GetShipmentResponse>;
getShipment(requestParameters: MerchantFulfillmentApiGetShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<GetShipmentResponse>;
};

@@ -211,0 +211,0 @@ /**

@@ -12,4 +12,4 @@ /**

*/
import { Configuration } from "./configuration";
import { AxiosInstance, AxiosRequestConfig } from 'axios';
import type { Configuration } from './configuration';
import type { AxiosInstance, AxiosRequestConfig } from 'axios';
export declare const BASE_PATH: string;

@@ -54,4 +54,3 @@ /**

field: string;
name: "RequiredError";
constructor(field: string, msg?: string);
}

@@ -13,5 +13,5 @@ /**

/// <reference types="node" />
import { Configuration } from "./configuration";
import { RequestArgs } from "./base";
import { AxiosInstance, AxiosResponse } from 'axios';
import type { Configuration } from "./configuration";
import type { RequestArgs } from "./base";
import type { AxiosInstance, AxiosResponse } from 'axios';
/**

@@ -18,0 +18,0 @@ *

@@ -5,3 +5,3 @@ {

"description": "The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.",
"version": "1.11.9",
"version": "1.11.10",
"main": "dist/cjs/index.js",

@@ -30,3 +30,3 @@ "module": "dist/es/index.js",

"dependencies": {
"@sp-api-sdk/common": "^1.9.21",
"@sp-api-sdk/common": "^1.9.22",
"axios": "^0.27.2"

@@ -56,3 +56,3 @@ },

},
"gitHead": "4aae180b5a1395b37b673b93c285065ddba25470"
"gitHead": "19982f06cbbd770bfc7b9f1bc8a42f59b57baead"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc