@sp-api-sdk/shipment-invoicing-api-v0 1.10.4 → 1.10.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/shipment-invoice-api.js +3 -3
- package/dist/cjs/src/api-model/models/address-type-enum.js +4 -5
- package/dist/cjs/src/api-model/models/shipment-invoice-status.js +6 -7
- package/dist/es/src/api-model/api/shipment-invoice-api.js +3 -3
- package/dist/es/src/api-model/models/address-type-enum.js +4 -5
- package/dist/es/src/api-model/models/shipment-invoice-status.js +6 -7
- package/dist/types/src/api-model/api/shipment-invoice-api.d.ts +10 -10
- 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/address-type-enum.d.ts +5 -4
- package/dist/types/src/api-model/models/address.d.ts +12 -12
- package/dist/types/src/api-model/models/buyer-tax-info.d.ts +3 -3
- package/dist/types/src/api-model/models/get-invoice-status-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-shipment-details-response.d.ts +2 -2
- package/dist/types/src/api-model/models/marketplace-tax-info.d.ts +3 -3
- 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/shipment-detail.d.ts +14 -14
- package/dist/types/src/api-model/models/shipment-invoice-status-info.d.ts +2 -2
- package/dist/types/src/api-model/models/shipment-invoice-status-response.d.ts +1 -1
- package/dist/types/src/api-model/models/shipment-invoice-status.d.ts +7 -6
- package/dist/types/src/api-model/models/shipment-item.d.ts +11 -11
- package/dist/types/src/api-model/models/submit-invoice-request.d.ts +3 -3
- package/dist/types/src/api-model/models/submit-invoice-response.d.ts +1 -1
- package/dist/types/src/api-model/models/tax-classification.d.ts +2 -2
- package/package.json +2 -2
|
@@ -47,7 +47,7 @@ const ShipmentInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
47
47
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
48
48
|
const localVarHeaderParameter = {};
|
|
49
49
|
const localVarQueryParameter = {};
|
|
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
|
return {
|
|
@@ -75,7 +75,7 @@ const ShipmentInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
75
75
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
76
76
|
const localVarHeaderParameter = {};
|
|
77
77
|
const localVarQueryParameter = {};
|
|
78
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter
|
|
78
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
79
79
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
80
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
81
81
|
return {
|
|
@@ -107,7 +107,7 @@ const ShipmentInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
const localVarHeaderParameter = {};
|
|
108
108
|
const localVarQueryParameter = {};
|
|
109
109
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
110
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter
|
|
110
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
111
111
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
112
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
113
113
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
@@ -19,8 +19,7 @@ exports.AddressTypeEnum = void 0;
|
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
})(AddressTypeEnum = exports.AddressTypeEnum || (exports.AddressTypeEnum = {}));
|
|
22
|
+
exports.AddressTypeEnum = {
|
|
23
|
+
Residential: 'Residential',
|
|
24
|
+
Commercial: 'Commercial'
|
|
25
|
+
};
|
|
@@ -19,10 +19,9 @@ exports.ShipmentInvoiceStatus = void 0;
|
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
})(ShipmentInvoiceStatus = exports.ShipmentInvoiceStatus || (exports.ShipmentInvoiceStatus = {}));
|
|
22
|
+
exports.ShipmentInvoiceStatus = {
|
|
23
|
+
Processing: 'Processing',
|
|
24
|
+
Accepted: 'Accepted',
|
|
25
|
+
Errored: 'Errored',
|
|
26
|
+
NotFound: 'NotFound'
|
|
27
|
+
};
|
|
@@ -43,7 +43,7 @@ export const ShipmentInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
43
43
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
44
44
|
const localVarHeaderParameter = {};
|
|
45
45
|
const localVarQueryParameter = {};
|
|
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
|
return {
|
|
@@ -71,7 +71,7 @@ export const ShipmentInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
71
71
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
72
72
|
const localVarHeaderParameter = {};
|
|
73
73
|
const localVarQueryParameter = {};
|
|
74
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
74
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
75
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
76
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
77
77
|
return {
|
|
@@ -103,7 +103,7 @@ export const ShipmentInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
const localVarHeaderParameter = {};
|
|
104
104
|
const localVarQueryParameter = {};
|
|
105
105
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
106
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
106
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
107
107
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
108
108
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
109
109
|
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
* @export
|
|
17
17
|
* @enum {string}
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
})(AddressTypeEnum || (AddressTypeEnum = {}));
|
|
19
|
+
export const AddressTypeEnum = {
|
|
20
|
+
Residential: 'Residential',
|
|
21
|
+
Commercial: 'Commercial'
|
|
22
|
+
};
|
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
* @export
|
|
17
17
|
* @enum {string}
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})(ShipmentInvoiceStatus || (ShipmentInvoiceStatus = {}));
|
|
19
|
+
export const ShipmentInvoiceStatus = {
|
|
20
|
+
Processing: 'Processing',
|
|
21
|
+
Accepted: 'Accepted',
|
|
22
|
+
Errored: 'Errored',
|
|
23
|
+
NotFound: 'NotFound'
|
|
24
|
+
};
|
|
@@ -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 { GetInvoiceStatusResponse } from '../models';
|
|
@@ -27,14 +27,14 @@ export declare const ShipmentInvoiceApiAxiosParamCreator: (configuration?: Confi
|
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
28
28
|
* @throws {RequiredError}
|
|
29
29
|
*/
|
|
30
|
-
getInvoiceStatus: (shipmentId: string, options?:
|
|
30
|
+
getInvoiceStatus: (shipmentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
31
|
/**
|
|
32
32
|
* Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |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.
|
|
33
33
|
* @param {string} shipmentId The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
|
|
34
34
|
* @param {*} [options] Override http request option.
|
|
35
35
|
* @throws {RequiredError}
|
|
36
36
|
*/
|
|
37
|
-
getShipmentDetails: (shipmentId: string, options?:
|
|
37
|
+
getShipmentDetails: (shipmentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
38
|
/**
|
|
39
39
|
* Submits a shipment invoice document for a given shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |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.
|
|
40
40
|
* @param {string} shipmentId The identifier for the shipment.
|
|
@@ -42,7 +42,7 @@ export declare const ShipmentInvoiceApiAxiosParamCreator: (configuration?: Confi
|
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
43
43
|
* @throws {RequiredError}
|
|
44
44
|
*/
|
|
45
|
-
submitInvoice: (shipmentId: string, body: SubmitInvoiceRequest, options?:
|
|
45
|
+
submitInvoice: (shipmentId: string, body: SubmitInvoiceRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
48
|
* ShipmentInvoiceApi - functional programming interface
|
|
@@ -55,14 +55,14 @@ export declare const ShipmentInvoiceApiFp: (configuration?: Configuration | unde
|
|
|
55
55
|
* @param {*} [options] Override http request option.
|
|
56
56
|
* @throws {RequiredError}
|
|
57
57
|
*/
|
|
58
|
-
getInvoiceStatus(shipmentId: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetInvoiceStatusResponse>>;
|
|
58
|
+
getInvoiceStatus(shipmentId: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetInvoiceStatusResponse>>;
|
|
59
59
|
/**
|
|
60
60
|
* Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |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.
|
|
61
61
|
* @param {string} shipmentId The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
|
|
62
62
|
* @param {*} [options] Override http request option.
|
|
63
63
|
* @throws {RequiredError}
|
|
64
64
|
*/
|
|
65
|
-
getShipmentDetails(shipmentId: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetShipmentDetailsResponse>>;
|
|
65
|
+
getShipmentDetails(shipmentId: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetShipmentDetailsResponse>>;
|
|
66
66
|
/**
|
|
67
67
|
* Submits a shipment invoice document for a given shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |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.
|
|
68
68
|
* @param {string} shipmentId The identifier for the shipment.
|
|
@@ -70,7 +70,7 @@ export declare const ShipmentInvoiceApiFp: (configuration?: Configuration | unde
|
|
|
70
70
|
* @param {*} [options] Override http request option.
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
*/
|
|
73
|
-
submitInvoice(shipmentId: string, body: SubmitInvoiceRequest, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<SubmitInvoiceResponse>>;
|
|
73
|
+
submitInvoice(shipmentId: string, body: SubmitInvoiceRequest, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<SubmitInvoiceResponse>>;
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
76
76
|
* ShipmentInvoiceApi - factory interface
|
|
@@ -159,7 +159,7 @@ export declare class ShipmentInvoiceApi extends BaseAPI {
|
|
|
159
159
|
* @throws {RequiredError}
|
|
160
160
|
* @memberof ShipmentInvoiceApi
|
|
161
161
|
*/
|
|
162
|
-
getInvoiceStatus(requestParameters: ShipmentInvoiceApiGetInvoiceStatusRequest, options?:
|
|
162
|
+
getInvoiceStatus(requestParameters: ShipmentInvoiceApiGetInvoiceStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetInvoiceStatusResponse, any>>;
|
|
163
163
|
/**
|
|
164
164
|
* Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |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.
|
|
165
165
|
* @param {ShipmentInvoiceApiGetShipmentDetailsRequest} requestParameters Request parameters.
|
|
@@ -167,7 +167,7 @@ export declare class ShipmentInvoiceApi extends BaseAPI {
|
|
|
167
167
|
* @throws {RequiredError}
|
|
168
168
|
* @memberof ShipmentInvoiceApi
|
|
169
169
|
*/
|
|
170
|
-
getShipmentDetails(requestParameters: ShipmentInvoiceApiGetShipmentDetailsRequest, options?:
|
|
170
|
+
getShipmentDetails(requestParameters: ShipmentInvoiceApiGetShipmentDetailsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetShipmentDetailsResponse, any>>;
|
|
171
171
|
/**
|
|
172
172
|
* Submits a shipment invoice document for a given shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |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.
|
|
173
173
|
* @param {ShipmentInvoiceApiSubmitInvoiceRequest} requestParameters Request parameters.
|
|
@@ -175,5 +175,5 @@ export declare class ShipmentInvoiceApi extends BaseAPI {
|
|
|
175
175
|
* @throws {RequiredError}
|
|
176
176
|
* @memberof ShipmentInvoiceApi
|
|
177
177
|
*/
|
|
178
|
-
submitInvoice(requestParameters: ShipmentInvoiceApiSubmitInvoiceRequest, options?:
|
|
178
|
+
submitInvoice(requestParameters: ShipmentInvoiceApiSubmitInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitInvoiceResponse, any>>;
|
|
179
179
|
}
|
|
@@ -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>;
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
|
-
export declare
|
|
18
|
-
Residential
|
|
19
|
-
Commercial
|
|
20
|
-
}
|
|
17
|
+
export declare const AddressTypeEnum: {
|
|
18
|
+
readonly Residential: "Residential";
|
|
19
|
+
readonly Commercial: "Commercial";
|
|
20
|
+
};
|
|
21
|
+
export declare type AddressTypeEnum = typeof AddressTypeEnum[keyof typeof AddressTypeEnum];
|
|
@@ -21,71 +21,71 @@ export interface Address {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof Address
|
|
23
23
|
*/
|
|
24
|
-
Name?: string;
|
|
24
|
+
'Name'?: string;
|
|
25
25
|
/**
|
|
26
26
|
* The street address.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof Address
|
|
29
29
|
*/
|
|
30
|
-
AddressLine1?: string;
|
|
30
|
+
'AddressLine1'?: string;
|
|
31
31
|
/**
|
|
32
32
|
* Additional street address information, if required.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof Address
|
|
35
35
|
*/
|
|
36
|
-
AddressLine2?: string;
|
|
36
|
+
'AddressLine2'?: string;
|
|
37
37
|
/**
|
|
38
38
|
* Additional street address information, if required.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof Address
|
|
41
41
|
*/
|
|
42
|
-
AddressLine3?: string;
|
|
42
|
+
'AddressLine3'?: string;
|
|
43
43
|
/**
|
|
44
44
|
* The city.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof Address
|
|
47
47
|
*/
|
|
48
|
-
City?: string;
|
|
48
|
+
'City'?: string;
|
|
49
49
|
/**
|
|
50
50
|
* The county.
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof Address
|
|
53
53
|
*/
|
|
54
|
-
County?: string;
|
|
54
|
+
'County'?: string;
|
|
55
55
|
/**
|
|
56
56
|
* The district.
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof Address
|
|
59
59
|
*/
|
|
60
|
-
District?: string;
|
|
60
|
+
'District'?: string;
|
|
61
61
|
/**
|
|
62
62
|
* The state or region.
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @memberof Address
|
|
65
65
|
*/
|
|
66
|
-
StateOrRegion?: string;
|
|
66
|
+
'StateOrRegion'?: string;
|
|
67
67
|
/**
|
|
68
68
|
* The postal code.
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof Address
|
|
71
71
|
*/
|
|
72
|
-
PostalCode?: string;
|
|
72
|
+
'PostalCode'?: string;
|
|
73
73
|
/**
|
|
74
74
|
* The country code.
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @memberof Address
|
|
77
77
|
*/
|
|
78
|
-
CountryCode?: string;
|
|
78
|
+
'CountryCode'?: string;
|
|
79
79
|
/**
|
|
80
80
|
* The phone number.
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @memberof Address
|
|
83
83
|
*/
|
|
84
|
-
Phone?: string;
|
|
84
|
+
'Phone'?: string;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {AddressTypeEnum}
|
|
88
88
|
* @memberof Address
|
|
89
89
|
*/
|
|
90
|
-
AddressType?: AddressTypeEnum;
|
|
90
|
+
'AddressType'?: AddressTypeEnum;
|
|
91
91
|
}
|
|
@@ -21,17 +21,17 @@ export interface BuyerTaxInfo {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof BuyerTaxInfo
|
|
23
23
|
*/
|
|
24
|
-
CompanyLegalName?: string;
|
|
24
|
+
'CompanyLegalName'?: string;
|
|
25
25
|
/**
|
|
26
26
|
* The country or region imposing the tax.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof BuyerTaxInfo
|
|
29
29
|
*/
|
|
30
|
-
TaxingRegion?: string;
|
|
30
|
+
'TaxingRegion'?: string;
|
|
31
31
|
/**
|
|
32
32
|
* The list of tax classifications.
|
|
33
33
|
* @type {Array<TaxClassification>}
|
|
34
34
|
* @memberof BuyerTaxInfo
|
|
35
35
|
*/
|
|
36
|
-
TaxClassifications?: Array<TaxClassification>;
|
|
36
|
+
'TaxClassifications'?: Array<TaxClassification>;
|
|
37
37
|
}
|
|
@@ -21,11 +21,11 @@ export interface GetInvoiceStatusResponse {
|
|
|
21
21
|
* @type {ShipmentInvoiceStatusResponse}
|
|
22
22
|
* @memberof GetInvoiceStatusResponse
|
|
23
23
|
*/
|
|
24
|
-
payload?: ShipmentInvoiceStatusResponse;
|
|
24
|
+
'payload'?: ShipmentInvoiceStatusResponse;
|
|
25
25
|
/**
|
|
26
26
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
27
|
* @type {Array<Error>}
|
|
28
28
|
* @memberof GetInvoiceStatusResponse
|
|
29
29
|
*/
|
|
30
|
-
errors?: Array<Error>;
|
|
30
|
+
'errors'?: Array<Error>;
|
|
31
31
|
}
|
|
@@ -21,11 +21,11 @@ export interface GetShipmentDetailsResponse {
|
|
|
21
21
|
* @type {ShipmentDetail}
|
|
22
22
|
* @memberof GetShipmentDetailsResponse
|
|
23
23
|
*/
|
|
24
|
-
payload?: ShipmentDetail;
|
|
24
|
+
'payload'?: ShipmentDetail;
|
|
25
25
|
/**
|
|
26
26
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
27
|
* @type {Array<Error>}
|
|
28
28
|
* @memberof GetShipmentDetailsResponse
|
|
29
29
|
*/
|
|
30
|
-
errors?: Array<Error>;
|
|
30
|
+
'errors'?: Array<Error>;
|
|
31
31
|
}
|
|
@@ -21,17 +21,17 @@ export interface MarketplaceTaxInfo {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof MarketplaceTaxInfo
|
|
23
23
|
*/
|
|
24
|
-
CompanyLegalName?: string;
|
|
24
|
+
'CompanyLegalName'?: string;
|
|
25
25
|
/**
|
|
26
26
|
* The country or region imposing the tax.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof MarketplaceTaxInfo
|
|
29
29
|
*/
|
|
30
|
-
TaxingRegion?: string;
|
|
30
|
+
'TaxingRegion'?: string;
|
|
31
31
|
/**
|
|
32
32
|
* The list of tax classifications.
|
|
33
33
|
* @type {Array<TaxClassification>}
|
|
34
34
|
* @memberof MarketplaceTaxInfo
|
|
35
35
|
*/
|
|
36
|
-
TaxClassifications?: Array<TaxClassification>;
|
|
36
|
+
'TaxClassifications'?: Array<TaxClassification>;
|
|
37
37
|
}
|
|
@@ -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
|
* The currency amount.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof Money
|
|
28
28
|
*/
|
|
29
|
-
Amount?: string;
|
|
29
|
+
'Amount'?: string;
|
|
30
30
|
}
|
|
@@ -24,83 +24,83 @@ export interface ShipmentDetail {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ShipmentDetail
|
|
26
26
|
*/
|
|
27
|
-
WarehouseId?: string;
|
|
27
|
+
'WarehouseId'?: string;
|
|
28
28
|
/**
|
|
29
29
|
* The Amazon-defined identifier for the order.
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof ShipmentDetail
|
|
32
32
|
*/
|
|
33
|
-
AmazonOrderId?: string;
|
|
33
|
+
'AmazonOrderId'?: string;
|
|
34
34
|
/**
|
|
35
35
|
* The Amazon-defined identifier for the shipment.
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof ShipmentDetail
|
|
38
38
|
*/
|
|
39
|
-
AmazonShipmentId?: string;
|
|
39
|
+
'AmazonShipmentId'?: string;
|
|
40
40
|
/**
|
|
41
41
|
* The date and time when the order was created.
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof ShipmentDetail
|
|
44
44
|
*/
|
|
45
|
-
PurchaseDate?: string;
|
|
45
|
+
'PurchaseDate'?: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {Address}
|
|
49
49
|
* @memberof ShipmentDetail
|
|
50
50
|
*/
|
|
51
|
-
ShippingAddress?: Address;
|
|
51
|
+
'ShippingAddress'?: Address;
|
|
52
52
|
/**
|
|
53
53
|
* The list of payment method details.
|
|
54
54
|
* @type {Array<string>}
|
|
55
55
|
* @memberof ShipmentDetail
|
|
56
56
|
*/
|
|
57
|
-
PaymentMethodDetails?: Array<string>;
|
|
57
|
+
'PaymentMethodDetails'?: Array<string>;
|
|
58
58
|
/**
|
|
59
59
|
* The identifier for the marketplace where the order was placed.
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof ShipmentDetail
|
|
62
62
|
*/
|
|
63
|
-
MarketplaceId?: string;
|
|
63
|
+
'MarketplaceId'?: string;
|
|
64
64
|
/**
|
|
65
65
|
* The seller identifier.
|
|
66
66
|
* @type {string}
|
|
67
67
|
* @memberof ShipmentDetail
|
|
68
68
|
*/
|
|
69
|
-
SellerId?: string;
|
|
69
|
+
'SellerId'?: string;
|
|
70
70
|
/**
|
|
71
71
|
* The name of the buyer.
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof ShipmentDetail
|
|
74
74
|
*/
|
|
75
|
-
BuyerName?: string;
|
|
75
|
+
'BuyerName'?: string;
|
|
76
76
|
/**
|
|
77
77
|
* The county of the buyer.
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof ShipmentDetail
|
|
80
80
|
*/
|
|
81
|
-
BuyerCounty?: string;
|
|
81
|
+
'BuyerCounty'?: string;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {BuyerTaxInfo}
|
|
85
85
|
* @memberof ShipmentDetail
|
|
86
86
|
*/
|
|
87
|
-
BuyerTaxInfo?: BuyerTaxInfo;
|
|
87
|
+
'BuyerTaxInfo'?: BuyerTaxInfo;
|
|
88
88
|
/**
|
|
89
89
|
*
|
|
90
90
|
* @type {MarketplaceTaxInfo}
|
|
91
91
|
* @memberof ShipmentDetail
|
|
92
92
|
*/
|
|
93
|
-
MarketplaceTaxInfo?: MarketplaceTaxInfo;
|
|
93
|
+
'MarketplaceTaxInfo'?: MarketplaceTaxInfo;
|
|
94
94
|
/**
|
|
95
95
|
* The seller’s friendly name registered in the marketplace.
|
|
96
96
|
* @type {string}
|
|
97
97
|
* @memberof ShipmentDetail
|
|
98
98
|
*/
|
|
99
|
-
SellerDisplayName?: string;
|
|
99
|
+
'SellerDisplayName'?: string;
|
|
100
100
|
/**
|
|
101
101
|
* A list of shipment items.
|
|
102
102
|
* @type {Array<ShipmentItem>}
|
|
103
103
|
* @memberof ShipmentDetail
|
|
104
104
|
*/
|
|
105
|
-
ShipmentItems?: Array<ShipmentItem>;
|
|
105
|
+
'ShipmentItems'?: Array<ShipmentItem>;
|
|
106
106
|
}
|
|
@@ -21,11 +21,11 @@ export interface ShipmentInvoiceStatusInfo {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof ShipmentInvoiceStatusInfo
|
|
23
23
|
*/
|
|
24
|
-
AmazonShipmentId?: string;
|
|
24
|
+
'AmazonShipmentId'?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {ShipmentInvoiceStatus}
|
|
28
28
|
* @memberof ShipmentInvoiceStatusInfo
|
|
29
29
|
*/
|
|
30
|
-
InvoiceStatus?: ShipmentInvoiceStatus;
|
|
30
|
+
'InvoiceStatus'?: ShipmentInvoiceStatus;
|
|
31
31
|
}
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
|
-
export declare
|
|
18
|
-
Processing
|
|
19
|
-
Accepted
|
|
20
|
-
Errored
|
|
21
|
-
NotFound
|
|
22
|
-
}
|
|
17
|
+
export declare const ShipmentInvoiceStatus: {
|
|
18
|
+
readonly Processing: "Processing";
|
|
19
|
+
readonly Accepted: "Accepted";
|
|
20
|
+
readonly Errored: "Errored";
|
|
21
|
+
readonly NotFound: "NotFound";
|
|
22
|
+
};
|
|
23
|
+
export declare type ShipmentInvoiceStatus = typeof ShipmentInvoiceStatus[keyof typeof ShipmentInvoiceStatus];
|
|
@@ -21,65 +21,65 @@ export interface ShipmentItem {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof ShipmentItem
|
|
23
23
|
*/
|
|
24
|
-
ASIN?: string;
|
|
24
|
+
'ASIN'?: string;
|
|
25
25
|
/**
|
|
26
26
|
* The seller SKU of the item.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof ShipmentItem
|
|
29
29
|
*/
|
|
30
|
-
SellerSKU?: string;
|
|
30
|
+
'SellerSKU'?: string;
|
|
31
31
|
/**
|
|
32
32
|
* The Amazon-defined identifier for the order item.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof ShipmentItem
|
|
35
35
|
*/
|
|
36
|
-
OrderItemId?: string;
|
|
36
|
+
'OrderItemId'?: string;
|
|
37
37
|
/**
|
|
38
38
|
* The name of the item.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof ShipmentItem
|
|
41
41
|
*/
|
|
42
|
-
Title?: string;
|
|
42
|
+
'Title'?: string;
|
|
43
43
|
/**
|
|
44
44
|
* The number of items ordered.
|
|
45
45
|
* @type {number}
|
|
46
46
|
* @memberof ShipmentItem
|
|
47
47
|
*/
|
|
48
|
-
QuantityOrdered?: number;
|
|
48
|
+
'QuantityOrdered'?: number;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {Money}
|
|
52
52
|
* @memberof ShipmentItem
|
|
53
53
|
*/
|
|
54
|
-
ItemPrice?: Money;
|
|
54
|
+
'ItemPrice'?: Money;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {Money}
|
|
58
58
|
* @memberof ShipmentItem
|
|
59
59
|
*/
|
|
60
|
-
ShippingPrice?: Money;
|
|
60
|
+
'ShippingPrice'?: Money;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {Money}
|
|
64
64
|
* @memberof ShipmentItem
|
|
65
65
|
*/
|
|
66
|
-
GiftWrapPrice?: Money;
|
|
66
|
+
'GiftWrapPrice'?: Money;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {Money}
|
|
70
70
|
* @memberof ShipmentItem
|
|
71
71
|
*/
|
|
72
|
-
ShippingDiscount?: Money;
|
|
72
|
+
'ShippingDiscount'?: Money;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {Money}
|
|
76
76
|
* @memberof ShipmentItem
|
|
77
77
|
*/
|
|
78
|
-
PromotionDiscount?: Money;
|
|
78
|
+
'PromotionDiscount'?: Money;
|
|
79
79
|
/**
|
|
80
80
|
* The list of serial numbers.
|
|
81
81
|
* @type {Array<string>}
|
|
82
82
|
* @memberof ShipmentItem
|
|
83
83
|
*/
|
|
84
|
-
SerialNumbers?: Array<string>;
|
|
84
|
+
'SerialNumbers'?: Array<string>;
|
|
85
85
|
}
|
|
@@ -20,17 +20,17 @@ export interface SubmitInvoiceRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof SubmitInvoiceRequest
|
|
22
22
|
*/
|
|
23
|
-
InvoiceContent: string;
|
|
23
|
+
'InvoiceContent': string;
|
|
24
24
|
/**
|
|
25
25
|
* An Amazon marketplace identifier.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof SubmitInvoiceRequest
|
|
28
28
|
*/
|
|
29
|
-
MarketplaceId?: string;
|
|
29
|
+
'MarketplaceId'?: string;
|
|
30
30
|
/**
|
|
31
31
|
* MD5 sum for validating the invoice data. For more information about calculating this value, see [Working with Content-MD5 Checksums](https://docs.developer.amazonservices.com/en_US/dev_guide/DG_MD5.html).
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof SubmitInvoiceRequest
|
|
34
34
|
*/
|
|
35
|
-
ContentMD5Value: string;
|
|
35
|
+
'ContentMD5Value': string;
|
|
36
36
|
}
|
|
@@ -20,11 +20,11 @@ export interface TaxClassification {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof TaxClassification
|
|
22
22
|
*/
|
|
23
|
-
Name?: string;
|
|
23
|
+
'Name'?: string;
|
|
24
24
|
/**
|
|
25
25
|
* The entity\'s tax identifier.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof TaxClassification
|
|
28
28
|
*/
|
|
29
|
-
Value?: string;
|
|
29
|
+
'Value'?: string;
|
|
30
30
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/shipment-invoicing-api-v0",
|
|
3
3
|
"author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.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
|
"shipment invoicing api"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "d4f265d3c6a4e05e45025a46effa023a56a54e9c"
|
|
54
54
|
}
|