@sp-api-sdk/vendor-direct-fulfillment-payments-api-v1 1.8.4 → 1.8.5
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/dist/cjs/src/api-model/api/vendor-invoice-api.js +1 -1
- package/dist/cjs/src/api-model/models/additional-details.js +4 -9
- package/dist/cjs/src/api-model/models/charge-details.js +9 -14
- package/dist/cjs/src/api-model/models/tax-detail.js +16 -21
- package/dist/cjs/src/api-model/models/tax-registration-detail.js +4 -9
- package/dist/es/src/api-model/api/vendor-invoice-api.js +1 -1
- package/dist/es/src/api-model/models/additional-details.js +4 -9
- package/dist/es/src/api-model/models/charge-details.js +9 -14
- package/dist/es/src/api-model/models/tax-detail.js +16 -21
- package/dist/es/src/api-model/models/tax-registration-detail.js +4 -9
- package/dist/types/src/api-model/api/vendor-invoice-api.d.ts +4 -4
- package/dist/types/src/api-model/base.d.ts +2 -2
- package/dist/types/src/api-model/common.d.ts +2 -2
- package/dist/types/src/api-model/models/additional-details.d.ts +8 -11
- package/dist/types/src/api-model/models/address.d.ts +11 -11
- package/dist/types/src/api-model/models/charge-details.d.ts +13 -16
- package/dist/types/src/api-model/models/invoice-detail.d.ts +13 -13
- package/dist/types/src/api-model/models/invoice-item.d.ts +10 -10
- package/dist/types/src/api-model/models/item-quantity.d.ts +2 -2
- package/dist/types/src/api-model/models/model-error.d.ts +3 -3
- package/dist/types/src/api-model/models/money.d.ts +2 -2
- package/dist/types/src/api-model/models/party-identification.d.ts +3 -3
- package/dist/types/src/api-model/models/submit-invoice-request.d.ts +1 -1
- package/dist/types/src/api-model/models/submit-invoice-response.d.ts +2 -2
- package/dist/types/src/api-model/models/tax-detail.d.ts +21 -24
- package/dist/types/src/api-model/models/tax-registration-detail.d.ts +9 -12
- package/dist/types/src/api-model/models/transaction-reference.d.ts +1 -1
- package/package.json +2 -2
|
@@ -47,7 +47,7 @@ const VendorInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
47
47
|
const localVarHeaderParameter = {};
|
|
48
48
|
const localVarQueryParameter = {};
|
|
49
49
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
50
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter
|
|
50
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
51
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
52
52
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
53
53
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
@@ -14,12 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AdditionalDetailsTypeEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var AdditionalDetailsTypeEnum;
|
|
22
|
-
(function (AdditionalDetailsTypeEnum) {
|
|
23
|
-
AdditionalDetailsTypeEnum["Sur"] = "SUR";
|
|
24
|
-
AdditionalDetailsTypeEnum["Ocr"] = "OCR";
|
|
25
|
-
})(AdditionalDetailsTypeEnum = exports.AdditionalDetailsTypeEnum || (exports.AdditionalDetailsTypeEnum = {}));
|
|
17
|
+
exports.AdditionalDetailsTypeEnum = {
|
|
18
|
+
Sur: 'SUR',
|
|
19
|
+
Ocr: 'OCR'
|
|
20
|
+
};
|
|
@@ -14,17 +14,12 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ChargeDetailsTypeEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
ChargeDetailsTypeEnum["Packaging"] = "PACKAGING";
|
|
27
|
-
ChargeDetailsTypeEnum["Loading"] = "LOADING";
|
|
28
|
-
ChargeDetailsTypeEnum["Freightout"] = "FREIGHTOUT";
|
|
29
|
-
ChargeDetailsTypeEnum["TaxCollectedAtSource"] = "TAX_COLLECTED_AT_SOURCE";
|
|
30
|
-
})(ChargeDetailsTypeEnum = exports.ChargeDetailsTypeEnum || (exports.ChargeDetailsTypeEnum = {}));
|
|
17
|
+
exports.ChargeDetailsTypeEnum = {
|
|
18
|
+
Giftwrap: 'GIFTWRAP',
|
|
19
|
+
Fulfillment: 'FULFILLMENT',
|
|
20
|
+
Marketinginsert: 'MARKETINGINSERT',
|
|
21
|
+
Packaging: 'PACKAGING',
|
|
22
|
+
Loading: 'LOADING',
|
|
23
|
+
Freightout: 'FREIGHTOUT',
|
|
24
|
+
TaxCollectedAtSource: 'TAX_COLLECTED_AT_SOURCE'
|
|
25
|
+
};
|
|
@@ -14,24 +14,19 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.TaxDetailTaxTypeEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
TaxDetailTaxTypeEnum["St"] = "ST";
|
|
34
|
-
TaxDetailTaxTypeEnum["Consumption"] = "Consumption";
|
|
35
|
-
TaxDetailTaxTypeEnum["MutuallyDefined"] = "MutuallyDefined";
|
|
36
|
-
TaxDetailTaxTypeEnum["DomesticVat"] = "DomesticVAT";
|
|
37
|
-
})(TaxDetailTaxTypeEnum = exports.TaxDetailTaxTypeEnum || (exports.TaxDetailTaxTypeEnum = {}));
|
|
17
|
+
exports.TaxDetailTaxTypeEnum = {
|
|
18
|
+
Cgst: 'CGST',
|
|
19
|
+
Sgst: 'SGST',
|
|
20
|
+
Cess: 'CESS',
|
|
21
|
+
Utgst: 'UTGST',
|
|
22
|
+
Igst: 'IGST',
|
|
23
|
+
MwSt: 'MwSt.',
|
|
24
|
+
Pst: 'PST',
|
|
25
|
+
Tva: 'TVA',
|
|
26
|
+
Vat: 'VAT',
|
|
27
|
+
Gst: 'GST',
|
|
28
|
+
St: 'ST',
|
|
29
|
+
Consumption: 'Consumption',
|
|
30
|
+
MutuallyDefined: 'MutuallyDefined',
|
|
31
|
+
DomesticVat: 'DomesticVAT'
|
|
32
|
+
};
|
|
@@ -14,12 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.TaxRegistrationDetailTaxRegistrationTypeEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var TaxRegistrationDetailTaxRegistrationTypeEnum;
|
|
22
|
-
(function (TaxRegistrationDetailTaxRegistrationTypeEnum) {
|
|
23
|
-
TaxRegistrationDetailTaxRegistrationTypeEnum["Vat"] = "VAT";
|
|
24
|
-
TaxRegistrationDetailTaxRegistrationTypeEnum["Gst"] = "GST";
|
|
25
|
-
})(TaxRegistrationDetailTaxRegistrationTypeEnum = exports.TaxRegistrationDetailTaxRegistrationTypeEnum || (exports.TaxRegistrationDetailTaxRegistrationTypeEnum = {}));
|
|
17
|
+
exports.TaxRegistrationDetailTaxRegistrationTypeEnum = {
|
|
18
|
+
Vat: 'VAT',
|
|
19
|
+
Gst: 'GST'
|
|
20
|
+
};
|
|
@@ -43,7 +43,7 @@ export const VendorInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
43
43
|
const localVarHeaderParameter = {};
|
|
44
44
|
const localVarQueryParameter = {};
|
|
45
45
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
46
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
46
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
47
47
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48
48
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
49
49
|
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
@@ -11,12 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export var AdditionalDetailsTypeEnum;
|
|
19
|
-
(function (AdditionalDetailsTypeEnum) {
|
|
20
|
-
AdditionalDetailsTypeEnum["Sur"] = "SUR";
|
|
21
|
-
AdditionalDetailsTypeEnum["Ocr"] = "OCR";
|
|
22
|
-
})(AdditionalDetailsTypeEnum || (AdditionalDetailsTypeEnum = {}));
|
|
14
|
+
export const AdditionalDetailsTypeEnum = {
|
|
15
|
+
Sur: 'SUR',
|
|
16
|
+
Ocr: 'OCR'
|
|
17
|
+
};
|
|
@@ -11,17 +11,12 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
ChargeDetailsTypeEnum["Packaging"] = "PACKAGING";
|
|
24
|
-
ChargeDetailsTypeEnum["Loading"] = "LOADING";
|
|
25
|
-
ChargeDetailsTypeEnum["Freightout"] = "FREIGHTOUT";
|
|
26
|
-
ChargeDetailsTypeEnum["TaxCollectedAtSource"] = "TAX_COLLECTED_AT_SOURCE";
|
|
27
|
-
})(ChargeDetailsTypeEnum || (ChargeDetailsTypeEnum = {}));
|
|
14
|
+
export const ChargeDetailsTypeEnum = {
|
|
15
|
+
Giftwrap: 'GIFTWRAP',
|
|
16
|
+
Fulfillment: 'FULFILLMENT',
|
|
17
|
+
Marketinginsert: 'MARKETINGINSERT',
|
|
18
|
+
Packaging: 'PACKAGING',
|
|
19
|
+
Loading: 'LOADING',
|
|
20
|
+
Freightout: 'FREIGHTOUT',
|
|
21
|
+
TaxCollectedAtSource: 'TAX_COLLECTED_AT_SOURCE'
|
|
22
|
+
};
|
|
@@ -11,24 +11,19 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
TaxDetailTaxTypeEnum["St"] = "ST";
|
|
31
|
-
TaxDetailTaxTypeEnum["Consumption"] = "Consumption";
|
|
32
|
-
TaxDetailTaxTypeEnum["MutuallyDefined"] = "MutuallyDefined";
|
|
33
|
-
TaxDetailTaxTypeEnum["DomesticVat"] = "DomesticVAT";
|
|
34
|
-
})(TaxDetailTaxTypeEnum || (TaxDetailTaxTypeEnum = {}));
|
|
14
|
+
export const TaxDetailTaxTypeEnum = {
|
|
15
|
+
Cgst: 'CGST',
|
|
16
|
+
Sgst: 'SGST',
|
|
17
|
+
Cess: 'CESS',
|
|
18
|
+
Utgst: 'UTGST',
|
|
19
|
+
Igst: 'IGST',
|
|
20
|
+
MwSt: 'MwSt.',
|
|
21
|
+
Pst: 'PST',
|
|
22
|
+
Tva: 'TVA',
|
|
23
|
+
Vat: 'VAT',
|
|
24
|
+
Gst: 'GST',
|
|
25
|
+
St: 'ST',
|
|
26
|
+
Consumption: 'Consumption',
|
|
27
|
+
MutuallyDefined: 'MutuallyDefined',
|
|
28
|
+
DomesticVat: 'DomesticVAT'
|
|
29
|
+
};
|
|
@@ -11,12 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export var TaxRegistrationDetailTaxRegistrationTypeEnum;
|
|
19
|
-
(function (TaxRegistrationDetailTaxRegistrationTypeEnum) {
|
|
20
|
-
TaxRegistrationDetailTaxRegistrationTypeEnum["Vat"] = "VAT";
|
|
21
|
-
TaxRegistrationDetailTaxRegistrationTypeEnum["Gst"] = "GST";
|
|
22
|
-
})(TaxRegistrationDetailTaxRegistrationTypeEnum || (TaxRegistrationDetailTaxRegistrationTypeEnum = {}));
|
|
14
|
+
export const TaxRegistrationDetailTaxRegistrationTypeEnum = {
|
|
15
|
+
Vat: 'VAT',
|
|
16
|
+
Gst: 'GST'
|
|
17
|
+
};
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AxiosPromise, AxiosInstance } from 'axios';
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { SubmitInvoiceRequest } from '../models';
|
|
@@ -25,7 +25,7 @@ export declare const VendorInvoiceApiAxiosParamCreator: (configuration?: Configu
|
|
|
25
25
|
* @param {*} [options] Override http request option.
|
|
26
26
|
* @throws {RequiredError}
|
|
27
27
|
*/
|
|
28
|
-
submitInvoice: (body: SubmitInvoiceRequest, options?:
|
|
28
|
+
submitInvoice: (body: SubmitInvoiceRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
31
|
* VendorInvoiceApi - functional programming interface
|
|
@@ -38,7 +38,7 @@ export declare const VendorInvoiceApiFp: (configuration?: Configuration | undefi
|
|
|
38
38
|
* @param {*} [options] Override http request option.
|
|
39
39
|
* @throws {RequiredError}
|
|
40
40
|
*/
|
|
41
|
-
submitInvoice(body: SubmitInvoiceRequest, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<SubmitInvoiceResponse>>;
|
|
41
|
+
submitInvoice(body: SubmitInvoiceRequest, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<SubmitInvoiceResponse>>;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* VendorInvoiceApi - factory interface
|
|
@@ -80,5 +80,5 @@ export declare class VendorInvoiceApi extends BaseAPI {
|
|
|
80
80
|
* @throws {RequiredError}
|
|
81
81
|
* @memberof VendorInvoiceApi
|
|
82
82
|
*/
|
|
83
|
-
submitInvoice(requestParameters: VendorInvoiceApiSubmitInvoiceRequest, options?:
|
|
83
|
+
submitInvoice(requestParameters: VendorInvoiceApiSubmitInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitInvoiceResponse, any>>;
|
|
84
84
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Configuration } from "./configuration";
|
|
13
|
-
import { AxiosInstance } from 'axios';
|
|
13
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface RequestArgs {
|
|
31
31
|
url: string;
|
|
32
|
-
options:
|
|
32
|
+
options: AxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Configuration } from "./configuration";
|
|
13
13
|
import { RequestArgs } from "./base";
|
|
14
|
-
import { AxiosInstance } from 'axios';
|
|
14
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -20,25 +20,22 @@ export interface AdditionalDetails {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AdditionalDetails
|
|
22
22
|
*/
|
|
23
|
-
type: AdditionalDetailsTypeEnum;
|
|
23
|
+
'type': AdditionalDetailsTypeEnum;
|
|
24
24
|
/**
|
|
25
25
|
* The detail of the additional information provided by the selling party.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof AdditionalDetails
|
|
28
28
|
*/
|
|
29
|
-
detail: string;
|
|
29
|
+
'detail': string;
|
|
30
30
|
/**
|
|
31
31
|
* The language code of the additional information detail.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AdditionalDetails
|
|
34
34
|
*/
|
|
35
|
-
languageCode?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
* @enum {string}
|
|
40
|
-
*/
|
|
41
|
-
export declare enum AdditionalDetailsTypeEnum {
|
|
42
|
-
Sur = "SUR",
|
|
43
|
-
Ocr = "OCR"
|
|
35
|
+
'languageCode'?: string;
|
|
44
36
|
}
|
|
37
|
+
export declare const AdditionalDetailsTypeEnum: {
|
|
38
|
+
readonly Sur: "SUR";
|
|
39
|
+
readonly Ocr: "OCR";
|
|
40
|
+
};
|
|
41
|
+
export declare type AdditionalDetailsTypeEnum = typeof AdditionalDetailsTypeEnum[keyof typeof AdditionalDetailsTypeEnum];
|
|
@@ -20,65 +20,65 @@ export interface Address {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof Address
|
|
22
22
|
*/
|
|
23
|
-
name: string;
|
|
23
|
+
'name': string;
|
|
24
24
|
/**
|
|
25
25
|
* First line of the address.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof Address
|
|
28
28
|
*/
|
|
29
|
-
addressLine1: string;
|
|
29
|
+
'addressLine1': string;
|
|
30
30
|
/**
|
|
31
31
|
* Additional street address information, if required.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof Address
|
|
34
34
|
*/
|
|
35
|
-
addressLine2?: string;
|
|
35
|
+
'addressLine2'?: string;
|
|
36
36
|
/**
|
|
37
37
|
* Additional street address information, if required.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof Address
|
|
40
40
|
*/
|
|
41
|
-
addressLine3?: string;
|
|
41
|
+
'addressLine3'?: string;
|
|
42
42
|
/**
|
|
43
43
|
* The city where the person, business or institution is located.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof Address
|
|
46
46
|
*/
|
|
47
|
-
city: string;
|
|
47
|
+
'city': string;
|
|
48
48
|
/**
|
|
49
49
|
* The county where person, business or institution is located.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof Address
|
|
52
52
|
*/
|
|
53
|
-
county?: string;
|
|
53
|
+
'county'?: string;
|
|
54
54
|
/**
|
|
55
55
|
* The district where person, business or institution is located.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof Address
|
|
58
58
|
*/
|
|
59
|
-
district?: string;
|
|
59
|
+
'district'?: string;
|
|
60
60
|
/**
|
|
61
61
|
* The state or region where person, business or institution is located.
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof Address
|
|
64
64
|
*/
|
|
65
|
-
stateOrRegion: string;
|
|
65
|
+
'stateOrRegion': string;
|
|
66
66
|
/**
|
|
67
67
|
* The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation.
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof Address
|
|
70
70
|
*/
|
|
71
|
-
postalCode: string;
|
|
71
|
+
'postalCode': string;
|
|
72
72
|
/**
|
|
73
73
|
* The two digit country code in ISO 3166-1 alpha-2 format.
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof Address
|
|
76
76
|
*/
|
|
77
|
-
countryCode: string;
|
|
77
|
+
'countryCode': string;
|
|
78
78
|
/**
|
|
79
79
|
* The phone number of the person, business or institution located at that address.
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof Address
|
|
82
82
|
*/
|
|
83
|
-
phone?: string;
|
|
83
|
+
'phone'?: string;
|
|
84
84
|
}
|
|
@@ -22,30 +22,27 @@ export interface ChargeDetails {
|
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof ChargeDetails
|
|
24
24
|
*/
|
|
25
|
-
type: ChargeDetailsTypeEnum;
|
|
25
|
+
'type': ChargeDetailsTypeEnum;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {Money}
|
|
29
29
|
* @memberof ChargeDetails
|
|
30
30
|
*/
|
|
31
|
-
chargeAmount: Money;
|
|
31
|
+
'chargeAmount': Money;
|
|
32
32
|
/**
|
|
33
33
|
* Individual tax details per line item.
|
|
34
34
|
* @type {Array<TaxDetail>}
|
|
35
35
|
* @memberof ChargeDetails
|
|
36
36
|
*/
|
|
37
|
-
taxDetails?: Array<TaxDetail>;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @export
|
|
41
|
-
* @enum {string}
|
|
42
|
-
*/
|
|
43
|
-
export declare enum ChargeDetailsTypeEnum {
|
|
44
|
-
Giftwrap = "GIFTWRAP",
|
|
45
|
-
Fulfillment = "FULFILLMENT",
|
|
46
|
-
Marketinginsert = "MARKETINGINSERT",
|
|
47
|
-
Packaging = "PACKAGING",
|
|
48
|
-
Loading = "LOADING",
|
|
49
|
-
Freightout = "FREIGHTOUT",
|
|
50
|
-
TaxCollectedAtSource = "TAX_COLLECTED_AT_SOURCE"
|
|
37
|
+
'taxDetails'?: Array<TaxDetail>;
|
|
51
38
|
}
|
|
39
|
+
export declare const ChargeDetailsTypeEnum: {
|
|
40
|
+
readonly Giftwrap: "GIFTWRAP";
|
|
41
|
+
readonly Fulfillment: "FULFILLMENT";
|
|
42
|
+
readonly Marketinginsert: "MARKETINGINSERT";
|
|
43
|
+
readonly Packaging: "PACKAGING";
|
|
44
|
+
readonly Loading: "LOADING";
|
|
45
|
+
readonly Freightout: "FREIGHTOUT";
|
|
46
|
+
readonly TaxCollectedAtSource: "TAX_COLLECTED_AT_SOURCE";
|
|
47
|
+
};
|
|
48
|
+
export declare type ChargeDetailsTypeEnum = typeof ChargeDetailsTypeEnum[keyof typeof ChargeDetailsTypeEnum];
|
|
@@ -26,77 +26,77 @@ export interface InvoiceDetail {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof InvoiceDetail
|
|
28
28
|
*/
|
|
29
|
-
invoiceNumber: string;
|
|
29
|
+
'invoiceNumber': string;
|
|
30
30
|
/**
|
|
31
31
|
* Invoice date.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof InvoiceDetail
|
|
34
34
|
*/
|
|
35
|
-
invoiceDate: string;
|
|
35
|
+
'invoiceDate': string;
|
|
36
36
|
/**
|
|
37
37
|
* An additional unique reference number used for regulatory or other purposes.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof InvoiceDetail
|
|
40
40
|
*/
|
|
41
|
-
referenceNumber?: string;
|
|
41
|
+
'referenceNumber'?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {PartyIdentification}
|
|
45
45
|
* @memberof InvoiceDetail
|
|
46
46
|
*/
|
|
47
|
-
remitToParty: PartyIdentification;
|
|
47
|
+
'remitToParty': PartyIdentification;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {PartyIdentification}
|
|
51
51
|
* @memberof InvoiceDetail
|
|
52
52
|
*/
|
|
53
|
-
shipFromParty: PartyIdentification;
|
|
53
|
+
'shipFromParty': PartyIdentification;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {PartyIdentification}
|
|
57
57
|
* @memberof InvoiceDetail
|
|
58
58
|
*/
|
|
59
|
-
billToParty?: PartyIdentification;
|
|
59
|
+
'billToParty'?: PartyIdentification;
|
|
60
60
|
/**
|
|
61
61
|
* Ship-to country code.
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof InvoiceDetail
|
|
64
64
|
*/
|
|
65
|
-
shipToCountryCode?: string;
|
|
65
|
+
'shipToCountryCode'?: string;
|
|
66
66
|
/**
|
|
67
67
|
* The payment terms for the invoice.
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof InvoiceDetail
|
|
70
70
|
*/
|
|
71
|
-
paymentTermsCode?: string;
|
|
71
|
+
'paymentTermsCode'?: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {Money}
|
|
75
75
|
* @memberof InvoiceDetail
|
|
76
76
|
*/
|
|
77
|
-
invoiceTotal: Money;
|
|
77
|
+
'invoiceTotal': Money;
|
|
78
78
|
/**
|
|
79
79
|
* Individual tax details per line item.
|
|
80
80
|
* @type {Array<TaxDetail>}
|
|
81
81
|
* @memberof InvoiceDetail
|
|
82
82
|
*/
|
|
83
|
-
taxTotals?: Array<TaxDetail>;
|
|
83
|
+
'taxTotals'?: Array<TaxDetail>;
|
|
84
84
|
/**
|
|
85
85
|
* Additional details provided by the selling party, for tax related or other purposes.
|
|
86
86
|
* @type {Array<AdditionalDetails>}
|
|
87
87
|
* @memberof InvoiceDetail
|
|
88
88
|
*/
|
|
89
|
-
additionalDetails?: Array<AdditionalDetails>;
|
|
89
|
+
'additionalDetails'?: Array<AdditionalDetails>;
|
|
90
90
|
/**
|
|
91
91
|
* Total charge amount details for all line items.
|
|
92
92
|
* @type {Array<ChargeDetails>}
|
|
93
93
|
* @memberof InvoiceDetail
|
|
94
94
|
*/
|
|
95
|
-
chargeDetails?: Array<ChargeDetails>;
|
|
95
|
+
'chargeDetails'?: Array<ChargeDetails>;
|
|
96
96
|
/**
|
|
97
97
|
* Provides the details of the items in this invoice.
|
|
98
98
|
* @type {Array<InvoiceItem>}
|
|
99
99
|
* @memberof InvoiceDetail
|
|
100
100
|
*/
|
|
101
|
-
items: Array<InvoiceItem>;
|
|
101
|
+
'items': Array<InvoiceItem>;
|
|
102
102
|
}
|
|
@@ -24,59 +24,59 @@ export interface InvoiceItem {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof InvoiceItem
|
|
26
26
|
*/
|
|
27
|
-
itemSequenceNumber: string;
|
|
27
|
+
'itemSequenceNumber': string;
|
|
28
28
|
/**
|
|
29
29
|
* Buyer\'s standard identification number (ASIN) of an item.
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof InvoiceItem
|
|
32
32
|
*/
|
|
33
|
-
buyerProductIdentifier?: string;
|
|
33
|
+
'buyerProductIdentifier'?: string;
|
|
34
34
|
/**
|
|
35
35
|
* The vendor selected product identification of the item.
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof InvoiceItem
|
|
38
38
|
*/
|
|
39
|
-
vendorProductIdentifier?: string;
|
|
39
|
+
'vendorProductIdentifier'?: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {ItemQuantity}
|
|
43
43
|
* @memberof InvoiceItem
|
|
44
44
|
*/
|
|
45
|
-
invoicedQuantity: ItemQuantity;
|
|
45
|
+
'invoicedQuantity': ItemQuantity;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {Money}
|
|
49
49
|
* @memberof InvoiceItem
|
|
50
50
|
*/
|
|
51
|
-
netCost: Money;
|
|
51
|
+
'netCost': Money;
|
|
52
52
|
/**
|
|
53
53
|
* The purchase order number for this order. Formatting Notes: 8-character alpha-numeric code.
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof InvoiceItem
|
|
56
56
|
*/
|
|
57
|
-
purchaseOrderNumber: string;
|
|
57
|
+
'purchaseOrderNumber': string;
|
|
58
58
|
/**
|
|
59
59
|
* The vendor\'s order number for this order.
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof InvoiceItem
|
|
62
62
|
*/
|
|
63
|
-
vendorOrderNumber?: string;
|
|
63
|
+
'vendorOrderNumber'?: string;
|
|
64
64
|
/**
|
|
65
65
|
* HSN tax code. The HSN number cannot contain alphabets.
|
|
66
66
|
* @type {string}
|
|
67
67
|
* @memberof InvoiceItem
|
|
68
68
|
*/
|
|
69
|
-
hsnCode?: string;
|
|
69
|
+
'hsnCode'?: string;
|
|
70
70
|
/**
|
|
71
71
|
* Individual tax details per line item.
|
|
72
72
|
* @type {Array<TaxDetail>}
|
|
73
73
|
* @memberof InvoiceItem
|
|
74
74
|
*/
|
|
75
|
-
taxDetails?: Array<TaxDetail>;
|
|
75
|
+
'taxDetails'?: Array<TaxDetail>;
|
|
76
76
|
/**
|
|
77
77
|
* Individual charge details per line item.
|
|
78
78
|
* @type {Array<ChargeDetails>}
|
|
79
79
|
* @memberof InvoiceItem
|
|
80
80
|
*/
|
|
81
|
-
chargeDetails?: Array<ChargeDetails>;
|
|
81
|
+
'chargeDetails'?: Array<ChargeDetails>;
|
|
82
82
|
}
|
|
@@ -20,11 +20,11 @@ export interface ItemQuantity {
|
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof ItemQuantity
|
|
22
22
|
*/
|
|
23
|
-
amount: number;
|
|
23
|
+
'amount': number;
|
|
24
24
|
/**
|
|
25
25
|
* Unit of measure for the available quantity.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ItemQuantity
|
|
28
28
|
*/
|
|
29
|
-
unitOfMeasure: string;
|
|
29
|
+
'unitOfMeasure': string;
|
|
30
30
|
}
|
|
@@ -20,17 +20,17 @@ export interface ModelError {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ModelError
|
|
22
22
|
*/
|
|
23
|
-
code: string;
|
|
23
|
+
'code': string;
|
|
24
24
|
/**
|
|
25
25
|
* A message that describes the error condition.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ModelError
|
|
28
28
|
*/
|
|
29
|
-
message: string;
|
|
29
|
+
'message': string;
|
|
30
30
|
/**
|
|
31
31
|
* Additional details that can help the caller understand or fix the issue.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ModelError
|
|
34
34
|
*/
|
|
35
|
-
details?: string;
|
|
35
|
+
'details'?: string;
|
|
36
36
|
}
|
|
@@ -20,11 +20,11 @@ export interface Money {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof Money
|
|
22
22
|
*/
|
|
23
|
-
currencyCode: string;
|
|
23
|
+
'currencyCode': string;
|
|
24
24
|
/**
|
|
25
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
26
|
* @type {string}
|
|
27
27
|
* @memberof Money
|
|
28
28
|
*/
|
|
29
|
-
amount: string;
|
|
29
|
+
'amount': string;
|
|
30
30
|
}
|
|
@@ -22,17 +22,17 @@ export interface PartyIdentification {
|
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof PartyIdentification
|
|
24
24
|
*/
|
|
25
|
-
partyId: string;
|
|
25
|
+
'partyId': string;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {Address}
|
|
29
29
|
* @memberof PartyIdentification
|
|
30
30
|
*/
|
|
31
|
-
address?: Address;
|
|
31
|
+
'address'?: Address;
|
|
32
32
|
/**
|
|
33
33
|
* Tax registration details of the entity.
|
|
34
34
|
* @type {Array<TaxRegistrationDetail>}
|
|
35
35
|
* @memberof PartyIdentification
|
|
36
36
|
*/
|
|
37
|
-
taxRegistrationDetails?: Array<TaxRegistrationDetail>;
|
|
37
|
+
'taxRegistrationDetails'?: Array<TaxRegistrationDetail>;
|
|
38
38
|
}
|
|
@@ -21,11 +21,11 @@ export interface SubmitInvoiceResponse {
|
|
|
21
21
|
* @type {TransactionReference}
|
|
22
22
|
* @memberof SubmitInvoiceResponse
|
|
23
23
|
*/
|
|
24
|
-
payload?: TransactionReference;
|
|
24
|
+
'payload'?: TransactionReference;
|
|
25
25
|
/**
|
|
26
26
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
27
|
* @type {Array<Error>}
|
|
28
28
|
* @memberof SubmitInvoiceResponse
|
|
29
29
|
*/
|
|
30
|
-
errors?: Array<Error>;
|
|
30
|
+
'errors'?: Array<Error>;
|
|
31
31
|
}
|
|
@@ -21,43 +21,40 @@ export interface TaxDetail {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof TaxDetail
|
|
23
23
|
*/
|
|
24
|
-
taxType: TaxDetailTaxTypeEnum;
|
|
24
|
+
'taxType': TaxDetailTaxTypeEnum;
|
|
25
25
|
/**
|
|
26
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
27
|
* @type {string}
|
|
28
28
|
* @memberof TaxDetail
|
|
29
29
|
*/
|
|
30
|
-
taxRate?: string;
|
|
30
|
+
'taxRate'?: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {Money}
|
|
34
34
|
* @memberof TaxDetail
|
|
35
35
|
*/
|
|
36
|
-
taxAmount: Money;
|
|
36
|
+
'taxAmount': Money;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {Money}
|
|
40
40
|
* @memberof TaxDetail
|
|
41
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"
|
|
42
|
+
'taxableAmount'?: Money;
|
|
63
43
|
}
|
|
44
|
+
export declare const TaxDetailTaxTypeEnum: {
|
|
45
|
+
readonly Cgst: "CGST";
|
|
46
|
+
readonly Sgst: "SGST";
|
|
47
|
+
readonly Cess: "CESS";
|
|
48
|
+
readonly Utgst: "UTGST";
|
|
49
|
+
readonly Igst: "IGST";
|
|
50
|
+
readonly MwSt: "MwSt.";
|
|
51
|
+
readonly Pst: "PST";
|
|
52
|
+
readonly Tva: "TVA";
|
|
53
|
+
readonly Vat: "VAT";
|
|
54
|
+
readonly Gst: "GST";
|
|
55
|
+
readonly St: "ST";
|
|
56
|
+
readonly Consumption: "Consumption";
|
|
57
|
+
readonly MutuallyDefined: "MutuallyDefined";
|
|
58
|
+
readonly DomesticVat: "DomesticVAT";
|
|
59
|
+
};
|
|
60
|
+
export declare type TaxDetailTaxTypeEnum = typeof TaxDetailTaxTypeEnum[keyof typeof TaxDetailTaxTypeEnum];
|
|
@@ -21,31 +21,28 @@ export interface TaxRegistrationDetail {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof TaxRegistrationDetail
|
|
23
23
|
*/
|
|
24
|
-
taxRegistrationType?: TaxRegistrationDetailTaxRegistrationTypeEnum;
|
|
24
|
+
'taxRegistrationType'?: TaxRegistrationDetailTaxRegistrationTypeEnum;
|
|
25
25
|
/**
|
|
26
26
|
* Tax registration number for the party. For example, VAT ID.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof TaxRegistrationDetail
|
|
29
29
|
*/
|
|
30
|
-
taxRegistrationNumber: string;
|
|
30
|
+
'taxRegistrationNumber': string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {Address}
|
|
34
34
|
* @memberof TaxRegistrationDetail
|
|
35
35
|
*/
|
|
36
|
-
taxRegistrationAddress?: Address;
|
|
36
|
+
'taxRegistrationAddress'?: Address;
|
|
37
37
|
/**
|
|
38
38
|
* Tax registration message that can be used for additional tax related details.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof TaxRegistrationDetail
|
|
41
41
|
*/
|
|
42
|
-
taxRegistrationMessage?: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @export
|
|
46
|
-
* @enum {string}
|
|
47
|
-
*/
|
|
48
|
-
export declare enum TaxRegistrationDetailTaxRegistrationTypeEnum {
|
|
49
|
-
Vat = "VAT",
|
|
50
|
-
Gst = "GST"
|
|
42
|
+
'taxRegistrationMessage'?: string;
|
|
51
43
|
}
|
|
44
|
+
export declare const TaxRegistrationDetailTaxRegistrationTypeEnum: {
|
|
45
|
+
readonly Vat: "VAT";
|
|
46
|
+
readonly Gst: "GST";
|
|
47
|
+
};
|
|
48
|
+
export declare type TaxRegistrationDetailTaxRegistrationTypeEnum = typeof TaxRegistrationDetailTaxRegistrationTypeEnum[keyof typeof TaxRegistrationDetailTaxRegistrationTypeEnum];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/vendor-direct-fulfillment-payments-api-v1",
|
|
3
3
|
"author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor's invoice data.",
|
|
5
|
-
"version": "1.8.
|
|
5
|
+
"version": "1.8.5",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"sp sdk",
|
|
51
51
|
"vendor direct fulfillment payments api"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "d4f265d3c6a4e05e45025a46effa023a56a54e9c"
|
|
54
54
|
}
|