@sp-api-sdk/orders-api-v0 5.0.0 → 5.1.1
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/api-model/api/orders-api.js +48 -64
- package/dist/cjs/api-model/base.js +0 -19
- package/dist/cjs/api-model/common.js +0 -37
- package/dist/cjs/api-model/configuration.js +0 -17
- package/dist/cjs/api-model/models/association-type.js +0 -2
- package/dist/cjs/api-model/models/constraint-type.js +0 -2
- package/dist/cjs/api-model/models/easy-ship-shipment-status.js +0 -2
- package/dist/cjs/api-model/models/electronic-invoice-status.js +0 -2
- package/dist/cjs/api-model/models/index.js +0 -1
- package/dist/cjs/api-model/models/other-delivery-attributes.js +0 -2
- package/dist/cjs/api-model/models/shipment-status.js +0 -2
- package/dist/cjs/api-model/models/verification-status.js +0 -2
- package/dist/es/api-model/api/orders-api.js +48 -64
- package/dist/es/api-model/base.js +0 -19
- package/dist/es/api-model/common.js +0 -37
- package/dist/es/api-model/configuration.js +0 -17
- package/dist/es/api-model/models/association-type.js +0 -2
- package/dist/es/api-model/models/constraint-type.js +0 -2
- package/dist/es/api-model/models/easy-ship-shipment-status.js +0 -2
- package/dist/es/api-model/models/electronic-invoice-status.js +0 -2
- package/dist/es/api-model/models/index.js +0 -1
- package/dist/es/api-model/models/other-delivery-attributes.js +0 -2
- package/dist/es/api-model/models/shipment-status.js +0 -2
- package/dist/es/api-model/models/verification-status.js +0 -2
- package/dist/types/api-model/api/orders-api.d.ts +52 -160
- package/dist/types/api-model/base.d.ts +0 -24
- package/dist/types/api-model/common.d.ts +0 -37
- package/dist/types/api-model/configuration.d.ts +0 -17
- package/dist/types/api-model/models/address-extended-fields.d.ts +0 -10
- package/dist/types/api-model/models/address.d.ts +0 -35
- package/dist/types/api-model/models/amazon-programs.d.ts +2 -6
- package/dist/types/api-model/models/associated-item.d.ts +0 -11
- package/dist/types/api-model/models/association-type.d.ts +0 -2
- package/dist/types/api-model/models/automated-shipping-settings.d.ts +0 -8
- package/dist/types/api-model/models/business-hours.d.ts +0 -6
- package/dist/types/api-model/models/buyer-customized-info-detail.d.ts +0 -4
- package/dist/types/api-model/models/buyer-info.d.ts +0 -15
- package/dist/types/api-model/models/buyer-requested-cancel.d.ts +0 -6
- package/dist/types/api-model/models/buyer-tax-info.d.ts +0 -8
- package/dist/types/api-model/models/buyer-tax-information.d.ts +0 -10
- package/dist/types/api-model/models/confirm-shipment-error-response.d.ts +0 -4
- package/dist/types/api-model/models/confirm-shipment-order-item.d.ts +0 -8
- package/dist/types/api-model/models/confirm-shipment-request.d.ts +0 -11
- package/dist/types/api-model/models/constraint-type.d.ts +0 -2
- package/dist/types/api-model/models/delivery-preferences.d.ts +0 -13
- package/dist/types/api-model/models/easy-ship-shipment-status.d.ts +0 -2
- package/dist/types/api-model/models/electronic-invoice-status.d.ts +0 -2
- package/dist/types/api-model/models/exception-dates.d.ts +0 -8
- package/dist/types/api-model/models/fulfillment-instruction.d.ts +0 -4
- package/dist/types/api-model/models/get-order-address-response.d.ts +0 -9
- package/dist/types/api-model/models/get-order-buyer-info-response.d.ts +0 -9
- package/dist/types/api-model/models/get-order-items-buyer-info-response.d.ts +0 -9
- package/dist/types/api-model/models/get-order-items-response.d.ts +0 -9
- package/dist/types/api-model/models/get-order-regulated-info-response.d.ts +0 -9
- package/dist/types/api-model/models/get-order-response.d.ts +0 -9
- package/dist/types/api-model/models/get-orders-response.d.ts +0 -9
- package/dist/types/api-model/models/index.d.ts +0 -1
- package/dist/types/api-model/models/item-buyer-info.d.ts +0 -21
- package/dist/types/api-model/models/marketplace-tax-info.d.ts +0 -4
- package/dist/types/api-model/models/measurement.d.ts +0 -6
- package/dist/types/api-model/models/model-error.d.ts +0 -8
- package/dist/types/api-model/models/money.d.ts +0 -6
- package/dist/types/api-model/models/open-interval.d.ts +0 -12
- package/dist/types/api-model/models/open-time-interval.d.ts +0 -6
- package/dist/types/api-model/models/order-address.d.ts +0 -16
- package/dist/types/api-model/models/order-buyer-info.d.ts +0 -17
- package/dist/types/api-model/models/order-item-buyer-info.d.ts +0 -23
- package/dist/types/api-model/models/order-item.d.ts +0 -146
- package/dist/types/api-model/models/order-items-buyer-info-list.d.ts +0 -8
- package/dist/types/api-model/models/order-items-inner.d.ts +0 -9
- package/dist/types/api-model/models/order-items-list.d.ts +0 -8
- package/dist/types/api-model/models/order-regulated-info.d.ts +0 -16
- package/dist/types/api-model/models/order.d.ts +0 -126
- package/dist/types/api-model/models/orders-list.d.ts +1 -11
- package/dist/types/api-model/models/other-delivery-attributes.d.ts +0 -2
- package/dist/types/api-model/models/package-detail.d.ts +1 -19
- package/dist/types/api-model/models/payment-execution-detail-item.d.ts +0 -9
- package/dist/types/api-model/models/points-granted-detail.d.ts +0 -9
- package/dist/types/api-model/models/preferred-delivery-time.d.ts +0 -6
- package/dist/types/api-model/models/prescription-detail.d.ts +0 -16
- package/dist/types/api-model/models/product-info-detail.d.ts +0 -4
- package/dist/types/api-model/models/regulated-information-field.d.ts +0 -10
- package/dist/types/api-model/models/regulated-information.d.ts +0 -4
- package/dist/types/api-model/models/regulated-order-verification-status.d.ts +0 -22
- package/dist/types/api-model/models/rejection-reason.d.ts +0 -6
- package/dist/types/api-model/models/shipment-status.d.ts +0 -2
- package/dist/types/api-model/models/shipping-constraints.d.ts +0 -22
- package/dist/types/api-model/models/substitution-option.d.ts +0 -15
- package/dist/types/api-model/models/substitution-preferences.d.ts +0 -6
- package/dist/types/api-model/models/tax-classification.d.ts +0 -6
- package/dist/types/api-model/models/tax-collection.d.ts +0 -6
- package/dist/types/api-model/models/update-shipment-status-error-response.d.ts +0 -4
- package/dist/types/api-model/models/update-shipment-status-request.d.ts +0 -11
- package/dist/types/api-model/models/update-verification-status-error-response.d.ts +0 -4
- package/dist/types/api-model/models/update-verification-status-request-body.d.ts +0 -16
- package/dist/types/api-model/models/update-verification-status-request.d.ts +0 -7
- package/dist/types/api-model/models/valid-verification-detail.d.ts +0 -6
- package/dist/types/api-model/models/verification-details.d.ts +0 -7
- package/dist/types/api-model/models/verification-status.d.ts +0 -2
- package/package.json +25 -4
- package/dist/cjs/api-model/models/export-info.js +0 -15
- package/dist/es/api-model/models/export-info.js +0 -14
- package/dist/types/api-model/models/export-info.d.ts +0 -31
|
@@ -12,42 +12,22 @@
|
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const COLLECTION_FORMATS: {
|
|
20
16
|
csv: string;
|
|
21
17
|
ssv: string;
|
|
22
18
|
tsv: string;
|
|
23
19
|
pipes: string;
|
|
24
20
|
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
21
|
export interface RequestArgs {
|
|
31
22
|
url: string;
|
|
32
23
|
options: RawAxiosRequestConfig;
|
|
33
24
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
25
|
export declare class BaseAPI {
|
|
40
26
|
protected basePath: string;
|
|
41
27
|
protected axios: AxiosInstance;
|
|
42
28
|
protected configuration: Configuration | undefined;
|
|
43
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
31
|
export declare class RequiredError extends Error {
|
|
52
32
|
field: string;
|
|
53
33
|
constructor(field: string, msg?: string);
|
|
@@ -58,9 +38,5 @@ interface ServerMap {
|
|
|
58
38
|
description: string;
|
|
59
39
|
}[];
|
|
60
40
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
41
|
export declare const operationServerMap: ServerMap;
|
|
66
42
|
export {};
|
|
@@ -12,54 +12,17 @@
|
|
|
12
12
|
import type { Configuration } from "./configuration";
|
|
13
13
|
import type { RequestArgs } from "./base";
|
|
14
14
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
16
|
/**
|
|
21
17
|
*
|
|
22
18
|
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
19
|
*/
|
|
25
20
|
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
21
|
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
22
|
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
23
|
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @export
|
|
44
|
-
*/
|
|
45
24
|
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @export
|
|
49
|
-
*/
|
|
50
25
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
26
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
27
|
export declare const toPathString: (url: URL) => string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
28
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -23,49 +23,32 @@ export declare class Configuration {
|
|
|
23
23
|
/**
|
|
24
24
|
* parameter for apiKey security
|
|
25
25
|
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
26
|
*/
|
|
28
27
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
28
|
/**
|
|
30
29
|
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
30
|
*/
|
|
35
31
|
username?: string;
|
|
36
32
|
/**
|
|
37
33
|
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
34
|
*/
|
|
42
35
|
password?: string;
|
|
43
36
|
/**
|
|
44
37
|
* parameter for oauth2 security
|
|
45
38
|
* @param name security name
|
|
46
39
|
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
40
|
*/
|
|
49
41
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
42
|
/**
|
|
51
43
|
* override base path
|
|
52
|
-
*
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof Configuration
|
|
55
44
|
*/
|
|
56
45
|
basePath?: string;
|
|
57
46
|
/**
|
|
58
47
|
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
48
|
*/
|
|
63
49
|
serverIndex?: number;
|
|
64
50
|
/**
|
|
65
51
|
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
52
|
*/
|
|
70
53
|
baseOptions?: any;
|
|
71
54
|
/**
|
|
@@ -11,32 +11,22 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* The container for address extended fields (such as `street name` and `street number`). Currently only available with Brazil shipping addresses.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface AddressExtendedFields
|
|
16
14
|
*/
|
|
17
15
|
export interface AddressExtendedFields {
|
|
18
16
|
/**
|
|
19
17
|
* The street name.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof AddressExtendedFields
|
|
22
18
|
*/
|
|
23
19
|
'StreetName'?: string;
|
|
24
20
|
/**
|
|
25
21
|
* The house, building, or property number associated with the location\'s street address.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof AddressExtendedFields
|
|
28
22
|
*/
|
|
29
23
|
'StreetNumber'?: string;
|
|
30
24
|
/**
|
|
31
25
|
* The floor number/unit number in the building/private house number.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof AddressExtendedFields
|
|
34
26
|
*/
|
|
35
27
|
'Complement'?: string;
|
|
36
28
|
/**
|
|
37
29
|
* The neighborhood. This value is only used in some countries (such as Brazil).
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof AddressExtendedFields
|
|
40
30
|
*/
|
|
41
31
|
'Neighborhood'?: string;
|
|
42
32
|
}
|
|
@@ -12,98 +12,63 @@
|
|
|
12
12
|
import type { AddressExtendedFields } from './address-extended-fields';
|
|
13
13
|
/**
|
|
14
14
|
* The shipping address for the order.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Address
|
|
17
15
|
*/
|
|
18
16
|
export interface Address {
|
|
19
17
|
/**
|
|
20
18
|
* The name.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof Address
|
|
23
19
|
*/
|
|
24
20
|
'Name': string;
|
|
25
21
|
/**
|
|
26
22
|
* The company name of the recipient. **Note**: This attribute is only available for shipping address.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof Address
|
|
29
23
|
*/
|
|
30
24
|
'CompanyName'?: string;
|
|
31
25
|
/**
|
|
32
26
|
* The street address.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof Address
|
|
35
27
|
*/
|
|
36
28
|
'AddressLine1'?: string;
|
|
37
29
|
/**
|
|
38
30
|
* Additional street address information, if required.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Address
|
|
41
31
|
*/
|
|
42
32
|
'AddressLine2'?: string;
|
|
43
33
|
/**
|
|
44
34
|
* Additional street address information, if required.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof Address
|
|
47
35
|
*/
|
|
48
36
|
'AddressLine3'?: string;
|
|
49
37
|
/**
|
|
50
38
|
* The city.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof Address
|
|
53
39
|
*/
|
|
54
40
|
'City'?: string;
|
|
55
41
|
/**
|
|
56
42
|
* The county.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof Address
|
|
59
43
|
*/
|
|
60
44
|
'County'?: string;
|
|
61
45
|
/**
|
|
62
46
|
* The district.
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof Address
|
|
65
47
|
*/
|
|
66
48
|
'District'?: string;
|
|
67
49
|
/**
|
|
68
50
|
* The state or region.
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof Address
|
|
71
51
|
*/
|
|
72
52
|
'StateOrRegion'?: string;
|
|
73
53
|
/**
|
|
74
54
|
* The municipality.
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof Address
|
|
77
55
|
*/
|
|
78
56
|
'Municipality'?: string;
|
|
79
57
|
/**
|
|
80
58
|
* The postal code.
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof Address
|
|
83
59
|
*/
|
|
84
60
|
'PostalCode'?: string;
|
|
85
61
|
/**
|
|
86
62
|
* The country code. A two-character country code, in ISO 3166-1 alpha-2 format.
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof Address
|
|
89
63
|
*/
|
|
90
64
|
'CountryCode'?: string;
|
|
91
65
|
/**
|
|
92
66
|
* The phone number of the buyer. **Note**: 1. This attribute is only available for shipping address. 2. In some cases, the buyer phone number is suppressed: a. Phone is suppressed for all `AFN` (fulfilled by Amazon) orders. b. Phone is suppressed for the shipped `MFN` (fulfilled by seller) order when the current date is past the Latest Delivery Date.
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof Address
|
|
95
67
|
*/
|
|
96
68
|
'Phone'?: string;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {AddressExtendedFields}
|
|
100
|
-
* @memberof Address
|
|
101
|
-
*/
|
|
102
69
|
'ExtendedFields'?: AddressExtendedFields;
|
|
103
70
|
/**
|
|
104
71
|
* The address type of the shipping address.
|
|
105
|
-
* @type {string}
|
|
106
|
-
* @memberof Address
|
|
107
72
|
*/
|
|
108
73
|
'AddressType'?: AddressAddressTypeEnum;
|
|
109
74
|
}
|
|
@@ -10,15 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Contains the list of programs that
|
|
14
|
-
* @export
|
|
15
|
-
* @interface AmazonPrograms
|
|
13
|
+
* Contains the list of programs that Amazon associates with an item. Possible programs are: - **Subscribe and Save**: Offers recurring, scheduled deliveries to Amazon customers and Amazon Business customers for their frequently ordered products. - **FBM Ship+**: Unlocks expedited shipping without the extra cost. Helps you to provide accurate and fast delivery dates to Amazon customers. You also receive protection from late deliveries, a discount on expedited shipping rates, and cash back when you ship.
|
|
16
14
|
*/
|
|
17
15
|
export interface AmazonPrograms {
|
|
18
16
|
/**
|
|
19
|
-
* A list of the programs that
|
|
20
|
-
* @type {Array<string>}
|
|
21
|
-
* @memberof AmazonPrograms
|
|
17
|
+
* A list of the programs that Amazon associates with the order item. **Possible values**: `SUBSCRIBE_AND_SAVE`, `FBM_SHIP_PLUS`
|
|
22
18
|
*/
|
|
23
19
|
'Programs': Array<string>;
|
|
24
20
|
}
|
|
@@ -12,26 +12,15 @@
|
|
|
12
12
|
import type { AssociationType } from './association-type';
|
|
13
13
|
/**
|
|
14
14
|
* An item that is associated with an order item. For example, a tire installation service that is purchased with tires.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface AssociatedItem
|
|
17
15
|
*/
|
|
18
16
|
export interface AssociatedItem {
|
|
19
17
|
/**
|
|
20
18
|
* The order item\'s order identifier, in 3-7-7 format.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof AssociatedItem
|
|
23
19
|
*/
|
|
24
20
|
'OrderId'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* An Amazon-defined item identifier for the associated item.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof AssociatedItem
|
|
29
23
|
*/
|
|
30
24
|
'OrderItemId'?: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {AssociationType}
|
|
34
|
-
* @memberof AssociatedItem
|
|
35
|
-
*/
|
|
36
25
|
'AssociationType'?: AssociationType;
|
|
37
26
|
}
|
|
@@ -11,26 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Contains information regarding the Shipping Settings Automation program, such as whether the order\'s shipping settings were generated automatically, and what those settings are.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface AutomatedShippingSettings
|
|
16
14
|
*/
|
|
17
15
|
export interface AutomatedShippingSettings {
|
|
18
16
|
/**
|
|
19
17
|
* When true, this order has automated shipping settings generated by Amazon. This order could be identified as an SSA order.
|
|
20
|
-
* @type {boolean}
|
|
21
|
-
* @memberof AutomatedShippingSettings
|
|
22
18
|
*/
|
|
23
19
|
'HasAutomatedShippingSettings'?: boolean;
|
|
24
20
|
/**
|
|
25
21
|
* Auto-generated carrier for SSA orders.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof AutomatedShippingSettings
|
|
28
22
|
*/
|
|
29
23
|
'AutomatedCarrier'?: string;
|
|
30
24
|
/**
|
|
31
25
|
* Auto-generated ship method for SSA orders.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof AutomatedShippingSettings
|
|
34
26
|
*/
|
|
35
27
|
'AutomatedShipMethod'?: string;
|
|
36
28
|
}
|
|
@@ -12,20 +12,14 @@
|
|
|
12
12
|
import type { OpenInterval } from './open-interval';
|
|
13
13
|
/**
|
|
14
14
|
* Business days and hours when the destination is open for deliveries.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface BusinessHours
|
|
17
15
|
*/
|
|
18
16
|
export interface BusinessHours {
|
|
19
17
|
/**
|
|
20
18
|
* Day of the week.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof BusinessHours
|
|
23
19
|
*/
|
|
24
20
|
'DayOfWeek'?: BusinessHoursDayOfWeekEnum;
|
|
25
21
|
/**
|
|
26
22
|
* Time window during the day when the business is open.
|
|
27
|
-
* @type {Array<OpenInterval>}
|
|
28
|
-
* @memberof BusinessHours
|
|
29
23
|
*/
|
|
30
24
|
'OpenIntervals'?: Array<OpenInterval>;
|
|
31
25
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Buyer information for custom orders from the Amazon Custom program.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface BuyerCustomizedInfoDetail
|
|
16
14
|
*/
|
|
17
15
|
export interface BuyerCustomizedInfoDetail {
|
|
18
16
|
/**
|
|
19
17
|
* The location of a ZIP file containing Amazon Custom data.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof BuyerCustomizedInfoDetail
|
|
22
18
|
*/
|
|
23
19
|
'CustomizedURL'?: string;
|
|
24
20
|
}
|
|
@@ -12,38 +12,23 @@
|
|
|
12
12
|
import type { BuyerTaxInfo } from './buyer-tax-info';
|
|
13
13
|
/**
|
|
14
14
|
* Buyer information.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface BuyerInfo
|
|
17
15
|
*/
|
|
18
16
|
export interface BuyerInfo {
|
|
19
17
|
/**
|
|
20
18
|
* The anonymized email address of the buyer.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof BuyerInfo
|
|
23
19
|
*/
|
|
24
20
|
'BuyerEmail'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* The buyer name or the recipient name.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof BuyerInfo
|
|
29
23
|
*/
|
|
30
24
|
'BuyerName'?: string;
|
|
31
25
|
/**
|
|
32
26
|
* The county of the buyer. **Note**: This attribute is only available in the Brazil marketplace.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof BuyerInfo
|
|
35
27
|
*/
|
|
36
28
|
'BuyerCounty'?: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {BuyerTaxInfo}
|
|
40
|
-
* @memberof BuyerInfo
|
|
41
|
-
*/
|
|
42
29
|
'BuyerTaxInfo'?: BuyerTaxInfo;
|
|
43
30
|
/**
|
|
44
31
|
* The purchase order (PO) number entered by the buyer at checkout. Only returned for orders where the buyer entered a PO number at checkout.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof BuyerInfo
|
|
47
32
|
*/
|
|
48
33
|
'PurchaseOrderNumber'?: string;
|
|
49
34
|
}
|
|
@@ -11,20 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Information about whether or not a buyer requested cancellation.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface BuyerRequestedCancel
|
|
16
14
|
*/
|
|
17
15
|
export interface BuyerRequestedCancel {
|
|
18
16
|
/**
|
|
19
17
|
* Indicate whether the buyer has requested cancellation. **Possible Values**: `true`, `false`.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof BuyerRequestedCancel
|
|
22
18
|
*/
|
|
23
19
|
'IsBuyerRequestedCancel'?: string;
|
|
24
20
|
/**
|
|
25
21
|
* The reason that the buyer requested cancellation.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof BuyerRequestedCancel
|
|
28
22
|
*/
|
|
29
23
|
'BuyerCancelReason'?: string;
|
|
30
24
|
}
|
|
@@ -12,26 +12,18 @@
|
|
|
12
12
|
import type { TaxClassification } from './tax-classification';
|
|
13
13
|
/**
|
|
14
14
|
* Tax information about the buyer.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface BuyerTaxInfo
|
|
17
15
|
*/
|
|
18
16
|
export interface BuyerTaxInfo {
|
|
19
17
|
/**
|
|
20
18
|
* The legal name of the company.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof BuyerTaxInfo
|
|
23
19
|
*/
|
|
24
20
|
'CompanyLegalName'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* The country or region imposing the tax.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof BuyerTaxInfo
|
|
29
23
|
*/
|
|
30
24
|
'TaxingRegion'?: string;
|
|
31
25
|
/**
|
|
32
26
|
* A list of tax classifications that apply to the order.
|
|
33
|
-
* @type {Array<TaxClassification>}
|
|
34
|
-
* @memberof BuyerTaxInfo
|
|
35
27
|
*/
|
|
36
28
|
'TaxClassifications'?: Array<TaxClassification>;
|
|
37
29
|
}
|
|
@@ -11,32 +11,22 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Contains the business invoice tax information. Available only in the TR marketplace.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface BuyerTaxInformation
|
|
16
14
|
*/
|
|
17
15
|
export interface BuyerTaxInformation {
|
|
18
16
|
/**
|
|
19
17
|
* Business buyer\'s company legal name.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof BuyerTaxInformation
|
|
22
18
|
*/
|
|
23
19
|
'BuyerLegalCompanyName'?: string;
|
|
24
20
|
/**
|
|
25
21
|
* Business buyer\'s address.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof BuyerTaxInformation
|
|
28
22
|
*/
|
|
29
23
|
'BuyerBusinessAddress'?: string;
|
|
30
24
|
/**
|
|
31
25
|
* Business buyer\'s tax registration ID.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof BuyerTaxInformation
|
|
34
26
|
*/
|
|
35
27
|
'BuyerTaxRegistrationId'?: string;
|
|
36
28
|
/**
|
|
37
29
|
* Business buyer\'s tax office.
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof BuyerTaxInformation
|
|
40
30
|
*/
|
|
41
31
|
'BuyerTaxOffice'?: string;
|
|
42
32
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* The error response schema for the `confirmShipment` operation.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ConfirmShipmentErrorResponse
|
|
16
14
|
*/
|
|
17
15
|
export interface ConfirmShipmentErrorResponse {
|
|
18
16
|
/**
|
|
19
17
|
* A list of error responses returned when a request is unsuccessful.
|
|
20
|
-
* @type {Array<Error>}
|
|
21
|
-
* @memberof ConfirmShipmentErrorResponse
|
|
22
18
|
*/
|
|
23
19
|
'errors'?: Array<Error>;
|
|
24
20
|
}
|
|
@@ -11,26 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* A single order item.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ConfirmShipmentOrderItem
|
|
16
14
|
*/
|
|
17
15
|
export interface ConfirmShipmentOrderItem {
|
|
18
16
|
/**
|
|
19
17
|
* The order item\'s unique identifier.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ConfirmShipmentOrderItem
|
|
22
18
|
*/
|
|
23
19
|
'orderItemId': string;
|
|
24
20
|
/**
|
|
25
21
|
* The item\'s quantity.
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof ConfirmShipmentOrderItem
|
|
28
22
|
*/
|
|
29
23
|
'quantity': number;
|
|
30
24
|
/**
|
|
31
25
|
* A list of order items.
|
|
32
|
-
* @type {Array<string>}
|
|
33
|
-
* @memberof ConfirmShipmentOrderItem
|
|
34
26
|
*/
|
|
35
27
|
'transparencyCodes'?: Array<string>;
|
|
36
28
|
}
|
|
@@ -12,26 +12,15 @@
|
|
|
12
12
|
import type { PackageDetail } from './package-detail';
|
|
13
13
|
/**
|
|
14
14
|
* The request schema for an shipment confirmation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ConfirmShipmentRequest
|
|
17
15
|
*/
|
|
18
16
|
export interface ConfirmShipmentRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {PackageDetail}
|
|
22
|
-
* @memberof ConfirmShipmentRequest
|
|
23
|
-
*/
|
|
24
17
|
'packageDetail': PackageDetail;
|
|
25
18
|
/**
|
|
26
19
|
* The COD collection method (only supported in the JP marketplace).
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof ConfirmShipmentRequest
|
|
29
20
|
*/
|
|
30
21
|
'codCollectionMethod'?: ConfirmShipmentRequestCodCollectionMethodEnum;
|
|
31
22
|
/**
|
|
32
23
|
* The unobfuscated marketplace identifier.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof ConfirmShipmentRequest
|
|
35
24
|
*/
|
|
36
25
|
'marketplaceId': string;
|
|
37
26
|
}
|
|
@@ -13,32 +13,19 @@ import type { OtherDeliveryAttributes } from './other-delivery-attributes';
|
|
|
13
13
|
import type { PreferredDeliveryTime } from './preferred-delivery-time';
|
|
14
14
|
/**
|
|
15
15
|
* Contains all of the delivery instructions provided by the customer for the shipping address.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface DeliveryPreferences
|
|
18
16
|
*/
|
|
19
17
|
export interface DeliveryPreferences {
|
|
20
18
|
/**
|
|
21
19
|
* Drop-off location selected by the customer.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof DeliveryPreferences
|
|
24
20
|
*/
|
|
25
21
|
'DropOffLocation'?: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {PreferredDeliveryTime}
|
|
29
|
-
* @memberof DeliveryPreferences
|
|
30
|
-
*/
|
|
31
22
|
'PreferredDeliveryTime'?: PreferredDeliveryTime;
|
|
32
23
|
/**
|
|
33
24
|
* Enumerated list of miscellaneous delivery attributes associated with the shipping address.
|
|
34
|
-
* @type {Array<OtherDeliveryAttributes>}
|
|
35
|
-
* @memberof DeliveryPreferences
|
|
36
25
|
*/
|
|
37
26
|
'OtherAttributes'?: Array<OtherDeliveryAttributes>;
|
|
38
27
|
/**
|
|
39
28
|
* Building instructions, nearby landmark or navigation instructions.
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof DeliveryPreferences
|
|
42
29
|
*/
|
|
43
30
|
'AddressInstructions'?: string;
|
|
44
31
|
}
|