Skip to content

Commit 2b18477

Browse files
tusbargithub-actions[bot]
authored andcommitted
feat(clients): update models as of 2025-05-01
1 parent 886c0d5 commit 2b18477

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+3926
-14
lines changed

clients/finances-api-2024-06-19/src/api-model/models/deferred-context.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
export interface DeferredContext {
2323
/**
24-
* Deferral policy applied on the transaction. Example: \'B2B\',\'DD7\'
24+
* The deferral policy applied to the transaction. **Examples:** `B2B` (invoiced orders), `DD7` (delivery date policy)
2525
* @type {string}
2626
* @memberof DeferredContext
2727
*/
@@ -32,11 +32,5 @@ export interface DeferredContext {
3232
* @memberof DeferredContext
3333
*/
3434
'maturityDate'?: string;
35-
/**
36-
* Status of the transaction. Example: \'HOLD\',\'RELEASE\'
37-
* @type {string}
38-
* @memberof DeferredContext
39-
*/
40-
'deferralStatus'?: string;
4135
}
4236

clients/finances-api-2024-06-19/src/api-model/models/related-identifier.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export const RelatedIdentifierRelatedIdentifierNameEnum = {
4141
RefundId: 'REFUND_ID',
4242
InvoiceId: 'INVOICE_ID',
4343
DisbursementId: 'DISBURSEMENT_ID',
44-
TransferId: 'TRANSFER_ID'
44+
TransferId: 'TRANSFER_ID',
45+
DeferredTransactionId: 'DEFERRED_TRANSACTION_ID',
46+
ReleaseTransactionId: 'RELEASE_TRANSACTION_ID'
4547
} as const;
4648

4749
export type RelatedIdentifierRelatedIdentifierNameEnum = typeof RelatedIdentifierRelatedIdentifierNameEnum[keyof typeof RelatedIdentifierRelatedIdentifierNameEnum];

clients/finances-api-2024-06-19/src/api-model/models/transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export interface Transaction {
6666
*/
6767
'transactionId'?: string;
6868
/**
69-
* The status for the transaction. Possible values: * Deferred *Released
69+
* The status of the transaction. **Possible values:** * `DEFERRED`: the transaction is currently deferred. * `RELEASED`: the transaction is currently released. * `DEFERRED_RELEASED`: the transaction was deferred in the past, but is now released. Deferred transactions will have their status updated to `DEFERRED_RELEASED` when released.
7070
* @type {string}
7171
* @memberof Transaction
7272
*/
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# `seller-wallet-api-2024-03-01`
2+
3+
[![npm version](https://img.shields.io/npm/v/@sp-api-sdk/seller-wallet-api-2024-03-01)](https://www.npmjs.com/package/@sp-api-sdk/seller-wallet-api-2024-03-01)
4+
[![XO code style](https://img.shields.io/badge/code_style-xo-cyan)](https://github.com/xojs/xo)
5+
6+
This is a Amazon open banking api specification based on the Swagger 2.0 standard.
7+
It specifies all the api's that the third party will have to connect to in order to receive information from Amazon related to their customer's financial data.
8+
9+
_Please note the authentication & authorization api's are not part of this section and would be created & shared separately_
10+
11+
Some useful links:
12+
- [The SP-API repository](https://swagger-editor.dovydenk.people.a2z.com/)
13+
- [The source API definition for the Amazon Seller Wallet Open Banking API](https://swagger-editor.dovydenk.people.a2z.com/)
14+
15+
[<img src="https://files.bizon.solutions/images/logo/bizon-horizontal.png" alt="Bizon" width="250"/>](https://www.bizon.solutions?utm_source=github&utm_medium=readme&utm_campaign=selling-partner-api-sdk)
16+
17+
## Documentation
18+
19+
Learn more about this Selling Partner API by visiting the [official documentation](https://developer-docs.amazon.com/sp-api/docs).
20+
21+
Also, see the [generated documentation](https://bizon.github.io/selling-partner-api-sdk/modules/_sp-api-sdk_seller-wallet-api-2024-03-01.html) for this API client.
22+
23+
## Installing
24+
25+
```sh
26+
npm install @sp-api-sdk/seller-wallet-api-2024-03-01
27+
```
28+
29+
## Getting Started
30+
31+
```javascript
32+
import {SellingPartnerApiAuth} from '@sp-api-sdk/auth'
33+
import {SellerWalletApiClient} from '@sp-api-sdk/seller-wallet-api-2024-03-01'
34+
35+
const auth = new SellingPartnerApiAuth({
36+
clientId: process.env.LWA_CLIENT_ID,
37+
clientSecret: process.env.LWA_CLIENT_SECRET,
38+
refreshToken: 'Atzr|…',
39+
})
40+
41+
const client = new SellerWalletApiClient({
42+
auth,
43+
region: 'eu',
44+
})
45+
```
46+
47+
## Rate Limiting
48+
49+
In order to retry rate limited requests (HTTP 429), you can configure the API client as such:
50+
51+
```javascript
52+
const client = new SellerWalletApiClient({
53+
auth,
54+
region: 'eu',
55+
rateLimiting: {
56+
retry: true,
57+
// Optionally specify a callback that will be called on every retry.
58+
onRetry: (retryInfo) => {
59+
console.log(retryInfo)
60+
},
61+
},
62+
})
63+
```
64+
65+
The rate limits used for each route are specified in the [API documentation](https://developer-docs.amazon.com/sp-api/docs).
66+
67+
## Logging
68+
69+
You can enable logging for both SP-API requests and responses by configuring the `logging.request` and `logging.response` properties.
70+
71+
```javascript
72+
const client = new SellerWalletApiClient({
73+
auth,
74+
region: 'eu',
75+
logging: {
76+
request: {
77+
logger: console.debug
78+
},
79+
response: {
80+
logger: console.debug
81+
},
82+
error: true,
83+
},
84+
})
85+
```
86+
87+
Specifying `true` will use the default options, specifying an object will allow you to override the default options.
88+
This uses [axios-logger](https://github.com/hg-pyun/axios-logger) under the hood.
89+
By default, if enabled, the `request` and `response` loggers will use `console.info` and the `error` logger will use `console.error`.
90+
91+
92+
## License
93+
94+
MIT
95+
96+
## Miscellaneous
97+
98+
```
99+
╚⊙ ⊙╝
100+
╚═(███)═╝
101+
╚═(███)═╝
102+
╚═(███)═╝
103+
╚═(███)═╝
104+
╚═(███)═╝
105+
╚═(███)═╝
106+
```
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "@sp-api-sdk/seller-wallet-api-2024-03-01",
3+
"author": "Bertrand Marron <[email protected]>",
4+
"description": "This is a Amazon open banking api specification based on the Swagger 2.0 standard. It specifies all the api's that the third party will have to connect to in order to receive information from Amazon related to their customer's financial data. Please note the authentication & authorization api's are not part of this section and would be created & shared separately Some useful links: The SP-API repository The source API definition for the Amazon Seller Wallet Open Banking API",
5+
"version": "1.0.0",
6+
"main": "dist/cjs/index.js",
7+
"module": "dist/es/index.js",
8+
"types": "dist/types/index.d.ts",
9+
"license": "MIT",
10+
"publishConfig": {
11+
"access": "public"
12+
},
13+
"directories": {
14+
"lib": "dist"
15+
},
16+
"files": [
17+
"dist/**/*.js",
18+
"dist/**/*.d.ts"
19+
],
20+
"scripts": {
21+
"check:ts": "tsc --noEmit",
22+
"build:cjs": "tsc -p tsconfig.json",
23+
"build:es": "tsc -p tsconfig.es.json",
24+
"build": "pnpm build:cjs && pnpm build:es",
25+
"clean": "rimraf dist"
26+
},
27+
"dependencies": {
28+
"@sp-api-sdk/common": "workspace:*",
29+
"axios": "^1.9.0"
30+
},
31+
"devDependencies": {
32+
"@sp-api-sdk/auth": "workspace:*"
33+
},
34+
"repository": {
35+
"type": "git",
36+
"url": "https://github.com/bizon/selling-partner-api-sdk.git",
37+
"directory": "clients/seller-wallet-api-2024-03-01"
38+
},
39+
"bugs": {
40+
"url": "https://github.com/bizon/selling-partner-api-sdk/issues"
41+
},
42+
"homepage": "https://github.com/bizon/selling-partner-api-sdk/tree/master/clients/seller-wallet-api-2024-03-01",
43+
"keywords": [
44+
"amazon",
45+
"bizon",
46+
"marketplace web services",
47+
"mws",
48+
"selling partner api",
49+
"sp api",
50+
"sp sdk",
51+
"seller wallet api"
52+
]
53+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* The Selling Partner API for Amazon Seller Wallet Open Banking API
5+
* This is a Amazon open banking api specification based on the Swagger 2.0 standard. It specifies all the api\'s that the third party will have to connect to in order to receive information from Amazon related to their customer\'s financial data. _Please note the authentication & authorization api\'s are not part of this section and would be created & shared separately_ Some useful links: - [The SP-API repository](https://swagger-editor.dovydenk.people.a2z.com/) - [The source API definition for the Amazon Seller Wallet Open Banking API](https://swagger-editor.dovydenk.people.a2z.com/)
6+
*
7+
* The version of the OpenAPI document: 2024-03-01
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+
16+
17+
export * from './api/accounts-api';
18+
export * from './api/transactions-api';
19+
export * from './api/transfer-preview-api';
20+
export * from './api/transfer-schedule-api';
21+

0 commit comments

Comments
 (0)