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

@sp-api-sdk/product-fees-api-v0

Package Overview
Dependencies
Maintainers
2
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sp-api-sdk/product-fees-api-v0 - npm Package Compare versions

Comparing version 1.6.14 to 1.6.15

6

dist/cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./src/client"), exports);
tslib_1.__exportStar(require("./src/error"), exports);
tslib_1.__exportStar(require("./src/api-model/models"), exports);
(0, tslib_1.__exportStar)(require("./src/client"), exports);
(0, tslib_1.__exportStar)(require("./src/error"), exports);
(0, tslib_1.__exportStar)(require("./src/api-model/models"), exports);

@@ -17,2 +17,2 @@ "use strict";

const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./api/fees-api"), exports);
(0, tslib_1.__exportStar)(require("./api/fees-api"), exports);

@@ -18,3 +18,3 @@ "use strict";

const tslib_1 = require("tslib");
const axios_1 = tslib_1.__importDefault(require("axios"));
const axios_1 = (0, tslib_1.__importDefault)(require("axios"));
// Some imports not used depending on template conditions

@@ -40,5 +40,5 @@ // @ts-ignore

// verify required parameter 'asin' is not null or undefined
common_1.assertParamExists('getMyFeesEstimateForASIN', 'asin', asin);
(0, common_1.assertParamExists)('getMyFeesEstimateForASIN', 'asin', asin);
// verify required parameter 'body' is not null or undefined
common_1.assertParamExists('getMyFeesEstimateForASIN', 'body', body);
(0, common_1.assertParamExists)('getMyFeesEstimateForASIN', 'body', body);
const localVarPath = `/products/fees/v0/items/{Asin}/feesEstimate`

@@ -56,8 +56,8 @@ .replace(`{${"Asin"}}`, encodeURIComponent(String(asin)));

localVarHeaderParameter['Content-Type'] = 'application/json';
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
return {
url: common_1.toPathString(localVarUrlObj),
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,

@@ -75,5 +75,5 @@ };

// verify required parameter 'sellerSKU' is not null or undefined
common_1.assertParamExists('getMyFeesEstimateForSKU', 'sellerSKU', sellerSKU);
(0, common_1.assertParamExists)('getMyFeesEstimateForSKU', 'sellerSKU', sellerSKU);
// verify required parameter 'body' is not null or undefined
common_1.assertParamExists('getMyFeesEstimateForSKU', 'body', body);
(0, common_1.assertParamExists)('getMyFeesEstimateForSKU', 'body', body);
const localVarPath = `/products/fees/v0/listings/{SellerSKU}/feesEstimate`

@@ -91,8 +91,8 @@ .replace(`{${"SellerSKU"}}`, encodeURIComponent(String(sellerSKU)));

localVarHeaderParameter['Content-Type'] = 'application/json';
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
return {
url: common_1.toPathString(localVarUrlObj),
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,

@@ -109,3 +109,3 @@ };

