@sp-api-sdk/easy-ship-api-2022-03-23 4.2.3 → 4.2.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/api-model/api/easy-ship-api.js +0 -11
- 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/code.js +0 -2
- package/dist/cjs/api-model/models/handover-method.js +0 -2
- package/dist/cjs/api-model/models/label-format.js +0 -2
- package/dist/cjs/api-model/models/package-status.js +0 -2
- package/dist/cjs/api-model/models/unit-of-length.js +0 -2
- package/dist/cjs/api-model/models/unit-of-weight.js +0 -2
- package/dist/es/api-model/api/easy-ship-api.js +0 -11
- 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/code.js +0 -2
- package/dist/es/api-model/models/handover-method.js +0 -2
- package/dist/es/api-model/models/label-format.js +0 -2
- package/dist/es/api-model/models/package-status.js +0 -2
- package/dist/es/api-model/models/unit-of-length.js +0 -2
- package/dist/es/api-model/models/unit-of-weight.js +0 -2
- package/dist/types/api-model/api/easy-ship-api.d.ts +0 -33
- 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/code.d.ts +0 -2
- package/dist/types/api-model/models/create-scheduled-package-request.d.ts +0 -11
- package/dist/types/api-model/models/create-scheduled-packages-request.d.ts +0 -11
- package/dist/types/api-model/models/create-scheduled-packages-response.d.ts +0 -8
- package/dist/types/api-model/models/dimensions.d.ts +0 -15
- package/dist/types/api-model/models/error-list.d.ts +0 -4
- package/dist/types/api-model/models/handover-method.d.ts +0 -2
- package/dist/types/api-model/models/invoice-data.d.ts +0 -6
- package/dist/types/api-model/models/item.d.ts +0 -6
- package/dist/types/api-model/models/label-format.d.ts +0 -2
- package/dist/types/api-model/models/list-handover-slots-request.d.ts +0 -16
- package/dist/types/api-model/models/list-handover-slots-response.d.ts +0 -6
- package/dist/types/api-model/models/model-error.d.ts +0 -8
- package/dist/types/api-model/models/order-schedule-details.d.ts +0 -9
- package/dist/types/api-model/models/package-details.d.ts +0 -11
- package/dist/types/api-model/models/package-status.d.ts +0 -2
- package/dist/types/api-model/models/package.d.ts +0 -41
- package/dist/types/api-model/models/packages.d.ts +0 -4
- package/dist/types/api-model/models/rejected-order.d.ts +0 -9
- package/dist/types/api-model/models/scheduled-package-id.d.ts +0 -6
- package/dist/types/api-model/models/time-slot.d.ts +0 -13
- package/dist/types/api-model/models/tracking-details.d.ts +0 -4
- package/dist/types/api-model/models/unit-of-length.d.ts +0 -2
- package/dist/types/api-model/models/unit-of-weight.d.ts +0 -2
- package/dist/types/api-model/models/update-package-details.d.ts +0 -12
- package/dist/types/api-model/models/update-scheduled-packages-request.d.ts +0 -6
- package/dist/types/api-model/models/weight.d.ts +0 -9
- package/package.json +25 -4
|
@@ -23,7 +23,6 @@ import type { Packages } from '../models';
|
|
|
23
23
|
import type { UpdateScheduledPackagesRequest } from '../models';
|
|
24
24
|
/**
|
|
25
25
|
* EasyShipApi - axios parameter creator
|
|
26
|
-
* @export
|
|
27
26
|
*/
|
|
28
27
|
export declare const EasyShipApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
29
28
|
/**
|
|
@@ -65,7 +64,6 @@ export declare const EasyShipApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
65
64
|
};
|
|
66
65
|
/**
|
|
67
66
|
* EasyShipApi - functional programming interface
|
|
68
|
-
* @export
|
|
69
67
|
*/
|
|
70
68
|
export declare const EasyShipApiFp: (configuration?: Configuration) => {
|
|
71
69
|
/**
|
|
@@ -107,7 +105,6 @@ export declare const EasyShipApiFp: (configuration?: Configuration) => {
|
|
|
107
105
|
};
|
|
108
106
|
/**
|
|
109
107
|
* EasyShipApi - factory interface
|
|
110
|
-
* @export
|
|
111
108
|
*/
|
|
112
109
|
export declare const EasyShipApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
113
110
|
/**
|
|
@@ -148,80 +145,55 @@ export declare const EasyShipApiFactory: (configuration?: Configuration, basePat
|
|
|
148
145
|
};
|
|
149
146
|
/**
|
|
150
147
|
* Request parameters for createScheduledPackage operation in EasyShipApi.
|
|
151
|
-
* @export
|
|
152
|
-
* @interface EasyShipApiCreateScheduledPackageRequest
|
|
153
148
|
*/
|
|
154
149
|
export interface EasyShipApiCreateScheduledPackageRequest {
|
|
155
150
|
/**
|
|
156
151
|
* The request schema for the `createScheduledPackage` operation.
|
|
157
|
-
* @type {CreateScheduledPackageRequest}
|
|
158
|
-
* @memberof EasyShipApiCreateScheduledPackage
|
|
159
152
|
*/
|
|
160
153
|
readonly createScheduledPackageRequest: CreateScheduledPackageRequest;
|
|
161
154
|
}
|
|
162
155
|
/**
|
|
163
156
|
* Request parameters for createScheduledPackageBulk operation in EasyShipApi.
|
|
164
|
-
* @export
|
|
165
|
-
* @interface EasyShipApiCreateScheduledPackageBulkRequest
|
|
166
157
|
*/
|
|
167
158
|
export interface EasyShipApiCreateScheduledPackageBulkRequest {
|
|
168
159
|
/**
|
|
169
160
|
* The request schema for the `createScheduledPackageBulk` operation.
|
|
170
|
-
* @type {CreateScheduledPackagesRequest}
|
|
171
|
-
* @memberof EasyShipApiCreateScheduledPackageBulk
|
|
172
161
|
*/
|
|
173
162
|
readonly createScheduledPackagesRequest: CreateScheduledPackagesRequest;
|
|
174
163
|
}
|
|
175
164
|
/**
|
|
176
165
|
* Request parameters for getScheduledPackage operation in EasyShipApi.
|
|
177
|
-
* @export
|
|
178
|
-
* @interface EasyShipApiGetScheduledPackageRequest
|
|
179
166
|
*/
|
|
180
167
|
export interface EasyShipApiGetScheduledPackageRequest {
|
|
181
168
|
/**
|
|
182
169
|
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
183
|
-
* @type {string}
|
|
184
|
-
* @memberof EasyShipApiGetScheduledPackage
|
|
185
170
|
*/
|
|
186
171
|
readonly amazonOrderId: string;
|
|
187
172
|
/**
|
|
188
173
|
* An identifier for the marketplace in which the seller is selling.
|
|
189
|
-
* @type {string}
|
|
190
|
-
* @memberof EasyShipApiGetScheduledPackage
|
|
191
174
|
*/
|
|
192
175
|
readonly marketplaceId: string;
|
|
193
176
|
}
|
|
194
177
|
/**
|
|
195
178
|
* Request parameters for listHandoverSlots operation in EasyShipApi.
|
|
196
|
-
* @export
|
|
197
|
-
* @interface EasyShipApiListHandoverSlotsRequest
|
|
198
179
|
*/
|
|
199
180
|
export interface EasyShipApiListHandoverSlotsRequest {
|
|
200
181
|
/**
|
|
201
182
|
* The request schema for the `listHandoverSlots` operation.
|
|
202
|
-
* @type {ListHandoverSlotsRequest}
|
|
203
|
-
* @memberof EasyShipApiListHandoverSlots
|
|
204
183
|
*/
|
|
205
184
|
readonly listHandoverSlotsRequest?: ListHandoverSlotsRequest;
|
|
206
185
|
}
|
|
207
186
|
/**
|
|
208
187
|
* Request parameters for updateScheduledPackages operation in EasyShipApi.
|
|
209
|
-
* @export
|
|
210
|
-
* @interface EasyShipApiUpdateScheduledPackagesRequest
|
|
211
188
|
*/
|
|
212
189
|
export interface EasyShipApiUpdateScheduledPackagesRequest {
|
|
213
190
|
/**
|
|
214
191
|
* The request schema for the `updateScheduledPackages` operation.
|
|
215
|
-
* @type {UpdateScheduledPackagesRequest}
|
|
216
|
-
* @memberof EasyShipApiUpdateScheduledPackages
|
|
217
192
|
*/
|
|
218
193
|
readonly updateScheduledPackagesRequest?: UpdateScheduledPackagesRequest;
|
|
219
194
|
}
|
|
220
195
|
/**
|
|
221
196
|
* EasyShipApi - object-oriented interface
|
|
222
|
-
* @export
|
|
223
|
-
* @class EasyShipApi
|
|
224
|
-
* @extends {BaseAPI}
|
|
225
197
|
*/
|
|
226
198
|
export declare class EasyShipApi extends BaseAPI {
|
|
227
199
|
/**
|
|
@@ -229,7 +201,6 @@ export declare class EasyShipApi extends BaseAPI {
|
|
|
229
201
|
* @param {EasyShipApiCreateScheduledPackageRequest} requestParameters Request parameters.
|
|
230
202
|
* @param {*} [options] Override http request option.
|
|
231
203
|
* @throws {RequiredError}
|
|
232
|
-
* @memberof EasyShipApi
|
|
233
204
|
*/
|
|
234
205
|
createScheduledPackage(requestParameters: EasyShipApiCreateScheduledPackageRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Package, any>>;
|
|
235
206
|
/**
|
|
@@ -237,7 +208,6 @@ export declare class EasyShipApi extends BaseAPI {
|
|
|
237
208
|
* @param {EasyShipApiCreateScheduledPackageBulkRequest} requestParameters Request parameters.
|
|
238
209
|
* @param {*} [options] Override http request option.
|
|
239
210
|
* @throws {RequiredError}
|
|
240
|
-
* @memberof EasyShipApi
|
|
241
211
|
*/
|
|
242
212
|
createScheduledPackageBulk(requestParameters: EasyShipApiCreateScheduledPackageBulkRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateScheduledPackagesResponse, any>>;
|
|
243
213
|
/**
|
|
@@ -245,7 +215,6 @@ export declare class EasyShipApi extends BaseAPI {
|
|
|
245
215
|
* @param {EasyShipApiGetScheduledPackageRequest} requestParameters Request parameters.
|
|
246
216
|
* @param {*} [options] Override http request option.
|
|
247
217
|
* @throws {RequiredError}
|
|
248
|
-
* @memberof EasyShipApi
|
|
249
218
|
*/
|
|
250
219
|
getScheduledPackage(requestParameters: EasyShipApiGetScheduledPackageRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Package, any>>;
|
|
251
220
|
/**
|
|
@@ -253,7 +222,6 @@ export declare class EasyShipApi extends BaseAPI {
|
|
|
253
222
|
* @param {EasyShipApiListHandoverSlotsRequest} requestParameters Request parameters.
|
|
254
223
|
* @param {*} [options] Override http request option.
|
|
255
224
|
* @throws {RequiredError}
|
|
256
|
-
* @memberof EasyShipApi
|
|
257
225
|
*/
|
|
258
226
|
listHandoverSlots(requestParameters?: EasyShipApiListHandoverSlotsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListHandoverSlotsResponse, any>>;
|
|
259
227
|
/**
|
|
@@ -261,7 +229,6 @@ export declare class EasyShipApi extends BaseAPI {
|
|
|
261
229
|
* @param {EasyShipApiUpdateScheduledPackagesRequest} requestParameters Request parameters.
|
|
262
230
|
* @param {*} [options] Override http request option.
|
|
263
231
|
* @throws {RequiredError}
|
|
264
|
-
* @memberof EasyShipApi
|
|
265
232
|
*/
|
|
266
233
|
updateScheduledPackages(requestParameters?: EasyShipApiUpdateScheduledPackagesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Packages, any>>;
|
|
267
234
|
}
|
|
@@ -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,8 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* An error code that identifies the type of error that occurred. The error codes listed below are specific to the Easy Ship section.
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
14
|
*/
|
|
17
15
|
export declare const Code: {
|
|
18
16
|
readonly InvalidInput: "InvalidInput";
|
|
@@ -12,26 +12,15 @@
|
|
|
12
12
|
import type { PackageDetails } from './package-details';
|
|
13
13
|
/**
|
|
14
14
|
* The request schema for the `createScheduledPackage` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateScheduledPackageRequest
|
|
17
15
|
*/
|
|
18
16
|
export interface CreateScheduledPackageRequest {
|
|
19
17
|
/**
|
|
20
18
|
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof CreateScheduledPackageRequest
|
|
23
19
|
*/
|
|
24
20
|
'amazonOrderId': string;
|
|
25
21
|
/**
|
|
26
22
|
* A string of up to 255 characters.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof CreateScheduledPackageRequest
|
|
29
23
|
*/
|
|
30
24
|
'marketplaceId': string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {PackageDetails}
|
|
34
|
-
* @memberof CreateScheduledPackageRequest
|
|
35
|
-
*/
|
|
36
25
|
'packageDetails': PackageDetails;
|
|
37
26
|
}
|
|
@@ -13,26 +13,15 @@ import type { LabelFormat } from './label-format';
|
|
|
13
13
|
import type { OrderScheduleDetails } from './order-schedule-details';
|
|
14
14
|
/**
|
|
15
15
|
* The request body for the POST /easyShip/2022-03-23/packages/bulk API.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface CreateScheduledPackagesRequest
|
|
18
16
|
*/
|
|
19
17
|
export interface CreateScheduledPackagesRequest {
|
|
20
18
|
/**
|
|
21
19
|
* A string of up to 255 characters.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof CreateScheduledPackagesRequest
|
|
24
20
|
*/
|
|
25
21
|
'marketplaceId': string;
|
|
26
22
|
/**
|
|
27
23
|
* An array allowing users to specify orders to be scheduled.
|
|
28
|
-
* @type {Array<OrderScheduleDetails>}
|
|
29
|
-
* @memberof CreateScheduledPackagesRequest
|
|
30
24
|
*/
|
|
31
25
|
'orderScheduleDetailsList': Array<OrderScheduleDetails>;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {LabelFormat}
|
|
35
|
-
* @memberof CreateScheduledPackagesRequest
|
|
36
|
-
*/
|
|
37
26
|
'labelFormat': LabelFormat;
|
|
38
27
|
}
|
|
@@ -13,26 +13,18 @@ import type { Package } from './package';
|
|
|
13
13
|
import type { RejectedOrder } from './rejected-order';
|
|
14
14
|
/**
|
|
15
15
|
* The response schema for the bulk scheduling API. It returns by the bulk scheduling API containing an array of the scheduled packtages, an optional list of orders we couldn\'t schedule with the reason, and a pre-signed URL for a ZIP file containing the associated shipping labels plus the documents enabled for your marketplace.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface CreateScheduledPackagesResponse
|
|
18
16
|
*/
|
|
19
17
|
export interface CreateScheduledPackagesResponse {
|
|
20
18
|
/**
|
|
21
19
|
* A list of packages. Refer to the `Package` object.
|
|
22
|
-
* @type {Array<Package>}
|
|
23
|
-
* @memberof CreateScheduledPackagesResponse
|
|
24
20
|
*/
|
|
25
21
|
'scheduledPackages'?: Array<Package>;
|
|
26
22
|
/**
|
|
27
23
|
* A list of orders we couldn\'t scheduled on your behalf. Each element contains the reason and details on the error.
|
|
28
|
-
* @type {Array<RejectedOrder>}
|
|
29
|
-
* @memberof CreateScheduledPackagesResponse
|
|
30
24
|
*/
|
|
31
25
|
'rejectedOrders'?: Array<RejectedOrder>;
|
|
32
26
|
/**
|
|
33
27
|
* A pre-signed URL for the zip document containing the shipping labels and the documents enabled for your marketplace.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof CreateScheduledPackagesResponse
|
|
36
28
|
*/
|
|
37
29
|
'printableDocumentsUrl'?: string;
|
|
38
30
|
}
|
|
@@ -12,38 +12,23 @@
|
|
|
12
12
|
import type { UnitOfLength } from './unit-of-length';
|
|
13
13
|
/**
|
|
14
14
|
* The dimensions of the scheduled package.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Dimensions
|
|
17
15
|
*/
|
|
18
16
|
export interface Dimensions {
|
|
19
17
|
/**
|
|
20
18
|
* The numerical value of the specified dimension.
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof Dimensions
|
|
23
19
|
*/
|
|
24
20
|
'length'?: number;
|
|
25
21
|
/**
|
|
26
22
|
* The numerical value of the specified dimension.
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof Dimensions
|
|
29
23
|
*/
|
|
30
24
|
'width'?: number;
|
|
31
25
|
/**
|
|
32
26
|
* The numerical value of the specified dimension.
|
|
33
|
-
* @type {number}
|
|
34
|
-
* @memberof Dimensions
|
|
35
27
|
*/
|
|
36
28
|
'height'?: number;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {UnitOfLength}
|
|
40
|
-
* @memberof Dimensions
|
|
41
|
-
*/
|
|
42
29
|
'unit'?: UnitOfLength;
|
|
43
30
|
/**
|
|
44
31
|
* A string of up to 255 characters.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof Dimensions
|
|
47
32
|
*/
|
|
48
33
|
'identifier'?: string;
|
|
49
34
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* A list of error responses returned when a request is unsuccessful.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ErrorList
|
|
16
14
|
*/
|
|
17
15
|
export interface ErrorList {
|
|
18
16
|
/**
|
|
19
17
|
* A list of error responses returned when a request is unsuccessful.
|
|
20
|
-
* @type {Array<Error>}
|
|
21
|
-
* @memberof ErrorList
|
|
22
18
|
*/
|
|
23
19
|
'errors': Array<Error>;
|
|
24
20
|
}
|
|
@@ -11,20 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Invoice number and date.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface InvoiceData
|
|
16
14
|
*/
|
|
17
15
|
export interface InvoiceData {
|
|
18
16
|
/**
|
|
19
17
|
* A string of up to 255 characters.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof InvoiceData
|
|
22
18
|
*/
|
|
23
19
|
'invoiceNumber': string;
|
|
24
20
|
/**
|
|
25
21
|
* A datetime value in ISO 8601 format.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof InvoiceData
|
|
28
22
|
*/
|
|
29
23
|
'invoiceDate'?: string;
|
|
30
24
|
}
|
|
@@ -11,20 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Item identifier and serial number information.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Item
|
|
16
14
|
*/
|
|
17
15
|
export interface Item {
|
|
18
16
|
/**
|
|
19
17
|
* The Amazon-defined order item identifier.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Item
|
|
22
18
|
*/
|
|
23
19
|
'orderItemId'?: string;
|
|
24
20
|
/**
|
|
25
21
|
* A list of serial numbers for the items associated with the `OrderItemId` value.
|
|
26
|
-
* @type {Array<string>}
|
|
27
|
-
* @memberof Item
|
|
28
22
|
*/
|
|
29
23
|
'orderItemSerialNumbers'?: Array<string>;
|
|
30
24
|
}
|
|
@@ -13,32 +13,16 @@ import type { Dimensions } from './dimensions';
|
|
|
13
13
|
import type { Weight } from './weight';
|
|
14
14
|
/**
|
|
15
15
|
* The request schema for the `listHandoverSlots` operation.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface ListHandoverSlotsRequest
|
|
18
16
|
*/
|
|
19
17
|
export interface ListHandoverSlotsRequest {
|
|
20
18
|
/**
|
|
21
19
|
* A string of up to 255 characters.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof ListHandoverSlotsRequest
|
|
24
20
|
*/
|
|
25
21
|
'marketplaceId': string;
|
|
26
22
|
/**
|
|
27
23
|
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof ListHandoverSlotsRequest
|
|
30
24
|
*/
|
|
31
25
|
'amazonOrderId': string;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {Dimensions}
|
|
35
|
-
* @memberof ListHandoverSlotsRequest
|
|
36
|
-
*/
|
|
37
26
|
'packageDimensions': Dimensions;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {Weight}
|
|
41
|
-
* @memberof ListHandoverSlotsRequest
|
|
42
|
-
*/
|
|
43
27
|
'packageWeight': Weight;
|
|
44
28
|
}
|
|
@@ -12,20 +12,14 @@
|
|
|
12
12
|
import type { TimeSlot } from './time-slot';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema for the `listHandoverSlots` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ListHandoverSlotsResponse
|
|
17
15
|
*/
|
|
18
16
|
export interface ListHandoverSlotsResponse {
|
|
19
17
|
/**
|
|
20
18
|
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof ListHandoverSlotsResponse
|
|
23
19
|
*/
|
|
24
20
|
'amazonOrderId': string;
|
|
25
21
|
/**
|
|
26
22
|
* A list of time slots.
|
|
27
|
-
* @type {Array<TimeSlot>}
|
|
28
|
-
* @memberof ListHandoverSlotsResponse
|
|
29
23
|
*/
|
|
30
24
|
'timeSlots': Array<TimeSlot>;
|
|
31
25
|
}
|
|
@@ -11,26 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Error response returned when the request is unsuccessful.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ModelError
|
|
16
14
|
*/
|
|
17
15
|
export interface ModelError {
|
|
18
16
|
/**
|
|
19
17
|
* An error code that identifies the type of error that occurred.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ModelError
|
|
22
18
|
*/
|
|
23
19
|
'code': string;
|
|
24
20
|
/**
|
|
25
21
|
* A message that describes the error condition.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ModelError
|
|
28
22
|
*/
|
|
29
23
|
'message': string;
|
|
30
24
|
/**
|
|
31
25
|
* Additional details that can help the caller understand or fix the issue.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ModelError
|
|
34
26
|
*/
|
|
35
27
|
'details'?: string;
|
|
36
28
|
}
|
|
@@ -12,20 +12,11 @@
|
|
|
12
12
|
import type { PackageDetails } from './package-details';
|
|
13
13
|
/**
|
|
14
14
|
* This object allows users to specify an order to be scheduled. Only the amazonOrderId is required.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface OrderScheduleDetails
|
|
17
15
|
*/
|
|
18
16
|
export interface OrderScheduleDetails {
|
|
19
17
|
/**
|
|
20
18
|
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof OrderScheduleDetails
|
|
23
19
|
*/
|
|
24
20
|
'amazonOrderId': string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {PackageDetails}
|
|
28
|
-
* @memberof OrderScheduleDetails
|
|
29
|
-
*/
|
|
30
21
|
'packageDetails'?: PackageDetails;
|
|
31
22
|
}
|
|
@@ -13,26 +13,15 @@ import type { Item } from './item';
|
|
|
13
13
|
import type { TimeSlot } from './time-slot';
|
|
14
14
|
/**
|
|
15
15
|
* Package details. Includes `packageItems`, `packageTimeSlot`, and `packageIdentifier`.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PackageDetails
|
|
18
16
|
*/
|
|
19
17
|
export interface PackageDetails {
|
|
20
18
|
/**
|
|
21
19
|
* A list of items contained in the package.
|
|
22
|
-
* @type {Array<Item>}
|
|
23
|
-
* @memberof PackageDetails
|
|
24
20
|
*/
|
|
25
21
|
'packageItems'?: Array<Item>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {TimeSlot}
|
|
29
|
-
* @memberof PackageDetails
|
|
30
|
-
*/
|
|
31
22
|
'packageTimeSlot': TimeSlot;
|
|
32
23
|
/**
|
|
33
24
|
* Optional seller-created identifier that is printed on the shipping label to help the seller identify the package.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof PackageDetails
|
|
36
25
|
*/
|
|
37
26
|
'packageIdentifier'?: string;
|
|
38
27
|
}
|