@sp-api-sdk/vendor-direct-fulfillment-payments-api-v1 1.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +58 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/src/api-model/api/vendor-invoice-api.js +119 -0
- package/dist/cjs/src/api-model/api.js +17 -0
- package/dist/cjs/src/api-model/base.js +62 -0
- package/dist/cjs/src/api-model/common.js +137 -0
- package/dist/cjs/src/api-model/configuration.js +42 -0
- package/dist/cjs/src/api-model/index.js +19 -0
- package/dist/cjs/src/api-model/models/additional-details.js +25 -0
- package/dist/cjs/src/api-model/models/address.js +15 -0
- package/dist/cjs/src/api-model/models/charge-details.js +30 -0
- package/dist/cjs/src/api-model/models/index.js +17 -0
- package/dist/cjs/src/api-model/models/invoice-detail.js +15 -0
- package/dist/cjs/src/api-model/models/invoice-item.js +15 -0
- package/dist/cjs/src/api-model/models/item-quantity.js +15 -0
- package/dist/cjs/src/api-model/models/model-error.js +15 -0
- package/dist/cjs/src/api-model/models/money.js +15 -0
- package/dist/cjs/src/api-model/models/party-identification.js +15 -0
- package/dist/cjs/src/api-model/models/submit-invoice-request.js +15 -0
- package/dist/cjs/src/api-model/models/submit-invoice-response.js +15 -0
- package/dist/cjs/src/api-model/models/tax-detail.js +37 -0
- package/dist/cjs/src/api-model/models/tax-registration-detail.js +25 -0
- package/dist/cjs/src/api-model/models/transaction-reference.js +15 -0
- package/dist/cjs/src/client.js +35 -0
- package/dist/cjs/src/error.js +10 -0
- package/dist/es/index.js +3 -0
- package/dist/es/src/api-model/api/vendor-invoice-api.js +111 -0
- package/dist/es/src/api-model/api.js +14 -0
- package/dist/es/src/api-model/base.js +56 -0
- package/dist/es/src/api-model/common.js +125 -0
- package/dist/es/src/api-model/configuration.js +38 -0
- package/dist/es/src/api-model/index.js +16 -0
- package/dist/es/src/api-model/models/additional-details.js +22 -0
- package/dist/es/src/api-model/models/address.js +14 -0
- package/dist/es/src/api-model/models/charge-details.js +27 -0
- package/dist/es/src/api-model/models/index.js +14 -0
- package/dist/es/src/api-model/models/invoice-detail.js +14 -0
- package/dist/es/src/api-model/models/invoice-item.js +14 -0
- package/dist/es/src/api-model/models/item-quantity.js +14 -0
- package/dist/es/src/api-model/models/model-error.js +14 -0
- package/dist/es/src/api-model/models/money.js +14 -0
- package/dist/es/src/api-model/models/party-identification.js +14 -0
- package/dist/es/src/api-model/models/submit-invoice-request.js +14 -0
- package/dist/es/src/api-model/models/submit-invoice-response.js +14 -0
- package/dist/es/src/api-model/models/tax-detail.js +34 -0
- package/dist/es/src/api-model/models/tax-registration-detail.js +22 -0
- package/dist/es/src/api-model/models/transaction-reference.js +14 -0
- package/dist/es/src/client.js +31 -0
- package/dist/es/src/error.js +6 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/src/api-model/api/vendor-invoice-api.d.ts +84 -0
- package/dist/types/src/api-model/api.d.ts +12 -0
- package/dist/types/src/api-model/base.d.ts +55 -0
- package/dist/types/src/api-model/common.d.ts +65 -0
- package/dist/types/src/api-model/configuration.d.ts +83 -0
- package/dist/types/src/api-model/index.d.ts +14 -0
- package/dist/types/src/api-model/models/additional-details.d.ts +44 -0
- package/dist/types/src/api-model/models/address.d.ts +84 -0
- package/dist/types/src/api-model/models/charge-details.d.ts +51 -0
- package/dist/types/src/api-model/models/index.d.ts +14 -0
- package/dist/types/src/api-model/models/invoice-detail.d.ts +102 -0
- package/dist/types/src/api-model/models/invoice-item.d.ts +82 -0
- package/dist/types/src/api-model/models/item-quantity.d.ts +30 -0
- package/dist/types/src/api-model/models/model-error.d.ts +36 -0
- package/dist/types/src/api-model/models/money.d.ts +30 -0
- package/dist/types/src/api-model/models/party-identification.d.ts +38 -0
- package/dist/types/src/api-model/models/submit-invoice-request.d.ts +25 -0
- package/dist/types/src/api-model/models/submit-invoice-response.d.ts +31 -0
- package/dist/types/src/api-model/models/tax-detail.d.ts +63 -0
- package/dist/types/src/api-model/models/tax-registration-detail.d.ts +51 -0
- package/dist/types/src/api-model/models/transaction-reference.d.ts +24 -0
- package/dist/types/src/client.d.ts +13 -0
- package/dist/types/src/error.d.ts +3 -0
- package/package.json +53 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Direct Fulfillment Payments
|
|
3
|
+
* The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* An amount of money, including units in the form of currency.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Money
|
|
16
|
+
*/
|
|
17
|
+
export interface Money {
|
|
18
|
+
/**
|
|
19
|
+
* Three digit currency code in ISO 4217 format.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Money
|
|
22
|
+
*/
|
|
23
|
+
currencyCode: string;
|
|
24
|
+
/**
|
|
25
|
+
* A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. <br>**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Money
|
|
28
|
+
*/
|
|
29
|
+
amount: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Direct Fulfillment Payments
|
|
3
|
+
* The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Address } from './address';
|
|
13
|
+
import { TaxRegistrationDetail } from './tax-registration-detail';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PartyIdentification
|
|
18
|
+
*/
|
|
19
|
+
export interface PartyIdentification {
|
|
20
|
+
/**
|
|
21
|
+
* Assigned Identification for the party.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof PartyIdentification
|
|
24
|
+
*/
|
|
25
|
+
partyId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Address}
|
|
29
|
+
* @memberof PartyIdentification
|
|
30
|
+
*/
|
|
31
|
+
address?: Address;
|
|
32
|
+
/**
|
|
33
|
+
* Tax registration details of the entity.
|
|
34
|
+
* @type {Array<TaxRegistrationDetail>}
|
|
35
|
+
* @memberof PartyIdentification
|
|
36
|
+
*/
|
|
37
|
+
taxRegistrationDetails?: Array<TaxRegistrationDetail>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Direct Fulfillment Payments
|
|
3
|
+
* The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { InvoiceDetail } from './invoice-detail';
|
|
13
|
+
/**
|
|
14
|
+
* The request schema for the submitInvoice operation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SubmitInvoiceRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface SubmitInvoiceRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<InvoiceDetail>}
|
|
22
|
+
* @memberof SubmitInvoiceRequest
|
|
23
|
+
*/
|
|
24
|
+
invoices?: Array<InvoiceDetail>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Direct Fulfillment Payments
|
|
3
|
+
* The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { TransactionReference } from './transaction-reference';
|
|
13
|
+
/**
|
|
14
|
+
* The response schema for the submitInvoice operation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SubmitInvoiceResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SubmitInvoiceResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {TransactionReference}
|
|
22
|
+
* @memberof SubmitInvoiceResponse
|
|
23
|
+
*/
|
|
24
|
+
payload?: TransactionReference;
|
|
25
|
+
/**
|
|
26
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
27
|
+
* @type {Array<Error>}
|
|
28
|
+
* @memberof SubmitInvoiceResponse
|
|
29
|
+
*/
|
|
30
|
+
errors?: Array<Error>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Direct Fulfillment Payments
|
|
3
|
+
* The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Money } from './money';
|
|
13
|
+
/**
|
|
14
|
+
* Details of tax amount applied.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TaxDetail
|
|
17
|
+
*/
|
|
18
|
+
export interface TaxDetail {
|
|
19
|
+
/**
|
|
20
|
+
* Type of the tax applied.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof TaxDetail
|
|
23
|
+
*/
|
|
24
|
+
taxType: TaxDetailTaxTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. <br>**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TaxDetail
|
|
29
|
+
*/
|
|
30
|
+
taxRate?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Money}
|
|
34
|
+
* @memberof TaxDetail
|
|
35
|
+
*/
|
|
36
|
+
taxAmount: Money;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Money}
|
|
40
|
+
* @memberof TaxDetail
|
|
41
|
+
*/
|
|
42
|
+
taxableAmount?: Money;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
* @enum {string}
|
|
47
|
+
*/
|
|
48
|
+
export declare enum TaxDetailTaxTypeEnum {
|
|
49
|
+
Cgst = "CGST",
|
|
50
|
+
Sgst = "SGST",
|
|
51
|
+
Cess = "CESS",
|
|
52
|
+
Utgst = "UTGST",
|
|
53
|
+
Igst = "IGST",
|
|
54
|
+
MwSt = "MwSt.",
|
|
55
|
+
Pst = "PST",
|
|
56
|
+
Tva = "TVA",
|
|
57
|
+
Vat = "VAT",
|
|
58
|
+
Gst = "GST",
|
|
59
|
+
St = "ST",
|
|
60
|
+
Consumption = "Consumption",
|
|
61
|
+
MutuallyDefined = "MutuallyDefined",
|
|
62
|
+
DomesticVat = "DomesticVAT"
|
|
63
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Direct Fulfillment Payments
|
|
3
|
+
* The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Address } from './address';
|
|
13
|
+
/**
|
|
14
|
+
* Tax registration details of the entity.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TaxRegistrationDetail
|
|
17
|
+
*/
|
|
18
|
+
export interface TaxRegistrationDetail {
|
|
19
|
+
/**
|
|
20
|
+
* Tax registration type for the entity.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof TaxRegistrationDetail
|
|
23
|
+
*/
|
|
24
|
+
taxRegistrationType?: TaxRegistrationDetailTaxRegistrationTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Tax registration number for the party. For example, VAT ID.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TaxRegistrationDetail
|
|
29
|
+
*/
|
|
30
|
+
taxRegistrationNumber: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Address}
|
|
34
|
+
* @memberof TaxRegistrationDetail
|
|
35
|
+
*/
|
|
36
|
+
taxRegistrationAddress?: Address;
|
|
37
|
+
/**
|
|
38
|
+
* Tax registration message that can be used for additional tax related details.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof TaxRegistrationDetail
|
|
41
|
+
*/
|
|
42
|
+
taxRegistrationMessage?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
* @enum {string}
|
|
47
|
+
*/
|
|
48
|
+
export declare enum TaxRegistrationDetailTaxRegistrationTypeEnum {
|
|
49
|
+
Vat = "VAT",
|
|
50
|
+
Gst = "GST"
|
|
51
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Direct Fulfillment Payments
|
|
3
|
+
* The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TransactionReference
|
|
16
|
+
*/
|
|
17
|
+
export interface TransactionReference {
|
|
18
|
+
/**
|
|
19
|
+
* GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TransactionReference
|
|
22
|
+
*/
|
|
23
|
+
transactionId?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { onRetry } from '@sp-api-sdk/common';
|
|
2
|
+
import type { ClientConfiguration, RateLimit } from '@sp-api-sdk/common';
|
|
3
|
+
import { VendorInvoiceApi } from './api-model';
|
|
4
|
+
export declare const RATE_LIMITS: RateLimit[];
|
|
5
|
+
export interface ClientParameters extends Omit<ClientConfiguration, 'rateLimits' | 'onRetry'> {
|
|
6
|
+
rateLimiting?: {
|
|
7
|
+
retry: boolean;
|
|
8
|
+
onRetry?: onRetry;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare class VendorDirectFulfillmentPaymentsApiClient extends VendorInvoiceApi {
|
|
12
|
+
constructor(parameters: ClientParameters);
|
|
13
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sp-api-sdk/vendor-direct-fulfillment-payments-api-v1",
|
|
3
|
+
"author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
|
|
4
|
+
"description": "The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor's invoice data.",
|
|
5
|
+
"version": "1.6.16",
|
|
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
|
+
"build:cjs": "tsc -p tsconfig.json",
|
|
22
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
23
|
+
"build": "yarn build:cjs && yarn build:es",
|
|
24
|
+
"clean": "rimraf dist",
|
|
25
|
+
"lint": "xo --cwd=../../ $PWD",
|
|
26
|
+
"test": "NODE_ENV='test' yarn jest"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@sp-api-sdk/auth": "^1.9.1",
|
|
30
|
+
"@sp-api-sdk/common": "^1.7.2",
|
|
31
|
+
"axios": "^0.21.1"
|
|
32
|
+
},
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "https://github.com/bizon/selling-partner-api-sdk.git",
|
|
36
|
+
"directory": "clients/vendor-direct-fulfillment-payments-api-v1"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/bizon/selling-partner-api-sdk/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/bizon/selling-partner-api-sdk/tree/master/clients/vendor-direct-fulfillment-payments-api-v1",
|
|
42
|
+
"keywords": [
|
|
43
|
+
"amazon",
|
|
44
|
+
"bizon",
|
|
45
|
+
"marketplace web services",
|
|
46
|
+
"mws",
|
|
47
|
+
"selling partner api",
|
|
48
|
+
"sp api",
|
|
49
|
+
"sp sdk",
|
|
50
|
+
"vendor direct fulfillment payments api"
|
|
51
|
+
],
|
|
52
|
+
"gitHead": "dc4286920dc77e99d6ad71f71bcb78ae22b9ab06"
|
|
53
|
+
}
|