Socket
Socket
Sign inDemoInstall

@sp-api-sdk/vendor-direct-fulfillment-payments-api-v1

Package Overview
Dependencies
Maintainers
2
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sp-api-sdk/vendor-direct-fulfillment-payments-api-v1 - npm Package Compare versions

Comparing version 1.6.20 to 1.6.21

2

dist/types/src/api-model/api/vendor-invoice-api.d.ts

@@ -83,3 +83,3 @@ /**

*/
submitInvoice(requestParameters: VendorInvoiceApiSubmitInvoiceRequest, options?: any): Promise<import("axios").AxiosResponse<SubmitInvoiceResponse>>;
submitInvoice(requestParameters: VendorInvoiceApiSubmitInvoiceRequest, options?: any): Promise<import("axios").AxiosResponse<SubmitInvoiceResponse, any>>;
}

@@ -65,2 +65,2 @@ /**

*/
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any, any>>;

@@ -1,3 +0,2 @@

import { onRetry } from '@sp-api-sdk/common';
import type { ClientConfiguration, RateLimit } from '@sp-api-sdk/common';
import type { ClientConfiguration, RateLimit, OnRetryHandler } from '@sp-api-sdk/common';
import { VendorInvoiceApi } from './api-model';

@@ -8,3 +7,3 @@ export declare const RATE_LIMITS: RateLimit[];

retry: boolean;
onRetry?: onRetry;
onRetry?: OnRetryHandler;
};

@@ -11,0 +10,0 @@ }

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

"description": "The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor's invoice data.",
"version": "1.6.20",
"version": "1.6.21",
"main": "dist/cjs/index.js",

@@ -29,5 +29,5 @@ "module": "dist/es/index.js",

"dependencies": {
"@sp-api-sdk/auth": "^1.9.4",
"@sp-api-sdk/common": "^1.7.6",
"axios": "^0.21.1"
"@sp-api-sdk/auth": "^1.9.5",
"@sp-api-sdk/common": "^1.7.7",
"axios": "^0.24.0"
},

@@ -53,3 +53,3 @@ "repository": {

],
"gitHead": "5dbdf09e0f74182eaa9b6c5f9ef0c931b0aa3089"
"gitHead": "e8c21d7d481263e8a6663ee11f6708d4dc6968b6"
}

@@ -5,2 +5,8 @@ # `vendor-direct-fulfillment-payments-api-v1`

## Documentation
Learn more about this Selling Partner API by visiting the [official documentation](https://github.com/amzn/selling-partner-api-docs/tree/main/references/vendor-direct-fulfillment-payments-api/vendorDirectFulfillmentPaymentsV1.md).
Also, see the [generated documentation](https://bizon.github.io/selling-partner-api-sdk/modules/_sp_api_sdk_vendor_direct_fulfillment_payments_api_v1.html) for this API client.
## Installing

@@ -23,11 +29,10 @@

const auth = new SellingPartnerApiAuth({
clientId: '',
clientSecret: '',
refreshToken: '',
clientId: process.env.LWA_CLIENT_ID,
clientSecret: process.env.LWA_CLIENT_SECRET,
refreshToken: 'Atzr|…',
accessKeyId: '',
secretAccessKey: '',
accessKeyId: '',
region: '',
role: {
arn: '',
}
arn: 'arn:aws:iam::…',
},
})

@@ -37,9 +42,9 @@

auth,
region: 'eu' // or 'eu-west-1'
region: 'eu',
})
```
## Handle Rate Limiting
## Rate Limiting
If you want to let the SDK retry after each 429 responses, instanciate the client like this:
In order to retry rate limited requests (HTTP 429), you can configure the API client as such:

@@ -52,11 +57,26 @@ ```javascript

retry: true,
onRetry: (retryInfo) => console.log(retryInfo) // Optional
}
// Optionally specify a callback that will be called on every retry.
onRetry: (retryInfo) => {
console.log(retryInfo)
},
},
})
```
The SDK gets the rate limits for each routes from the API documentation
The rate limits used for each route are specified in the [API documentation]((https://github.com/amzn/selling-partner-api-docs/tree/main/references/vendor-direct-fulfillment-payments-api/vendorDirectFulfillmentPaymentsV1.md)).
## API documentation
## License
See [here](https://github.com/amzn/selling-partner-api-docs/tree/main/references/vendor-direct-fulfillment-payments-api/vendorDirectFulfillmentPaymentsV1.md)
MIT
## Miscellaneous
```
╚⊙ ⊙╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
```
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