@sp-api-sdk/vendor-orders-api-v1 1.6.15
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/LICENSE +21 -0
- package/README.md +58 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/src/api-model/api/vendor-orders-api.js +438 -0
- package/dist/cjs/src/api-model/api.js +17 -0
- package/dist/cjs/src/api-model/base.js +62 -0
- package/dist/cjs/src/api-model/common.js +137 -0
- package/dist/cjs/src/api-model/configuration.js +42 -0
- package/dist/cjs/src/api-model/index.js +19 -0
- package/dist/cjs/src/api-model/models/acknowledgement-status-details.js +15 -0
- package/dist/cjs/src/api-model/models/address.js +15 -0
- package/dist/cjs/src/api-model/models/get-purchase-order-response.js +15 -0
- package/dist/cjs/src/api-model/models/get-purchase-orders-response.js +15 -0
- package/dist/cjs/src/api-model/models/get-purchase-orders-status-response.js +15 -0
- package/dist/cjs/src/api-model/models/import-details.js +47 -0
- package/dist/cjs/src/api-model/models/index.js +31 -0
- package/dist/cjs/src/api-model/models/item-quantity.js +25 -0
- package/dist/cjs/src/api-model/models/model-error.js +15 -0
- package/dist/cjs/src/api-model/models/money.js +15 -0
- package/dist/cjs/src/api-model/models/order-acknowledgement-item.js +15 -0
- package/dist/cjs/src/api-model/models/order-acknowledgement.js +15 -0
- package/dist/cjs/src/api-model/models/order-details.js +38 -0
- package/dist/cjs/src/api-model/models/order-item-acknowledgement.js +36 -0
- package/dist/cjs/src/api-model/models/order-item-status-acknowledgement-status.js +27 -0
- package/dist/cjs/src/api-model/models/order-item-status-ordered-quantity.js +15 -0
- package/dist/cjs/src/api-model/models/order-item-status.js +15 -0
- package/dist/cjs/src/api-model/models/order-item.js +15 -0
- package/dist/cjs/src/api-model/models/order-list-status.js +15 -0
- package/dist/cjs/src/api-model/models/order-list.js +15 -0
- package/dist/cjs/src/api-model/models/order-status.js +25 -0
- package/dist/cjs/src/api-model/models/order.js +26 -0
- package/dist/cjs/src/api-model/models/ordered-quantity-details.js +15 -0
- package/dist/cjs/src/api-model/models/pagination.js +15 -0
- package/dist/cjs/src/api-model/models/party-identification.js +15 -0
- package/dist/cjs/src/api-model/models/submit-acknowledgement-request.js +15 -0
- package/dist/cjs/src/api-model/models/submit-acknowledgement-response.js +15 -0
- package/dist/cjs/src/api-model/models/tax-registration-details.js +25 -0
- package/dist/cjs/src/api-model/models/transaction-id.js +15 -0
- package/dist/cjs/src/client.js +53 -0
- package/dist/cjs/src/error.js +10 -0
- package/dist/es/index.js +3 -0
- package/dist/es/src/api-model/api/vendor-orders-api.js +430 -0
- package/dist/es/src/api-model/api.js +14 -0
- package/dist/es/src/api-model/base.js +56 -0
- package/dist/es/src/api-model/common.js +125 -0
- package/dist/es/src/api-model/configuration.js +38 -0
- package/dist/es/src/api-model/index.js +16 -0
- package/dist/es/src/api-model/models/acknowledgement-status-details.js +14 -0
- package/dist/es/src/api-model/models/address.js +14 -0
- package/dist/es/src/api-model/models/get-purchase-order-response.js +14 -0
- package/dist/es/src/api-model/models/get-purchase-orders-response.js +14 -0
- package/dist/es/src/api-model/models/get-purchase-orders-status-response.js +14 -0
- package/dist/es/src/api-model/models/import-details.js +44 -0
- package/dist/es/src/api-model/models/index.js +28 -0
- package/dist/es/src/api-model/models/item-quantity.js +22 -0
- package/dist/es/src/api-model/models/model-error.js +14 -0
- package/dist/es/src/api-model/models/money.js +14 -0
- package/dist/es/src/api-model/models/order-acknowledgement-item.js +14 -0
- package/dist/es/src/api-model/models/order-acknowledgement.js +14 -0
- package/dist/es/src/api-model/models/order-details.js +35 -0
- package/dist/es/src/api-model/models/order-item-acknowledgement.js +33 -0
- package/dist/es/src/api-model/models/order-item-status-acknowledgement-status.js +24 -0
- package/dist/es/src/api-model/models/order-item-status-ordered-quantity.js +14 -0
- package/dist/es/src/api-model/models/order-item-status.js +14 -0
- package/dist/es/src/api-model/models/order-item.js +14 -0
- package/dist/es/src/api-model/models/order-list-status.js +14 -0
- package/dist/es/src/api-model/models/order-list.js +14 -0
- package/dist/es/src/api-model/models/order-status.js +22 -0
- package/dist/es/src/api-model/models/order.js +23 -0
- package/dist/es/src/api-model/models/ordered-quantity-details.js +14 -0
- package/dist/es/src/api-model/models/pagination.js +14 -0
- package/dist/es/src/api-model/models/party-identification.js +14 -0
- package/dist/es/src/api-model/models/submit-acknowledgement-request.js +14 -0
- package/dist/es/src/api-model/models/submit-acknowledgement-response.js +14 -0
- package/dist/es/src/api-model/models/tax-registration-details.js +22 -0
- package/dist/es/src/api-model/models/transaction-id.js +14 -0
- package/dist/es/src/client.js +49 -0
- package/dist/es/src/error.js +6 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/src/api-model/api/vendor-orders-api.d.ts +411 -0
- package/dist/types/src/api-model/api.d.ts +12 -0
- package/dist/types/src/api-model/base.d.ts +55 -0
- package/dist/types/src/api-model/common.d.ts +65 -0
- package/dist/types/src/api-model/configuration.d.ts +83 -0
- package/dist/types/src/api-model/index.d.ts +14 -0
- package/dist/types/src/api-model/models/acknowledgement-status-details.d.ts +37 -0
- package/dist/types/src/api-model/models/address.d.ts +84 -0
- package/dist/types/src/api-model/models/get-purchase-order-response.d.ts +31 -0
- package/dist/types/src/api-model/models/get-purchase-orders-response.d.ts +31 -0
- package/dist/types/src/api-model/models/get-purchase-orders-status-response.d.ts +31 -0
- package/dist/types/src/api-model/models/import-details.d.ts +77 -0
- package/dist/types/src/api-model/models/index.d.ts +28 -0
- package/dist/types/src/api-model/models/item-quantity.d.ts +44 -0
- package/dist/types/src/api-model/models/model-error.d.ts +36 -0
- package/dist/types/src/api-model/models/money.d.ts +30 -0
- package/dist/types/src/api-model/models/order-acknowledgement-item.d.ts +69 -0
- package/dist/types/src/api-model/models/order-acknowledgement.d.ts +44 -0
- package/dist/types/src/api-model/models/order-details.d.ts +125 -0
- package/dist/types/src/api-model/models/order-item-acknowledgement.d.ts +67 -0
- package/dist/types/src/api-model/models/order-item-status-acknowledgement-status.d.ts +54 -0
- package/dist/types/src/api-model/models/order-item-status-ordered-quantity.d.ts +32 -0
- package/dist/types/src/api-model/models/order-item-status.d.ts +63 -0
- package/dist/types/src/api-model/models/order-item.d.ts +62 -0
- package/dist/types/src/api-model/models/order-list-status.d.ts +32 -0
- package/dist/types/src/api-model/models/order-list.d.ts +32 -0
- package/dist/types/src/api-model/models/order-status.d.ts +70 -0
- package/dist/types/src/api-model/models/order.d.ts +46 -0
- package/dist/types/src/api-model/models/ordered-quantity-details.d.ts +37 -0
- package/dist/types/src/api-model/models/pagination.d.ts +24 -0
- package/dist/types/src/api-model/models/party-identification.d.ts +38 -0
- package/dist/types/src/api-model/models/submit-acknowledgement-request.d.ts +25 -0
- package/dist/types/src/api-model/models/submit-acknowledgement-response.d.ts +31 -0
- package/dist/types/src/api-model/models/tax-registration-details.d.ts +38 -0
- package/dist/types/src/api-model/models/transaction-id.d.ts +24 -0
- package/dist/types/src/client.d.ts +13 -0
- package/dist/types/src/error.d.ts +3 -0
- package/package.json +53 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Retail Procurement Orders
|
|
3
|
+
* The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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 { Configuration } from "./configuration";
|
|
13
|
+
import { RequestArgs } from "./base";
|
|
14
|
+
import { AxiosInstance } from 'axios';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration | undefined) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration | undefined) => void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration | undefined) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration | undefined) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration | undefined) => any;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const toPathString: (url: URL) => string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Retail Procurement Orders
|
|
3
|
+
* The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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 interface ConfigurationParameters {
|
|
13
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
+
basePath?: string;
|
|
18
|
+
baseOptions?: any;
|
|
19
|
+
formDataCtor?: new () => any;
|
|
20
|
+
}
|
|
21
|
+
export declare class Configuration {
|
|
22
|
+
/**
|
|
23
|
+
* parameter for apiKey security
|
|
24
|
+
* @param name security name
|
|
25
|
+
* @memberof Configuration
|
|
26
|
+
*/
|
|
27
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
|
+
/**
|
|
29
|
+
* parameter for basic security
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Configuration
|
|
33
|
+
*/
|
|
34
|
+
username?: string;
|
|
35
|
+
/**
|
|
36
|
+
* parameter for basic security
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Configuration
|
|
40
|
+
*/
|
|
41
|
+
password?: string;
|
|
42
|
+
/**
|
|
43
|
+
* parameter for oauth2 security
|
|
44
|
+
* @param name security name
|
|
45
|
+
* @param scopes oauth2 scope
|
|
46
|
+
* @memberof Configuration
|
|
47
|
+
*/
|
|
48
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
49
|
+
/**
|
|
50
|
+
* override base path
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
basePath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* base options for axios calls
|
|
58
|
+
*
|
|
59
|
+
* @type {any}
|
|
60
|
+
* @memberof Configuration
|
|
61
|
+
*/
|
|
62
|
+
baseOptions?: any;
|
|
63
|
+
/**
|
|
64
|
+
* The FormData constructor that will be used to create multipart form data
|
|
65
|
+
* requests. You can inject this here so that execution environments that
|
|
66
|
+
* do not support the FormData class can still run the generated client.
|
|
67
|
+
*
|
|
68
|
+
* @type {new () => FormData}
|
|
69
|
+
*/
|
|
70
|
+
formDataCtor?: new () => any;
|
|
71
|
+
constructor(param?: ConfigurationParameters);
|
|
72
|
+
/**
|
|
73
|
+
* Check if the given MIME is a JSON MIME.
|
|
74
|
+
* JSON MIME examples:
|
|
75
|
+
* application/json
|
|
76
|
+
* application/json; charset=UTF8
|
|
77
|
+
* APPLICATION/JSON
|
|
78
|
+
* application/vnd.company+json
|
|
79
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
80
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
81
|
+
*/
|
|
82
|
+
isJsonMime(mime: string): boolean;
|
|
83
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Retail Procurement Orders
|
|
3
|
+
* The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Retail Procurement Orders
|
|
3
|
+
* The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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 { ItemQuantity } from './item-quantity';
|
|
13
|
+
/**
|
|
14
|
+
* Details of item quantity ordered
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AcknowledgementStatusDetails
|
|
17
|
+
*/
|
|
18
|
+
export interface AcknowledgementStatusDetails {
|
|
19
|
+
/**
|
|
20
|
+
* The date when the line item was confirmed by vendor. Must be in ISO-8601 date/time format.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AcknowledgementStatusDetails
|
|
23
|
+
*/
|
|
24
|
+
acknowledgementDate?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ItemQuantity}
|
|
28
|
+
* @memberof AcknowledgementStatusDetails
|
|
29
|
+
*/
|
|
30
|
+
acceptedQuantity?: ItemQuantity;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ItemQuantity}
|
|
34
|
+
* @memberof AcknowledgementStatusDetails
|
|
35
|
+
*/
|
|
36
|
+
rejectedQuantity?: ItemQuantity;
|
|
37
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Retail Procurement Orders
|
|
3
|
+
* The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
* Address of the party.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Address
|
|
16
|
+
*/
|
|
17
|
+
export interface Address {
|
|
18
|
+
/**
|
|
19
|
+
* The name of the person, business or institution at that address.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Address
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* First line of the address.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Address
|
|
28
|
+
*/
|
|
29
|
+
addressLine1: string;
|
|
30
|
+
/**
|
|
31
|
+
* Additional address information, if required.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Address
|
|
34
|
+
*/
|
|
35
|
+
addressLine2?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Additional address information, if required.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Address
|
|
40
|
+
*/
|
|
41
|
+
addressLine3?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The city where the person, business or institution is located.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Address
|
|
46
|
+
*/
|
|
47
|
+
city?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The county where person, business or institution is located.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Address
|
|
52
|
+
*/
|
|
53
|
+
county?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The district where person, business or institution is located.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Address
|
|
58
|
+
*/
|
|
59
|
+
district?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The state or region where person, business or institution is located.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Address
|
|
64
|
+
*/
|
|
65
|
+
stateOrRegion?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof Address
|
|
70
|
+
*/
|
|
71
|
+
postalCode?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The two digit country code. In ISO 3166-1 alpha-2 format.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof Address
|
|
76
|
+
*/
|
|
77
|
+
countryCode: string;
|
|
78
|
+
/**
|
|
79
|
+
* The phone number of the person, business or institution located at that address.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof Address
|
|
82
|
+
*/
|
|
83
|
+
phone?: string;
|
|
84
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Retail Procurement Orders
|
|
3
|
+
* The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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 { Order } from './order';
|
|
13
|
+
/**
|
|
14
|
+
* The response schema for the getPurchaseOrder operation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetPurchaseOrderResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GetPurchaseOrderResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Order}
|
|
22
|
+
* @memberof GetPurchaseOrderResponse
|
|
23
|
+
*/
|
|
24
|
+
payload?: Order;
|
|
25
|
+
/**
|
|
26
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
27
|
+
* @type {Array<Error>}
|
|
28
|
+
* @memberof GetPurchaseOrderResponse
|
|
29
|
+
*/
|
|
30
|
+
errors?: Array<Error>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Retail Procurement Orders
|
|
3
|
+
* The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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 { OrderList } from './order-list';
|
|
13
|
+
/**
|
|
14
|
+
* The response schema for the getPurchaseOrders operation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetPurchaseOrdersResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GetPurchaseOrdersResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {OrderList}
|
|
22
|
+
* @memberof GetPurchaseOrdersResponse
|
|
23
|
+
*/
|
|
24
|
+
payload?: OrderList;
|
|
25
|
+
/**
|
|
26
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
27
|
+
* @type {Array<Error>}
|
|
28
|
+
* @memberof GetPurchaseOrdersResponse
|
|
29
|
+
*/
|
|
30
|
+
errors?: Array<Error>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Retail Procurement Orders
|
|
3
|
+
* The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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 { OrderListStatus } from './order-list-status';
|
|
13
|
+
/**
|
|
14
|
+
* The response schema for the getPurchaseOrdersStatus operation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetPurchaseOrdersStatusResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GetPurchaseOrdersStatusResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {OrderListStatus}
|
|
22
|
+
* @memberof GetPurchaseOrdersStatusResponse
|
|
23
|
+
*/
|
|
24
|
+
payload?: OrderListStatus;
|
|
25
|
+
/**
|
|
26
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
27
|
+
* @type {Array<Error>}
|
|
28
|
+
* @memberof GetPurchaseOrdersStatusResponse
|
|
29
|
+
*/
|
|
30
|
+
errors?: Array<Error>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Retail Procurement Orders
|
|
3
|
+
* The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
* Import details for an import order.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ImportDetails
|
|
16
|
+
*/
|
|
17
|
+
export interface ImportDetails {
|
|
18
|
+
/**
|
|
19
|
+
* If the recipient requests, contains the shipment method of payment. This is for import PO\'s only.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ImportDetails
|
|
22
|
+
*/
|
|
23
|
+
methodOfPayment?: ImportDetailsMethodOfPaymentEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Incoterms (International Commercial Terms) are used to divide transaction costs and responsibilities between buyer and seller and reflect state-of-the-art transportation practices. This is for import purchase orders only.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ImportDetails
|
|
28
|
+
*/
|
|
29
|
+
internationalCommercialTerms?: ImportDetailsInternationalCommercialTermsEnum;
|
|
30
|
+
/**
|
|
31
|
+
* The port where goods on an import purchase order must be delivered by the vendor. This should only be specified when the internationalCommercialTerms is FOB.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ImportDetails
|
|
34
|
+
*/
|
|
35
|
+
portOfDelivery?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Types and numbers of container(s) for import purchase orders. Can be a comma-separated list if the shipment has multiple containers. HC signifies a high-capacity container. Free-text field, limited to 64 characters. The format will be a comma-delimited list containing values of the type: $NUMBER_OF_CONTAINERS_OF_THIS_TYPE-$CONTAINER_TYPE. The list of values for the container type is: 40\'(40-foot container), 40\'HC (40-foot high-capacity container), 45\', 45\'HC, 30\', 30\'HC, 20\', 20\'HC.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ImportDetails
|
|
40
|
+
*/
|
|
41
|
+
importContainers?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Special instructions regarding the shipment. This field is for import purchase orders.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ImportDetails
|
|
46
|
+
*/
|
|
47
|
+
shippingInstructions?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
* @enum {string}
|
|
52
|
+
*/
|
|
53
|
+
export declare enum ImportDetailsMethodOfPaymentEnum {
|
|
54
|
+
PaidByBuyer = "PaidByBuyer",
|
|
55
|
+
CollectOnDelivery = "CollectOnDelivery",
|
|
56
|
+
DefinedByBuyerAndSeller = "DefinedByBuyerAndSeller",
|
|
57
|
+
FobPortOfCall = "FOBPortOfCall",
|
|
58
|
+
PrepaidBySeller = "PrepaidBySeller",
|
|
59
|
+
PaidBySeller = "PaidBySeller"
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
* @enum {string}
|
|
64
|
+
*/
|
|
65
|
+
export declare enum ImportDetailsInternationalCommercialTermsEnum {
|
|
66
|
+
ExWorks = "ExWorks",
|
|
67
|
+
FreeCarrier = "FreeCarrier",
|
|
68
|
+
FreeOnBoard = "FreeOnBoard",
|
|
69
|
+
FreeAlongSideShip = "FreeAlongSideShip",
|
|
70
|
+
CarriagePaidTo = "CarriagePaidTo",
|
|
71
|
+
CostAndFreight = "CostAndFreight",
|
|
72
|
+
CarriageAndInsurancePaidTo = "CarriageAndInsurancePaidTo",
|
|
73
|
+
CostInsuranceAndFreight = "CostInsuranceAndFreight",
|
|
74
|
+
DeliveredAtTerminal = "DeliveredAtTerminal",
|
|
75
|
+
DeliveredAtPlace = "DeliveredAtPlace",
|
|
76
|
+
DeliverDutyPaid = "DeliverDutyPaid"
|
|
77
|
+
}
|