const FeesApiFp = function (configuration) {
const localVarAxiosParamCreator = exports.FeesApiAxiosParamCreator(configuration);
const localVarAxiosParamCreator = (0, exports.FeesApiAxiosParamCreator)(configuration);
return {

@@ -121,3 +121,3 @@ /**

const localVarAxiosArgs = await localVarAxiosParamCreator.getMyFeesEstimateForASIN(asin, body, options);
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
},

@@ -133,3 +133,3 @@ /**

const localVarAxiosArgs = await localVarAxiosParamCreator.getMyFeesEstimateForSKU(sellerSKU, body, options);
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
},

@@ -144,3 +144,3 @@ };

const FeesApiFactory = function (configuration, basePath, axios) {
const localVarFp = exports.FeesApiFp(configuration);
const localVarFp = (0, exports.FeesApiFp)(configuration);
return {

@@ -185,3 +185,3 @@ /**

getMyFeesEstimateForASIN(requestParameters, options) {
return exports.FeesApiFp(this.configuration).getMyFeesEstimateForASIN(requestParameters.asin, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
return (0, exports.FeesApiFp)(this.configuration).getMyFeesEstimateForASIN(requestParameters.asin, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
}

@@ -196,5 +196,5 @@ /**

getMyFeesEstimateForSKU(requestParameters, options) {
return exports.FeesApiFp(this.configuration).getMyFeesEstimateForSKU(requestParameters.sellerSKU, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
return (0, exports.FeesApiFp)(this.configuration).getMyFeesEstimateForSKU(requestParameters.sellerSKU, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
}
}
exports.FeesApi = FeesApi;

@@ -20,3 +20,3 @@ "use strict";

// @ts-ignore
const axios_1 = tslib_1.__importDefault(require("axios"));
const axios_1 = (0, tslib_1.__importDefault)(require("axios"));
exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");

@@ -23,0 +23,0 @@ /**

@@ -17,4 +17,4 @@ "use strict";

const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./api"), exports);
tslib_1.__exportStar(require("./configuration"), exports);
tslib_1.__exportStar(require("./models"), exports);
(0, tslib_1.__exportStar)(require("./api"), exports);
(0, tslib_1.__exportStar)(require("./configuration"), exports);
(0, tslib_1.__exportStar)(require("./models"), exports);
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./fee-detail"), exports);
tslib_1.__exportStar(require("./fees-estimate"), exports);
tslib_1.__exportStar(require("./fees-estimate-error"), exports);
tslib_1.__exportStar(require("./fees-estimate-identifier"), exports);
tslib_1.__exportStar(require("./fees-estimate-request"), exports);
tslib_1.__exportStar(require("./fees-estimate-result"), exports);
tslib_1.__exportStar(require("./get-my-fees-estimate-request"), exports);
tslib_1.__exportStar(require("./get-my-fees-estimate-response"), exports);
tslib_1.__exportStar(require("./get-my-fees-estimate-result"), exports);
tslib_1.__exportStar(require("./included-fee-detail"), exports);
tslib_1.__exportStar(require("./model-error"), exports);
tslib_1.__exportStar(require("./money-type"), exports);
tslib_1.__exportStar(require("./optional-fulfillment-program"), exports);
tslib_1.__exportStar(require("./points"), exports);
tslib_1.__exportStar(require("./price-to-estimate-fees"), exports);
(0, tslib_1.__exportStar)(require("./fee-detail"), exports);
(0, tslib_1.__exportStar)(require("./fees-estimate"), exports);
(0, tslib_1.__exportStar)(require("./fees-estimate-error"), exports);
(0, tslib_1.__exportStar)(require("./fees-estimate-identifier"), exports);
(0, tslib_1.__exportStar)(require("./fees-estimate-request"), exports);
(0, tslib_1.__exportStar)(require("./fees-estimate-result"), exports);
(0, tslib_1.__exportStar)(require("./get-my-fees-estimate-request"), exports);
(0, tslib_1.__exportStar)(require("./get-my-fees-estimate-response"), exports);
(0, tslib_1.__exportStar)(require("./get-my-fees-estimate-result"), exports);
(0, tslib_1.__exportStar)(require("./included-fee-detail"), exports);
(0, tslib_1.__exportStar)(require("./model-error"), exports);
(0, tslib_1.__exportStar)(require("./money-type"), exports);
(0, tslib_1.__exportStar)(require("./optional-fulfillment-program"), exports);
(0, tslib_1.__exportStar)(require("./points"), exports);
(0, tslib_1.__exportStar)(require("./price-to-estimate-fees"), exports);

@@ -31,3 +31,3 @@ "use strict";

}
const axiosInstance = common_1.createAxiosInstance(axiosParameters);
const axiosInstance = (0, common_1.createAxiosInstance)(axiosParameters);
const configuration = new api_model_1.Configuration();

@@ -34,0 +34,0 @@ const environment = parameters.sandbox ? 'sandbox' : 'production';

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

"description": "The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.",
"version": "1.6.14",
"version": "1.6.15",
"main": "dist/cjs/index.js",

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

"files": [
"dist"
"dist/**/*.js",
"dist/**/*.d.ts"
],

@@ -30,4 +31,4 @@ "scripts": {

"dependencies": {
"@sp-api-sdk/auth": "^1.9.0",
"@sp-api-sdk/common": "^1.7.1",
"@sp-api-sdk/auth": "^1.9.1",
"@sp-api-sdk/common": "^1.7.2",
"axios": "^0.21.1"

@@ -54,3 +55,3 @@ },

],
"gitHead": "ccc62c529fc5f4525803ade1bbabdfc5aafc561f"
"gitHead": "dc4286920dc77e99d6ad71f71bcb78ae22b9ab06"
}
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