@sp-api-sdk/invoices-api-2024-06-19 2.1.3 → 3.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.
Files changed (109) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +1090 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/{types/api-model/api/invoices-api.d.ts → index.d.cts} +853 -45
  5. package/dist/index.d.ts +1408 -0
  6. package/dist/index.js +1042 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/invoices-api.js +0 -832
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/attribute-option.js +0 -15
  16. package/dist/cjs/api-model/models/carrier-details-context.js +0 -15
  17. package/dist/cjs/api-model/models/error-list.js +0 -15
  18. package/dist/cjs/api-model/models/export-invoices-request.js +0 -15
  19. package/dist/cjs/api-model/models/export-invoices-response.js +0 -15
  20. package/dist/cjs/api-model/models/export-status.js +0 -25
  21. package/dist/cjs/api-model/models/export.js +0 -15
  22. package/dist/cjs/api-model/models/file-format.js +0 -22
  23. package/dist/cjs/api-model/models/get-invoice-response.js +0 -15
  24. package/dist/cjs/api-model/models/get-invoices-attributes-response.js +0 -15
  25. package/dist/cjs/api-model/models/get-invoices-document-response.js +0 -15
  26. package/dist/cjs/api-model/models/get-invoices-export-response.js +0 -15
  27. package/dist/cjs/api-model/models/get-invoices-exports-response.js +0 -15
  28. package/dist/cjs/api-model/models/get-invoices-response.js +0 -15
  29. package/dist/cjs/api-model/models/government-invoice-creation-status.js +0 -24
  30. package/dist/cjs/api-model/models/government-invoice-request.js +0 -15
  31. package/dist/cjs/api-model/models/government-invoice-status-response.js +0 -15
  32. package/dist/cjs/api-model/models/govt-invoice-document-response.js +0 -15
  33. package/dist/cjs/api-model/models/index.js +0 -41
  34. package/dist/cjs/api-model/models/invoice-document.js +0 -15
  35. package/dist/cjs/api-model/models/invoice-error.js +0 -15
  36. package/dist/cjs/api-model/models/invoice.js +0 -15
  37. package/dist/cjs/api-model/models/invoices-attributes.js +0 -15
  38. package/dist/cjs/api-model/models/invoices-document.js +0 -15
  39. package/dist/cjs/api-model/models/model-error.js +0 -15
  40. package/dist/cjs/api-model/models/transaction-identifier.js +0 -15
  41. package/dist/cjs/client.js +0 -84
  42. package/dist/cjs/index.js +0 -19
  43. package/dist/es/api-model/api/invoices-api.js +0 -822
  44. package/dist/es/api-model/api.js +0 -14
  45. package/dist/es/api-model/base.js +0 -44
  46. package/dist/es/api-model/common.js +0 -110
  47. package/dist/es/api-model/configuration.js +0 -94
  48. package/dist/es/api-model/index.js +0 -16
  49. package/dist/es/api-model/models/attribute-option.js +0 -14
  50. package/dist/es/api-model/models/carrier-details-context.js +0 -14
  51. package/dist/es/api-model/models/error-list.js +0 -14
  52. package/dist/es/api-model/models/export-invoices-request.js +0 -14
  53. package/dist/es/api-model/models/export-invoices-response.js +0 -14
  54. package/dist/es/api-model/models/export-status.js +0 -22
  55. package/dist/es/api-model/models/export.js +0 -14
  56. package/dist/es/api-model/models/file-format.js +0 -19
  57. package/dist/es/api-model/models/get-invoice-response.js +0 -14
  58. package/dist/es/api-model/models/get-invoices-attributes-response.js +0 -14
  59. package/dist/es/api-model/models/get-invoices-document-response.js +0 -14
  60. package/dist/es/api-model/models/get-invoices-export-response.js +0 -14
  61. package/dist/es/api-model/models/get-invoices-exports-response.js +0 -14
  62. package/dist/es/api-model/models/get-invoices-response.js +0 -14
  63. package/dist/es/api-model/models/government-invoice-creation-status.js +0 -21
  64. package/dist/es/api-model/models/government-invoice-request.js +0 -14
  65. package/dist/es/api-model/models/government-invoice-status-response.js +0 -14
  66. package/dist/es/api-model/models/govt-invoice-document-response.js +0 -14
  67. package/dist/es/api-model/models/index.js +0 -25
  68. package/dist/es/api-model/models/invoice-document.js +0 -14
  69. package/dist/es/api-model/models/invoice-error.js +0 -14
  70. package/dist/es/api-model/models/invoice.js +0 -14
  71. package/dist/es/api-model/models/invoices-attributes.js +0 -14
  72. package/dist/es/api-model/models/invoices-document.js +0 -14
  73. package/dist/es/api-model/models/model-error.js +0 -14
  74. package/dist/es/api-model/models/transaction-identifier.js +0 -14
  75. package/dist/es/client.js +0 -80
  76. package/dist/es/index.js +0 -3
  77. package/dist/types/api-model/api.d.ts +0 -12
  78. package/dist/types/api-model/base.d.ts +0 -42
  79. package/dist/types/api-model/common.d.ts +0 -34
  80. package/dist/types/api-model/configuration.d.ts +0 -98
  81. package/dist/types/api-model/index.d.ts +0 -14
  82. package/dist/types/api-model/models/attribute-option.d.ts +0 -24
  83. package/dist/types/api-model/models/carrier-details-context.d.ts +0 -48
  84. package/dist/types/api-model/models/error-list.d.ts +0 -20
  85. package/dist/types/api-model/models/export-invoices-request.d.ts +0 -52
  86. package/dist/types/api-model/models/export-invoices-response.d.ts +0 -20
  87. package/dist/types/api-model/models/export-status.d.ts +0 -21
  88. package/dist/types/api-model/models/export.d.ts +0 -38
  89. package/dist/types/api-model/models/file-format.d.ts +0 -18
  90. package/dist/types/api-model/models/get-invoice-response.d.ts +0 -18
  91. package/dist/types/api-model/models/get-invoices-attributes-response.d.ts +0 -18
  92. package/dist/types/api-model/models/get-invoices-document-response.d.ts +0 -18
  93. package/dist/types/api-model/models/get-invoices-export-response.d.ts +0 -18
  94. package/dist/types/api-model/models/get-invoices-exports-response.d.ts +0 -25
  95. package/dist/types/api-model/models/get-invoices-response.d.ts +0 -25
  96. package/dist/types/api-model/models/government-invoice-creation-status.d.ts +0 -20
  97. package/dist/types/api-model/models/government-invoice-request.d.ts +0 -41
  98. package/dist/types/api-model/models/government-invoice-status-response.d.ts +0 -27
  99. package/dist/types/api-model/models/govt-invoice-document-response.d.ts +0 -18
  100. package/dist/types/api-model/models/index.d.ts +0 -25
  101. package/dist/types/api-model/models/invoice-document.d.ts +0 -20
  102. package/dist/types/api-model/models/invoice-error.d.ts +0 -24
  103. package/dist/types/api-model/models/invoice.d.ts +0 -57
  104. package/dist/types/api-model/models/invoices-attributes.d.ts +0 -33
  105. package/dist/types/api-model/models/invoices-document.d.ts +0 -24
  106. package/dist/types/api-model/models/model-error.d.ts +0 -28
  107. package/dist/types/api-model/models/transaction-identifier.d.ts +0 -24
  108. package/dist/types/client.d.ts +0 -6
  109. package/dist/types/index.d.ts +0 -3
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Invoices.
5
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
6
- *
7
- * The version of the OpenAPI document: 2024-06-19
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Invoices.
5
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
6
- *
7
- * The version of the OpenAPI document: 2024-06-19
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Invoices.
5
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
6
- *
7
- * The version of the OpenAPI document: 2024-06-19
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Invoices.
5
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
6
- *
7
- * The version of the OpenAPI document: 2024-06-19
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
package/dist/es/client.js DELETED
@@ -1,80 +0,0 @@
1
- import { createAxiosInstance } from '@sp-api-sdk/common';
2
- import { Configuration, InvoicesApi } from './api-model';
3
- export const clientRateLimits = [
4
- {
5
- method: 'get',
6
- // eslint-disable-next-line prefer-regex-literals
7
- urlRegex: new RegExp('^/tax/invoices/2024-06-19/attributes$'),
8
- rate: 1,
9
- burst: 1,
10
- },
11
- {
12
- method: 'get',
13
- // eslint-disable-next-line prefer-regex-literals
14
- urlRegex: new RegExp('^/tax/invoices/2024-06-19/documents/[^/]*$'),
15
- rate: 0.0167,
16
- burst: 1,
17
- },
18
- {
19
- method: 'post',
20
- // eslint-disable-next-line prefer-regex-literals
21
- urlRegex: new RegExp('^/tax/invoices/2024-06-19/exports$'),
22
- rate: 0.167,
23
- burst: 1,
24
- },
25
- {
26
- method: 'get',
27
- // eslint-disable-next-line prefer-regex-literals
28
- urlRegex: new RegExp('^/tax/invoices/2024-06-19/exports$'),
29
- rate: 0.1,
30
- burst: 20,
31
- },
32
- {
33
- method: 'get',
34
- // eslint-disable-next-line prefer-regex-literals
35
- urlRegex: new RegExp('^/tax/invoices/2024-06-19/exports/[^/]*$'),
36
- rate: 2,
37
- burst: 15,
38
- },
39
- {
40
- method: 'post',
41
- // eslint-disable-next-line prefer-regex-literals
42
- urlRegex: new RegExp('^/tax/invoices/2024-06-19/governmentInvoiceRequests$'),
43
- rate: 0.0167,
44
- burst: 1,
45
- },
46
- {
47
- method: 'get',
48
- // eslint-disable-next-line prefer-regex-literals
49
- urlRegex: new RegExp('^/tax/invoices/2024-06-19/governmentInvoiceRequests$'),
50
- rate: 0.0167,
51
- burst: 1,
52
- },
53
- {
54
- method: 'get',
55
- // eslint-disable-next-line prefer-regex-literals
56
- urlRegex: new RegExp('^/tax/invoices/2024-06-19/governmentInvoiceRequests/[^/]*$'),
57
- rate: 0.0167,
58
- burst: 1,
59
- },
60
- {
61
- method: 'get',
62
- // eslint-disable-next-line prefer-regex-literals
63
- urlRegex: new RegExp('^/tax/invoices/2024-06-19/invoices$'),
64
- rate: 0.1,
65
- burst: 20,
66
- },
67
- {
68
- method: 'get',
69
- // eslint-disable-next-line prefer-regex-literals
70
- urlRegex: new RegExp('^/tax/invoices/2024-06-19/invoices/[^/]*$'),
71
- rate: 2,
72
- burst: 15,
73
- },
74
- ];
75
- export class InvoicesApiClient extends InvoicesApi {
76
- constructor(configuration) {
77
- const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
78
- super(new Configuration(), endpoint, axios);
79
- }
80
- }
package/dist/es/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './client';
2
- export * from './api-model/api';
3
- export * from './api-model/models';
@@ -1,12 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export * from './api/invoices-api';
@@ -1,42 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Configuration } from './configuration';
13
- import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
- export declare const BASE_PATH: string;
15
- export declare const COLLECTION_FORMATS: {
16
- csv: string;
17
- ssv: string;
18
- tsv: string;
19
- pipes: string;
20
- };
21
- export interface RequestArgs {
22
- url: string;
23
- options: RawAxiosRequestConfig;
24
- }
25
- export declare class BaseAPI {
26
- protected basePath: string;
27
- protected axios: AxiosInstance;
28
- protected configuration: Configuration | undefined;
29
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
30
- }
31
- export declare class RequiredError extends Error {
32
- field: string;
33
- constructor(field: string, msg?: string);
34
- }
35
- interface ServerMap {
36
- [key: string]: {
37
- url: string;
38
- description: string;
39
- }[];
40
- }
41
- export declare const operationServerMap: ServerMap;
42
- export {};
@@ -1,34 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Configuration } from "./configuration";
13
- import type { RequestArgs } from "./base";
14
- import type { AxiosInstance, AxiosResponse } from 'axios';
15
- export declare const DUMMY_BASE_URL = "https://example.com";
16
- /**
17
- *
18
- * @throws {RequiredError}
19
- */
20
- export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
21
- export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
22
- export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
23
- export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
24
- export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
25
- export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
26
- /**
27
- * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
28
- * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
- * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
30
- */
31
- export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
32
- export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
33
- export declare const toPathString: (url: URL) => string;
34
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -1,98 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- interface AWSv4Configuration {
13
- options?: {
14
- region?: string;
15
- service?: string;
16
- };
17
- credentials?: {
18
- accessKeyId?: string;
19
- secretAccessKey?: string;
20
- sessionToken?: string;
21
- };
22
- }
23
- export interface ConfigurationParameters {
24
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
25
- username?: string;
26
- password?: string;
27
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
28
- awsv4?: AWSv4Configuration;
29
- basePath?: string;
30
- serverIndex?: number;
31
- baseOptions?: any;
32
- formDataCtor?: new () => any;
33
- }
34
- export declare class Configuration {
35
- /**
36
- * parameter for apiKey security
37
- * @param name security name
38
- */
39
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
40
- /**
41
- * parameter for basic security
42
- */
43
- username?: string;
44
- /**
45
- * parameter for basic security
46
- */
47
- password?: string;
48
- /**
49
- * parameter for oauth2 security
50
- * @param name security name
51
- * @param scopes oauth2 scope
52
- */
53
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
54
- /**
55
- * parameter for aws4 signature security
56
- * @param {Object} AWS4Signature - AWS4 Signature security
57
- * @param {string} options.region - aws region
58
- * @param {string} options.service - name of the service.
59
- * @param {string} credentials.accessKeyId - aws access key id
60
- * @param {string} credentials.secretAccessKey - aws access key
61
- * @param {string} credentials.sessionToken - aws session token
62
- * @memberof Configuration
63
- */
64
- awsv4?: AWSv4Configuration;
65
- /**
66
- * override base path
67
- */
68
- basePath?: string;
69
- /**
70
- * override server index
71
- */
72
- serverIndex?: number;
73
- /**
74
- * base options for axios calls
75
- */
76
- baseOptions?: any;
77
- /**
78
- * The FormData constructor that will be used to create multipart form data
79
- * requests. You can inject this here so that execution environments that
80
- * do not support the FormData class can still run the generated client.
81
- *
82
- * @type {new () => FormData}
83
- */
84
- formDataCtor?: new () => any;
85
- constructor(param?: ConfigurationParameters);
86
- /**
87
- * Check if the given MIME is a JSON MIME.
88
- * JSON MIME examples:
89
- * application/json
90
- * application/json; charset=UTF8
91
- * APPLICATION/JSON
92
- * application/vnd.company+json
93
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
94
- * @return True if the given MIME is JSON, false otherwise.
95
- */
96
- isJsonMime(mime: string): boolean;
97
- }
98
- export {};
@@ -1,14 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export * from "./api";
13
- export * from "./configuration";
14
- export * from "./models";
@@ -1,24 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * The definition of the attribute option.
14
- */
15
- export interface AttributeOption {
16
- /**
17
- * The description of the attribute value.
18
- */
19
- 'description'?: string;
20
- /**
21
- * The possible values for the attribute option.
22
- */
23
- 'value'?: string;
24
- }
@@ -1,48 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * Additional information about a carrier.
14
- */
15
- export interface CarrierDetailsContext {
16
- /**
17
- * The name of the carrier, as registered in state and federal tax authorities.
18
- */
19
- 'name'?: string;
20
- /**
21
- * The address of the carrier, as registered in state and federal tax authorities.
22
- */
23
- 'address'?: string;
24
- /**
25
- * Type of additional information.
26
- */
27
- 'contextType'?: string;
28
- /**
29
- * Tax Identification number of the carrier.
30
- */
31
- 'federalTaxId'?: string;
32
- /**
33
- * The code of the federal subdivision in which the carrier is registered.
34
- */
35
- 'regionCode'?: string;
36
- /**
37
- * The regional tax registration number of the carrier.
38
- */
39
- 'regionTaxId'?: string;
40
- /**
41
- * The identifier for the carrier vehicle as printed in its registration plate.
42
- */
43
- 'vehicleLicensePlate'?: string;
44
- /**
45
- * The code of the federal subdivision in which the carrier vehicle is registered.
46
- */
47
- 'vehicleRegistrationRegionCode'?: string;
48
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * A list of error responses that are returned when a request is unsuccessful.
14
- */
15
- export interface ErrorList {
16
- /**
17
- * List of errors.
18
- */
19
- 'errors': Array<Error>;
20
- }
@@ -1,52 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { FileFormat } from './file-format';
13
- import type { TransactionIdentifier } from './transaction-identifier';
14
- /**
15
- * The information required to create the export request.
16
- */
17
- export interface ExportInvoicesRequest {
18
- /**
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.
20
- */
21
- 'dateEnd'?: string;
22
- /**
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.
24
- */
25
- 'dateStart'?: string;
26
- /**
27
- * The external ID of the invoices you want included in the response.
28
- */
29
- 'externalInvoiceId'?: string;
30
- 'fileFormat'?: FileFormat;
31
- /**
32
- * The marketplace-specific classification of the invoice type. Use the `getInvoicesAttributes` operation to check `invoiceType` options.
33
- */
34
- 'invoiceType'?: string;
35
- /**
36
- * The ID of the marketplace from which you want the invoices.
37
- */
38
- 'marketplaceId': string;
39
- /**
40
- * The series number of the invoices you want included in the response.
41
- */
42
- 'series'?: string;
43
- /**
44
- * A list of statuses that you can use to filter invoices. Use the `getInvoicesAttributes` operation to check invoice status options. Min count: 1
45
- */
46
- 'statuses'?: Array<string>;
47
- 'transactionIdentifier'?: TransactionIdentifier;
48
- /**
49
- * The marketplace-specific classification of the transaction type for which the invoice was created. Use the `getInvoicesAttributes` operation to check `transactionType` options
50
- */
51
- 'transactionType'?: string;
52
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * Success.
14
- */
15
- export interface ExportInvoicesResponse {
16
- /**
17
- * The export identifier.
18
- */
19
- 'exportId'?: string;
20
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * The current status of the request.
14
- */
15
- export declare const ExportStatus: {
16
- readonly Requested: "REQUESTED";
17
- readonly Processing: "PROCESSING";
18
- readonly Done: "DONE";
19
- readonly Error: "ERROR";
20
- };
21
- export type ExportStatus = typeof ExportStatus[keyof typeof ExportStatus];
@@ -1,38 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { ExportStatus } from './export-status';
13
- /**
14
- * Detailed information about the export.
15
- */
16
- export interface Export {
17
- /**
18
- * When the export generation fails, this attribute contains a description of the error.
19
- */
20
- 'errorMessage'?: string;
21
- /**
22
- * The export identifier.
23
- */
24
- 'exportId'?: string;
25
- /**
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.
27
- */
28
- 'generateExportFinishedAt'?: string;
29
- /**
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.
31
- */
32
- 'generateExportStartedAt'?: string;
33
- /**
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`.
35
- */
36
- 'invoicesDocumentIds'?: Array<string>;
37
- 'status'?: ExportStatus;
38
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * Supported invoice file extensions.
14
- */
15
- export declare const FileFormat: {
16
- readonly Xml: "XML";
17
- };
18
- export type FileFormat = typeof FileFormat[keyof typeof FileFormat];
@@ -1,18 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Invoice } from './invoice';
13
- /**
14
- * Success.
15
- */
16
- export interface GetInvoiceResponse {
17
- 'invoice'?: Invoice;
18
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { InvoicesAttributes } from './invoices-attributes';
13
- /**
14
- * Success.
15
- */
16
- export interface GetInvoicesAttributesResponse {
17
- 'invoicesAttributes'?: InvoicesAttributes;
18
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * The Selling Partner API for Invoices.
3
- * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
4
- *
5
- * The version of the OpenAPI document: 2024-06-19
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { InvoicesDocument } from './invoices-document';
13
- /**
14
- * Success.
15
- */
16
- export interface GetInvoicesDocumentResponse {
17
- 'invoicesDocument'?: InvoicesDocument;
18
- }