@sp-api-sdk/vendor-direct-fulfillment-payments-api-v1 1.8.3 → 1.8.6

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.
Files changed (28) hide show
  1. package/dist/cjs/src/api-model/api/vendor-invoice-api.js +1 -1
  2. package/dist/cjs/src/api-model/models/additional-details.js +4 -9
  3. package/dist/cjs/src/api-model/models/charge-details.js +9 -14
  4. package/dist/cjs/src/api-model/models/tax-detail.js +16 -21
  5. package/dist/cjs/src/api-model/models/tax-registration-detail.js +4 -9
  6. package/dist/es/src/api-model/api/vendor-invoice-api.js +1 -1
  7. package/dist/es/src/api-model/models/additional-details.js +4 -9
  8. package/dist/es/src/api-model/models/charge-details.js +9 -14
  9. package/dist/es/src/api-model/models/tax-detail.js +16 -21
  10. package/dist/es/src/api-model/models/tax-registration-detail.js +4 -9
  11. package/dist/types/src/api-model/api/vendor-invoice-api.d.ts +7 -7
  12. package/dist/types/src/api-model/base.d.ts +2 -2
  13. package/dist/types/src/api-model/common.d.ts +7 -7
  14. package/dist/types/src/api-model/models/additional-details.d.ts +8 -11
  15. package/dist/types/src/api-model/models/address.d.ts +11 -11
  16. package/dist/types/src/api-model/models/charge-details.d.ts +13 -16
  17. package/dist/types/src/api-model/models/invoice-detail.d.ts +13 -13
  18. package/dist/types/src/api-model/models/invoice-item.d.ts +10 -10
  19. package/dist/types/src/api-model/models/item-quantity.d.ts +2 -2
  20. package/dist/types/src/api-model/models/model-error.d.ts +3 -3
  21. package/dist/types/src/api-model/models/money.d.ts +2 -2
  22. package/dist/types/src/api-model/models/party-identification.d.ts +3 -3
  23. package/dist/types/src/api-model/models/submit-invoice-request.d.ts +1 -1
  24. package/dist/types/src/api-model/models/submit-invoice-response.d.ts +2 -2
  25. package/dist/types/src/api-model/models/tax-detail.d.ts +21 -24
  26. package/dist/types/src/api-model/models/tax-registration-detail.d.ts +9 -12
  27. package/dist/types/src/api-model/models/transaction-reference.d.ts +1 -1
  28. package/package.json +4 -4
