yellowgrid-api-ts 3.2.80 → 3.2.81
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 +1 -0
- package/api.ts +82 -0
- package/dist/api.d.ts +40 -0
- package/dist/api.js +96 -0
- package/docs/OrdersApi.md +61 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -158,6 +158,7 @@ Class | Method | HTTP request | Description
|
|
|
158
158
|
*OrdersApi* | [**deleteUpdateShipment**](docs/OrdersApi.md#deleteupdateshipment) | **DELETE** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id} | Delete Shipment (Admin)
|
|
159
159
|
*OrdersApi* | [**getGetAdminEditableOrder**](docs/OrdersApi.md#getgetadmineditableorder) | **GET** /admin/orders/{id}/views/editable | Get Editable Order (Admin)
|
|
160
160
|
*OrdersApi* | [**getGetAdminOrderDetails**](docs/OrdersApi.md#getgetadminorderdetails) | **GET** /admin/orders/{id}/details | Get Order Details (Admin)
|
|
161
|
+
*OrdersApi* | [**getGetCommercialInvoice**](docs/OrdersApi.md#getgetcommercialinvoice) | **GET** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/pdf | Get Commercial Invoice PDF
|
|
161
162
|
*OrdersApi* | [**getGetEditableOrder**](docs/OrdersApi.md#getgeteditableorder) | **GET** /orders/{id}/views/editable | Get Editable Order (Beta)
|
|
162
163
|
*OrdersApi* | [**getGetItemSerialInfo**](docs/OrdersApi.md#getgetitemserialinfo) | **GET** /admin/orders/{id}/items/{item_id}/info | Get Item Serial Info (Admin)
|
|
163
164
|
*OrdersApi* | [**getGetOrderPdf**](docs/OrdersApi.md#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF
|
package/api.ts
CHANGED
|
@@ -16069,6 +16069,48 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
16069
16069
|
options: localVarRequestOptions,
|
|
16070
16070
|
};
|
|
16071
16071
|
},
|
|
16072
|
+
/**
|
|
16073
|
+
* Get Commercial Invoice PDF
|
|
16074
|
+
* @summary Get Commercial Invoice PDF
|
|
16075
|
+
* @param {number} id Order ID
|
|
16076
|
+
* @param {number} batchId Batch ID
|
|
16077
|
+
* @param {number} shipmentId Shipment ID
|
|
16078
|
+
* @param {*} [options] Override http request option.
|
|
16079
|
+
* @throws {RequiredError}
|
|
16080
|
+
*/
|
|
16081
|
+
getGetCommercialInvoice: async (id: number, batchId: number, shipmentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16082
|
+
// verify required parameter 'id' is not null or undefined
|
|
16083
|
+
assertParamExists('getGetCommercialInvoice', 'id', id)
|
|
16084
|
+
// verify required parameter 'batchId' is not null or undefined
|
|
16085
|
+
assertParamExists('getGetCommercialInvoice', 'batchId', batchId)
|
|
16086
|
+
// verify required parameter 'shipmentId' is not null or undefined
|
|
16087
|
+
assertParamExists('getGetCommercialInvoice', 'shipmentId', shipmentId)
|
|
16088
|
+
const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/pdf`
|
|
16089
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
16090
|
+
.replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
|
|
16091
|
+
.replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
|
|
16092
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16093
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16094
|
+
let baseOptions;
|
|
16095
|
+
if (configuration) {
|
|
16096
|
+
baseOptions = configuration.baseOptions;
|
|
16097
|
+
}
|
|
16098
|
+
|
|
16099
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16100
|
+
const localVarHeaderParameter = {} as any;
|
|
16101
|
+
const localVarQueryParameter = {} as any;
|
|
16102
|
+
|
|
16103
|
+
localVarHeaderParameter['Accept'] = 'application/pdf';
|
|
16104
|
+
|
|
16105
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16106
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16107
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16108
|
+
|
|
16109
|
+
return {
|
|
16110
|
+
url: toPathString(localVarUrlObj),
|
|
16111
|
+
options: localVarRequestOptions,
|
|
16112
|
+
};
|
|
16113
|
+
},
|
|
16072
16114
|
/**
|
|
16073
16115
|
* Get Editable Order (Beta)
|
|
16074
16116
|
* @summary Get Editable Order (Beta)
|
|
@@ -17082,6 +17124,21 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
17082
17124
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminOrderDetails']?.[localVarOperationServerIndex]?.url;
|
|
17083
17125
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17084
17126
|
},
|
|
17127
|
+
/**
|
|
17128
|
+
* Get Commercial Invoice PDF
|
|
17129
|
+
* @summary Get Commercial Invoice PDF
|
|
17130
|
+
* @param {number} id Order ID
|
|
17131
|
+
* @param {number} batchId Batch ID
|
|
17132
|
+
* @param {number} shipmentId Shipment ID
|
|
17133
|
+
* @param {*} [options] Override http request option.
|
|
17134
|
+
* @throws {RequiredError}
|
|
17135
|
+
*/
|
|
17136
|
+
async getGetCommercialInvoice(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
|
17137
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCommercialInvoice(id, batchId, shipmentId, options);
|
|
17138
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17139
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetCommercialInvoice']?.[localVarOperationServerIndex]?.url;
|
|
17140
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17141
|
+
},
|
|
17085
17142
|
/**
|
|
17086
17143
|
* Get Editable Order (Beta)
|
|
17087
17144
|
* @summary Get Editable Order (Beta)
|
|
@@ -17478,6 +17535,18 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
17478
17535
|
getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
|
|
17479
17536
|
return localVarFp.getGetAdminOrderDetails(id, options).then((request) => request(axios, basePath));
|
|
17480
17537
|
},
|
|
17538
|
+
/**
|
|
17539
|
+
* Get Commercial Invoice PDF
|
|
17540
|
+
* @summary Get Commercial Invoice PDF
|
|
17541
|
+
* @param {number} id Order ID
|
|
17542
|
+
* @param {number} batchId Batch ID
|
|
17543
|
+
* @param {number} shipmentId Shipment ID
|
|
17544
|
+
* @param {*} [options] Override http request option.
|
|
17545
|
+
* @throws {RequiredError}
|
|
17546
|
+
*/
|
|
17547
|
+
getGetCommercialInvoice(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
|
17548
|
+
return localVarFp.getGetCommercialInvoice(id, batchId, shipmentId, options).then((request) => request(axios, basePath));
|
|
17549
|
+
},
|
|
17481
17550
|
/**
|
|
17482
17551
|
* Get Editable Order (Beta)
|
|
17483
17552
|
* @summary Get Editable Order (Beta)
|
|
@@ -17808,6 +17877,19 @@ export class OrdersApi extends BaseAPI {
|
|
|
17808
17877
|
return OrdersApiFp(this.configuration).getGetAdminOrderDetails(id, options).then((request) => request(this.axios, this.basePath));
|
|
17809
17878
|
}
|
|
17810
17879
|
|
|
17880
|
+
/**
|
|
17881
|
+
* Get Commercial Invoice PDF
|
|
17882
|
+
* @summary Get Commercial Invoice PDF
|
|
17883
|
+
* @param {number} id Order ID
|
|
17884
|
+
* @param {number} batchId Batch ID
|
|
17885
|
+
* @param {number} shipmentId Shipment ID
|
|
17886
|
+
* @param {*} [options] Override http request option.
|
|
17887
|
+
* @throws {RequiredError}
|
|
17888
|
+
*/
|
|
17889
|
+
public getGetCommercialInvoice(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig) {
|
|
17890
|
+
return OrdersApiFp(this.configuration).getGetCommercialInvoice(id, batchId, shipmentId, options).then((request) => request(this.axios, this.basePath));
|
|
17891
|
+
}
|
|
17892
|
+
|
|
17811
17893
|
/**
|
|
17812
17894
|
* Get Editable Order (Beta)
|
|
17813
17895
|
* @summary Get Editable Order (Beta)
|
package/dist/api.d.ts
CHANGED
|
@@ -11630,6 +11630,16 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
11630
11630
|
* @throws {RequiredError}
|
|
11631
11631
|
*/
|
|
11632
11632
|
getGetAdminOrderDetails: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11633
|
+
/**
|
|
11634
|
+
* Get Commercial Invoice PDF
|
|
11635
|
+
* @summary Get Commercial Invoice PDF
|
|
11636
|
+
* @param {number} id Order ID
|
|
11637
|
+
* @param {number} batchId Batch ID
|
|
11638
|
+
* @param {number} shipmentId Shipment ID
|
|
11639
|
+
* @param {*} [options] Override http request option.
|
|
11640
|
+
* @throws {RequiredError}
|
|
11641
|
+
*/
|
|
11642
|
+
getGetCommercialInvoice: (id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11633
11643
|
/**
|
|
11634
11644
|
* Get Editable Order (Beta)
|
|
11635
11645
|
* @summary Get Editable Order (Beta)
|
|
@@ -11897,6 +11907,16 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
11897
11907
|
* @throws {RequiredError}
|
|
11898
11908
|
*/
|
|
11899
11909
|
getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>>;
|
|
11910
|
+
/**
|
|
11911
|
+
* Get Commercial Invoice PDF
|
|
11912
|
+
* @summary Get Commercial Invoice PDF
|
|
11913
|
+
* @param {number} id Order ID
|
|
11914
|
+
* @param {number} batchId Batch ID
|
|
11915
|
+
* @param {number} shipmentId Shipment ID
|
|
11916
|
+
* @param {*} [options] Override http request option.
|
|
11917
|
+
* @throws {RequiredError}
|
|
11918
|
+
*/
|
|
11919
|
+
getGetCommercialInvoice(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
11900
11920
|
/**
|
|
11901
11921
|
* Get Editable Order (Beta)
|
|
11902
11922
|
* @summary Get Editable Order (Beta)
|
|
@@ -12164,6 +12184,16 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
12164
12184
|
* @throws {RequiredError}
|
|
12165
12185
|
*/
|
|
12166
12186
|
getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO>;
|
|
12187
|
+
/**
|
|
12188
|
+
* Get Commercial Invoice PDF
|
|
12189
|
+
* @summary Get Commercial Invoice PDF
|
|
12190
|
+
* @param {number} id Order ID
|
|
12191
|
+
* @param {number} batchId Batch ID
|
|
12192
|
+
* @param {number} shipmentId Shipment ID
|
|
12193
|
+
* @param {*} [options] Override http request option.
|
|
12194
|
+
* @throws {RequiredError}
|
|
12195
|
+
*/
|
|
12196
|
+
getGetCommercialInvoice(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
12167
12197
|
/**
|
|
12168
12198
|
* Get Editable Order (Beta)
|
|
12169
12199
|
* @summary Get Editable Order (Beta)
|
|
@@ -12431,6 +12461,16 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
12431
12461
|
* @throws {RequiredError}
|
|
12432
12462
|
*/
|
|
12433
12463
|
getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderDetailsDTO, any, {}>>;
|
|
12464
|
+
/**
|
|
12465
|
+
* Get Commercial Invoice PDF
|
|
12466
|
+
* @summary Get Commercial Invoice PDF
|
|
12467
|
+
* @param {number} id Order ID
|
|
12468
|
+
* @param {number} batchId Batch ID
|
|
12469
|
+
* @param {number} shipmentId Shipment ID
|
|
12470
|
+
* @param {*} [options] Override http request option.
|
|
12471
|
+
* @throws {RequiredError}
|
|
12472
|
+
*/
|
|
12473
|
+
getGetCommercialInvoice(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
12434
12474
|
/**
|
|
12435
12475
|
* Get Editable Order (Beta)
|
|
12436
12476
|
* @summary Get Editable Order (Beta)
|
package/dist/api.js
CHANGED
|
@@ -10019,6 +10019,52 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10019
10019
|
});
|
|
10020
10020
|
});
|
|
10021
10021
|
},
|
|
10022
|
+
/**
|
|
10023
|
+
* Get Commercial Invoice PDF
|
|
10024
|
+
* @summary Get Commercial Invoice PDF
|
|
10025
|
+
* @param {number} id Order ID
|
|
10026
|
+
* @param {number} batchId Batch ID
|
|
10027
|
+
* @param {number} shipmentId Shipment ID
|
|
10028
|
+
* @param {*} [options] Override http request option.
|
|
10029
|
+
* @throws {RequiredError}
|
|
10030
|
+
*/
|
|
10031
|
+
getGetCommercialInvoice: function (id_1, batchId_1, shipmentId_1) {
|
|
10032
|
+
var args_1 = [];
|
|
10033
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
10034
|
+
args_1[_i - 3] = arguments[_i];
|
|
10035
|
+
}
|
|
10036
|
+
return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentId_1], args_1, true), void 0, function (id, batchId, shipmentId, options) {
|
|
10037
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10038
|
+
if (options === void 0) { options = {}; }
|
|
10039
|
+
return __generator(this, function (_a) {
|
|
10040
|
+
// verify required parameter 'id' is not null or undefined
|
|
10041
|
+
(0, common_1.assertParamExists)('getGetCommercialInvoice', 'id', id);
|
|
10042
|
+
// verify required parameter 'batchId' is not null or undefined
|
|
10043
|
+
(0, common_1.assertParamExists)('getGetCommercialInvoice', 'batchId', batchId);
|
|
10044
|
+
// verify required parameter 'shipmentId' is not null or undefined
|
|
10045
|
+
(0, common_1.assertParamExists)('getGetCommercialInvoice', 'shipmentId', shipmentId);
|
|
10046
|
+
localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/pdf"
|
|
10047
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
10048
|
+
.replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
|
|
10049
|
+
.replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
|
|
10050
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10051
|
+
if (configuration) {
|
|
10052
|
+
baseOptions = configuration.baseOptions;
|
|
10053
|
+
}
|
|
10054
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10055
|
+
localVarHeaderParameter = {};
|
|
10056
|
+
localVarQueryParameter = {};
|
|
10057
|
+
localVarHeaderParameter['Accept'] = 'application/pdf';
|
|
10058
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10059
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10060
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10061
|
+
return [2 /*return*/, {
|
|
10062
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10063
|
+
options: localVarRequestOptions,
|
|
10064
|
+
}];
|
|
10065
|
+
});
|
|
10066
|
+
});
|
|
10067
|
+
},
|
|
10022
10068
|
/**
|
|
10023
10069
|
* Get Editable Order (Beta)
|
|
10024
10070
|
* @summary Get Editable Order (Beta)
|
|
@@ -11158,6 +11204,31 @@ var OrdersApiFp = function (configuration) {
|
|
|
11158
11204
|
});
|
|
11159
11205
|
});
|
|
11160
11206
|
},
|
|
11207
|
+
/**
|
|
11208
|
+
* Get Commercial Invoice PDF
|
|
11209
|
+
* @summary Get Commercial Invoice PDF
|
|
11210
|
+
* @param {number} id Order ID
|
|
11211
|
+
* @param {number} batchId Batch ID
|
|
11212
|
+
* @param {number} shipmentId Shipment ID
|
|
11213
|
+
* @param {*} [options] Override http request option.
|
|
11214
|
+
* @throws {RequiredError}
|
|
11215
|
+
*/
|
|
11216
|
+
getGetCommercialInvoice: function (id, batchId, shipmentId, options) {
|
|
11217
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11218
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
11219
|
+
var _a, _b, _c;
|
|
11220
|
+
return __generator(this, function (_d) {
|
|
11221
|
+
switch (_d.label) {
|
|
11222
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCommercialInvoice(id, batchId, shipmentId, options)];
|
|
11223
|
+
case 1:
|
|
11224
|
+
localVarAxiosArgs = _d.sent();
|
|
11225
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11226
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetCommercialInvoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11227
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
11228
|
+
}
|
|
11229
|
+
});
|
|
11230
|
+
});
|
|
11231
|
+
},
|
|
11161
11232
|
/**
|
|
11162
11233
|
* Get Editable Order (Beta)
|
|
11163
11234
|
* @summary Get Editable Order (Beta)
|
|
@@ -11784,6 +11855,18 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
11784
11855
|
getGetAdminOrderDetails: function (id, options) {
|
|
11785
11856
|
return localVarFp.getGetAdminOrderDetails(id, options).then(function (request) { return request(axios, basePath); });
|
|
11786
11857
|
},
|
|
11858
|
+
/**
|
|
11859
|
+
* Get Commercial Invoice PDF
|
|
11860
|
+
* @summary Get Commercial Invoice PDF
|
|
11861
|
+
* @param {number} id Order ID
|
|
11862
|
+
* @param {number} batchId Batch ID
|
|
11863
|
+
* @param {number} shipmentId Shipment ID
|
|
11864
|
+
* @param {*} [options] Override http request option.
|
|
11865
|
+
* @throws {RequiredError}
|
|
11866
|
+
*/
|
|
11867
|
+
getGetCommercialInvoice: function (id, batchId, shipmentId, options) {
|
|
11868
|
+
return localVarFp.getGetCommercialInvoice(id, batchId, shipmentId, options).then(function (request) { return request(axios, basePath); });
|
|
11869
|
+
},
|
|
11787
11870
|
/**
|
|
11788
11871
|
* Get Editable Order (Beta)
|
|
11789
11872
|
* @summary Get Editable Order (Beta)
|
|
@@ -12118,6 +12201,19 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
12118
12201
|
var _this = this;
|
|
12119
12202
|
return (0, exports.OrdersApiFp)(this.configuration).getGetAdminOrderDetails(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12120
12203
|
};
|
|
12204
|
+
/**
|
|
12205
|
+
* Get Commercial Invoice PDF
|
|
12206
|
+
* @summary Get Commercial Invoice PDF
|
|
12207
|
+
* @param {number} id Order ID
|
|
12208
|
+
* @param {number} batchId Batch ID
|
|
12209
|
+
* @param {number} shipmentId Shipment ID
|
|
12210
|
+
* @param {*} [options] Override http request option.
|
|
12211
|
+
* @throws {RequiredError}
|
|
12212
|
+
*/
|
|
12213
|
+
OrdersApi.prototype.getGetCommercialInvoice = function (id, batchId, shipmentId, options) {
|
|
12214
|
+
var _this = this;
|
|
12215
|
+
return (0, exports.OrdersApiFp)(this.configuration).getGetCommercialInvoice(id, batchId, shipmentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12216
|
+
};
|
|
12121
12217
|
/**
|
|
12122
12218
|
* Get Editable Order (Beta)
|
|
12123
12219
|
* @summary Get Editable Order (Beta)
|
package/docs/OrdersApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *https://bitbucket.org*
|
|
|
9
9
|
|[**deleteUpdateShipment**](#deleteupdateshipment) | **DELETE** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id} | Delete Shipment (Admin)|
|
|
10
10
|
|[**getGetAdminEditableOrder**](#getgetadmineditableorder) | **GET** /admin/orders/{id}/views/editable | Get Editable Order (Admin)|
|
|
11
11
|
|[**getGetAdminOrderDetails**](#getgetadminorderdetails) | **GET** /admin/orders/{id}/details | Get Order Details (Admin)|
|
|
12
|
+
|[**getGetCommercialInvoice**](#getgetcommercialinvoice) | **GET** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/pdf | Get Commercial Invoice PDF|
|
|
12
13
|
|[**getGetEditableOrder**](#getgeteditableorder) | **GET** /orders/{id}/views/editable | Get Editable Order (Beta)|
|
|
13
14
|
|[**getGetItemSerialInfo**](#getgetitemserialinfo) | **GET** /admin/orders/{id}/items/{item_id}/info | Get Item Serial Info (Admin)|
|
|
14
15
|
|[**getGetOrderPdf**](#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF|
|
|
@@ -312,6 +313,66 @@ No authorization required
|
|
|
312
313
|
|
|
313
314
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
314
315
|
|
|
316
|
+
# **getGetCommercialInvoice**
|
|
317
|
+
> File getGetCommercialInvoice()
|
|
318
|
+
|
|
319
|
+
Get Commercial Invoice PDF
|
|
320
|
+
|
|
321
|
+
### Example
|
|
322
|
+
|
|
323
|
+
```typescript
|
|
324
|
+
import {
|
|
325
|
+
OrdersApi,
|
|
326
|
+
Configuration
|
|
327
|
+
} from 'yellowgrid-api-ts';
|
|
328
|
+
|
|
329
|
+
const configuration = new Configuration();
|
|
330
|
+
const apiInstance = new OrdersApi(configuration);
|
|
331
|
+
|
|
332
|
+
let id: number; //Order ID (default to undefined)
|
|
333
|
+
let batchId: number; //Batch ID (default to undefined)
|
|
334
|
+
let shipmentId: number; //Shipment ID (default to undefined)
|
|
335
|
+
|
|
336
|
+
const { status, data } = await apiInstance.getGetCommercialInvoice(
|
|
337
|
+
id,
|
|
338
|
+
batchId,
|
|
339
|
+
shipmentId
|
|
340
|
+
);
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
### Parameters
|
|
344
|
+
|
|
345
|
+
|Name | Type | Description | Notes|
|
|
346
|
+
|------------- | ------------- | ------------- | -------------|
|
|
347
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
348
|
+
| **batchId** | [**number**] | Batch ID | defaults to undefined|
|
|
349
|
+
| **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
### Return type
|
|
353
|
+
|
|
354
|
+
**File**
|
|
355
|
+
|
|
356
|
+
### Authorization
|
|
357
|
+
|
|
358
|
+
No authorization required
|
|
359
|
+
|
|
360
|
+
### HTTP request headers
|
|
361
|
+
|
|
362
|
+
- **Content-Type**: Not defined
|
|
363
|
+
- **Accept**: application/pdf
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
### HTTP response details
|
|
367
|
+
| Status code | Description | Response headers |
|
|
368
|
+
|-------------|-------------|------------------|
|
|
369
|
+
|**200** | Order PDF | - |
|
|
370
|
+
|**400** | Bad Request | - |
|
|
371
|
+
|**401** | Unauthorised | - |
|
|
372
|
+
|**403** | Access Denied | - |
|
|
373
|
+
|
|
374
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
375
|
+
|
|
315
376
|
# **getGetEditableOrder**
|
|
316
377
|
> DetailedOrderRequestDTO getGetEditableOrder()
|
|
317
378
|
|