@teemill/platform 0.29.2 → 0.30.1

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/platform@0.29.2
1
+ ## @teemill/platform@0.30.1
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/platform@0.29.2 --save
39
+ npm install @teemill/platform@0.30.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -59,6 +59,7 @@ Class | Method | HTTP request | Description
59
59
  *EnquiriesApi* | [**listCustomerEnquiries**](docs/EnquiriesApi.md#listcustomerenquiries) | **GET** /v1/platform/{platformId}/customers/enquiries | List customer enquiries
60
60
  *EnquiriesApi* | [**listCustomerEnquiryLogs**](docs/EnquiriesApi.md#listcustomerenquirylogs) | **GET** /v1/platform/{platformId}/customers/enquiries/{enquiryId}/logs | List customer enquiry Logs
61
61
  *EnquiriesApi* | [**updateCustomerEnquiry**](docs/EnquiriesApi.md#updatecustomerenquiry) | **PATCH** /v1/platform/{platformId}/customers/enquiries/{enquiryId} | Update customer enquiry
62
+ *OrdersApi* | [**amendOrder**](docs/OrdersApi.md#amendorder) | **PATCH** /v1/platform/{platformId}/orders/{orderId}/amend | Amend the contents of an order
62
63
  *OrdersApi* | [**confirmOrder**](docs/OrdersApi.md#confirmorder) | **POST** /v1/platform/{platformId}/orders/{orderId}/confirm | Confirm order
63
64
  *OrdersApi* | [**createOrder**](docs/OrdersApi.md#createorder) | **POST** /v1/platform/{platformId}/orders | Create order
64
65
  *OrdersApi* | [**exportOrders**](docs/OrdersApi.md#exportorders) | **GET** /v1/platform/{platformId}/orders/export | Export orders
@@ -68,6 +69,7 @@ Class | Method | HTTP request | Description
68
69
  *OrdersApi* | [**listAvailableFulfillers**](docs/OrdersApi.md#listavailablefulfillers) | **GET** /v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers | List available fulfillers
69
70
  *OrdersApi* | [**listOrders**](docs/OrdersApi.md#listorders) | **GET** /v1/platform/{platformId}/orders | List orders
70
71
  *OrdersApi* | [**retryPlatformPayment**](docs/OrdersApi.md#retryplatformpayment) | **POST** /v1/platform/{platformId}/orders/{orderId}/retryPlatformPayment | Retry
72
+ *OrdersApi* | [**returnOrder**](docs/OrdersApi.md#returnorder) | **PATCH** /v1/platform/{platformId}/orders/{orderId}/return | Return the contents of an order for a refund or exchange
71
73
  *OrdersApi* | [**sendOrderReceipt**](docs/OrdersApi.md#sendorderreceipt) | **POST** /v1/platform/{platformId}/orders/{orderId}/receipt/send | Send order receipt
72
74
  *OrdersApi* | [**updateFulfillment**](docs/OrdersApi.md#updatefulfillment) | **PATCH** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Update fulfillment
73
75
  *PaymentApi* | [**authorizeStripe**](docs/PaymentApi.md#authorizestripe) | **GET** /v1/platform/payment/stripe/authorize | Authorize Stripe
@@ -92,6 +94,8 @@ Class | Method | HTTP request | Description
92
94
  ### Documentation For Models
93
95
 
94
96
  - [Address](docs/Address.md)
97
+ - [AmendOrderRequest](docs/AmendOrderRequest.md)
98
+ - [AmendOrderRequestAmendmentsInner](docs/AmendOrderRequestAmendmentsInner.md)
95
99
  - [ApiError](docs/ApiError.md)
96
100
  - [Client](docs/Client.md)
97
101
  - [ConfirmOrderFulfillment](docs/ConfirmOrderFulfillment.md)
@@ -140,6 +144,7 @@ Class | Method | HTTP request | Description
140
144
  - [PlatformLogo](docs/PlatformLogo.md)
141
145
  - [Price](docs/Price.md)
142
146
  - [Project](docs/Project.md)
147
+ - [ReturnOrderRequest](docs/ReturnOrderRequest.md)
143
148
  - [Review](docs/Review.md)
144
149
  - [ReviewAuthor](docs/ReviewAuthor.md)
145
150
  - [ReviewImagesInner](docs/ReviewImagesInner.md)
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.29.2
7
+ * The version of the OpenAPI document: 0.30.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -78,6 +78,58 @@ export interface Address {
78
78
  */
79
79
  'state'?: string;
80
80
  }
81
+ /**
82
+ *
83
+ * @export
84
+ * @interface AmendOrderRequest
85
+ */
86
+ export interface AmendOrderRequest {
87
+ /**
88
+ *
89
+ * @type {Array<AmendOrderRequestAmendmentsInner>}
90
+ * @memberof AmendOrderRequest
91
+ */
92
+ 'amendments': Array<AmendOrderRequestAmendmentsInner>;
93
+ }
94
+ /**
95
+ *
96
+ * @export
97
+ * @interface AmendOrderRequestAmendmentsInner
98
+ */
99
+ export interface AmendOrderRequestAmendmentsInner {
100
+ /**
101
+ * Unique order item identifier
102
+ * @type {string}
103
+ * @memberof AmendOrderRequestAmendmentsInner
104
+ */
105
+ 'id': string;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof AmendOrderRequestAmendmentsInner
110
+ */
111
+ 'action': AmendOrderRequestAmendmentsInnerActionEnum;
112
+ /**
113
+ * The quantity of the item to refund or exchange. This must be less than or equal to the quantity of the item in the order.
114
+ * @type {number}
115
+ * @memberof AmendOrderRequestAmendmentsInner
116
+ */
117
+ 'quantity': number;
118
+ /**
119
+ * A reference to the variant being ordered
120
+ * @type {string}
121
+ * @memberof AmendOrderRequestAmendmentsInner
122
+ */
123
+ 'newVariantRef'?: string;
124
+ }
125
+
126
+ export const AmendOrderRequestAmendmentsInnerActionEnum = {
127
+ Refund: 'refund',
128
+ Exchange: 'exchange'
129
+ } as const;
130
+
131
+ export type AmendOrderRequestAmendmentsInnerActionEnum = typeof AmendOrderRequestAmendmentsInnerActionEnum[keyof typeof AmendOrderRequestAmendmentsInnerActionEnum];
132
+
81
133
  /**
82
134
  *
83
135
  * @export
@@ -1476,6 +1528,19 @@ export interface Project {
1476
1528
  */
1477
1529
  'name': string;
1478
1530
  }
1531
+ /**
1532
+ *
1533
+ * @export
1534
+ * @interface ReturnOrderRequest
1535
+ */
1536
+ export interface ReturnOrderRequest {
1537
+ /**
1538
+ *
1539
+ * @type {Array<AmendOrderRequestAmendmentsInner>}
1540
+ * @memberof ReturnOrderRequest
1541
+ */
1542
+ 'returns': Array<AmendOrderRequestAmendmentsInner>;
1543
+ }
1479
1544
  /**
1480
1545
  *
1481
1546
  * @export
@@ -3492,6 +3557,64 @@ export class EnquiriesApi extends BaseAPI {
3492
3557
  */
3493
3558
  export const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
3494
3559
  return {
3560
+ /**
3561
+ *
3562
+ * @summary Amend the contents of an order
3563
+ * @param {string} project Project unique identifier
3564
+ * @param {string} platformId The platform identifier
3565
+ * @param {string} orderId The order identifier
3566
+ * @param {AmendOrderRequest} amendOrderRequest AmendOrder schema
3567
+ * @param {*} [options] Override http request option.
3568
+ * @throws {RequiredError}
3569
+ */
3570
+ amendOrder: async (project: string, platformId: string, orderId: string, amendOrderRequest: AmendOrderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3571
+ // verify required parameter 'project' is not null or undefined
3572
+ assertParamExists('amendOrder', 'project', project)
3573
+ // verify required parameter 'platformId' is not null or undefined
3574
+ assertParamExists('amendOrder', 'platformId', platformId)
3575
+ // verify required parameter 'orderId' is not null or undefined
3576
+ assertParamExists('amendOrder', 'orderId', orderId)
3577
+ // verify required parameter 'amendOrderRequest' is not null or undefined
3578
+ assertParamExists('amendOrder', 'amendOrderRequest', amendOrderRequest)
3579
+ const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/amend`
3580
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3581
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
3582
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3583
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3584
+ let baseOptions;
3585
+ if (configuration) {
3586
+ baseOptions = configuration.baseOptions;
3587
+ }
3588
+
3589
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3590
+ const localVarHeaderParameter = {} as any;
3591
+ const localVarQueryParameter = {} as any;
3592
+
3593
+ // authentication session-oauth required
3594
+ // oauth required
3595
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3596
+
3597
+ // authentication api-key required
3598
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3599
+
3600
+ if (project !== undefined) {
3601
+ localVarQueryParameter['project'] = project;
3602
+ }
3603
+
3604
+
3605
+
3606
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3607
+
3608
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3609
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3610
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3611
+ localVarRequestOptions.data = serializeDataIfNeeded(amendOrderRequest, localVarRequestOptions, configuration)
3612
+
3613
+ return {
3614
+ url: toPathString(localVarUrlObj),
3615
+ options: localVarRequestOptions,
3616
+ };
3617
+ },
3495
3618
  /**
3496
3619
  *
3497
3620
  * @summary Confirm order
@@ -4025,6 +4148,64 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
4025
4148
  options: localVarRequestOptions,
4026
4149
  };
4027
4150
  },
4151
+ /**
4152
+ *
4153
+ * @summary Return the contents of an order for a refund or exchange
4154
+ * @param {string} project Project unique identifier
4155
+ * @param {string} platformId The platform identifier
4156
+ * @param {string} orderId The order identifier
4157
+ * @param {ReturnOrderRequest} returnOrderRequest ReturnOrder schema
4158
+ * @param {*} [options] Override http request option.
4159
+ * @throws {RequiredError}
4160
+ */
4161
+ returnOrder: async (project: string, platformId: string, orderId: string, returnOrderRequest: ReturnOrderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4162
+ // verify required parameter 'project' is not null or undefined
4163
+ assertParamExists('returnOrder', 'project', project)
4164
+ // verify required parameter 'platformId' is not null or undefined
4165
+ assertParamExists('returnOrder', 'platformId', platformId)
4166
+ // verify required parameter 'orderId' is not null or undefined
4167
+ assertParamExists('returnOrder', 'orderId', orderId)
4168
+ // verify required parameter 'returnOrderRequest' is not null or undefined
4169
+ assertParamExists('returnOrder', 'returnOrderRequest', returnOrderRequest)
4170
+ const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/return`
4171
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
4172
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
4173
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4174
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4175
+ let baseOptions;
4176
+ if (configuration) {
4177
+ baseOptions = configuration.baseOptions;
4178
+ }
4179
+
4180
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
4181
+ const localVarHeaderParameter = {} as any;
4182
+ const localVarQueryParameter = {} as any;
4183
+
4184
+ // authentication session-oauth required
4185
+ // oauth required
4186
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
4187
+
4188
+ // authentication api-key required
4189
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4190
+
4191
+ if (project !== undefined) {
4192
+ localVarQueryParameter['project'] = project;
4193
+ }
4194
+
4195
+
4196
+
4197
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4198
+
4199
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4200
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4201
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4202
+ localVarRequestOptions.data = serializeDataIfNeeded(returnOrderRequest, localVarRequestOptions, configuration)
4203
+
4204
+ return {
4205
+ url: toPathString(localVarUrlObj),
4206
+ options: localVarRequestOptions,
4207
+ };
4208
+ },
4028
4209
  /**
4029
4210
  * Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
4030
4211
  * @summary Send order receipt
@@ -4145,6 +4326,22 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
4145
4326
  export const OrdersApiFp = function(configuration?: Configuration) {
4146
4327
  const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
4147
4328
  return {
4329
+ /**
4330
+ *
4331
+ * @summary Amend the contents of an order
4332
+ * @param {string} project Project unique identifier
4333
+ * @param {string} platformId The platform identifier
4334
+ * @param {string} orderId The order identifier
4335
+ * @param {AmendOrderRequest} amendOrderRequest AmendOrder schema
4336
+ * @param {*} [options] Override http request option.
4337
+ * @throws {RequiredError}
4338
+ */
4339
+ async amendOrder(project: string, platformId: string, orderId: string, amendOrderRequest: AmendOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
4340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.amendOrder(project, platformId, orderId, amendOrderRequest, options);
4341
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4342
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.amendOrder']?.[localVarOperationServerIndex]?.url;
4343
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4344
+ },
4148
4345
  /**
4149
4346
  *
4150
4347
  * @summary Confirm order
@@ -4290,6 +4487,22 @@ export const OrdersApiFp = function(configuration?: Configuration) {
4290
4487
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.retryPlatformPayment']?.[localVarOperationServerIndex]?.url;
4291
4488
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4292
4489
  },
4490
+ /**
4491
+ *
4492
+ * @summary Return the contents of an order for a refund or exchange
4493
+ * @param {string} project Project unique identifier
4494
+ * @param {string} platformId The platform identifier
4495
+ * @param {string} orderId The order identifier
4496
+ * @param {ReturnOrderRequest} returnOrderRequest ReturnOrder schema
4497
+ * @param {*} [options] Override http request option.
4498
+ * @throws {RequiredError}
4499
+ */
4500
+ async returnOrder(project: string, platformId: string, orderId: string, returnOrderRequest: ReturnOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
4501
+ const localVarAxiosArgs = await localVarAxiosParamCreator.returnOrder(project, platformId, orderId, returnOrderRequest, options);
4502
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4503
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.returnOrder']?.[localVarOperationServerIndex]?.url;
4504
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4505
+ },
4293
4506
  /**
4294
4507
  * Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
4295
4508
  * @summary Send order receipt
@@ -4331,6 +4544,16 @@ export const OrdersApiFp = function(configuration?: Configuration) {
4331
4544
  export const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4332
4545
  const localVarFp = OrdersApiFp(configuration)
4333
4546
  return {
4547
+ /**
4548
+ *
4549
+ * @summary Amend the contents of an order
4550
+ * @param {OrdersApiAmendOrderRequest} requestParameters Request parameters.
4551
+ * @param {*} [options] Override http request option.
4552
+ * @throws {RequiredError}
4553
+ */
4554
+ amendOrder(requestParameters: OrdersApiAmendOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order> {
4555
+ return localVarFp.amendOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.amendOrderRequest, options).then((request) => request(axios, basePath));
4556
+ },
4334
4557
  /**
4335
4558
  *
4336
4559
  * @summary Confirm order
@@ -4421,6 +4644,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
4421
4644
  retryPlatformPayment(requestParameters: OrdersApiRetryPlatformPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order> {
4422
4645
  return localVarFp.retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
4423
4646
  },
4647
+ /**
4648
+ *
4649
+ * @summary Return the contents of an order for a refund or exchange
4650
+ * @param {OrdersApiReturnOrderRequest} requestParameters Request parameters.
4651
+ * @param {*} [options] Override http request option.
4652
+ * @throws {RequiredError}
4653
+ */
4654
+ returnOrder(requestParameters: OrdersApiReturnOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order> {
4655
+ return localVarFp.returnOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.returnOrderRequest, options).then((request) => request(axios, basePath));
4656
+ },
4424
4657
  /**
4425
4658
  * Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
4426
4659
  * @summary Send order receipt
@@ -4444,6 +4677,41 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
4444
4677
  };
4445
4678
  };
4446
4679
 
4680
+ /**
4681
+ * Request parameters for amendOrder operation in OrdersApi.
4682
+ * @export
4683
+ * @interface OrdersApiAmendOrderRequest
4684
+ */
4685
+ export interface OrdersApiAmendOrderRequest {
4686
+ /**
4687
+ * Project unique identifier
4688
+ * @type {string}
4689
+ * @memberof OrdersApiAmendOrder
4690
+ */
4691
+ readonly project: string
4692
+
4693
+ /**
4694
+ * The platform identifier
4695
+ * @type {string}
4696
+ * @memberof OrdersApiAmendOrder
4697
+ */
4698
+ readonly platformId: string
4699
+
4700
+ /**
4701
+ * The order identifier
4702
+ * @type {string}
4703
+ * @memberof OrdersApiAmendOrder
4704
+ */
4705
+ readonly orderId: string
4706
+
4707
+ /**
4708
+ * AmendOrder schema
4709
+ * @type {AmendOrderRequest}
4710
+ * @memberof OrdersApiAmendOrder
4711
+ */
4712
+ readonly amendOrderRequest: AmendOrderRequest
4713
+ }
4714
+
4447
4715
  /**
4448
4716
  * Request parameters for confirmOrder operation in OrdersApi.
4449
4717
  * @export
@@ -4766,6 +5034,41 @@ export interface OrdersApiRetryPlatformPaymentRequest {
4766
5034
  readonly orderId: string
4767
5035
  }
4768
5036
 
5037
+ /**
5038
+ * Request parameters for returnOrder operation in OrdersApi.
5039
+ * @export
5040
+ * @interface OrdersApiReturnOrderRequest
5041
+ */
5042
+ export interface OrdersApiReturnOrderRequest {
5043
+ /**
5044
+ * Project unique identifier
5045
+ * @type {string}
5046
+ * @memberof OrdersApiReturnOrder
5047
+ */
5048
+ readonly project: string
5049
+
5050
+ /**
5051
+ * The platform identifier
5052
+ * @type {string}
5053
+ * @memberof OrdersApiReturnOrder
5054
+ */
5055
+ readonly platformId: string
5056
+
5057
+ /**
5058
+ * The order identifier
5059
+ * @type {string}
5060
+ * @memberof OrdersApiReturnOrder
5061
+ */
5062
+ readonly orderId: string
5063
+
5064
+ /**
5065
+ * ReturnOrder schema
5066
+ * @type {ReturnOrderRequest}
5067
+ * @memberof OrdersApiReturnOrder
5068
+ */
5069
+ readonly returnOrderRequest: ReturnOrderRequest
5070
+ }
5071
+
4769
5072
  /**
4770
5073
  * Request parameters for sendOrderReceipt operation in OrdersApi.
4771
5074
  * @export
@@ -4836,6 +5139,18 @@ export interface OrdersApiUpdateFulfillmentRequest {
4836
5139
  * @extends {BaseAPI}
4837
5140
  */
4838
5141
  export class OrdersApi extends BaseAPI {
5142
+ /**
5143
+ *
5144
+ * @summary Amend the contents of an order
5145
+ * @param {OrdersApiAmendOrderRequest} requestParameters Request parameters.
5146
+ * @param {*} [options] Override http request option.
5147
+ * @throws {RequiredError}
5148
+ * @memberof OrdersApi
5149
+ */
5150
+ public amendOrder(requestParameters: OrdersApiAmendOrderRequest, options?: RawAxiosRequestConfig) {
5151
+ return OrdersApiFp(this.configuration).amendOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.amendOrderRequest, options).then((request) => request(this.axios, this.basePath));
5152
+ }
5153
+
4839
5154
  /**
4840
5155
  *
4841
5156
  * @summary Confirm order
@@ -4944,6 +5259,18 @@ export class OrdersApi extends BaseAPI {
4944
5259
  return OrdersApiFp(this.configuration).retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
4945
5260
  }
4946
5261
 
5262
+ /**
5263
+ *
5264
+ * @summary Return the contents of an order for a refund or exchange
5265
+ * @param {OrdersApiReturnOrderRequest} requestParameters Request parameters.
5266
+ * @param {*} [options] Override http request option.
5267
+ * @throws {RequiredError}
5268
+ * @memberof OrdersApi
5269
+ */
5270
+ public returnOrder(requestParameters: OrdersApiReturnOrderRequest, options?: RawAxiosRequestConfig) {
5271
+ return OrdersApiFp(this.configuration).returnOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.returnOrderRequest, options).then((request) => request(this.axios, this.basePath));
5272
+ }
5273
+
4947
5274
  /**
4948
5275
  * Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
4949
5276
  * @summary Send order receipt
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.29.2
7
+ * The version of the OpenAPI document: 0.30.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.29.2
7
+ * The version of the OpenAPI document: 0.30.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.29.2
7
+ * The version of the OpenAPI document: 0.30.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).