@sp-api-sdk/vendor-invoices-api-v1
Advanced tools
Comparing version 1.9.9 to 1.9.10
@@ -91,8 +91,8 @@ "use strict"; | ||
* Submit new invoices to Amazon. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. | ||
* @param {SubmitInvoicesRequest} body | ||
* @param {VendorPaymentsApiSubmitInvoicesRequest} requestParameters Request parameters. | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
submitInvoices(body, options) { | ||
return localVarFp.submitInvoices(body, options).then((request) => request(axios, basePath)); | ||
submitInvoices(requestParameters, options) { | ||
return localVarFp.submitInvoices(requestParameters.body, options).then((request) => request(axios, basePath)); | ||
}, | ||
@@ -99,0 +99,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)) { |
@@ -85,8 +85,8 @@ /* tslint:disable */ | ||
* Submit new invoices to Amazon. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. | ||
* @param {SubmitInvoicesRequest} body | ||
* @param {VendorPaymentsApiSubmitInvoicesRequest} requestParameters Request parameters. | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
submitInvoices(body, options) { | ||
return localVarFp.submitInvoices(body, options).then((request) => request(axios, basePath)); | ||
submitInvoices(requestParameters, options) { | ||
return localVarFp.submitInvoices(requestParameters.body, options).then((request) => request(axios, basePath)); | ||
}, | ||
@@ -93,0 +93,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'; | ||
@@ -51,7 +51,7 @@ import { SubmitInvoicesRequest } from '../models'; | ||
* Submit new invoices to Amazon. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. | ||
* @param {SubmitInvoicesRequest} body | ||
* @param {VendorPaymentsApiSubmitInvoicesRequest} requestParameters Request parameters. | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
submitInvoices(body: SubmitInvoicesRequest, options?: any): AxiosPromise<SubmitInvoicesResponse>; | ||
submitInvoices(requestParameters: VendorPaymentsApiSubmitInvoicesRequest, options?: AxiosRequestConfig): AxiosPromise<SubmitInvoicesResponse>; | ||
}; | ||
@@ -58,0 +58,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 Retail Procurement Payments provides programmatic access to vendors payments data.", | ||
"version": "1.9.9", | ||
"version": "1.9.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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101471
2803
Updated@sp-api-sdk/common@^1.9.22