@sp-api-sdk/easy-ship-api-2022-03-23 4.3.12 → 5.0.0
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/README.md +4 -4
- package/dist/index.cjs +642 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{types/api-model/api/easy-ship-api.d.ts → index.d.cts} +819 -26
- package/dist/index.d.ts +1027 -0
- package/dist/index.js +594 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -12
- package/dist/cjs/api-model/api/easy-ship-api.js +0 -361
- package/dist/cjs/api-model/api.js +0 -30
- package/dist/cjs/api-model/base.js +0 -52
- package/dist/cjs/api-model/common.js +0 -123
- package/dist/cjs/api-model/configuration.js +0 -98
- package/dist/cjs/api-model/index.js +0 -32
- package/dist/cjs/api-model/models/code.js +0 -32
- package/dist/cjs/api-model/models/create-scheduled-package-request.js +0 -15
- package/dist/cjs/api-model/models/create-scheduled-packages-request.js +0 -15
- package/dist/cjs/api-model/models/create-scheduled-packages-response.js +0 -15
- package/dist/cjs/api-model/models/dimensions.js +0 -15
- package/dist/cjs/api-model/models/error-list.js +0 -15
- package/dist/cjs/api-model/models/handover-method.js +0 -23
- package/dist/cjs/api-model/models/index.js +0 -43
- package/dist/cjs/api-model/models/invoice-data.js +0 -15
- package/dist/cjs/api-model/models/item.js +0 -15
- package/dist/cjs/api-model/models/label-format.js +0 -23
- package/dist/cjs/api-model/models/list-handover-slots-request.js +0 -15
- package/dist/cjs/api-model/models/list-handover-slots-response.js +0 -15
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/order-schedule-details.js +0 -15
- package/dist/cjs/api-model/models/package-details.js +0 -15
- package/dist/cjs/api-model/models/package-status.js +0 -33
- package/dist/cjs/api-model/models/package.js +0 -15
- package/dist/cjs/api-model/models/packages.js +0 -15
- package/dist/cjs/api-model/models/rejected-order.js +0 -15
- package/dist/cjs/api-model/models/scheduled-package-id.js +0 -15
- package/dist/cjs/api-model/models/time-slot.js +0 -15
- package/dist/cjs/api-model/models/tracking-details.js +0 -15
- package/dist/cjs/api-model/models/unit-of-length.js +0 -22
- package/dist/cjs/api-model/models/unit-of-weight.js +0 -23
- package/dist/cjs/api-model/models/update-package-details.js +0 -15
- package/dist/cjs/api-model/models/update-scheduled-packages-request.js +0 -15
- package/dist/cjs/api-model/models/weight.js +0 -15
- package/dist/cjs/client.js +0 -49
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/easy-ship-api.js +0 -351
- package/dist/es/api-model/api.js +0 -14
- package/dist/es/api-model/base.js +0 -44
- package/dist/es/api-model/common.js +0 -110
- package/dist/es/api-model/configuration.js +0 -94
- package/dist/es/api-model/index.js +0 -16
- package/dist/es/api-model/models/code.js +0 -29
- package/dist/es/api-model/models/create-scheduled-package-request.js +0 -14
- package/dist/es/api-model/models/create-scheduled-packages-request.js +0 -14
- package/dist/es/api-model/models/create-scheduled-packages-response.js +0 -14
- package/dist/es/api-model/models/dimensions.js +0 -14
- package/dist/es/api-model/models/error-list.js +0 -14
- package/dist/es/api-model/models/handover-method.js +0 -20
- package/dist/es/api-model/models/index.js +0 -27
- package/dist/es/api-model/models/invoice-data.js +0 -14
- package/dist/es/api-model/models/item.js +0 -14
- package/dist/es/api-model/models/label-format.js +0 -20
- package/dist/es/api-model/models/list-handover-slots-request.js +0 -14
- package/dist/es/api-model/models/list-handover-slots-response.js +0 -14
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/order-schedule-details.js +0 -14
- package/dist/es/api-model/models/package-details.js +0 -14
- package/dist/es/api-model/models/package-status.js +0 -30
- package/dist/es/api-model/models/package.js +0 -14
- package/dist/es/api-model/models/packages.js +0 -14
- package/dist/es/api-model/models/rejected-order.js +0 -14
- package/dist/es/api-model/models/scheduled-package-id.js +0 -14
- package/dist/es/api-model/models/time-slot.js +0 -14
- package/dist/es/api-model/models/tracking-details.js +0 -14
- package/dist/es/api-model/models/unit-of-length.js +0 -19
- package/dist/es/api-model/models/unit-of-weight.js +0 -20
- package/dist/es/api-model/models/update-package-details.js +0 -14
- package/dist/es/api-model/models/update-scheduled-packages-request.js +0 -14
- package/dist/es/api-model/models/weight.js +0 -14
- package/dist/es/client.js +0 -45
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api.d.ts +0 -12
- package/dist/types/api-model/base.d.ts +0 -42
- package/dist/types/api-model/common.d.ts +0 -34
- package/dist/types/api-model/configuration.d.ts +0 -98
- package/dist/types/api-model/index.d.ts +0 -14
- package/dist/types/api-model/models/code.d.ts +0 -28
- package/dist/types/api-model/models/create-scheduled-package-request.d.ts +0 -26
- package/dist/types/api-model/models/create-scheduled-packages-request.d.ts +0 -27
- package/dist/types/api-model/models/create-scheduled-packages-response.d.ts +0 -30
- package/dist/types/api-model/models/dimensions.d.ts +0 -34
- package/dist/types/api-model/models/error-list.d.ts +0 -20
- package/dist/types/api-model/models/handover-method.d.ts +0 -19
- package/dist/types/api-model/models/index.d.ts +0 -27
- package/dist/types/api-model/models/invoice-data.d.ts +0 -24
- package/dist/types/api-model/models/item.d.ts +0 -24
- package/dist/types/api-model/models/label-format.d.ts +0 -19
- package/dist/types/api-model/models/list-handover-slots-request.d.ts +0 -28
- package/dist/types/api-model/models/list-handover-slots-response.d.ts +0 -25
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/order-schedule-details.d.ts +0 -22
- package/dist/types/api-model/models/package-details.d.ts +0 -27
- package/dist/types/api-model/models/package-status.d.ts +0 -29
- package/dist/types/api-model/models/package.d.ts +0 -39
- package/dist/types/api-model/models/packages.d.ts +0 -21
- package/dist/types/api-model/models/rejected-order.d.ts +0 -21
- package/dist/types/api-model/models/scheduled-package-id.d.ts +0 -24
- package/dist/types/api-model/models/time-slot.d.ts +0 -30
- package/dist/types/api-model/models/tracking-details.d.ts +0 -20
- package/dist/types/api-model/models/unit-of-length.d.ts +0 -18
- package/dist/types/api-model/models/unit-of-weight.d.ts +0 -19
- package/dist/types/api-model/models/update-package-details.d.ts +0 -20
- package/dist/types/api-model/models/update-scheduled-packages-request.d.ts +0 -25
- package/dist/types/api-model/models/weight.d.ts +0 -22
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { ClientConfiguration, RateLimit } from '@sp-api-sdk/common';
|
|
2
|
+
import * as axios from 'axios';
|
|
3
|
+
import { AxiosInstance, RawAxiosRequestConfig, AxiosPromise } from 'axios';
|
|
4
|
+
|
|
1
5
|
/**
|
|
2
6
|
* Selling Partner API for Easy Ship
|
|
3
7
|
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
@@ -9,22 +13,804 @@
|
|
|
9
13
|
* https://openapi-generator.tech
|
|
10
14
|
* Do not edit the class manually.
|
|
11
15
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
interface AWSv4Configuration {
|
|
17
|
+
options?: {
|
|
18
|
+
region?: string;
|
|
19
|
+
service?: string;
|
|
20
|
+
};
|
|
21
|
+
credentials?: {
|
|
22
|
+
accessKeyId?: string;
|
|
23
|
+
secretAccessKey?: string;
|
|
24
|
+
sessionToken?: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
interface ConfigurationParameters {
|
|
28
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
|
+
username?: string;
|
|
30
|
+
password?: string;
|
|
31
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
32
|
+
awsv4?: AWSv4Configuration;
|
|
33
|
+
basePath?: string;
|
|
34
|
+
serverIndex?: number;
|
|
35
|
+
baseOptions?: any;
|
|
36
|
+
formDataCtor?: new () => any;
|
|
37
|
+
}
|
|
38
|
+
declare class Configuration {
|
|
39
|
+
/**
|
|
40
|
+
* parameter for apiKey security
|
|
41
|
+
* @param name security name
|
|
42
|
+
*/
|
|
43
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
44
|
+
/**
|
|
45
|
+
* parameter for basic security
|
|
46
|
+
*/
|
|
47
|
+
username?: string;
|
|
48
|
+
/**
|
|
49
|
+
* parameter for basic security
|
|
50
|
+
*/
|
|
51
|
+
password?: string;
|
|
52
|
+
/**
|
|
53
|
+
* parameter for oauth2 security
|
|
54
|
+
* @param name security name
|
|
55
|
+
* @param scopes oauth2 scope
|
|
56
|
+
*/
|
|
57
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
58
|
+
/**
|
|
59
|
+
* parameter for aws4 signature security
|
|
60
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
61
|
+
* @param {string} options.region - aws region
|
|
62
|
+
* @param {string} options.service - name of the service.
|
|
63
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
64
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
65
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
66
|
+
* @memberof Configuration
|
|
67
|
+
*/
|
|
68
|
+
awsv4?: AWSv4Configuration;
|
|
69
|
+
/**
|
|
70
|
+
* override base path
|
|
71
|
+
*/
|
|
72
|
+
basePath?: string;
|
|
73
|
+
/**
|
|
74
|
+
* override server index
|
|
75
|
+
*/
|
|
76
|
+
serverIndex?: number;
|
|
77
|
+
/**
|
|
78
|
+
* base options for axios calls
|
|
79
|
+
*/
|
|
80
|
+
baseOptions?: any;
|
|
81
|
+
/**
|
|
82
|
+
* The FormData constructor that will be used to create multipart form data
|
|
83
|
+
* requests. You can inject this here so that execution environments that
|
|
84
|
+
* do not support the FormData class can still run the generated client.
|
|
85
|
+
*
|
|
86
|
+
* @type {new () => FormData}
|
|
87
|
+
*/
|
|
88
|
+
formDataCtor?: new () => any;
|
|
89
|
+
constructor(param?: ConfigurationParameters);
|
|
90
|
+
/**
|
|
91
|
+
* Check if the given MIME is a JSON MIME.
|
|
92
|
+
* JSON MIME examples:
|
|
93
|
+
* application/json
|
|
94
|
+
* application/json; charset=UTF8
|
|
95
|
+
* APPLICATION/JSON
|
|
96
|
+
* application/vnd.company+json
|
|
97
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
98
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
99
|
+
*/
|
|
100
|
+
isJsonMime(mime: string): boolean;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Selling Partner API for Easy Ship
|
|
105
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
106
|
+
*
|
|
107
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
111
|
+
* https://openapi-generator.tech
|
|
112
|
+
* Do not edit the class manually.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
interface RequestArgs {
|
|
116
|
+
url: string;
|
|
117
|
+
options: RawAxiosRequestConfig;
|
|
118
|
+
}
|
|
119
|
+
declare class BaseAPI {
|
|
120
|
+
protected basePath: string;
|
|
121
|
+
protected axios: AxiosInstance;
|
|
122
|
+
protected configuration: Configuration | undefined;
|
|
123
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Selling Partner API for Easy Ship
|
|
128
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
129
|
+
*
|
|
130
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
131
|
+
*
|
|
132
|
+
*
|
|
133
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
134
|
+
* https://openapi-generator.tech
|
|
135
|
+
* Do not edit the class manually.
|
|
136
|
+
*/
|
|
137
|
+
/**
|
|
138
|
+
* An error code that identifies the type of error that occurred. The error codes listed below are specific to the Easy Ship section.
|
|
139
|
+
*/
|
|
140
|
+
declare const Code: {
|
|
141
|
+
readonly InvalidInput: "InvalidInput";
|
|
142
|
+
readonly InvalidTimeSlotId: "InvalidTimeSlotId";
|
|
143
|
+
readonly ScheduledPackageAlreadyExists: "ScheduledPackageAlreadyExists";
|
|
144
|
+
readonly ScheduleWindowExpired: "ScheduleWindowExpired";
|
|
145
|
+
readonly RetryableAfterGettingNewSlots: "RetryableAfterGettingNewSlots";
|
|
146
|
+
readonly TimeSlotNotAvailable: "TimeSlotNotAvailable";
|
|
147
|
+
readonly ResourceNotFound: "ResourceNotFound";
|
|
148
|
+
readonly InvalidOrderState: "InvalidOrderState";
|
|
149
|
+
readonly RegionNotSupported: "RegionNotSupported";
|
|
150
|
+
readonly OrderNotEligibleForRescheduling: "OrderNotEligibleForRescheduling";
|
|
151
|
+
readonly InternalServerError: "InternalServerError";
|
|
152
|
+
};
|
|
153
|
+
type Code = typeof Code[keyof typeof Code];
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Selling Partner API for Easy Ship
|
|
157
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
158
|
+
*
|
|
159
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
160
|
+
*
|
|
161
|
+
*
|
|
162
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
163
|
+
* https://openapi-generator.tech
|
|
164
|
+
* Do not edit the class manually.
|
|
165
|
+
*/
|
|
166
|
+
/**
|
|
167
|
+
* Item identifier and serial number information.
|
|
168
|
+
*/
|
|
169
|
+
interface Item {
|
|
170
|
+
/**
|
|
171
|
+
* The Amazon-defined order item identifier.
|
|
172
|
+
*/
|
|
173
|
+
'orderItemId'?: string;
|
|
174
|
+
/**
|
|
175
|
+
* A list of serial numbers for the items associated with the `OrderItemId` value.
|
|
176
|
+
*/
|
|
177
|
+
'orderItemSerialNumbers'?: Array<string>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Selling Partner API for Easy Ship
|
|
182
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
183
|
+
*
|
|
184
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
185
|
+
*
|
|
186
|
+
*
|
|
187
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
188
|
+
* https://openapi-generator.tech
|
|
189
|
+
* Do not edit the class manually.
|
|
190
|
+
*/
|
|
191
|
+
/**
|
|
192
|
+
* Identifies the method by which a seller will hand a package over to Amazon Logistics.
|
|
193
|
+
*/
|
|
194
|
+
declare const HandoverMethod: {
|
|
195
|
+
readonly Pickup: "PICKUP";
|
|
196
|
+
readonly Dropoff: "DROPOFF";
|
|
197
|
+
};
|
|
198
|
+
type HandoverMethod = typeof HandoverMethod[keyof typeof HandoverMethod];
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Selling Partner API for Easy Ship
|
|
202
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
203
|
+
*
|
|
204
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
205
|
+
*
|
|
206
|
+
*
|
|
207
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
208
|
+
* https://openapi-generator.tech
|
|
209
|
+
* Do not edit the class manually.
|
|
210
|
+
*/
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* A time window to hand over an Easy Ship package to Amazon Logistics.
|
|
214
|
+
*/
|
|
215
|
+
interface TimeSlot {
|
|
216
|
+
/**
|
|
217
|
+
* A string of up to 255 characters.
|
|
218
|
+
*/
|
|
219
|
+
'slotId': string;
|
|
220
|
+
/**
|
|
221
|
+
* A datetime value in ISO 8601 format.
|
|
222
|
+
*/
|
|
223
|
+
'startTime'?: string;
|
|
224
|
+
/**
|
|
225
|
+
* A datetime value in ISO 8601 format.
|
|
226
|
+
*/
|
|
227
|
+
'endTime'?: string;
|
|
228
|
+
'handoverMethod'?: HandoverMethod;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Selling Partner API for Easy Ship
|
|
233
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
234
|
+
*
|
|
235
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
236
|
+
*
|
|
237
|
+
*
|
|
238
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
239
|
+
* https://openapi-generator.tech
|
|
240
|
+
* Do not edit the class manually.
|
|
241
|
+
*/
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Package details. Includes `packageItems`, `packageTimeSlot`, and `packageIdentifier`.
|
|
245
|
+
*/
|
|
246
|
+
interface PackageDetails {
|
|
247
|
+
/**
|
|
248
|
+
* A list of items contained in the package.
|
|
249
|
+
*/
|
|
250
|
+
'packageItems'?: Array<Item>;
|
|
251
|
+
'packageTimeSlot': TimeSlot;
|
|
252
|
+
/**
|
|
253
|
+
* Optional seller-created identifier that is printed on the shipping label to help the seller identify the package.
|
|
254
|
+
*/
|
|
255
|
+
'packageIdentifier'?: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Selling Partner API for Easy Ship
|
|
260
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
261
|
+
*
|
|
262
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
263
|
+
*
|
|
264
|
+
*
|
|
265
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
266
|
+
* https://openapi-generator.tech
|
|
267
|
+
* Do not edit the class manually.
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* The request schema for the `createScheduledPackage` operation.
|
|
272
|
+
*/
|
|
273
|
+
interface CreateScheduledPackageRequest {
|
|
274
|
+
/**
|
|
275
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
276
|
+
*/
|
|
277
|
+
'amazonOrderId': string;
|
|
278
|
+
/**
|
|
279
|
+
* A string of up to 255 characters.
|
|
280
|
+
*/
|
|
281
|
+
'marketplaceId': string;
|
|
282
|
+
'packageDetails': PackageDetails;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Selling Partner API for Easy Ship
|
|
287
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
288
|
+
*
|
|
289
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
290
|
+
*
|
|
291
|
+
*
|
|
292
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
293
|
+
* https://openapi-generator.tech
|
|
294
|
+
* Do not edit the class manually.
|
|
295
|
+
*/
|
|
296
|
+
/**
|
|
297
|
+
* The file format in which the shipping label will be created.
|
|
298
|
+
*/
|
|
299
|
+
declare const LabelFormat: {
|
|
300
|
+
readonly Pdf: "PDF";
|
|
301
|
+
readonly Zpl: "ZPL";
|
|
302
|
+
};
|
|
303
|
+
type LabelFormat = typeof LabelFormat[keyof typeof LabelFormat];
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Selling Partner API for Easy Ship
|
|
307
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
308
|
+
*
|
|
309
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
310
|
+
*
|
|
311
|
+
*
|
|
312
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
313
|
+
* https://openapi-generator.tech
|
|
314
|
+
* Do not edit the class manually.
|
|
315
|
+
*/
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* This object allows users to specify an order to be scheduled. Only the amazonOrderId is required.
|
|
319
|
+
*/
|
|
320
|
+
interface OrderScheduleDetails {
|
|
321
|
+
/**
|
|
322
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
323
|
+
*/
|
|
324
|
+
'amazonOrderId': string;
|
|
325
|
+
'packageDetails'?: PackageDetails;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Selling Partner API for Easy Ship
|
|
330
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
331
|
+
*
|
|
332
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
333
|
+
*
|
|
334
|
+
*
|
|
335
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
336
|
+
* https://openapi-generator.tech
|
|
337
|
+
* Do not edit the class manually.
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* The request body for the POST /easyShip/2022-03-23/packages/bulk API.
|
|
342
|
+
*/
|
|
343
|
+
interface CreateScheduledPackagesRequest {
|
|
344
|
+
/**
|
|
345
|
+
* A string of up to 255 characters.
|
|
346
|
+
*/
|
|
347
|
+
'marketplaceId': string;
|
|
348
|
+
/**
|
|
349
|
+
* An array allowing users to specify orders to be scheduled.
|
|
350
|
+
*/
|
|
351
|
+
'orderScheduleDetailsList': Array<OrderScheduleDetails>;
|
|
352
|
+
'labelFormat': LabelFormat;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Selling Partner API for Easy Ship
|
|
357
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
358
|
+
*
|
|
359
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
360
|
+
*
|
|
361
|
+
*
|
|
362
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
363
|
+
* https://openapi-generator.tech
|
|
364
|
+
* Do not edit the class manually.
|
|
365
|
+
*/
|
|
366
|
+
/**
|
|
367
|
+
* The unit of measurement used to measure the length.
|
|
368
|
+
*/
|
|
369
|
+
declare const UnitOfLength: {
|
|
370
|
+
readonly Cm: "cm";
|
|
371
|
+
};
|
|
372
|
+
type UnitOfLength = typeof UnitOfLength[keyof typeof UnitOfLength];
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Selling Partner API for Easy Ship
|
|
376
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
377
|
+
*
|
|
378
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
379
|
+
*
|
|
380
|
+
*
|
|
381
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
382
|
+
* https://openapi-generator.tech
|
|
383
|
+
* Do not edit the class manually.
|
|
384
|
+
*/
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* The dimensions of the scheduled package.
|
|
388
|
+
*/
|
|
389
|
+
interface Dimensions {
|
|
390
|
+
/**
|
|
391
|
+
* The numerical value of the specified dimension.
|
|
392
|
+
*/
|
|
393
|
+
'length'?: number;
|
|
394
|
+
/**
|
|
395
|
+
* The numerical value of the specified dimension.
|
|
396
|
+
*/
|
|
397
|
+
'width'?: number;
|
|
398
|
+
/**
|
|
399
|
+
* The numerical value of the specified dimension.
|
|
400
|
+
*/
|
|
401
|
+
'height'?: number;
|
|
402
|
+
'unit'?: UnitOfLength;
|
|
403
|
+
/**
|
|
404
|
+
* A string of up to 255 characters.
|
|
405
|
+
*/
|
|
406
|
+
'identifier'?: string;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Selling Partner API for Easy Ship
|
|
411
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
412
|
+
*
|
|
413
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
414
|
+
*
|
|
415
|
+
*
|
|
416
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
417
|
+
* https://openapi-generator.tech
|
|
418
|
+
* Do not edit the class manually.
|
|
419
|
+
*/
|
|
420
|
+
/**
|
|
421
|
+
* Invoice number and date.
|
|
422
|
+
*/
|
|
423
|
+
interface InvoiceData {
|
|
424
|
+
/**
|
|
425
|
+
* A string of up to 255 characters.
|
|
426
|
+
*/
|
|
427
|
+
'invoiceNumber': string;
|
|
428
|
+
/**
|
|
429
|
+
* A datetime value in ISO 8601 format.
|
|
430
|
+
*/
|
|
431
|
+
'invoiceDate'?: string;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Selling Partner API for Easy Ship
|
|
436
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
437
|
+
*
|
|
438
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
439
|
+
*
|
|
440
|
+
*
|
|
441
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
442
|
+
* https://openapi-generator.tech
|
|
443
|
+
* Do not edit the class manually.
|
|
444
|
+
*/
|
|
445
|
+
/**
|
|
446
|
+
* The status of the package.
|
|
447
|
+
*/
|
|
448
|
+
declare const PackageStatus: {
|
|
449
|
+
readonly ReadyForPickup: "ReadyForPickup";
|
|
450
|
+
readonly PickedUp: "PickedUp";
|
|
451
|
+
readonly AtOriginFc: "AtOriginFC";
|
|
452
|
+
readonly AtDestinationFc: "AtDestinationFC";
|
|
453
|
+
readonly Delivered: "Delivered";
|
|
454
|
+
readonly Rejected: "Rejected";
|
|
455
|
+
readonly Undeliverable: "Undeliverable";
|
|
456
|
+
readonly ReturnedToSeller: "ReturnedToSeller";
|
|
457
|
+
readonly LostInTransit: "LostInTransit";
|
|
458
|
+
readonly LabelCanceled: "LabelCanceled";
|
|
459
|
+
readonly DamagedInTransit: "DamagedInTransit";
|
|
460
|
+
readonly OutForDelivery: "OutForDelivery";
|
|
461
|
+
};
|
|
462
|
+
type PackageStatus = typeof PackageStatus[keyof typeof PackageStatus];
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Selling Partner API for Easy Ship
|
|
466
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
467
|
+
*
|
|
468
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
469
|
+
*
|
|
470
|
+
*
|
|
471
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
472
|
+
* https://openapi-generator.tech
|
|
473
|
+
* Do not edit the class manually.
|
|
474
|
+
*/
|
|
475
|
+
/**
|
|
476
|
+
* Identifies the scheduled package to be updated.
|
|
477
|
+
*/
|
|
478
|
+
interface ScheduledPackageId {
|
|
479
|
+
/**
|
|
480
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
481
|
+
*/
|
|
482
|
+
'amazonOrderId': string;
|
|
483
|
+
/**
|
|
484
|
+
* An Amazon-defined identifier for the scheduled package.
|
|
485
|
+
*/
|
|
486
|
+
'packageId'?: string;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Selling Partner API for Easy Ship
|
|
491
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
492
|
+
*
|
|
493
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
494
|
+
*
|
|
495
|
+
*
|
|
496
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
497
|
+
* https://openapi-generator.tech
|
|
498
|
+
* Do not edit the class manually.
|
|
499
|
+
*/
|
|
500
|
+
/**
|
|
501
|
+
* Representation of tracking metadata.
|
|
502
|
+
*/
|
|
503
|
+
interface TrackingDetails {
|
|
504
|
+
/**
|
|
505
|
+
* A string of up to 255 characters.
|
|
506
|
+
*/
|
|
507
|
+
'trackingId'?: string;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Selling Partner API for Easy Ship
|
|
512
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
513
|
+
*
|
|
514
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
515
|
+
*
|
|
516
|
+
*
|
|
517
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
518
|
+
* https://openapi-generator.tech
|
|
519
|
+
* Do not edit the class manually.
|
|
520
|
+
*/
|
|
521
|
+
/**
|
|
522
|
+
* The unit of measurement used to measure the weight.
|
|
523
|
+
*/
|
|
524
|
+
declare const UnitOfWeight: {
|
|
525
|
+
readonly Grams: "grams";
|
|
526
|
+
readonly G: "g";
|
|
527
|
+
};
|
|
528
|
+
type UnitOfWeight = typeof UnitOfWeight[keyof typeof UnitOfWeight];
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Selling Partner API for Easy Ship
|
|
532
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
533
|
+
*
|
|
534
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
535
|
+
*
|
|
536
|
+
*
|
|
537
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
538
|
+
* https://openapi-generator.tech
|
|
539
|
+
* Do not edit the class manually.
|
|
540
|
+
*/
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* The weight of the scheduled package
|
|
544
|
+
*/
|
|
545
|
+
interface Weight {
|
|
546
|
+
/**
|
|
547
|
+
* The weight of the package.
|
|
548
|
+
*/
|
|
549
|
+
'value'?: number;
|
|
550
|
+
'unit'?: UnitOfWeight;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Selling Partner API for Easy Ship
|
|
555
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
556
|
+
*
|
|
557
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
558
|
+
*
|
|
559
|
+
*
|
|
560
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
561
|
+
* https://openapi-generator.tech
|
|
562
|
+
* Do not edit the class manually.
|
|
563
|
+
*/
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* This object contains all the details of the scheduled Easy Ship package.
|
|
567
|
+
*/
|
|
568
|
+
interface Package {
|
|
569
|
+
'scheduledPackageId': ScheduledPackageId;
|
|
570
|
+
'packageDimensions': Dimensions;
|
|
571
|
+
'packageWeight': Weight;
|
|
572
|
+
/**
|
|
573
|
+
* A list of items contained in the package.
|
|
574
|
+
*/
|
|
575
|
+
'packageItems'?: Array<Item>;
|
|
576
|
+
'packageTimeSlot': TimeSlot;
|
|
577
|
+
/**
|
|
578
|
+
* Optional seller-created identifier that is printed on the shipping label to help the seller identify the package.
|
|
579
|
+
*/
|
|
580
|
+
'packageIdentifier'?: string;
|
|
581
|
+
'invoice'?: InvoiceData;
|
|
582
|
+
'packageStatus'?: PackageStatus;
|
|
583
|
+
'trackingDetails'?: TrackingDetails;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Selling Partner API for Easy Ship
|
|
588
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
589
|
+
*
|
|
590
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
591
|
+
*
|
|
592
|
+
*
|
|
593
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
594
|
+
* https://openapi-generator.tech
|
|
595
|
+
* Do not edit the class manually.
|
|
596
|
+
*/
|
|
597
|
+
/**
|
|
598
|
+
* A order which we couldn\'t schedule on your behalf. It contains its id, and information on the error.
|
|
599
|
+
*/
|
|
600
|
+
interface RejectedOrder {
|
|
601
|
+
/**
|
|
602
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
603
|
+
*/
|
|
604
|
+
'amazonOrderId': string;
|
|
605
|
+
'error'?: Error;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Selling Partner API for Easy Ship
|
|
610
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
611
|
+
*
|
|
612
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
613
|
+
*
|
|
614
|
+
*
|
|
615
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
616
|
+
* https://openapi-generator.tech
|
|
617
|
+
* Do not edit the class manually.
|
|
618
|
+
*/
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* 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.
|
|
622
|
+
*/
|
|
623
|
+
interface CreateScheduledPackagesResponse {
|
|
624
|
+
/**
|
|
625
|
+
* A list of packages. Refer to the `Package` object.
|
|
626
|
+
*/
|
|
627
|
+
'scheduledPackages'?: Array<Package>;
|
|
628
|
+
/**
|
|
629
|
+
* A list of orders we couldn\'t scheduled on your behalf. Each element contains the reason and details on the error.
|
|
630
|
+
*/
|
|
631
|
+
'rejectedOrders'?: Array<RejectedOrder>;
|
|
632
|
+
/**
|
|
633
|
+
* A pre-signed URL for the zip document containing the shipping labels and the documents enabled for your marketplace.
|
|
634
|
+
*/
|
|
635
|
+
'printableDocumentsUrl'?: string;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Selling Partner API for Easy Ship
|
|
640
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
641
|
+
*
|
|
642
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
643
|
+
*
|
|
644
|
+
*
|
|
645
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
646
|
+
* https://openapi-generator.tech
|
|
647
|
+
* Do not edit the class manually.
|
|
648
|
+
*/
|
|
649
|
+
/**
|
|
650
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
651
|
+
*/
|
|
652
|
+
interface ErrorList {
|
|
653
|
+
/**
|
|
654
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
655
|
+
*/
|
|
656
|
+
'errors': Array<Error>;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Selling Partner API for Easy Ship
|
|
661
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
662
|
+
*
|
|
663
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
664
|
+
*
|
|
665
|
+
*
|
|
666
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
667
|
+
* https://openapi-generator.tech
|
|
668
|
+
* Do not edit the class manually.
|
|
669
|
+
*/
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* The request schema for the `listHandoverSlots` operation.
|
|
673
|
+
*/
|
|
674
|
+
interface ListHandoverSlotsRequest {
|
|
675
|
+
/**
|
|
676
|
+
* A string of up to 255 characters.
|
|
677
|
+
*/
|
|
678
|
+
'marketplaceId': string;
|
|
679
|
+
/**
|
|
680
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
681
|
+
*/
|
|
682
|
+
'amazonOrderId': string;
|
|
683
|
+
'packageDimensions': Dimensions;
|
|
684
|
+
'packageWeight': Weight;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Selling Partner API for Easy Ship
|
|
689
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
690
|
+
*
|
|
691
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
692
|
+
*
|
|
693
|
+
*
|
|
694
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
695
|
+
* https://openapi-generator.tech
|
|
696
|
+
* Do not edit the class manually.
|
|
697
|
+
*/
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* The response schema for the `listHandoverSlots` operation.
|
|
701
|
+
*/
|
|
702
|
+
interface ListHandoverSlotsResponse {
|
|
703
|
+
/**
|
|
704
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
705
|
+
*/
|
|
706
|
+
'amazonOrderId': string;
|
|
707
|
+
/**
|
|
708
|
+
* A list of time slots.
|
|
709
|
+
*/
|
|
710
|
+
'timeSlots': Array<TimeSlot>;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Selling Partner API for Easy Ship
|
|
715
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
716
|
+
*
|
|
717
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
718
|
+
*
|
|
719
|
+
*
|
|
720
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
721
|
+
* https://openapi-generator.tech
|
|
722
|
+
* Do not edit the class manually.
|
|
723
|
+
*/
|
|
724
|
+
/**
|
|
725
|
+
* Error response returned when the request is unsuccessful.
|
|
726
|
+
*/
|
|
727
|
+
interface ModelError {
|
|
728
|
+
/**
|
|
729
|
+
* An error code that identifies the type of error that occurred.
|
|
730
|
+
*/
|
|
731
|
+
'code': string;
|
|
732
|
+
/**
|
|
733
|
+
* A message that describes the error condition.
|
|
734
|
+
*/
|
|
735
|
+
'message': string;
|
|
736
|
+
/**
|
|
737
|
+
* Additional details that can help the caller understand or fix the issue.
|
|
738
|
+
*/
|
|
739
|
+
'details'?: string;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Selling Partner API for Easy Ship
|
|
744
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
745
|
+
*
|
|
746
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
747
|
+
*
|
|
748
|
+
*
|
|
749
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
750
|
+
* https://openapi-generator.tech
|
|
751
|
+
* Do not edit the class manually.
|
|
752
|
+
*/
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* A list of packages.
|
|
756
|
+
*/
|
|
757
|
+
interface Packages {
|
|
758
|
+
/**
|
|
759
|
+
* A list of packages.
|
|
760
|
+
*/
|
|
761
|
+
'packages': Array<Package>;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Selling Partner API for Easy Ship
|
|
766
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
767
|
+
*
|
|
768
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
769
|
+
*
|
|
770
|
+
*
|
|
771
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
772
|
+
* https://openapi-generator.tech
|
|
773
|
+
* Do not edit the class manually.
|
|
774
|
+
*/
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* Request to update the time slot of a package.
|
|
778
|
+
*/
|
|
779
|
+
interface UpdatePackageDetails {
|
|
780
|
+
'scheduledPackageId': ScheduledPackageId;
|
|
781
|
+
'packageTimeSlot': TimeSlot;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Selling Partner API for Easy Ship
|
|
786
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
787
|
+
*
|
|
788
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
789
|
+
*
|
|
790
|
+
*
|
|
791
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
792
|
+
* https://openapi-generator.tech
|
|
793
|
+
* Do not edit the class manually.
|
|
794
|
+
*/
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* The request schema for the `updateScheduledPackages` operation.
|
|
798
|
+
*/
|
|
799
|
+
interface UpdateScheduledPackagesRequest {
|
|
800
|
+
/**
|
|
801
|
+
* A string of up to 255 characters.
|
|
802
|
+
*/
|
|
803
|
+
'marketplaceId': string;
|
|
804
|
+
/**
|
|
805
|
+
* A list of package update details.
|
|
806
|
+
*/
|
|
807
|
+
'updatePackageDetailsList': Array<UpdatePackageDetails>;
|
|
808
|
+
}
|
|
809
|
+
|
|
24
810
|
/**
|
|
25
811
|
* EasyShipApi - axios parameter creator
|
|
26
812
|
*/
|
|
27
|
-
|
|
813
|
+
declare const EasyShipApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
28
814
|
/**
|
|
29
815
|
* Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
30
816
|
* @param {CreateScheduledPackageRequest} createScheduledPackageRequest The request schema for the `createScheduledPackage` operation.
|
|
@@ -65,7 +851,7 @@ export declare const EasyShipApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
65
851
|
/**
|
|
66
852
|
* EasyShipApi - functional programming interface
|
|
67
853
|
*/
|
|
68
|
-
|
|
854
|
+
declare const EasyShipApiFp: (configuration?: Configuration) => {
|
|
69
855
|
/**
|
|
70
856
|
* Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
71
857
|
* @param {CreateScheduledPackageRequest} createScheduledPackageRequest The request schema for the `createScheduledPackage` operation.
|
|
@@ -106,7 +892,7 @@ export declare const EasyShipApiFp: (configuration?: Configuration) => {
|
|
|
106
892
|
/**
|
|
107
893
|
* EasyShipApi - factory interface
|
|
108
894
|
*/
|
|
109
|
-
|
|
895
|
+
declare const EasyShipApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
110
896
|
/**
|
|
111
897
|
* Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
112
898
|
* @param {EasyShipApiCreateScheduledPackageRequest} requestParameters Request parameters.
|
|
@@ -146,7 +932,7 @@ export declare const EasyShipApiFactory: (configuration?: Configuration, basePat
|
|
|
146
932
|
/**
|
|
147
933
|
* Request parameters for createScheduledPackage operation in EasyShipApi.
|
|
148
934
|
*/
|
|
149
|
-
|
|
935
|
+
interface EasyShipApiCreateScheduledPackageRequest {
|
|
150
936
|
/**
|
|
151
937
|
* The request schema for the `createScheduledPackage` operation.
|
|
152
938
|
*/
|
|
@@ -155,7 +941,7 @@ export interface EasyShipApiCreateScheduledPackageRequest {
|
|
|
155
941
|
/**
|
|
156
942
|
* Request parameters for createScheduledPackageBulk operation in EasyShipApi.
|
|
157
943
|
*/
|
|
158
|
-
|
|
944
|
+
interface EasyShipApiCreateScheduledPackageBulkRequest {
|
|
159
945
|
/**
|
|
160
946
|
* The request schema for the `createScheduledPackageBulk` operation.
|
|
161
947
|
*/
|
|
@@ -164,7 +950,7 @@ export interface EasyShipApiCreateScheduledPackageBulkRequest {
|
|
|
164
950
|
/**
|
|
165
951
|
* Request parameters for getScheduledPackage operation in EasyShipApi.
|
|
166
952
|
*/
|
|
167
|
-
|
|
953
|
+
interface EasyShipApiGetScheduledPackageRequest {
|
|
168
954
|
/**
|
|
169
955
|
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
170
956
|
*/
|
|
@@ -177,7 +963,7 @@ export interface EasyShipApiGetScheduledPackageRequest {
|
|
|
177
963
|
/**
|
|
178
964
|
* Request parameters for listHandoverSlots operation in EasyShipApi.
|
|
179
965
|
*/
|
|
180
|
-
|
|
966
|
+
interface EasyShipApiListHandoverSlotsRequest {
|
|
181
967
|
/**
|
|
182
968
|
* The request schema for the `listHandoverSlots` operation.
|
|
183
969
|
*/
|
|
@@ -186,7 +972,7 @@ export interface EasyShipApiListHandoverSlotsRequest {
|
|
|
186
972
|
/**
|
|
187
973
|
* Request parameters for updateScheduledPackages operation in EasyShipApi.
|
|
188
974
|
*/
|
|
189
|
-
|
|
975
|
+
interface EasyShipApiUpdateScheduledPackagesRequest {
|
|
190
976
|
/**
|
|
191
977
|
* The request schema for the `updateScheduledPackages` operation.
|
|
192
978
|
*/
|
|
@@ -195,40 +981,47 @@ export interface EasyShipApiUpdateScheduledPackagesRequest {
|
|
|
195
981
|
/**
|
|
196
982
|
* EasyShipApi - object-oriented interface
|
|
197
983
|
*/
|
|
198
|
-
|
|
984
|
+
declare class EasyShipApi extends BaseAPI {
|
|
199
985
|
/**
|
|
200
986
|
* Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
201
987
|
* @param {EasyShipApiCreateScheduledPackageRequest} requestParameters Request parameters.
|
|
202
988
|
* @param {*} [options] Override http request option.
|
|
203
989
|
* @throws {RequiredError}
|
|
204
990
|
*/
|
|
205
|
-
createScheduledPackage(requestParameters: EasyShipApiCreateScheduledPackageRequest, options?: RawAxiosRequestConfig): Promise<
|
|
991
|
+
createScheduledPackage(requestParameters: EasyShipApiCreateScheduledPackageRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Package, any, {}>>;
|
|
206
992
|
/**
|
|
207
993
|
* This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label\'s file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn\'t be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn\'t process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
208
994
|
* @param {EasyShipApiCreateScheduledPackageBulkRequest} requestParameters Request parameters.
|
|
209
995
|
* @param {*} [options] Override http request option.
|
|
210
996
|
* @throws {RequiredError}
|
|
211
997
|
*/
|
|
212
|
-
createScheduledPackageBulk(requestParameters: EasyShipApiCreateScheduledPackageBulkRequest, options?: RawAxiosRequestConfig): Promise<
|
|
998
|
+
createScheduledPackageBulk(requestParameters: EasyShipApiCreateScheduledPackageBulkRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<CreateScheduledPackagesResponse, any, {}>>;
|
|
213
999
|
/**
|
|
214
1000
|
* Returns information about a package, including dimensions, weight, time slot information for handover, invoice and item information, and status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
215
1001
|
* @param {EasyShipApiGetScheduledPackageRequest} requestParameters Request parameters.
|
|
216
1002
|
* @param {*} [options] Override http request option.
|
|
217
1003
|
* @throws {RequiredError}
|
|
218
1004
|
*/
|
|
219
|
-
getScheduledPackage(requestParameters: EasyShipApiGetScheduledPackageRequest, options?: RawAxiosRequestConfig): Promise<
|
|
1005
|
+
getScheduledPackage(requestParameters: EasyShipApiGetScheduledPackageRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Package, any, {}>>;
|
|
220
1006
|
/**
|
|
221
1007
|
* Returns time slots available for Easy Ship orders to be scheduled based on the package weight and dimensions that the seller specifies. This operation is available for scheduled and unscheduled orders based on marketplace support. See **Get Time Slots** in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table). This operation can return time slots that have either pickup or drop-off handover methods - see **Supported Handover Methods** in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
222
1008
|
* @param {EasyShipApiListHandoverSlotsRequest} requestParameters Request parameters.
|
|
223
1009
|
* @param {*} [options] Override http request option.
|
|
224
1010
|
* @throws {RequiredError}
|
|
225
1011
|
*/
|
|
226
|
-
listHandoverSlots(requestParameters?: EasyShipApiListHandoverSlotsRequest, options?: RawAxiosRequestConfig): Promise<
|
|
1012
|
+
listHandoverSlots(requestParameters?: EasyShipApiListHandoverSlotsRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ListHandoverSlotsResponse, any, {}>>;
|
|
227
1013
|
/**
|
|
228
1014
|
* Updates the time slot for handing over the package indicated by the specified `scheduledPackageId`. You can get the new `slotId` value for the time slot by calling the `listHandoverSlots` operation before making another `patch` call. See the **Update Package** column in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which marketplaces this operation is supported in. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
229
1015
|
* @param {EasyShipApiUpdateScheduledPackagesRequest} requestParameters Request parameters.
|
|
230
1016
|
* @param {*} [options] Override http request option.
|
|
231
1017
|
* @throws {RequiredError}
|
|
232
1018
|
*/
|
|
233
|
-
updateScheduledPackages(requestParameters?: EasyShipApiUpdateScheduledPackagesRequest, options?: RawAxiosRequestConfig): Promise<
|
|
1019
|
+
updateScheduledPackages(requestParameters?: EasyShipApiUpdateScheduledPackagesRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Packages, any, {}>>;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
declare const clientRateLimits: RateLimit[];
|
|
1023
|
+
declare class EasyShipApiClient extends EasyShipApi {
|
|
1024
|
+
constructor(configuration: ClientConfiguration);
|
|
234
1025
|
}
|
|
1026
|
+
|
|
1027
|
+
export { Code, type CreateScheduledPackageRequest, type CreateScheduledPackagesRequest, type CreateScheduledPackagesResponse, type Dimensions, EasyShipApi, EasyShipApiAxiosParamCreator, EasyShipApiClient, type EasyShipApiCreateScheduledPackageBulkRequest, type EasyShipApiCreateScheduledPackageRequest, EasyShipApiFactory, EasyShipApiFp, type EasyShipApiGetScheduledPackageRequest, type EasyShipApiListHandoverSlotsRequest, type EasyShipApiUpdateScheduledPackagesRequest, type ErrorList, HandoverMethod, type InvoiceData, type Item, LabelFormat, type ListHandoverSlotsRequest, type ListHandoverSlotsResponse, type ModelError, type OrderScheduleDetails, type Package, type PackageDetails, PackageStatus, type Packages, type RejectedOrder, type ScheduledPackageId, type TimeSlot, type TrackingDetails, UnitOfLength, UnitOfWeight, type UpdatePackageDetails, type UpdateScheduledPackagesRequest, type Weight, clientRateLimits };
|