@teemill/platform 0.18.0 → 0.19.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 +3 -2
- package/api.ts +118 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +63 -1
- package/dist/api.js +84 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +63 -1
- package/dist/esm/api.js +84 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/OrdersApi.md +63 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/platform@0.
|
|
1
|
+
## @teemill/platform@0.19.0
|
|
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.
|
|
39
|
+
npm install @teemill/platform@0.19.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -59,6 +59,7 @@ Class | Method | HTTP request | Description
|
|
|
59
59
|
*OrdersApi* | [**getOrder**](docs/OrdersApi.md#getorder) | **GET** /v1/platform/{platformId}/orders/{orderId} | Get order
|
|
60
60
|
*OrdersApi* | [**listAvailableFulfillers**](docs/OrdersApi.md#listavailablefulfillers) | **GET** /v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers | List available fulfillers
|
|
61
61
|
*OrdersApi* | [**listOrders**](docs/OrdersApi.md#listorders) | **GET** /v1/platform/{platformId}/orders | List orders
|
|
62
|
+
*OrdersApi* | [**retryPlatformPayment**](docs/OrdersApi.md#retryplatformpayment) | **POST** /v1/platform/{platformId}/orders/{orderId}/retryPlatformPayment | Retry
|
|
62
63
|
*OrdersApi* | [**updateFulfillment**](docs/OrdersApi.md#updatefulfillment) | **PATCH** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Update fulfillment
|
|
63
64
|
*PaymentApi* | [**authorizeStripe**](docs/PaymentApi.md#authorizestripe) | **GET** /v1/platform/payment/stripe/authorize | Authorize Stripe
|
|
64
65
|
*PaymentApi* | [**deauthorizeStripe**](docs/PaymentApi.md#deauthorizestripe) | **DELETE** /v1/platform/payment/stripe/deauthorize | Deauthorize Stripe
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.19.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2211,6 +2211,58 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2211
2211
|
|
|
2212
2212
|
|
|
2213
2213
|
|
|
2214
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2215
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2216
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2217
|
+
|
|
2218
|
+
return {
|
|
2219
|
+
url: toPathString(localVarUrlObj),
|
|
2220
|
+
options: localVarRequestOptions,
|
|
2221
|
+
};
|
|
2222
|
+
},
|
|
2223
|
+
/**
|
|
2224
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
2225
|
+
* @summary Retry
|
|
2226
|
+
* @param {string} project Project unique identifier
|
|
2227
|
+
* @param {string} platformId The platform identifier
|
|
2228
|
+
* @param {string} orderId The order identifier
|
|
2229
|
+
* @param {*} [options] Override http request option.
|
|
2230
|
+
* @throws {RequiredError}
|
|
2231
|
+
*/
|
|
2232
|
+
retryPlatformPayment: async (project: string, platformId: string, orderId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2233
|
+
// verify required parameter 'project' is not null or undefined
|
|
2234
|
+
assertParamExists('retryPlatformPayment', 'project', project)
|
|
2235
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2236
|
+
assertParamExists('retryPlatformPayment', 'platformId', platformId)
|
|
2237
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
2238
|
+
assertParamExists('retryPlatformPayment', 'orderId', orderId)
|
|
2239
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/retryPlatformPayment`
|
|
2240
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
2241
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
2242
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2243
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2244
|
+
let baseOptions;
|
|
2245
|
+
if (configuration) {
|
|
2246
|
+
baseOptions = configuration.baseOptions;
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2250
|
+
const localVarHeaderParameter = {} as any;
|
|
2251
|
+
const localVarQueryParameter = {} as any;
|
|
2252
|
+
|
|
2253
|
+
// authentication session-oauth required
|
|
2254
|
+
// oauth required
|
|
2255
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2256
|
+
|
|
2257
|
+
// authentication api-key required
|
|
2258
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2259
|
+
|
|
2260
|
+
if (project !== undefined) {
|
|
2261
|
+
localVarQueryParameter['project'] = project;
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
|
|
2214
2266
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2215
2267
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2216
2268
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2370,6 +2422,21 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
2370
2422
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.listOrders']?.[localVarOperationServerIndex]?.url;
|
|
2371
2423
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2372
2424
|
},
|
|
2425
|
+
/**
|
|
2426
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
2427
|
+
* @summary Retry
|
|
2428
|
+
* @param {string} project Project unique identifier
|
|
2429
|
+
* @param {string} platformId The platform identifier
|
|
2430
|
+
* @param {string} orderId The order identifier
|
|
2431
|
+
* @param {*} [options] Override http request option.
|
|
2432
|
+
* @throws {RequiredError}
|
|
2433
|
+
*/
|
|
2434
|
+
async retryPlatformPayment(project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
|
|
2435
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.retryPlatformPayment(project, platformId, orderId, options);
|
|
2436
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2437
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.retryPlatformPayment']?.[localVarOperationServerIndex]?.url;
|
|
2438
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2439
|
+
},
|
|
2373
2440
|
/**
|
|
2374
2441
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
2375
2442
|
* @summary Update fulfillment
|
|
@@ -2446,6 +2513,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
2446
2513
|
listOrders(requestParameters: OrdersApiListOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse> {
|
|
2447
2514
|
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(axios, basePath));
|
|
2448
2515
|
},
|
|
2516
|
+
/**
|
|
2517
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
2518
|
+
* @summary Retry
|
|
2519
|
+
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
2520
|
+
* @param {*} [options] Override http request option.
|
|
2521
|
+
* @throws {RequiredError}
|
|
2522
|
+
*/
|
|
2523
|
+
retryPlatformPayment(requestParameters: OrdersApiRetryPlatformPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order> {
|
|
2524
|
+
return localVarFp.retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
2525
|
+
},
|
|
2449
2526
|
/**
|
|
2450
2527
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
2451
2528
|
* @summary Update fulfillment
|
|
@@ -2648,6 +2725,34 @@ export interface OrdersApiListOrdersRequest {
|
|
|
2648
2725
|
readonly dateFilterType?: ListOrdersDateFilterTypeEnum
|
|
2649
2726
|
}
|
|
2650
2727
|
|
|
2728
|
+
/**
|
|
2729
|
+
* Request parameters for retryPlatformPayment operation in OrdersApi.
|
|
2730
|
+
* @export
|
|
2731
|
+
* @interface OrdersApiRetryPlatformPaymentRequest
|
|
2732
|
+
*/
|
|
2733
|
+
export interface OrdersApiRetryPlatformPaymentRequest {
|
|
2734
|
+
/**
|
|
2735
|
+
* Project unique identifier
|
|
2736
|
+
* @type {string}
|
|
2737
|
+
* @memberof OrdersApiRetryPlatformPayment
|
|
2738
|
+
*/
|
|
2739
|
+
readonly project: string
|
|
2740
|
+
|
|
2741
|
+
/**
|
|
2742
|
+
* The platform identifier
|
|
2743
|
+
* @type {string}
|
|
2744
|
+
* @memberof OrdersApiRetryPlatformPayment
|
|
2745
|
+
*/
|
|
2746
|
+
readonly platformId: string
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* The order identifier
|
|
2750
|
+
* @type {string}
|
|
2751
|
+
* @memberof OrdersApiRetryPlatformPayment
|
|
2752
|
+
*/
|
|
2753
|
+
readonly orderId: string
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2651
2756
|
/**
|
|
2652
2757
|
* Request parameters for updateFulfillment operation in OrdersApi.
|
|
2653
2758
|
* @export
|
|
@@ -2750,6 +2855,18 @@ export class OrdersApi extends BaseAPI {
|
|
|
2750
2855
|
return OrdersApiFp(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(this.axios, this.basePath));
|
|
2751
2856
|
}
|
|
2752
2857
|
|
|
2858
|
+
/**
|
|
2859
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
2860
|
+
* @summary Retry
|
|
2861
|
+
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
2862
|
+
* @param {*} [options] Override http request option.
|
|
2863
|
+
* @throws {RequiredError}
|
|
2864
|
+
* @memberof OrdersApi
|
|
2865
|
+
*/
|
|
2866
|
+
public retryPlatformPayment(requestParameters: OrdersApiRetryPlatformPaymentRequest, options?: RawAxiosRequestConfig) {
|
|
2867
|
+
return OrdersApiFp(this.configuration).retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2753
2870
|
/**
|
|
2754
2871
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
2755
2872
|
* @summary Update fulfillment
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* Manage Your podOS platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.19.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1706,6 +1706,16 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1706
1706
|
* @throws {RequiredError}
|
|
1707
1707
|
*/
|
|
1708
1708
|
listOrders: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, dateFilterType?: ListOrdersDateFilterTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1709
|
+
/**
|
|
1710
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
1711
|
+
* @summary Retry
|
|
1712
|
+
* @param {string} project Project unique identifier
|
|
1713
|
+
* @param {string} platformId The platform identifier
|
|
1714
|
+
* @param {string} orderId The order identifier
|
|
1715
|
+
* @param {*} [options] Override http request option.
|
|
1716
|
+
* @throws {RequiredError}
|
|
1717
|
+
*/
|
|
1718
|
+
retryPlatformPayment: (project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1709
1719
|
/**
|
|
1710
1720
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
1711
1721
|
* @summary Update fulfillment
|
|
@@ -1780,6 +1790,16 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
1780
1790
|
* @throws {RequiredError}
|
|
1781
1791
|
*/
|
|
1782
1792
|
listOrders(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, dateFilterType?: ListOrdersDateFilterTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
1795
|
+
* @summary Retry
|
|
1796
|
+
* @param {string} project Project unique identifier
|
|
1797
|
+
* @param {string} platformId The platform identifier
|
|
1798
|
+
* @param {string} orderId The order identifier
|
|
1799
|
+
* @param {*} [options] Override http request option.
|
|
1800
|
+
* @throws {RequiredError}
|
|
1801
|
+
*/
|
|
1802
|
+
retryPlatformPayment(project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
1783
1803
|
/**
|
|
1784
1804
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
1785
1805
|
* @summary Update fulfillment
|
|
@@ -1837,6 +1857,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
1837
1857
|
* @throws {RequiredError}
|
|
1838
1858
|
*/
|
|
1839
1859
|
listOrders(requestParameters: OrdersApiListOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
|
|
1860
|
+
/**
|
|
1861
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
1862
|
+
* @summary Retry
|
|
1863
|
+
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
1864
|
+
* @param {*} [options] Override http request option.
|
|
1865
|
+
* @throws {RequiredError}
|
|
1866
|
+
*/
|
|
1867
|
+
retryPlatformPayment(requestParameters: OrdersApiRetryPlatformPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
|
|
1840
1868
|
/**
|
|
1841
1869
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
1842
1870
|
* @summary Update fulfillment
|
|
@@ -2013,6 +2041,31 @@ export interface OrdersApiListOrdersRequest {
|
|
|
2013
2041
|
*/
|
|
2014
2042
|
readonly dateFilterType?: ListOrdersDateFilterTypeEnum;
|
|
2015
2043
|
}
|
|
2044
|
+
/**
|
|
2045
|
+
* Request parameters for retryPlatformPayment operation in OrdersApi.
|
|
2046
|
+
* @export
|
|
2047
|
+
* @interface OrdersApiRetryPlatformPaymentRequest
|
|
2048
|
+
*/
|
|
2049
|
+
export interface OrdersApiRetryPlatformPaymentRequest {
|
|
2050
|
+
/**
|
|
2051
|
+
* Project unique identifier
|
|
2052
|
+
* @type {string}
|
|
2053
|
+
* @memberof OrdersApiRetryPlatformPayment
|
|
2054
|
+
*/
|
|
2055
|
+
readonly project: string;
|
|
2056
|
+
/**
|
|
2057
|
+
* The platform identifier
|
|
2058
|
+
* @type {string}
|
|
2059
|
+
* @memberof OrdersApiRetryPlatformPayment
|
|
2060
|
+
*/
|
|
2061
|
+
readonly platformId: string;
|
|
2062
|
+
/**
|
|
2063
|
+
* The order identifier
|
|
2064
|
+
* @type {string}
|
|
2065
|
+
* @memberof OrdersApiRetryPlatformPayment
|
|
2066
|
+
*/
|
|
2067
|
+
readonly orderId: string;
|
|
2068
|
+
}
|
|
2016
2069
|
/**
|
|
2017
2070
|
* Request parameters for updateFulfillment operation in OrdersApi.
|
|
2018
2071
|
* @export
|
|
@@ -2096,6 +2149,15 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
2096
2149
|
* @memberof OrdersApi
|
|
2097
2150
|
*/
|
|
2098
2151
|
listOrders(requestParameters: OrdersApiListOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
|
|
2152
|
+
/**
|
|
2153
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
2154
|
+
* @summary Retry
|
|
2155
|
+
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
2156
|
+
* @param {*} [options] Override http request option.
|
|
2157
|
+
* @throws {RequiredError}
|
|
2158
|
+
* @memberof OrdersApi
|
|
2159
|
+
*/
|
|
2160
|
+
retryPlatformPayment(requestParameters: OrdersApiRetryPlatformPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
2099
2161
|
/**
|
|
2100
2162
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
2101
2163
|
* @summary Update fulfillment
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Platform API
|
|
6
6
|
* Manage Your podOS platform
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.19.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -687,6 +687,50 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
687
687
|
options: localVarRequestOptions,
|
|
688
688
|
};
|
|
689
689
|
}),
|
|
690
|
+
/**
|
|
691
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
692
|
+
* @summary Retry
|
|
693
|
+
* @param {string} project Project unique identifier
|
|
694
|
+
* @param {string} platformId The platform identifier
|
|
695
|
+
* @param {string} orderId The order identifier
|
|
696
|
+
* @param {*} [options] Override http request option.
|
|
697
|
+
* @throws {RequiredError}
|
|
698
|
+
*/
|
|
699
|
+
retryPlatformPayment: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
|
|
700
|
+
// verify required parameter 'project' is not null or undefined
|
|
701
|
+
(0, common_1.assertParamExists)('retryPlatformPayment', 'project', project);
|
|
702
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
703
|
+
(0, common_1.assertParamExists)('retryPlatformPayment', 'platformId', platformId);
|
|
704
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
705
|
+
(0, common_1.assertParamExists)('retryPlatformPayment', 'orderId', orderId);
|
|
706
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/retryPlatformPayment`
|
|
707
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
708
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
709
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
710
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
711
|
+
let baseOptions;
|
|
712
|
+
if (configuration) {
|
|
713
|
+
baseOptions = configuration.baseOptions;
|
|
714
|
+
}
|
|
715
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
716
|
+
const localVarHeaderParameter = {};
|
|
717
|
+
const localVarQueryParameter = {};
|
|
718
|
+
// authentication session-oauth required
|
|
719
|
+
// oauth required
|
|
720
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
721
|
+
// authentication api-key required
|
|
722
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
723
|
+
if (project !== undefined) {
|
|
724
|
+
localVarQueryParameter['project'] = project;
|
|
725
|
+
}
|
|
726
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
727
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
728
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
729
|
+
return {
|
|
730
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
731
|
+
options: localVarRequestOptions,
|
|
732
|
+
};
|
|
733
|
+
}),
|
|
690
734
|
/**
|
|
691
735
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
692
736
|
* @summary Update fulfillment
|
|
@@ -843,6 +887,24 @@ const OrdersApiFp = function (configuration) {
|
|
|
843
887
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
844
888
|
});
|
|
845
889
|
},
|
|
890
|
+
/**
|
|
891
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
892
|
+
* @summary Retry
|
|
893
|
+
* @param {string} project Project unique identifier
|
|
894
|
+
* @param {string} platformId The platform identifier
|
|
895
|
+
* @param {string} orderId The order identifier
|
|
896
|
+
* @param {*} [options] Override http request option.
|
|
897
|
+
* @throws {RequiredError}
|
|
898
|
+
*/
|
|
899
|
+
retryPlatformPayment(project, platformId, orderId, options) {
|
|
900
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
901
|
+
var _a, _b, _c;
|
|
902
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.retryPlatformPayment(project, platformId, orderId, options);
|
|
903
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
904
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.retryPlatformPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
905
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
906
|
+
});
|
|
907
|
+
},
|
|
846
908
|
/**
|
|
847
909
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
848
910
|
* @summary Update fulfillment
|
|
@@ -922,6 +984,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
922
984
|
listOrders(requestParameters, options) {
|
|
923
985
|
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(axios, basePath));
|
|
924
986
|
},
|
|
987
|
+
/**
|
|
988
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
989
|
+
* @summary Retry
|
|
990
|
+
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
*/
|
|
994
|
+
retryPlatformPayment(requestParameters, options) {
|
|
995
|
+
return localVarFp.retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
996
|
+
},
|
|
925
997
|
/**
|
|
926
998
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
927
999
|
* @summary Update fulfillment
|
|
@@ -997,6 +1069,17 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
997
1069
|
listOrders(requestParameters, options) {
|
|
998
1070
|
return (0, exports.OrdersApiFp)(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(this.axios, this.basePath));
|
|
999
1071
|
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
1074
|
+
* @summary Retry
|
|
1075
|
+
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
1076
|
+
* @param {*} [options] Override http request option.
|
|
1077
|
+
* @throws {RequiredError}
|
|
1078
|
+
* @memberof OrdersApi
|
|
1079
|
+
*/
|
|
1080
|
+
retryPlatformPayment(requestParameters, options) {
|
|
1081
|
+
return (0, exports.OrdersApiFp)(this.configuration).retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1082
|
+
}
|
|
1000
1083
|
/**
|
|
1001
1084
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
1002
1085
|
* @summary Update fulfillment
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* Manage Your podOS platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.19.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1706,6 +1706,16 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1706
1706
|
* @throws {RequiredError}
|
|
1707
1707
|
*/
|
|
1708
1708
|
listOrders: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, dateFilterType?: ListOrdersDateFilterTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1709
|
+
/**
|
|
1710
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
1711
|
+
* @summary Retry
|
|
1712
|
+
* @param {string} project Project unique identifier
|
|
1713
|
+
* @param {string} platformId The platform identifier
|
|
1714
|
+
* @param {string} orderId The order identifier
|
|
1715
|
+
* @param {*} [options] Override http request option.
|
|
1716
|
+
* @throws {RequiredError}
|
|
1717
|
+
*/
|
|
1718
|
+
retryPlatformPayment: (project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1709
1719
|
/**
|
|
1710
1720
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
1711
1721
|
* @summary Update fulfillment
|
|
@@ -1780,6 +1790,16 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
1780
1790
|
* @throws {RequiredError}
|
|
1781
1791
|
*/
|
|
1782
1792
|
listOrders(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, dateFilterType?: ListOrdersDateFilterTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
1795
|
+
* @summary Retry
|
|
1796
|
+
* @param {string} project Project unique identifier
|
|
1797
|
+
* @param {string} platformId The platform identifier
|
|
1798
|
+
* @param {string} orderId The order identifier
|
|
1799
|
+
* @param {*} [options] Override http request option.
|
|
1800
|
+
* @throws {RequiredError}
|
|
1801
|
+
*/
|
|
1802
|
+
retryPlatformPayment(project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
1783
1803
|
/**
|
|
1784
1804
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
1785
1805
|
* @summary Update fulfillment
|
|
@@ -1837,6 +1857,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
1837
1857
|
* @throws {RequiredError}
|
|
1838
1858
|
*/
|
|
1839
1859
|
listOrders(requestParameters: OrdersApiListOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
|
|
1860
|
+
/**
|
|
1861
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
1862
|
+
* @summary Retry
|
|
1863
|
+
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
1864
|
+
* @param {*} [options] Override http request option.
|
|
1865
|
+
* @throws {RequiredError}
|
|
1866
|
+
*/
|
|
1867
|
+
retryPlatformPayment(requestParameters: OrdersApiRetryPlatformPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
|
|
1840
1868
|
/**
|
|
1841
1869
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
1842
1870
|
* @summary Update fulfillment
|
|
@@ -2013,6 +2041,31 @@ export interface OrdersApiListOrdersRequest {
|
|
|
2013
2041
|
*/
|
|
2014
2042
|
readonly dateFilterType?: ListOrdersDateFilterTypeEnum;
|
|
2015
2043
|
}
|
|
2044
|
+
/**
|
|
2045
|
+
* Request parameters for retryPlatformPayment operation in OrdersApi.
|
|
2046
|
+
* @export
|
|
2047
|
+
* @interface OrdersApiRetryPlatformPaymentRequest
|
|
2048
|
+
*/
|
|
2049
|
+
export interface OrdersApiRetryPlatformPaymentRequest {
|
|
2050
|
+
/**
|
|
2051
|
+
* Project unique identifier
|
|
2052
|
+
* @type {string}
|
|
2053
|
+
* @memberof OrdersApiRetryPlatformPayment
|
|
2054
|
+
*/
|
|
2055
|
+
readonly project: string;
|
|
2056
|
+
/**
|
|
2057
|
+
* The platform identifier
|
|
2058
|
+
* @type {string}
|
|
2059
|
+
* @memberof OrdersApiRetryPlatformPayment
|
|
2060
|
+
*/
|
|
2061
|
+
readonly platformId: string;
|
|
2062
|
+
/**
|
|
2063
|
+
* The order identifier
|
|
2064
|
+
* @type {string}
|
|
2065
|
+
* @memberof OrdersApiRetryPlatformPayment
|
|
2066
|
+
*/
|
|
2067
|
+
readonly orderId: string;
|
|
2068
|
+
}
|
|
2016
2069
|
/**
|
|
2017
2070
|
* Request parameters for updateFulfillment operation in OrdersApi.
|
|
2018
2071
|
* @export
|
|
@@ -2096,6 +2149,15 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
2096
2149
|
* @memberof OrdersApi
|
|
2097
2150
|
*/
|
|
2098
2151
|
listOrders(requestParameters: OrdersApiListOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
|
|
2152
|
+
/**
|
|
2153
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
2154
|
+
* @summary Retry
|
|
2155
|
+
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
2156
|
+
* @param {*} [options] Override http request option.
|
|
2157
|
+
* @throws {RequiredError}
|
|
2158
|
+
* @memberof OrdersApi
|
|
2159
|
+
*/
|
|
2160
|
+
retryPlatformPayment(requestParameters: OrdersApiRetryPlatformPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
2099
2161
|
/**
|
|
2100
2162
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
2101
2163
|
* @summary Update fulfillment
|
package/dist/esm/api.js
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.19.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -680,6 +680,50 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
680
680
|
options: localVarRequestOptions,
|
|
681
681
|
};
|
|
682
682
|
}),
|
|
683
|
+
/**
|
|
684
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
685
|
+
* @summary Retry
|
|
686
|
+
* @param {string} project Project unique identifier
|
|
687
|
+
* @param {string} platformId The platform identifier
|
|
688
|
+
* @param {string} orderId The order identifier
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
*/
|
|
692
|
+
retryPlatformPayment: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
|
|
693
|
+
// verify required parameter 'project' is not null or undefined
|
|
694
|
+
assertParamExists('retryPlatformPayment', 'project', project);
|
|
695
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
696
|
+
assertParamExists('retryPlatformPayment', 'platformId', platformId);
|
|
697
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
698
|
+
assertParamExists('retryPlatformPayment', 'orderId', orderId);
|
|
699
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/retryPlatformPayment`
|
|
700
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
701
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
702
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
703
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
704
|
+
let baseOptions;
|
|
705
|
+
if (configuration) {
|
|
706
|
+
baseOptions = configuration.baseOptions;
|
|
707
|
+
}
|
|
708
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
709
|
+
const localVarHeaderParameter = {};
|
|
710
|
+
const localVarQueryParameter = {};
|
|
711
|
+
// authentication session-oauth required
|
|
712
|
+
// oauth required
|
|
713
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
714
|
+
// authentication api-key required
|
|
715
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
716
|
+
if (project !== undefined) {
|
|
717
|
+
localVarQueryParameter['project'] = project;
|
|
718
|
+
}
|
|
719
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
720
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
721
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
722
|
+
return {
|
|
723
|
+
url: toPathString(localVarUrlObj),
|
|
724
|
+
options: localVarRequestOptions,
|
|
725
|
+
};
|
|
726
|
+
}),
|
|
683
727
|
/**
|
|
684
728
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
685
729
|
* @summary Update fulfillment
|
|
@@ -835,6 +879,24 @@ export const OrdersApiFp = function (configuration) {
|
|
|
835
879
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
836
880
|
});
|
|
837
881
|
},
|
|
882
|
+
/**
|
|
883
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
884
|
+
* @summary Retry
|
|
885
|
+
* @param {string} project Project unique identifier
|
|
886
|
+
* @param {string} platformId The platform identifier
|
|
887
|
+
* @param {string} orderId The order identifier
|
|
888
|
+
* @param {*} [options] Override http request option.
|
|
889
|
+
* @throws {RequiredError}
|
|
890
|
+
*/
|
|
891
|
+
retryPlatformPayment(project, platformId, orderId, options) {
|
|
892
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
893
|
+
var _a, _b, _c;
|
|
894
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.retryPlatformPayment(project, platformId, orderId, options);
|
|
895
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
896
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.retryPlatformPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
897
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
898
|
+
});
|
|
899
|
+
},
|
|
838
900
|
/**
|
|
839
901
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
840
902
|
* @summary Update fulfillment
|
|
@@ -913,6 +975,16 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
913
975
|
listOrders(requestParameters, options) {
|
|
914
976
|
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(axios, basePath));
|
|
915
977
|
},
|
|
978
|
+
/**
|
|
979
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
980
|
+
* @summary Retry
|
|
981
|
+
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
982
|
+
* @param {*} [options] Override http request option.
|
|
983
|
+
* @throws {RequiredError}
|
|
984
|
+
*/
|
|
985
|
+
retryPlatformPayment(requestParameters, options) {
|
|
986
|
+
return localVarFp.retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
987
|
+
},
|
|
916
988
|
/**
|
|
917
989
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
918
990
|
* @summary Update fulfillment
|
|
@@ -987,6 +1059,17 @@ export class OrdersApi extends BaseAPI {
|
|
|
987
1059
|
listOrders(requestParameters, options) {
|
|
988
1060
|
return OrdersApiFp(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(this.axios, this.basePath));
|
|
989
1061
|
}
|
|
1062
|
+
/**
|
|
1063
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
1064
|
+
* @summary Retry
|
|
1065
|
+
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
1066
|
+
* @param {*} [options] Override http request option.
|
|
1067
|
+
* @throws {RequiredError}
|
|
1068
|
+
* @memberof OrdersApi
|
|
1069
|
+
*/
|
|
1070
|
+
retryPlatformPayment(requestParameters, options) {
|
|
1071
|
+
return OrdersApiFp(this.configuration).retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1072
|
+
}
|
|
990
1073
|
/**
|
|
991
1074
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
992
1075
|
* @summary Update fulfillment
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/OrdersApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *https://localhost:8080*
|
|
|
9
9
|
|[**getOrder**](#getorder) | **GET** /v1/platform/{platformId}/orders/{orderId} | Get order|
|
|
10
10
|
|[**listAvailableFulfillers**](#listavailablefulfillers) | **GET** /v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers | List available fulfillers|
|
|
11
11
|
|[**listOrders**](#listorders) | **GET** /v1/platform/{platformId}/orders | List orders|
|
|
12
|
+
|[**retryPlatformPayment**](#retryplatformpayment) | **POST** /v1/platform/{platformId}/orders/{orderId}/retryPlatformPayment | Retry|
|
|
12
13
|
|[**updateFulfillment**](#updatefulfillment) | **PATCH** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Update fulfillment|
|
|
13
14
|
|
|
14
15
|
# **exportOrders**
|
|
@@ -342,6 +343,68 @@ const { status, data } = await apiInstance.listOrders(
|
|
|
342
343
|
|
|
343
344
|
[[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)
|
|
344
345
|
|
|
346
|
+
# **retryPlatformPayment**
|
|
347
|
+
> Order retryPlatformPayment()
|
|
348
|
+
|
|
349
|
+
Retries failed platform payment, so fulfillment can proceed.
|
|
350
|
+
|
|
351
|
+
### Example
|
|
352
|
+
|
|
353
|
+
```typescript
|
|
354
|
+
import {
|
|
355
|
+
OrdersApi,
|
|
356
|
+
Configuration
|
|
357
|
+
} from '@teemill/platform';
|
|
358
|
+
|
|
359
|
+
const configuration = new Configuration();
|
|
360
|
+
const apiInstance = new OrdersApi(configuration);
|
|
361
|
+
|
|
362
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
363
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
364
|
+
let orderId: string; //The order identifier (default to undefined)
|
|
365
|
+
|
|
366
|
+
const { status, data } = await apiInstance.retryPlatformPayment(
|
|
367
|
+
project,
|
|
368
|
+
platformId,
|
|
369
|
+
orderId
|
|
370
|
+
);
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### Parameters
|
|
374
|
+
|
|
375
|
+
|Name | Type | Description | Notes|
|
|
376
|
+
|------------- | ------------- | ------------- | -------------|
|
|
377
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
378
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
379
|
+
| **orderId** | [**string**] | The order identifier | defaults to undefined|
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
### Return type
|
|
383
|
+
|
|
384
|
+
**Order**
|
|
385
|
+
|
|
386
|
+
### Authorization
|
|
387
|
+
|
|
388
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
389
|
+
|
|
390
|
+
### HTTP request headers
|
|
391
|
+
|
|
392
|
+
- **Content-Type**: Not defined
|
|
393
|
+
- **Accept**: application/json
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
### HTTP response details
|
|
397
|
+
| Status code | Description | Response headers |
|
|
398
|
+
|-------------|-------------|------------------|
|
|
399
|
+
|**200** | Order schema | - |
|
|
400
|
+
|**400** | Failed validation | - |
|
|
401
|
+
|**401** | Not authorised to access this resource | - |
|
|
402
|
+
|**403** | Refuse to authorize | - |
|
|
403
|
+
|**404** | Resource not found | - |
|
|
404
|
+
|**500** | Unknown server error | - |
|
|
405
|
+
|
|
406
|
+
[[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)
|
|
407
|
+
|
|
345
408
|
# **updateFulfillment**
|
|
346
409
|
> Fulfillment updateFulfillment(updateFulfillmentRequest)
|
|
347
410
|
|
package/index.ts
CHANGED