@@ -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, options.query);
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
- * @export
19
- * @enum {string}
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
- * @export
19
- * @enum {string}
20
- */
21
- var ChargeDetailsTypeEnum;
22
- (function (ChargeDetailsTypeEnum) {
23
- ChargeDetailsTypeEnum["Giftwrap"] = "GIFTWRAP";
24
- ChargeDetailsTypeEnum["Fulfillment"] = "FULFILLMENT";
25
- ChargeDetailsTypeEnum["Marketinginsert"] = "MARKETINGINSERT";
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
- * @export
19
- * @enum {string}
20
- */
21
- var TaxDetailTaxTypeEnum;
22
- (function (TaxDetailTaxTypeEnum) {
23
- TaxDetailTaxTypeEnum["Cgst"] = "CGST";
24
- TaxDetailTaxTypeEnum["Sgst"] = "SGST";
25
- TaxDetailTaxTypeEnum["Cess"] = "CESS";
26
- TaxDetailTaxTypeEnum["Utgst"] = "UTGST";
27
- TaxDetailTaxTypeEnum["Igst"] = "IGST";
28
- TaxDetailTaxTypeEnum["MwSt"] = "MwSt.";
29
- TaxDetailTaxTypeEnum["Pst"] = "PST";
30
- TaxDetailTaxTypeEnum["Tva"] = "TVA";
31
- TaxDetailTaxTypeEnum["Vat"] = "VAT";
32
- TaxDetailTaxTypeEnum["Gst"] = "GST";
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
- * @export
19
- * @enum {string}
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, options.query);
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
- * @export
16
- * @enum {string}
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
- * @export
16
- * @enum {string}
17
- */
18
- export var ChargeDetailsTypeEnum;
19
- (function (ChargeDetailsTypeEnum) {
20
- ChargeDetailsTypeEnum["Giftwrap"] = "GIFTWRAP";
21
- ChargeDetailsTypeEnum["Fulfillment"] = "FULFILLMENT";
22
- ChargeDetailsTypeEnum["Marketinginsert"] = "MARKETINGINSERT";
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
- * @export
16
- * @enum {string}
17
- */
18
- export var TaxDetailTaxTypeEnum;
19
- (function (TaxDetailTaxTypeEnum) {
20
- TaxDetailTaxTypeEnum["Cgst"] = "CGST";
21
- TaxDetailTaxTypeEnum["Sgst"] = "SGST";
22
- TaxDetailTaxTypeEnum["Cess"] = "CESS";
23
- TaxDetailTaxTypeEnum["Utgst"] = "UTGST";
24
- TaxDetailTaxTypeEnum["Igst"] = "IGST";
25
- TaxDetailTaxTypeEnum["MwSt"] = "MwSt.";
26
- TaxDetailTaxTypeEnum["Pst"] = "PST";
27
- TaxDetailTaxTypeEnum["Tva"] = "TVA";
28
- TaxDetailTaxTypeEnum["Vat"] = "VAT";
29
- TaxDetailTaxTypeEnum["Gst"] = "GST";
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
- * @export
16
- * @enum {string}
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';
@@ -18,33 +18,33 @@ import { SubmitInvoiceResponse } from '../models';
18
18
  * VendorInvoiceApi - axios parameter creator
19
19
  * @export
20
20
  */
21
- export declare const VendorInvoiceApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
21
+ export declare const VendorInvoiceApiAxiosParamCreator: (configuration?: Configuration) => {
22
22
  /**
23
23
  * Submits one or more invoices for a vendor\'s direct fulfillment orders. **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.
24
24
  * @param {SubmitInvoiceRequest} body
25
25
  * @param {*} [options] Override http request option.
26
26
  * @throws {RequiredError}
27
27
  */
28
- submitInvoice: (body: SubmitInvoiceRequest, options?: any) => Promise<RequestArgs>;
28
+ submitInvoice: (body: SubmitInvoiceRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29
29
  };
30
30
  /**
31
31
  * VendorInvoiceApi - functional programming interface
32
32
  * @export
33
33
  */
34
- export declare const VendorInvoiceApiFp: (configuration?: Configuration | undefined) => {
34
+ export declare const VendorInvoiceApiFp: (configuration?: Configuration) => {
35
35
  /**
36
36
  * Submits one or more invoices for a vendor\'s direct fulfillment orders. **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.
37
37
  * @param {SubmitInvoiceRequest} body
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): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitInvoiceResponse>>;
42
42
  };
43
43
  /**
44
44
  * VendorInvoiceApi - factory interface
45
45
  * @export
46
46
  */
47
- export declare const VendorInvoiceApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
47
+ export declare const VendorInvoiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
48
48
  /**
49
49
  * Submits one or more invoices for a vendor\'s direct fulfillment orders. **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.
50
50
  * @param {SubmitInvoiceRequest} body
@@ -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?: any): Promise<import("axios").AxiosResponse<SubmitInvoiceResponse, any>>;
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: any;
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
@@ -27,22 +27,22 @@ export declare const assertParamExists: (functionName: string, paramName: string
27
27
  *
28
28
  * @export
29
29
  */
30
- export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration | undefined) => Promise<void>;
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
31
  /**
32
32
  *
33
33
  * @export
34
34
  */
35
- export declare const setBasicAuthToObject: (object: any, configuration?: Configuration | undefined) => void;
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
36
  /**
37
37
  *
38
38
  * @export
39
39
  */
40
- export declare const setBearerAuthToObject: (object: any, configuration?: Configuration | undefined) => Promise<void>;
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
41
  /**
42
42
  *
43
43
  * @export
44
44
  */
45
- export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration | undefined) => Promise<void>;
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
46
  /**
47
47
  *
48
48
  * @export
@@ -52,7 +52,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
52
52
  *
53
53
  * @export
54
54
  */
55
- export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration | undefined) => any;
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
56
  /**
57
57
  *
58
58
  * @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<import("axios").AxiosResponse<any, any>>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <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,5 +21,5 @@ export interface SubmitInvoiceRequest {
21
21
  * @type {Array<InvoiceDetail>}
22
22
  * @memberof SubmitInvoiceRequest
23
23
  */
24
- invoices?: Array<InvoiceDetail>;
24
+ 'invoices'?: Array<InvoiceDetail>;
25
25
  }
@@ -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];
@@ -20,5 +20,5 @@ export interface TransactionReference {
20
20
  * @type {string}
21
21
  * @memberof TransactionReference
22
22
  */
23
- transactionId?: string;
23
+ 'transactionId'?: string;
24
24
  }
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.3",
5
+ "version": "1.8.6",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "test": "jest"
28
28
  },
29
29
  "dependencies": {
30
- "@sp-api-sdk/auth": "^1.9.16",
31
- "@sp-api-sdk/common": "^1.9.2",
30
+ "@sp-api-sdk/auth": "^1.9.18",
31
+ "@sp-api-sdk/common": "^1.9.4",
32
32
  "axios": "^0.27.2"
33
33
  },
34
34
  "repository": {
@@ -50,5 +50,5 @@
50
50
  "sp sdk",
51
51
  "vendor direct fulfillment payments api"
52
52
  ],
53
- "gitHead": "a7c5d10323f6fbaea18fe0669afb4c66a5898554"
53
+ "gitHead": "18efdada205f63f94bd5c11e163e758adbb93257"
54
54
  }