@sp-api-sdk/invoices-api-2024-06-19 2.0.5 → 2.0.7
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/invoices-api.js +0 -22
- 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/export-status.js +0 -2
- package/dist/cjs/api-model/models/file-format.js +0 -2
- package/dist/es/api-model/api/invoices-api.js +0 -22
- 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/export-status.js +0 -2
- package/dist/es/api-model/models/file-format.js +0 -2
- package/dist/types/api-model/api/invoices-api.d.ts +0 -88
- 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/attribute-option.d.ts +0 -6
- package/dist/types/api-model/models/error-list.d.ts +0 -4
- package/dist/types/api-model/models/export-invoices-request.d.ts +0 -28
- package/dist/types/api-model/models/export-invoices-response.d.ts +0 -4
- package/dist/types/api-model/models/export-status.d.ts +0 -2
- package/dist/types/api-model/models/export.d.ts +0 -17
- package/dist/types/api-model/models/file-format.d.ts +0 -2
- package/dist/types/api-model/models/get-invoice-response.d.ts +0 -7
- package/dist/types/api-model/models/get-invoices-attributes-response.d.ts +0 -7
- package/dist/types/api-model/models/get-invoices-document-response.d.ts +0 -7
- package/dist/types/api-model/models/get-invoices-export-response.d.ts +0 -7
- package/dist/types/api-model/models/get-invoices-exports-response.d.ts +0 -6
- package/dist/types/api-model/models/get-invoices-response.d.ts +0 -6
- package/dist/types/api-model/models/invoice.d.ts +0 -22
- package/dist/types/api-model/models/invoices-attributes.d.ts +0 -10
- package/dist/types/api-model/models/invoices-document.d.ts +0 -6
- package/dist/types/api-model/models/model-error.d.ts +0 -8
- package/dist/types/api-model/models/transaction-identifier.d.ts +0 -6
- package/package.json +25 -4
|
@@ -23,7 +23,6 @@ import type { GetInvoicesExportsResponse } from '../models';
|
|
|
23
23
|
import type { GetInvoicesResponse } from '../models';
|
|
24
24
|
/**
|
|
25
25
|
* InvoicesApi - axios parameter creator
|
|
26
|
-
* @export
|
|
27
26
|
*/
|
|
28
27
|
export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
29
28
|
/**
|
|
@@ -97,7 +96,6 @@ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
97
96
|
};
|
|
98
97
|
/**
|
|
99
98
|
* InvoicesApi - functional programming interface
|
|
100
|
-
* @export
|
|
101
99
|
*/
|
|
102
100
|
export declare const InvoicesApiFp: (configuration?: Configuration) => {
|
|
103
101
|
/**
|
|
@@ -171,7 +169,6 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
|
|
|
171
169
|
};
|
|
172
170
|
/**
|
|
173
171
|
* InvoicesApi - factory interface
|
|
174
|
-
* @export
|
|
175
172
|
*/
|
|
176
173
|
export declare const InvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
177
174
|
/**
|
|
@@ -226,214 +223,145 @@ export declare const InvoicesApiFactory: (configuration?: Configuration, basePat
|
|
|
226
223
|
};
|
|
227
224
|
/**
|
|
228
225
|
* Request parameters for createInvoicesExport operation in InvoicesApi.
|
|
229
|
-
* @export
|
|
230
|
-
* @interface InvoicesApiCreateInvoicesExportRequest
|
|
231
226
|
*/
|
|
232
227
|
export interface InvoicesApiCreateInvoicesExportRequest {
|
|
233
228
|
/**
|
|
234
229
|
* Information required to create the export request.
|
|
235
|
-
* @type {ExportInvoicesRequest}
|
|
236
|
-
* @memberof InvoicesApiCreateInvoicesExport
|
|
237
230
|
*/
|
|
238
231
|
readonly body: ExportInvoicesRequest;
|
|
239
232
|
}
|
|
240
233
|
/**
|
|
241
234
|
* Request parameters for getInvoice operation in InvoicesApi.
|
|
242
|
-
* @export
|
|
243
|
-
* @interface InvoicesApiGetInvoiceRequest
|
|
244
235
|
*/
|
|
245
236
|
export interface InvoicesApiGetInvoiceRequest {
|
|
246
237
|
/**
|
|
247
238
|
* The marketplace from which you want the invoice.
|
|
248
|
-
* @type {string}
|
|
249
|
-
* @memberof InvoicesApiGetInvoice
|
|
250
239
|
*/
|
|
251
240
|
readonly marketplaceId: string;
|
|
252
241
|
/**
|
|
253
242
|
* The invoice identifier.
|
|
254
|
-
* @type {string}
|
|
255
|
-
* @memberof InvoicesApiGetInvoice
|
|
256
243
|
*/
|
|
257
244
|
readonly invoiceId: string;
|
|
258
245
|
}
|
|
259
246
|
/**
|
|
260
247
|
* Request parameters for getInvoices operation in InvoicesApi.
|
|
261
|
-
* @export
|
|
262
|
-
* @interface InvoicesApiGetInvoicesRequest
|
|
263
248
|
*/
|
|
264
249
|
export interface InvoicesApiGetInvoicesRequest {
|
|
265
250
|
/**
|
|
266
251
|
* The response includes only the invoices that match the specified marketplace.
|
|
267
|
-
* @type {string}
|
|
268
|
-
* @memberof InvoicesApiGetInvoices
|
|
269
252
|
*/
|
|
270
253
|
readonly marketplaceId: string;
|
|
271
254
|
/**
|
|
272
255
|
* The name of the transaction identifier filter. If you provide a value for this field, you must also provide a value for the `transactionIdentifierId` field.Use the `getInvoicesAttributes` operation to check `transactionIdentifierName` options.
|
|
273
|
-
* @type {string}
|
|
274
|
-
* @memberof InvoicesApiGetInvoices
|
|
275
256
|
*/
|
|
276
257
|
readonly transactionIdentifierName?: string;
|
|
277
258
|
/**
|
|
278
259
|
* The maximum number of invoices you want to return in a single call. Minimum: 1 Maximum: 200
|
|
279
|
-
* @type {number}
|
|
280
|
-
* @memberof InvoicesApiGetInvoices
|
|
281
260
|
*/
|
|
282
261
|
readonly pageSize?: number;
|
|
283
262
|
/**
|
|
284
263
|
* The latest invoice creation date for invoices that you want to include in the response. Dates are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default is the current date-time.
|
|
285
|
-
* @type {string}
|
|
286
|
-
* @memberof InvoicesApiGetInvoices
|
|
287
264
|
*/
|
|
288
265
|
readonly dateEnd?: string;
|
|
289
266
|
/**
|
|
290
267
|
* The marketplace-specific classification of the transaction type for which the invoice was created. Use the `getInvoicesAttributes` operation to check `transactionType` options.
|
|
291
|
-
* @type {string}
|
|
292
|
-
* @memberof InvoicesApiGetInvoices
|
|
293
268
|
*/
|
|
294
269
|
readonly transactionType?: string;
|
|
295
270
|
/**
|
|
296
271
|
* The ID of the transaction identifier filter. If you provide a value for this field, you must also provide a value for the `transactionIdentifierName` field.
|
|
297
|
-
* @type {string}
|
|
298
|
-
* @memberof InvoicesApiGetInvoices
|
|
299
272
|
*/
|
|
300
273
|
readonly transactionIdentifierId?: string;
|
|
301
274
|
/**
|
|
302
275
|
* The earliest invoice creation date for invoices that you want to include in the response. Dates are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default is 24 hours prior to the time of the request.
|
|
303
|
-
* @type {string}
|
|
304
|
-
* @memberof InvoicesApiGetInvoices
|
|
305
276
|
*/
|
|
306
277
|
readonly dateStart?: string;
|
|
307
278
|
/**
|
|
308
279
|
* Return invoices with the specified series number.
|
|
309
|
-
* @type {string}
|
|
310
|
-
* @memberof InvoicesApiGetInvoices
|
|
311
280
|
*/
|
|
312
281
|
readonly series?: string;
|
|
313
282
|
/**
|
|
314
283
|
* The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
315
|
-
* @type {string}
|
|
316
|
-
* @memberof InvoicesApiGetInvoices
|
|
317
284
|
*/
|
|
318
285
|
readonly nextToken?: string;
|
|
319
286
|
/**
|
|
320
287
|
* Sort the invoices in the response in ascending or descending order.
|
|
321
|
-
* @type {'DESC' | 'ASC'}
|
|
322
|
-
* @memberof InvoicesApiGetInvoices
|
|
323
288
|
*/
|
|
324
289
|
readonly sortOrder?: GetInvoicesSortOrderEnum;
|
|
325
290
|
/**
|
|
326
291
|
* The marketplace-specific classification of the invoice type. Use the `getInvoicesAttributes` operation to check `invoiceType` options.
|
|
327
|
-
* @type {string}
|
|
328
|
-
* @memberof InvoicesApiGetInvoices
|
|
329
292
|
*/
|
|
330
293
|
readonly invoiceType?: string;
|
|
331
294
|
/**
|
|
332
295
|
* A list of statuses that you can use to filter invoices. Use the `getInvoicesAttributes` operation to check invoice status options. Min count: 1
|
|
333
|
-
* @type {Array<string>}
|
|
334
|
-
* @memberof InvoicesApiGetInvoices
|
|
335
296
|
*/
|
|
336
297
|
readonly statuses?: Array<string>;
|
|
337
298
|
/**
|
|
338
299
|
* Return invoices that match this external ID. This is typically the Government Invoice ID.
|
|
339
|
-
* @type {string}
|
|
340
|
-
* @memberof InvoicesApiGetInvoices
|
|
341
300
|
*/
|
|
342
301
|
readonly externalInvoiceId?: string;
|
|
343
302
|
/**
|
|
344
303
|
* The attribute by which you want to sort the invoices in the response.
|
|
345
|
-
* @type {'START_DATE_TIME'}
|
|
346
|
-
* @memberof InvoicesApiGetInvoices
|
|
347
304
|
*/
|
|
348
305
|
readonly sortBy?: GetInvoicesSortByEnum;
|
|
349
306
|
}
|
|
350
307
|
/**
|
|
351
308
|
* Request parameters for getInvoicesAttributes operation in InvoicesApi.
|
|
352
|
-
* @export
|
|
353
|
-
* @interface InvoicesApiGetInvoicesAttributesRequest
|
|
354
309
|
*/
|
|
355
310
|
export interface InvoicesApiGetInvoicesAttributesRequest {
|
|
356
311
|
/**
|
|
357
312
|
* The marketplace identifier.
|
|
358
|
-
* @type {string}
|
|
359
|
-
* @memberof InvoicesApiGetInvoicesAttributes
|
|
360
313
|
*/
|
|
361
314
|
readonly marketplaceId: string;
|
|
362
315
|
}
|
|
363
316
|
/**
|
|
364
317
|
* Request parameters for getInvoicesDocument operation in InvoicesApi.
|
|
365
|
-
* @export
|
|
366
|
-
* @interface InvoicesApiGetInvoicesDocumentRequest
|
|
367
318
|
*/
|
|
368
319
|
export interface InvoicesApiGetInvoicesDocumentRequest {
|
|
369
320
|
/**
|
|
370
321
|
* The export document identifier.
|
|
371
|
-
* @type {string}
|
|
372
|
-
* @memberof InvoicesApiGetInvoicesDocument
|
|
373
322
|
*/
|
|
374
323
|
readonly invoicesDocumentId: string;
|
|
375
324
|
}
|
|
376
325
|
/**
|
|
377
326
|
* Request parameters for getInvoicesExport operation in InvoicesApi.
|
|
378
|
-
* @export
|
|
379
|
-
* @interface InvoicesApiGetInvoicesExportRequest
|
|
380
327
|
*/
|
|
381
328
|
export interface InvoicesApiGetInvoicesExportRequest {
|
|
382
329
|
/**
|
|
383
330
|
* The unique identifier for the export.
|
|
384
|
-
* @type {string}
|
|
385
|
-
* @memberof InvoicesApiGetInvoicesExport
|
|
386
331
|
*/
|
|
387
332
|
readonly exportId: string;
|
|
388
333
|
}
|
|
389
334
|
/**
|
|
390
335
|
* Request parameters for getInvoicesExports operation in InvoicesApi.
|
|
391
|
-
* @export
|
|
392
|
-
* @interface InvoicesApiGetInvoicesExportsRequest
|
|
393
336
|
*/
|
|
394
337
|
export interface InvoicesApiGetInvoicesExportsRequest {
|
|
395
338
|
/**
|
|
396
339
|
* The returned exports match the specified marketplace.
|
|
397
|
-
* @type {string}
|
|
398
|
-
* @memberof InvoicesApiGetInvoicesExports
|
|
399
340
|
*/
|
|
400
341
|
readonly marketplaceId: string;
|
|
401
342
|
/**
|
|
402
343
|
* The earliest export creation date and time for exports that you want to include in the response. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default is 30 days ago.
|
|
403
|
-
* @type {string}
|
|
404
|
-
* @memberof InvoicesApiGetInvoicesExports
|
|
405
344
|
*/
|
|
406
345
|
readonly dateStart?: string;
|
|
407
346
|
/**
|
|
408
347
|
* The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
409
|
-
* @type {string}
|
|
410
|
-
* @memberof InvoicesApiGetInvoicesExports
|
|
411
348
|
*/
|
|
412
349
|
readonly nextToken?: string;
|
|
413
350
|
/**
|
|
414
351
|
* The maximum number of invoices to return in a single call. Minimum: 1 Maximum: 100
|
|
415
|
-
* @type {number}
|
|
416
|
-
* @memberof InvoicesApiGetInvoicesExports
|
|
417
352
|
*/
|
|
418
353
|
readonly pageSize?: number;
|
|
419
354
|
/**
|
|
420
355
|
* The latest export creation date and time for exports that you want to include in the response. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default value is the time of the request.
|
|
421
|
-
* @type {string}
|
|
422
|
-
* @memberof InvoicesApiGetInvoicesExports
|
|
423
356
|
*/
|
|
424
357
|
readonly dateEnd?: string;
|
|
425
358
|
/**
|
|
426
359
|
* Return exports matching the status specified.
|
|
427
|
-
* @type {'REQUESTED' | 'PROCESSING' | 'DONE' | 'ERROR'}
|
|
428
|
-
* @memberof InvoicesApiGetInvoicesExports
|
|
429
360
|
*/
|
|
430
361
|
readonly status?: GetInvoicesExportsStatusEnum;
|
|
431
362
|
}
|
|
432
363
|
/**
|
|
433
364
|
* InvoicesApi - object-oriented interface
|
|
434
|
-
* @export
|
|
435
|
-
* @class InvoicesApi
|
|
436
|
-
* @extends {BaseAPI}
|
|
437
365
|
*/
|
|
438
366
|
export declare class InvoicesApi extends BaseAPI {
|
|
439
367
|
/**
|
|
@@ -441,7 +369,6 @@ export declare class InvoicesApi extends BaseAPI {
|
|
|
441
369
|
* @param {InvoicesApiCreateInvoicesExportRequest} requestParameters Request parameters.
|
|
442
370
|
* @param {*} [options] Override http request option.
|
|
443
371
|
* @throws {RequiredError}
|
|
444
|
-
* @memberof InvoicesApi
|
|
445
372
|
*/
|
|
446
373
|
createInvoicesExport(requestParameters: InvoicesApiCreateInvoicesExportRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ExportInvoicesResponse, any>>;
|
|
447
374
|
/**
|
|
@@ -449,7 +376,6 @@ export declare class InvoicesApi extends BaseAPI {
|
|
|
449
376
|
* @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
|
|
450
377
|
* @param {*} [options] Override http request option.
|
|
451
378
|
* @throws {RequiredError}
|
|
452
|
-
* @memberof InvoicesApi
|
|
453
379
|
*/
|
|
454
380
|
getInvoice(requestParameters: InvoicesApiGetInvoiceRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetInvoiceResponse, any>>;
|
|
455
381
|
/**
|
|
@@ -457,7 +383,6 @@ export declare class InvoicesApi extends BaseAPI {
|
|
|
457
383
|
* @param {InvoicesApiGetInvoicesRequest} requestParameters Request parameters.
|
|
458
384
|
* @param {*} [options] Override http request option.
|
|
459
385
|
* @throws {RequiredError}
|
|
460
|
-
* @memberof InvoicesApi
|
|
461
386
|
*/
|
|
462
387
|
getInvoices(requestParameters: InvoicesApiGetInvoicesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetInvoicesResponse, any>>;
|
|
463
388
|
/**
|
|
@@ -465,7 +390,6 @@ export declare class InvoicesApi extends BaseAPI {
|
|
|
465
390
|
* @param {InvoicesApiGetInvoicesAttributesRequest} requestParameters Request parameters.
|
|
466
391
|
* @param {*} [options] Override http request option.
|
|
467
392
|
* @throws {RequiredError}
|
|
468
|
-
* @memberof InvoicesApi
|
|
469
393
|
*/
|
|
470
394
|
getInvoicesAttributes(requestParameters: InvoicesApiGetInvoicesAttributesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetInvoicesAttributesResponse, any>>;
|
|
471
395
|
/**
|
|
@@ -473,7 +397,6 @@ export declare class InvoicesApi extends BaseAPI {
|
|
|
473
397
|
* @param {InvoicesApiGetInvoicesDocumentRequest} requestParameters Request parameters.
|
|
474
398
|
* @param {*} [options] Override http request option.
|
|
475
399
|
* @throws {RequiredError}
|
|
476
|
-
* @memberof InvoicesApi
|
|
477
400
|
*/
|
|
478
401
|
getInvoicesDocument(requestParameters: InvoicesApiGetInvoicesDocumentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetInvoicesDocumentResponse, any>>;
|
|
479
402
|
/**
|
|
@@ -481,7 +404,6 @@ export declare class InvoicesApi extends BaseAPI {
|
|
|
481
404
|
* @param {InvoicesApiGetInvoicesExportRequest} requestParameters Request parameters.
|
|
482
405
|
* @param {*} [options] Override http request option.
|
|
483
406
|
* @throws {RequiredError}
|
|
484
|
-
* @memberof InvoicesApi
|
|
485
407
|
*/
|
|
486
408
|
getInvoicesExport(requestParameters: InvoicesApiGetInvoicesExportRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetInvoicesExportResponse, any>>;
|
|
487
409
|
/**
|
|
@@ -489,28 +411,18 @@ export declare class InvoicesApi extends BaseAPI {
|
|
|
489
411
|
* @param {InvoicesApiGetInvoicesExportsRequest} requestParameters Request parameters.
|
|
490
412
|
* @param {*} [options] Override http request option.
|
|
491
413
|
* @throws {RequiredError}
|
|
492
|
-
* @memberof InvoicesApi
|
|
493
414
|
*/
|
|
494
415
|
getInvoicesExports(requestParameters: InvoicesApiGetInvoicesExportsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetInvoicesExportsResponse, any>>;
|
|
495
416
|
}
|
|
496
|
-
/**
|
|
497
|
-
* @export
|
|
498
|
-
*/
|
|
499
417
|
export declare const GetInvoicesSortOrderEnum: {
|
|
500
418
|
readonly Desc: "DESC";
|
|
501
419
|
readonly Asc: "ASC";
|
|
502
420
|
};
|
|
503
421
|
export type GetInvoicesSortOrderEnum = typeof GetInvoicesSortOrderEnum[keyof typeof GetInvoicesSortOrderEnum];
|
|
504
|
-
/**
|
|
505
|
-
* @export
|
|
506
|
-
*/
|
|
507
422
|
export declare const GetInvoicesSortByEnum: {
|
|
508
423
|
readonly StartDateTime: "START_DATE_TIME";
|
|
509
424
|
};
|
|
510
425
|
export type GetInvoicesSortByEnum = typeof GetInvoicesSortByEnum[keyof typeof GetInvoicesSortByEnum];
|
|
511
|
-
/**
|
|
512
|
-
* @export
|
|
513
|
-
*/
|
|
514
426
|
export declare const GetInvoicesExportsStatusEnum: {
|
|
515
427
|
readonly Requested: "REQUESTED";
|
|
516
428
|
readonly Processing: "PROCESSING";
|
|
@@ -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,20 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* The definition of the attribute option.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface AttributeOption
|
|
16
14
|
*/
|
|
17
15
|
export interface AttributeOption {
|
|
18
16
|
/**
|
|
19
17
|
* The description of the attribute value.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof AttributeOption
|
|
22
18
|
*/
|
|
23
19
|
'description'?: string;
|
|
24
20
|
/**
|
|
25
21
|
* The possible values for the attribute option.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof AttributeOption
|
|
28
22
|
*/
|
|
29
23
|
'value'?: string;
|
|
30
24
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* A list of error responses that are returned when a request is unsuccessful.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ErrorList
|
|
16
14
|
*/
|
|
17
15
|
export interface ErrorList {
|
|
18
16
|
/**
|
|
19
17
|
* List of errors.
|
|
20
|
-
* @type {Array<Error>}
|
|
21
|
-
* @memberof ErrorList
|
|
22
18
|
*/
|
|
23
19
|
'errors': Array<Error>;
|
|
24
20
|
}
|
|
@@ -13,68 +13,40 @@ import type { FileFormat } from './file-format';
|
|
|
13
13
|
import type { TransactionIdentifier } from './transaction-identifier';
|
|
14
14
|
/**
|
|
15
15
|
* The information required to create the export request.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface ExportInvoicesRequest
|
|
18
16
|
*/
|
|
19
17
|
export interface ExportInvoicesRequest {
|
|
20
18
|
/**
|
|
21
19
|
* The latest invoice creation date for invoices that you want to include in the response. Dates are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default is the time of the request.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof ExportInvoicesRequest
|
|
24
20
|
*/
|
|
25
21
|
'dateEnd'?: string;
|
|
26
22
|
/**
|
|
27
23
|
* The earliest invoice creation date for invoices that you want to include in the response. Dates are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default is 24 hours prior to the time of the request.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof ExportInvoicesRequest
|
|
30
24
|
*/
|
|
31
25
|
'dateStart'?: string;
|
|
32
26
|
/**
|
|
33
27
|
* The external ID of the invoices you want included in the response.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof ExportInvoicesRequest
|
|
36
28
|
*/
|
|
37
29
|
'externalInvoiceId'?: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {FileFormat}
|
|
41
|
-
* @memberof ExportInvoicesRequest
|
|
42
|
-
*/
|
|
43
30
|
'fileFormat'?: FileFormat;
|
|
44
31
|
/**
|
|
45
32
|
* The marketplace-specific classification of the invoice type. Use the `getInvoicesAttributes` operation to check `invoiceType` options.
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof ExportInvoicesRequest
|
|
48
33
|
*/
|
|
49
34
|
'invoiceType'?: string;
|
|
50
35
|
/**
|
|
51
36
|
* The ID of the marketplace from which you want the invoices.
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof ExportInvoicesRequest
|
|
54
37
|
*/
|
|
55
38
|
'marketplaceId': string;
|
|
56
39
|
/**
|
|
57
40
|
* The series number of the invoices you want included in the response.
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof ExportInvoicesRequest
|
|
60
41
|
*/
|
|
61
42
|
'series'?: string;
|
|
62
43
|
/**
|
|
63
44
|
* A list of statuses that you can use to filter invoices. Use the `getInvoicesAttributes` operation to check invoice status options. Min count: 1
|
|
64
|
-
* @type {Array<string>}
|
|
65
|
-
* @memberof ExportInvoicesRequest
|
|
66
45
|
*/
|
|
67
46
|
'statuses'?: Array<string>;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {TransactionIdentifier}
|
|
71
|
-
* @memberof ExportInvoicesRequest
|
|
72
|
-
*/
|
|
73
47
|
'transactionIdentifier'?: TransactionIdentifier;
|
|
74
48
|
/**
|
|
75
49
|
* The marketplace-specific classification of the transaction type for which the invoice was created. Use the `getInvoicesAttributes` operation to check `transactionType` options
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof ExportInvoicesRequest
|
|
78
50
|
*/
|
|
79
51
|
'transactionType'?: string;
|
|
80
52
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Success.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ExportInvoicesResponse
|
|
16
14
|
*/
|
|
17
15
|
export interface ExportInvoicesResponse {
|
|
18
16
|
/**
|
|
19
17
|
* The export identifier.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ExportInvoicesResponse
|
|
22
18
|
*/
|
|
23
19
|
'exportId'?: string;
|
|
24
20
|
}
|
|
@@ -12,44 +12,27 @@
|
|
|
12
12
|
import type { ExportStatus } from './export-status';
|
|
13
13
|
/**
|
|
14
14
|
* Detailed information about the export.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Export
|
|
17
15
|
*/
|
|
18
16
|
export interface Export {
|
|
19
17
|
/**
|
|
20
18
|
* When the export generation fails, this attribute contains a description of the error.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof Export
|
|
23
19
|
*/
|
|
24
20
|
'errorMessage'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* The export identifier.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof Export
|
|
29
23
|
*/
|
|
30
24
|
'exportId'?: string;
|
|
31
25
|
/**
|
|
32
26
|
* The date and time when the export generation finished. Vales are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof Export
|
|
35
27
|
*/
|
|
36
28
|
'generateExportFinishedAt'?: string;
|
|
37
29
|
/**
|
|
38
30
|
* The date and time when the export generation started. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Export
|
|
41
31
|
*/
|
|
42
32
|
'generateExportStartedAt'?: string;
|
|
43
33
|
/**
|
|
44
34
|
* The identifier for the export documents. To get the information required to retrieve the export document\'s contents, pass each ID in the `getInvoicesDocument` operation. This list is empty until the status is `DONE`.
|
|
45
|
-
* @type {Array<string>}
|
|
46
|
-
* @memberof Export
|
|
47
35
|
*/
|
|
48
36
|
'invoicesDocumentIds'?: Array<string>;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {ExportStatus}
|
|
52
|
-
* @memberof Export
|
|
53
|
-
*/
|
|
54
37
|
'status'?: ExportStatus;
|
|
55
38
|
}
|
|
@@ -12,14 +12,7 @@
|
|
|
12
12
|
import type { Invoice } from './invoice';
|
|
13
13
|
/**
|
|
14
14
|
* Success.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GetInvoiceResponse
|
|
17
15
|
*/
|
|
18
16
|
export interface GetInvoiceResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Invoice}
|
|
22
|
-
* @memberof GetInvoiceResponse
|
|
23
|
-
*/
|
|
24
17
|
'invoice'?: Invoice;
|
|
25
18
|
}
|