yellowgrid-api-ts 3.2.90-dev.0 → 3.2.92-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/api.ts +79 -0
- package/dist/api.d.ts +37 -0
- package/dist/api.js +91 -0
- package/docs/OrdersApi.md +58 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -176,6 +176,7 @@ Class | Method | HTTP request | Description
|
|
|
176
176
|
*OrdersApi* | [**putAllocateItems**](docs/OrdersApi.md#putallocateitems) | **PUT** /admin/orders/{id}/items/allocate | Allocate Items To Supplier
|
|
177
177
|
*OrdersApi* | [**putUpdateAdminOrder**](docs/OrdersApi.md#putupdateadminorder) | **PUT** /admin/orders/{id} | Update An Order (Admin)
|
|
178
178
|
*OrdersApi* | [**putUpdateOrder**](docs/OrdersApi.md#putupdateorder) | **PUT** /orders/{id} | Update An Order (Beta)
|
|
179
|
+
*OrdersApi* | [**putUpdatePaymentStatus**](docs/OrdersApi.md#putupdatepaymentstatus) | **PUT** /admin/orders/{id}/paid | Change Payment Status (Admin)
|
|
179
180
|
*OrdersApi* | [**putUpdateShipment**](docs/OrdersApi.md#putupdateshipment) | **PUT** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id} | Update Shipment (Admin)
|
|
180
181
|
*PricingApi* | [**getGetPriceList**](docs/PricingApi.md#getgetpricelist) | **GET** /finance/pricing/lists | Get Price List
|
|
181
182
|
*PricingApi* | [**postSendPriceList**](docs/PricingApi.md#postsendpricelist) | **POST** /finance/pricing/lists/send | Send Price List
|
package/api.ts
CHANGED
|
@@ -20951,6 +20951,47 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
20951
20951
|
options: localVarRequestOptions,
|
|
20952
20952
|
};
|
|
20953
20953
|
},
|
|
20954
|
+
/**
|
|
20955
|
+
* Change Payment Status (Admin)
|
|
20956
|
+
* @summary Change Payment Status (Admin)
|
|
20957
|
+
* @param {number} id Order ID
|
|
20958
|
+
* @param {boolean} id2 Paid
|
|
20959
|
+
* @param {*} [options] Override http request option.
|
|
20960
|
+
* @throws {RequiredError}
|
|
20961
|
+
*/
|
|
20962
|
+
putUpdatePaymentStatus: async (id: number, id2: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20963
|
+
// verify required parameter 'id' is not null or undefined
|
|
20964
|
+
assertParamExists('putUpdatePaymentStatus', 'id', id)
|
|
20965
|
+
// verify required parameter 'id2' is not null or undefined
|
|
20966
|
+
assertParamExists('putUpdatePaymentStatus', 'id2', id2)
|
|
20967
|
+
const localVarPath = `/admin/orders/{id}/paid`
|
|
20968
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
20969
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20970
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20971
|
+
let baseOptions;
|
|
20972
|
+
if (configuration) {
|
|
20973
|
+
baseOptions = configuration.baseOptions;
|
|
20974
|
+
}
|
|
20975
|
+
|
|
20976
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
20977
|
+
const localVarHeaderParameter = {} as any;
|
|
20978
|
+
const localVarQueryParameter = {} as any;
|
|
20979
|
+
|
|
20980
|
+
if (id2 !== undefined) {
|
|
20981
|
+
localVarQueryParameter['id'] = id2;
|
|
20982
|
+
}
|
|
20983
|
+
|
|
20984
|
+
|
|
20985
|
+
|
|
20986
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20987
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20988
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20989
|
+
|
|
20990
|
+
return {
|
|
20991
|
+
url: toPathString(localVarUrlObj),
|
|
20992
|
+
options: localVarRequestOptions,
|
|
20993
|
+
};
|
|
20994
|
+
},
|
|
20954
20995
|
/**
|
|
20955
20996
|
* Update Shipment (Admin)
|
|
20956
20997
|
* @summary Update Shipment (Admin)
|
|
@@ -21350,6 +21391,20 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
21350
21391
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
21351
21392
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21352
21393
|
},
|
|
21394
|
+
/**
|
|
21395
|
+
* Change Payment Status (Admin)
|
|
21396
|
+
* @summary Change Payment Status (Admin)
|
|
21397
|
+
* @param {number} id Order ID
|
|
21398
|
+
* @param {boolean} id2 Paid
|
|
21399
|
+
* @param {*} [options] Override http request option.
|
|
21400
|
+
* @throws {RequiredError}
|
|
21401
|
+
*/
|
|
21402
|
+
async putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
|
|
21403
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdatePaymentStatus(id, id2, options);
|
|
21404
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21405
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdatePaymentStatus']?.[localVarOperationServerIndex]?.url;
|
|
21406
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21407
|
+
},
|
|
21353
21408
|
/**
|
|
21354
21409
|
* Update Shipment (Admin)
|
|
21355
21410
|
* @summary Update Shipment (Admin)
|
|
@@ -21647,6 +21702,17 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
21647
21702
|
putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
21648
21703
|
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
21649
21704
|
},
|
|
21705
|
+
/**
|
|
21706
|
+
* Change Payment Status (Admin)
|
|
21707
|
+
* @summary Change Payment Status (Admin)
|
|
21708
|
+
* @param {number} id Order ID
|
|
21709
|
+
* @param {boolean} id2 Paid
|
|
21710
|
+
* @param {*} [options] Override http request option.
|
|
21711
|
+
* @throws {RequiredError}
|
|
21712
|
+
*/
|
|
21713
|
+
putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
|
|
21714
|
+
return localVarFp.putUpdatePaymentStatus(id, id2, options).then((request) => request(axios, basePath));
|
|
21715
|
+
},
|
|
21650
21716
|
/**
|
|
21651
21717
|
* Update Shipment (Admin)
|
|
21652
21718
|
* @summary Update Shipment (Admin)
|
|
@@ -21989,6 +22055,19 @@ export class OrdersApi extends BaseAPI {
|
|
|
21989
22055
|
return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
21990
22056
|
}
|
|
21991
22057
|
|
|
22058
|
+
/**
|
|
22059
|
+
* Change Payment Status (Admin)
|
|
22060
|
+
* @summary Change Payment Status (Admin)
|
|
22061
|
+
* @param {number} id Order ID
|
|
22062
|
+
* @param {boolean} id2 Paid
|
|
22063
|
+
* @param {*} [options] Override http request option.
|
|
22064
|
+
* @throws {RequiredError}
|
|
22065
|
+
* @memberof OrdersApi
|
|
22066
|
+
*/
|
|
22067
|
+
public putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig) {
|
|
22068
|
+
return OrdersApiFp(this.configuration).putUpdatePaymentStatus(id, id2, options).then((request) => request(this.axios, this.basePath));
|
|
22069
|
+
}
|
|
22070
|
+
|
|
21992
22071
|
/**
|
|
21993
22072
|
* Update Shipment (Admin)
|
|
21994
22073
|
* @summary Update Shipment (Admin)
|
package/dist/api.d.ts
CHANGED
|
@@ -15875,6 +15875,15 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
15875
15875
|
* @throws {RequiredError}
|
|
15876
15876
|
*/
|
|
15877
15877
|
putUpdateOrder: (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15878
|
+
/**
|
|
15879
|
+
* Change Payment Status (Admin)
|
|
15880
|
+
* @summary Change Payment Status (Admin)
|
|
15881
|
+
* @param {number} id Order ID
|
|
15882
|
+
* @param {boolean} id2 Paid
|
|
15883
|
+
* @param {*} [options] Override http request option.
|
|
15884
|
+
* @throws {RequiredError}
|
|
15885
|
+
*/
|
|
15886
|
+
putUpdatePaymentStatus: (id: number, id2: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15878
15887
|
/**
|
|
15879
15888
|
* Update Shipment (Admin)
|
|
15880
15889
|
* @summary Update Shipment (Admin)
|
|
@@ -16115,6 +16124,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
16115
16124
|
* @throws {RequiredError}
|
|
16116
16125
|
*/
|
|
16117
16126
|
putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>>;
|
|
16127
|
+
/**
|
|
16128
|
+
* Change Payment Status (Admin)
|
|
16129
|
+
* @summary Change Payment Status (Admin)
|
|
16130
|
+
* @param {number} id Order ID
|
|
16131
|
+
* @param {boolean} id2 Paid
|
|
16132
|
+
* @param {*} [options] Override http request option.
|
|
16133
|
+
* @throws {RequiredError}
|
|
16134
|
+
*/
|
|
16135
|
+
putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>>;
|
|
16118
16136
|
/**
|
|
16119
16137
|
* Update Shipment (Admin)
|
|
16120
16138
|
* @summary Update Shipment (Admin)
|
|
@@ -16355,6 +16373,15 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
16355
16373
|
* @throws {RequiredError}
|
|
16356
16374
|
*/
|
|
16357
16375
|
putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>>;
|
|
16376
|
+
/**
|
|
16377
|
+
* Change Payment Status (Admin)
|
|
16378
|
+
* @summary Change Payment Status (Admin)
|
|
16379
|
+
* @param {number} id Order ID
|
|
16380
|
+
* @param {boolean} id2 Paid
|
|
16381
|
+
* @param {*} [options] Override http request option.
|
|
16382
|
+
* @throws {RequiredError}
|
|
16383
|
+
*/
|
|
16384
|
+
putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO>;
|
|
16358
16385
|
/**
|
|
16359
16386
|
* Update Shipment (Admin)
|
|
16360
16387
|
* @summary Update Shipment (Admin)
|
|
@@ -16621,6 +16648,16 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
16621
16648
|
* @memberof OrdersApi
|
|
16622
16649
|
*/
|
|
16623
16650
|
putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderSummaryDTO[], any, {}>>;
|
|
16651
|
+
/**
|
|
16652
|
+
* Change Payment Status (Admin)
|
|
16653
|
+
* @summary Change Payment Status (Admin)
|
|
16654
|
+
* @param {number} id Order ID
|
|
16655
|
+
* @param {boolean} id2 Paid
|
|
16656
|
+
* @param {*} [options] Override http request option.
|
|
16657
|
+
* @throws {RequiredError}
|
|
16658
|
+
* @memberof OrdersApi
|
|
16659
|
+
*/
|
|
16660
|
+
putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderDetailsDTO, any, {}>>;
|
|
16624
16661
|
/**
|
|
16625
16662
|
* Update Shipment (Admin)
|
|
16626
16663
|
* @summary Update Shipment (Admin)
|
package/dist/api.js
CHANGED
|
@@ -10882,6 +10882,49 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10882
10882
|
});
|
|
10883
10883
|
});
|
|
10884
10884
|
},
|
|
10885
|
+
/**
|
|
10886
|
+
* Change Payment Status (Admin)
|
|
10887
|
+
* @summary Change Payment Status (Admin)
|
|
10888
|
+
* @param {number} id Order ID
|
|
10889
|
+
* @param {boolean} id2 Paid
|
|
10890
|
+
* @param {*} [options] Override http request option.
|
|
10891
|
+
* @throws {RequiredError}
|
|
10892
|
+
*/
|
|
10893
|
+
putUpdatePaymentStatus: function (id_1, id2_1) {
|
|
10894
|
+
var args_1 = [];
|
|
10895
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
10896
|
+
args_1[_i - 2] = arguments[_i];
|
|
10897
|
+
}
|
|
10898
|
+
return __awaiter(_this, __spreadArray([id_1, id2_1], args_1, true), void 0, function (id, id2, options) {
|
|
10899
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10900
|
+
if (options === void 0) { options = {}; }
|
|
10901
|
+
return __generator(this, function (_a) {
|
|
10902
|
+
// verify required parameter 'id' is not null or undefined
|
|
10903
|
+
(0, common_1.assertParamExists)('putUpdatePaymentStatus', 'id', id);
|
|
10904
|
+
// verify required parameter 'id2' is not null or undefined
|
|
10905
|
+
(0, common_1.assertParamExists)('putUpdatePaymentStatus', 'id2', id2);
|
|
10906
|
+
localVarPath = "/admin/orders/{id}/paid"
|
|
10907
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
10908
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10909
|
+
if (configuration) {
|
|
10910
|
+
baseOptions = configuration.baseOptions;
|
|
10911
|
+
}
|
|
10912
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
10913
|
+
localVarHeaderParameter = {};
|
|
10914
|
+
localVarQueryParameter = {};
|
|
10915
|
+
if (id2 !== undefined) {
|
|
10916
|
+
localVarQueryParameter['id'] = id2;
|
|
10917
|
+
}
|
|
10918
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10919
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10920
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10921
|
+
return [2 /*return*/, {
|
|
10922
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10923
|
+
options: localVarRequestOptions,
|
|
10924
|
+
}];
|
|
10925
|
+
});
|
|
10926
|
+
});
|
|
10927
|
+
},
|
|
10885
10928
|
/**
|
|
10886
10929
|
* Update Shipment (Admin)
|
|
10887
10930
|
* @summary Update Shipment (Admin)
|
|
@@ -11523,6 +11566,30 @@ var OrdersApiFp = function (configuration) {
|
|
|
11523
11566
|
});
|
|
11524
11567
|
});
|
|
11525
11568
|
},
|
|
11569
|
+
/**
|
|
11570
|
+
* Change Payment Status (Admin)
|
|
11571
|
+
* @summary Change Payment Status (Admin)
|
|
11572
|
+
* @param {number} id Order ID
|
|
11573
|
+
* @param {boolean} id2 Paid
|
|
11574
|
+
* @param {*} [options] Override http request option.
|
|
11575
|
+
* @throws {RequiredError}
|
|
11576
|
+
*/
|
|
11577
|
+
putUpdatePaymentStatus: function (id, id2, options) {
|
|
11578
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11579
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
11580
|
+
var _a, _b, _c;
|
|
11581
|
+
return __generator(this, function (_d) {
|
|
11582
|
+
switch (_d.label) {
|
|
11583
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdatePaymentStatus(id, id2, options)];
|
|
11584
|
+
case 1:
|
|
11585
|
+
localVarAxiosArgs = _d.sent();
|
|
11586
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11587
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdatePaymentStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11588
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
11589
|
+
}
|
|
11590
|
+
});
|
|
11591
|
+
});
|
|
11592
|
+
},
|
|
11526
11593
|
/**
|
|
11527
11594
|
* Update Shipment (Admin)
|
|
11528
11595
|
* @summary Update Shipment (Admin)
|
|
@@ -11830,6 +11897,17 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
11830
11897
|
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
11831
11898
|
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
11832
11899
|
},
|
|
11900
|
+
/**
|
|
11901
|
+
* Change Payment Status (Admin)
|
|
11902
|
+
* @summary Change Payment Status (Admin)
|
|
11903
|
+
* @param {number} id Order ID
|
|
11904
|
+
* @param {boolean} id2 Paid
|
|
11905
|
+
* @param {*} [options] Override http request option.
|
|
11906
|
+
* @throws {RequiredError}
|
|
11907
|
+
*/
|
|
11908
|
+
putUpdatePaymentStatus: function (id, id2, options) {
|
|
11909
|
+
return localVarFp.putUpdatePaymentStatus(id, id2, options).then(function (request) { return request(axios, basePath); });
|
|
11910
|
+
},
|
|
11833
11911
|
/**
|
|
11834
11912
|
* Update Shipment (Admin)
|
|
11835
11913
|
* @summary Update Shipment (Admin)
|
|
@@ -12176,6 +12254,19 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
12176
12254
|
var _this = this;
|
|
12177
12255
|
return (0, exports.OrdersApiFp)(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12178
12256
|
};
|
|
12257
|
+
/**
|
|
12258
|
+
* Change Payment Status (Admin)
|
|
12259
|
+
* @summary Change Payment Status (Admin)
|
|
12260
|
+
* @param {number} id Order ID
|
|
12261
|
+
* @param {boolean} id2 Paid
|
|
12262
|
+
* @param {*} [options] Override http request option.
|
|
12263
|
+
* @throws {RequiredError}
|
|
12264
|
+
* @memberof OrdersApi
|
|
12265
|
+
*/
|
|
12266
|
+
OrdersApi.prototype.putUpdatePaymentStatus = function (id, id2, options) {
|
|
12267
|
+
var _this = this;
|
|
12268
|
+
return (0, exports.OrdersApiFp)(this.configuration).putUpdatePaymentStatus(id, id2, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12269
|
+
};
|
|
12179
12270
|
/**
|
|
12180
12271
|
* Update Shipment (Admin)
|
|
12181
12272
|
* @summary Update Shipment (Admin)
|
package/docs/OrdersApi.md
CHANGED
|
@@ -28,6 +28,7 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
|
|
|
28
28
|
|[**putAllocateItems**](#putallocateitems) | **PUT** /admin/orders/{id}/items/allocate | Allocate Items To Supplier|
|
|
29
29
|
|[**putUpdateAdminOrder**](#putupdateadminorder) | **PUT** /admin/orders/{id} | Update An Order (Admin)|
|
|
30
30
|
|[**putUpdateOrder**](#putupdateorder) | **PUT** /orders/{id} | Update An Order (Beta)|
|
|
31
|
+
|[**putUpdatePaymentStatus**](#putupdatepaymentstatus) | **PUT** /admin/orders/{id}/paid | Change Payment Status (Admin)|
|
|
31
32
|
|[**putUpdateShipment**](#putupdateshipment) | **PUT** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id} | Update Shipment (Admin)|
|
|
32
33
|
|
|
33
34
|
# **deleteDeleteBatch**
|
|
@@ -1432,6 +1433,63 @@ No authorization required
|
|
|
1432
1433
|
|
|
1433
1434
|
[[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)
|
|
1434
1435
|
|
|
1436
|
+
# **putUpdatePaymentStatus**
|
|
1437
|
+
> OrderDetailsDTO putUpdatePaymentStatus()
|
|
1438
|
+
|
|
1439
|
+
Change Payment Status (Admin)
|
|
1440
|
+
|
|
1441
|
+
### Example
|
|
1442
|
+
|
|
1443
|
+
```typescript
|
|
1444
|
+
import {
|
|
1445
|
+
OrdersApi,
|
|
1446
|
+
Configuration
|
|
1447
|
+
} from 'yellowgrid-api-ts';
|
|
1448
|
+
|
|
1449
|
+
const configuration = new Configuration();
|
|
1450
|
+
const apiInstance = new OrdersApi(configuration);
|
|
1451
|
+
|
|
1452
|
+
let id: number; //Order ID (default to undefined)
|
|
1453
|
+
let id2: boolean; //Paid (default to undefined)
|
|
1454
|
+
|
|
1455
|
+
const { status, data } = await apiInstance.putUpdatePaymentStatus(
|
|
1456
|
+
id,
|
|
1457
|
+
id2
|
|
1458
|
+
);
|
|
1459
|
+
```
|
|
1460
|
+
|
|
1461
|
+
### Parameters
|
|
1462
|
+
|
|
1463
|
+
|Name | Type | Description | Notes|
|
|
1464
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1465
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1466
|
+
| **id2** | [**boolean**] | Paid | defaults to undefined|
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
### Return type
|
|
1470
|
+
|
|
1471
|
+
**OrderDetailsDTO**
|
|
1472
|
+
|
|
1473
|
+
### Authorization
|
|
1474
|
+
|
|
1475
|
+
No authorization required
|
|
1476
|
+
|
|
1477
|
+
### HTTP request headers
|
|
1478
|
+
|
|
1479
|
+
- **Content-Type**: Not defined
|
|
1480
|
+
- **Accept**: application/json
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
### HTTP response details
|
|
1484
|
+
| Status code | Description | Response headers |
|
|
1485
|
+
|-------------|-------------|------------------|
|
|
1486
|
+
|**200** | Order Details | - |
|
|
1487
|
+
|**400** | Bad Request | - |
|
|
1488
|
+
|**401** | Unauthorised | - |
|
|
1489
|
+
|**403** | Access Denied | - |
|
|
1490
|
+
|
|
1491
|
+
[[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)
|
|
1492
|
+
|
|
1435
1493
|
# **putUpdateShipment**
|
|
1436
1494
|
> ShipmentDTO putUpdateShipment()
|
|
1437
1495
|
|