@seekora-ai/admin-api 1.0.80 → 1.0.82
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 +4 -2
- package/api.ts +169 -0
- package/dist/api.d.ts +132 -0
- package/dist/api.js +68 -0
- package/dist/esm/api.d.ts +132 -0
- package/dist/esm/api.js +68 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.82.tgz +0 -0
- package/seekora-ai-admin-api-1.0.80.tgz +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @seekora-ai/admin-api@1.0.
|
|
1
|
+
## @seekora-ai/admin-api@1.0.82
|
|
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 @seekora-ai/admin-api@1.0.
|
|
39
|
+
npm install @seekora-ai/admin-api@1.0.82 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -216,6 +216,7 @@ Class | Method | HTTP request | Description
|
|
|
216
216
|
*PaymentGatewayApi* | [**adminPaymentGatewayCreateOrderPost**](docs/PaymentGatewayApi.md#adminpaymentgatewaycreateorderpost) | **POST** /admin/payment-gateway/create-order | Create a new payment order
|
|
217
217
|
*PaymentGatewayApi* | [**adminPaymentGatewayCreditPlansGet**](docs/PaymentGatewayApi.md#adminpaymentgatewaycreditplansget) | **GET** /admin/payment-gateway/credit-plans | Get available credit plans
|
|
218
218
|
*PaymentGatewayApi* | [**adminPaymentGatewayGatewaysGet**](docs/PaymentGatewayApi.md#adminpaymentgatewaygatewaysget) | **GET** /admin/payment-gateway/gateways | Get available payment gateways
|
|
219
|
+
*PaymentGatewayApi* | [**adminPaymentGatewayPaymentStatusOrderIdGet**](docs/PaymentGatewayApi.md#adminpaymentgatewaypaymentstatusorderidget) | **GET** /admin/payment-gateway/payment-status/{order_id} | Get payment status for polling (frontend)
|
|
219
220
|
*PaymentGatewayApi* | [**adminPaymentGatewayRefundPost**](docs/PaymentGatewayApi.md#adminpaymentgatewayrefundpost) | **POST** /admin/payment-gateway/refund | Process payment refund
|
|
220
221
|
*PaymentGatewayApi* | [**adminPaymentGatewayVerifyPost**](docs/PaymentGatewayApi.md#adminpaymentgatewayverifypost) | **POST** /admin/payment-gateway/verify | Verify payment status
|
|
221
222
|
*PaymentGatewayApi* | [**v1CreditPlansGet**](docs/PaymentGatewayApi.md#v1creditplansget) | **GET** /v1/credit-plans | Get available credit plans
|
|
@@ -685,6 +686,7 @@ Class | Method | HTTP request | Description
|
|
|
685
686
|
- [DataTypesPayment](docs/DataTypesPayment.md)
|
|
686
687
|
- [DataTypesPaymentRequestDto](docs/DataTypesPaymentRequestDto.md)
|
|
687
688
|
- [DataTypesPaymentResponse](docs/DataTypesPaymentResponse.md)
|
|
689
|
+
- [DataTypesPaymentStatusPollResponse](docs/DataTypesPaymentStatusPollResponse.md)
|
|
688
690
|
- [DataTypesPaymentStatusResponse](docs/DataTypesPaymentStatusResponse.md)
|
|
689
691
|
- [DataTypesPaymentsListResponse](docs/DataTypesPaymentsListResponse.md)
|
|
690
692
|
- [DataTypesPlan](docs/DataTypesPlan.md)
|
package/api.ts
CHANGED
|
@@ -14915,6 +14915,103 @@ export interface DataTypesPaymentResponse {
|
|
|
14915
14915
|
*/
|
|
14916
14916
|
'status'?: number;
|
|
14917
14917
|
}
|
|
14918
|
+
/**
|
|
14919
|
+
*
|
|
14920
|
+
* @export
|
|
14921
|
+
* @interface DataTypesPaymentStatusPollResponse
|
|
14922
|
+
*/
|
|
14923
|
+
export interface DataTypesPaymentStatusPollResponse {
|
|
14924
|
+
/**
|
|
14925
|
+
*
|
|
14926
|
+
* @type {number}
|
|
14927
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14928
|
+
*/
|
|
14929
|
+
'amount'?: number;
|
|
14930
|
+
/**
|
|
14931
|
+
*
|
|
14932
|
+
* @type {boolean}
|
|
14933
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14934
|
+
*/
|
|
14935
|
+
'can_retry'?: boolean;
|
|
14936
|
+
/**
|
|
14937
|
+
*
|
|
14938
|
+
* @type {string}
|
|
14939
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14940
|
+
*/
|
|
14941
|
+
'created_at'?: string;
|
|
14942
|
+
/**
|
|
14943
|
+
*
|
|
14944
|
+
* @type {string}
|
|
14945
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14946
|
+
*/
|
|
14947
|
+
'currency'?: string;
|
|
14948
|
+
/**
|
|
14949
|
+
*
|
|
14950
|
+
* @type {string}
|
|
14951
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14952
|
+
*/
|
|
14953
|
+
'error_details'?: string;
|
|
14954
|
+
/**
|
|
14955
|
+
*
|
|
14956
|
+
* @type {DataTypesFulfillmentInfo}
|
|
14957
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14958
|
+
*/
|
|
14959
|
+
'fulfillment'?: DataTypesFulfillmentInfo;
|
|
14960
|
+
/**
|
|
14961
|
+
*
|
|
14962
|
+
* @type {string}
|
|
14963
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14964
|
+
*/
|
|
14965
|
+
'gateway'?: string;
|
|
14966
|
+
/**
|
|
14967
|
+
*
|
|
14968
|
+
* @type {{ [key: string]: any; }}
|
|
14969
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14970
|
+
*/
|
|
14971
|
+
'gateway_data'?: { [key: string]: any; };
|
|
14972
|
+
/**
|
|
14973
|
+
*
|
|
14974
|
+
* @type {string}
|
|
14975
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14976
|
+
*/
|
|
14977
|
+
'message'?: string;
|
|
14978
|
+
/**
|
|
14979
|
+
*
|
|
14980
|
+
* @type {string}
|
|
14981
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14982
|
+
*/
|
|
14983
|
+
'order_id'?: string;
|
|
14984
|
+
/**
|
|
14985
|
+
*
|
|
14986
|
+
* @type {string}
|
|
14987
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14988
|
+
*/
|
|
14989
|
+
'payment_id'?: string;
|
|
14990
|
+
/**
|
|
14991
|
+
*
|
|
14992
|
+
* @type {string}
|
|
14993
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14994
|
+
*/
|
|
14995
|
+
'payment_type'?: string;
|
|
14996
|
+
/**
|
|
14997
|
+
* Seconds to wait before next poll
|
|
14998
|
+
* @type {number}
|
|
14999
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15000
|
+
*/
|
|
15001
|
+
'retry_interval'?: number;
|
|
15002
|
+
/**
|
|
15003
|
+
* \"success\", \"pending\", or \"error\"
|
|
15004
|
+
* @type {string}
|
|
15005
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15006
|
+
*/
|
|
15007
|
+
'status'?: string;
|
|
15008
|
+
/**
|
|
15009
|
+
*
|
|
15010
|
+
* @type {string}
|
|
15011
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15012
|
+
*/
|
|
15013
|
+
'updated_at'?: string;
|
|
15014
|
+
}
|
|
14918
15015
|
/**
|
|
14919
15016
|
*
|
|
14920
15017
|
* @export
|
|
@@ -37218,6 +37315,43 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
37218
37315
|
|
|
37219
37316
|
|
|
37220
37317
|
|
|
37318
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37320
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37321
|
+
|
|
37322
|
+
return {
|
|
37323
|
+
url: toPathString(localVarUrlObj),
|
|
37324
|
+
options: localVarRequestOptions,
|
|
37325
|
+
};
|
|
37326
|
+
},
|
|
37327
|
+
/**
|
|
37328
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
37329
|
+
* @summary Get payment status for polling (frontend)
|
|
37330
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
37331
|
+
* @param {*} [options] Override http request option.
|
|
37332
|
+
* @throws {RequiredError}
|
|
37333
|
+
*/
|
|
37334
|
+
adminPaymentGatewayPaymentStatusOrderIdGet: async (orderId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37335
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
37336
|
+
assertParamExists('adminPaymentGatewayPaymentStatusOrderIdGet', 'orderId', orderId)
|
|
37337
|
+
const localVarPath = `/admin/payment-gateway/payment-status/{order_id}`
|
|
37338
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
37339
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37340
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37341
|
+
let baseOptions;
|
|
37342
|
+
if (configuration) {
|
|
37343
|
+
baseOptions = configuration.baseOptions;
|
|
37344
|
+
}
|
|
37345
|
+
|
|
37346
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
37347
|
+
const localVarHeaderParameter = {} as any;
|
|
37348
|
+
const localVarQueryParameter = {} as any;
|
|
37349
|
+
|
|
37350
|
+
// authentication BearerAuth required
|
|
37351
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
37352
|
+
|
|
37353
|
+
|
|
37354
|
+
|
|
37221
37355
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37222
37356
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37223
37357
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -37456,6 +37590,19 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
|
|
|
37456
37590
|
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayGatewaysGet']?.[localVarOperationServerIndex]?.url;
|
|
37457
37591
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37458
37592
|
},
|
|
37593
|
+
/**
|
|
37594
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
37595
|
+
* @summary Get payment status for polling (frontend)
|
|
37596
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
37597
|
+
* @param {*} [options] Override http request option.
|
|
37598
|
+
* @throws {RequiredError}
|
|
37599
|
+
*/
|
|
37600
|
+
async adminPaymentGatewayPaymentStatusOrderIdGet(orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentStatusPollResponse>> {
|
|
37601
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options);
|
|
37602
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
37603
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayPaymentStatusOrderIdGet']?.[localVarOperationServerIndex]?.url;
|
|
37604
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37605
|
+
},
|
|
37459
37606
|
/**
|
|
37460
37607
|
* Processes a refund for a completed payment
|
|
37461
37608
|
* @summary Process payment refund
|
|
@@ -37559,6 +37706,16 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
|
|
|
37559
37706
|
adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGatewayListResponse> {
|
|
37560
37707
|
return localVarFp.adminPaymentGatewayGatewaysGet(options).then((request) => request(axios, basePath));
|
|
37561
37708
|
},
|
|
37709
|
+
/**
|
|
37710
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
37711
|
+
* @summary Get payment status for polling (frontend)
|
|
37712
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
37713
|
+
* @param {*} [options] Override http request option.
|
|
37714
|
+
* @throws {RequiredError}
|
|
37715
|
+
*/
|
|
37716
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentStatusPollResponse> {
|
|
37717
|
+
return localVarFp.adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options).then((request) => request(axios, basePath));
|
|
37718
|
+
},
|
|
37562
37719
|
/**
|
|
37563
37720
|
* Processes a refund for a completed payment
|
|
37564
37721
|
* @summary Process payment refund
|
|
@@ -37653,6 +37810,18 @@ export class PaymentGatewayApi extends BaseAPI {
|
|
|
37653
37810
|
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayGatewaysGet(options).then((request) => request(this.axios, this.basePath));
|
|
37654
37811
|
}
|
|
37655
37812
|
|
|
37813
|
+
/**
|
|
37814
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
37815
|
+
* @summary Get payment status for polling (frontend)
|
|
37816
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
37817
|
+
* @param {*} [options] Override http request option.
|
|
37818
|
+
* @throws {RequiredError}
|
|
37819
|
+
* @memberof PaymentGatewayApi
|
|
37820
|
+
*/
|
|
37821
|
+
public adminPaymentGatewayPaymentStatusOrderIdGet(orderId: string, options?: RawAxiosRequestConfig) {
|
|
37822
|
+
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
37823
|
+
}
|
|
37824
|
+
|
|
37656
37825
|
/**
|
|
37657
37826
|
* Processes a refund for a completed payment
|
|
37658
37827
|
* @summary Process payment refund
|
package/dist/api.d.ts
CHANGED
|
@@ -14942,6 +14942,105 @@ export interface DataTypesPaymentResponse {
|
|
|
14942
14942
|
*/
|
|
14943
14943
|
'status'?: number;
|
|
14944
14944
|
}
|
|
14945
|
+
/**
|
|
14946
|
+
*
|
|
14947
|
+
* @export
|
|
14948
|
+
* @interface DataTypesPaymentStatusPollResponse
|
|
14949
|
+
*/
|
|
14950
|
+
export interface DataTypesPaymentStatusPollResponse {
|
|
14951
|
+
/**
|
|
14952
|
+
*
|
|
14953
|
+
* @type {number}
|
|
14954
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14955
|
+
*/
|
|
14956
|
+
'amount'?: number;
|
|
14957
|
+
/**
|
|
14958
|
+
*
|
|
14959
|
+
* @type {boolean}
|
|
14960
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14961
|
+
*/
|
|
14962
|
+
'can_retry'?: boolean;
|
|
14963
|
+
/**
|
|
14964
|
+
*
|
|
14965
|
+
* @type {string}
|
|
14966
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14967
|
+
*/
|
|
14968
|
+
'created_at'?: string;
|
|
14969
|
+
/**
|
|
14970
|
+
*
|
|
14971
|
+
* @type {string}
|
|
14972
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14973
|
+
*/
|
|
14974
|
+
'currency'?: string;
|
|
14975
|
+
/**
|
|
14976
|
+
*
|
|
14977
|
+
* @type {string}
|
|
14978
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14979
|
+
*/
|
|
14980
|
+
'error_details'?: string;
|
|
14981
|
+
/**
|
|
14982
|
+
*
|
|
14983
|
+
* @type {DataTypesFulfillmentInfo}
|
|
14984
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14985
|
+
*/
|
|
14986
|
+
'fulfillment'?: DataTypesFulfillmentInfo;
|
|
14987
|
+
/**
|
|
14988
|
+
*
|
|
14989
|
+
* @type {string}
|
|
14990
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14991
|
+
*/
|
|
14992
|
+
'gateway'?: string;
|
|
14993
|
+
/**
|
|
14994
|
+
*
|
|
14995
|
+
* @type {{ [key: string]: any; }}
|
|
14996
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14997
|
+
*/
|
|
14998
|
+
'gateway_data'?: {
|
|
14999
|
+
[key: string]: any;
|
|
15000
|
+
};
|
|
15001
|
+
/**
|
|
15002
|
+
*
|
|
15003
|
+
* @type {string}
|
|
15004
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15005
|
+
*/
|
|
15006
|
+
'message'?: string;
|
|
15007
|
+
/**
|
|
15008
|
+
*
|
|
15009
|
+
* @type {string}
|
|
15010
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15011
|
+
*/
|
|
15012
|
+
'order_id'?: string;
|
|
15013
|
+
/**
|
|
15014
|
+
*
|
|
15015
|
+
* @type {string}
|
|
15016
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15017
|
+
*/
|
|
15018
|
+
'payment_id'?: string;
|
|
15019
|
+
/**
|
|
15020
|
+
*
|
|
15021
|
+
* @type {string}
|
|
15022
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15023
|
+
*/
|
|
15024
|
+
'payment_type'?: string;
|
|
15025
|
+
/**
|
|
15026
|
+
* Seconds to wait before next poll
|
|
15027
|
+
* @type {number}
|
|
15028
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15029
|
+
*/
|
|
15030
|
+
'retry_interval'?: number;
|
|
15031
|
+
/**
|
|
15032
|
+
* \"success\", \"pending\", or \"error\"
|
|
15033
|
+
* @type {string}
|
|
15034
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15035
|
+
*/
|
|
15036
|
+
'status'?: string;
|
|
15037
|
+
/**
|
|
15038
|
+
*
|
|
15039
|
+
* @type {string}
|
|
15040
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15041
|
+
*/
|
|
15042
|
+
'updated_at'?: string;
|
|
15043
|
+
}
|
|
14945
15044
|
/**
|
|
14946
15045
|
*
|
|
14947
15046
|
* @export
|
|
@@ -28648,6 +28747,14 @@ export declare const PaymentGatewayApiAxiosParamCreator: (configuration?: Config
|
|
|
28648
28747
|
* @throws {RequiredError}
|
|
28649
28748
|
*/
|
|
28650
28749
|
adminPaymentGatewayGatewaysGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28750
|
+
/**
|
|
28751
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
28752
|
+
* @summary Get payment status for polling (frontend)
|
|
28753
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
28754
|
+
* @param {*} [options] Override http request option.
|
|
28755
|
+
* @throws {RequiredError}
|
|
28756
|
+
*/
|
|
28757
|
+
adminPaymentGatewayPaymentStatusOrderIdGet: (orderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28651
28758
|
/**
|
|
28652
28759
|
* Processes a refund for a completed payment
|
|
28653
28760
|
* @summary Process payment refund
|
|
@@ -28716,6 +28823,14 @@ export declare const PaymentGatewayApiFp: (configuration?: Configuration) => {
|
|
|
28716
28823
|
* @throws {RequiredError}
|
|
28717
28824
|
*/
|
|
28718
28825
|
adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGatewayListResponse>>;
|
|
28826
|
+
/**
|
|
28827
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
28828
|
+
* @summary Get payment status for polling (frontend)
|
|
28829
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
28830
|
+
* @param {*} [options] Override http request option.
|
|
28831
|
+
* @throws {RequiredError}
|
|
28832
|
+
*/
|
|
28833
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentStatusPollResponse>>;
|
|
28719
28834
|
/**
|
|
28720
28835
|
* Processes a refund for a completed payment
|
|
28721
28836
|
* @summary Process payment refund
|
|
@@ -28788,6 +28903,14 @@ export declare const PaymentGatewayApiFactory: (configuration?: Configuration, b
|
|
|
28788
28903
|
* @throws {RequiredError}
|
|
28789
28904
|
*/
|
|
28790
28905
|
adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGatewayListResponse>;
|
|
28906
|
+
/**
|
|
28907
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
28908
|
+
* @summary Get payment status for polling (frontend)
|
|
28909
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
28910
|
+
* @param {*} [options] Override http request option.
|
|
28911
|
+
* @throws {RequiredError}
|
|
28912
|
+
*/
|
|
28913
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentStatusPollResponse>;
|
|
28791
28914
|
/**
|
|
28792
28915
|
* Processes a refund for a completed payment
|
|
28793
28916
|
* @summary Process payment refund
|
|
@@ -28865,6 +28988,15 @@ export declare class PaymentGatewayApi extends BaseAPI {
|
|
|
28865
28988
|
* @memberof PaymentGatewayApi
|
|
28866
28989
|
*/
|
|
28867
28990
|
adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGatewayListResponse, any, {}>>;
|
|
28991
|
+
/**
|
|
28992
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
28993
|
+
* @summary Get payment status for polling (frontend)
|
|
28994
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
28995
|
+
* @param {*} [options] Override http request option.
|
|
28996
|
+
* @throws {RequiredError}
|
|
28997
|
+
* @memberof PaymentGatewayApi
|
|
28998
|
+
*/
|
|
28999
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesPaymentStatusPollResponse, any, {}>>;
|
|
28868
29000
|
/**
|
|
28869
29001
|
* Processes a refund for a completed payment
|
|
28870
29002
|
* @summary Process payment refund
|
package/dist/api.js
CHANGED
|
@@ -15933,6 +15933,37 @@ const PaymentGatewayApiAxiosParamCreator = function (configuration) {
|
|
|
15933
15933
|
options: localVarRequestOptions,
|
|
15934
15934
|
};
|
|
15935
15935
|
}),
|
|
15936
|
+
/**
|
|
15937
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
15938
|
+
* @summary Get payment status for polling (frontend)
|
|
15939
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
15940
|
+
* @param {*} [options] Override http request option.
|
|
15941
|
+
* @throws {RequiredError}
|
|
15942
|
+
*/
|
|
15943
|
+
adminPaymentGatewayPaymentStatusOrderIdGet: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
|
|
15944
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
15945
|
+
(0, common_1.assertParamExists)('adminPaymentGatewayPaymentStatusOrderIdGet', 'orderId', orderId);
|
|
15946
|
+
const localVarPath = `/admin/payment-gateway/payment-status/{order_id}`
|
|
15947
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
15948
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15949
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15950
|
+
let baseOptions;
|
|
15951
|
+
if (configuration) {
|
|
15952
|
+
baseOptions = configuration.baseOptions;
|
|
15953
|
+
}
|
|
15954
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15955
|
+
const localVarHeaderParameter = {};
|
|
15956
|
+
const localVarQueryParameter = {};
|
|
15957
|
+
// authentication BearerAuth required
|
|
15958
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
15959
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15960
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15961
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15962
|
+
return {
|
|
15963
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15964
|
+
options: localVarRequestOptions,
|
|
15965
|
+
};
|
|
15966
|
+
}),
|
|
15936
15967
|
/**
|
|
15937
15968
|
* Processes a refund for a completed payment
|
|
15938
15969
|
* @summary Process payment refund
|
|
@@ -16140,6 +16171,22 @@ const PaymentGatewayApiFp = function (configuration) {
|
|
|
16140
16171
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16141
16172
|
});
|
|
16142
16173
|
},
|
|
16174
|
+
/**
|
|
16175
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
16176
|
+
* @summary Get payment status for polling (frontend)
|
|
16177
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
16178
|
+
* @param {*} [options] Override http request option.
|
|
16179
|
+
* @throws {RequiredError}
|
|
16180
|
+
*/
|
|
16181
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options) {
|
|
16182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16183
|
+
var _a, _b, _c;
|
|
16184
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options);
|
|
16185
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16186
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.adminPaymentGatewayPaymentStatusOrderIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16187
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16188
|
+
});
|
|
16189
|
+
},
|
|
16143
16190
|
/**
|
|
16144
16191
|
* Processes a refund for a completed payment
|
|
16145
16192
|
* @summary Process payment refund
|
|
@@ -16258,6 +16305,16 @@ const PaymentGatewayApiFactory = function (configuration, basePath, axios) {
|
|
|
16258
16305
|
adminPaymentGatewayGatewaysGet(options) {
|
|
16259
16306
|
return localVarFp.adminPaymentGatewayGatewaysGet(options).then((request) => request(axios, basePath));
|
|
16260
16307
|
},
|
|
16308
|
+
/**
|
|
16309
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
16310
|
+
* @summary Get payment status for polling (frontend)
|
|
16311
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
16312
|
+
* @param {*} [options] Override http request option.
|
|
16313
|
+
* @throws {RequiredError}
|
|
16314
|
+
*/
|
|
16315
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options) {
|
|
16316
|
+
return localVarFp.adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options).then((request) => request(axios, basePath));
|
|
16317
|
+
},
|
|
16261
16318
|
/**
|
|
16262
16319
|
* Processes a refund for a completed payment
|
|
16263
16320
|
* @summary Process payment refund
|
|
@@ -16349,6 +16406,17 @@ class PaymentGatewayApi extends base_1.BaseAPI {
|
|
|
16349
16406
|
adminPaymentGatewayGatewaysGet(options) {
|
|
16350
16407
|
return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayGatewaysGet(options).then((request) => request(this.axios, this.basePath));
|
|
16351
16408
|
}
|
|
16409
|
+
/**
|
|
16410
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
16411
|
+
* @summary Get payment status for polling (frontend)
|
|
16412
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
16413
|
+
* @param {*} [options] Override http request option.
|
|
16414
|
+
* @throws {RequiredError}
|
|
16415
|
+
* @memberof PaymentGatewayApi
|
|
16416
|
+
*/
|
|
16417
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options) {
|
|
16418
|
+
return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
16419
|
+
}
|
|
16352
16420
|
/**
|
|
16353
16421
|
* Processes a refund for a completed payment
|
|
16354
16422
|
* @summary Process payment refund
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -14942,6 +14942,105 @@ export interface DataTypesPaymentResponse {
|
|
|
14942
14942
|
*/
|
|
14943
14943
|
'status'?: number;
|
|
14944
14944
|
}
|
|
14945
|
+
/**
|
|
14946
|
+
*
|
|
14947
|
+
* @export
|
|
14948
|
+
* @interface DataTypesPaymentStatusPollResponse
|
|
14949
|
+
*/
|
|
14950
|
+
export interface DataTypesPaymentStatusPollResponse {
|
|
14951
|
+
/**
|
|
14952
|
+
*
|
|
14953
|
+
* @type {number}
|
|
14954
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14955
|
+
*/
|
|
14956
|
+
'amount'?: number;
|
|
14957
|
+
/**
|
|
14958
|
+
*
|
|
14959
|
+
* @type {boolean}
|
|
14960
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14961
|
+
*/
|
|
14962
|
+
'can_retry'?: boolean;
|
|
14963
|
+
/**
|
|
14964
|
+
*
|
|
14965
|
+
* @type {string}
|
|
14966
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14967
|
+
*/
|
|
14968
|
+
'created_at'?: string;
|
|
14969
|
+
/**
|
|
14970
|
+
*
|
|
14971
|
+
* @type {string}
|
|
14972
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14973
|
+
*/
|
|
14974
|
+
'currency'?: string;
|
|
14975
|
+
/**
|
|
14976
|
+
*
|
|
14977
|
+
* @type {string}
|
|
14978
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14979
|
+
*/
|
|
14980
|
+
'error_details'?: string;
|
|
14981
|
+
/**
|
|
14982
|
+
*
|
|
14983
|
+
* @type {DataTypesFulfillmentInfo}
|
|
14984
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14985
|
+
*/
|
|
14986
|
+
'fulfillment'?: DataTypesFulfillmentInfo;
|
|
14987
|
+
/**
|
|
14988
|
+
*
|
|
14989
|
+
* @type {string}
|
|
14990
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14991
|
+
*/
|
|
14992
|
+
'gateway'?: string;
|
|
14993
|
+
/**
|
|
14994
|
+
*
|
|
14995
|
+
* @type {{ [key: string]: any; }}
|
|
14996
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
14997
|
+
*/
|
|
14998
|
+
'gateway_data'?: {
|
|
14999
|
+
[key: string]: any;
|
|
15000
|
+
};
|
|
15001
|
+
/**
|
|
15002
|
+
*
|
|
15003
|
+
* @type {string}
|
|
15004
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15005
|
+
*/
|
|
15006
|
+
'message'?: string;
|
|
15007
|
+
/**
|
|
15008
|
+
*
|
|
15009
|
+
* @type {string}
|
|
15010
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15011
|
+
*/
|
|
15012
|
+
'order_id'?: string;
|
|
15013
|
+
/**
|
|
15014
|
+
*
|
|
15015
|
+
* @type {string}
|
|
15016
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15017
|
+
*/
|
|
15018
|
+
'payment_id'?: string;
|
|
15019
|
+
/**
|
|
15020
|
+
*
|
|
15021
|
+
* @type {string}
|
|
15022
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15023
|
+
*/
|
|
15024
|
+
'payment_type'?: string;
|
|
15025
|
+
/**
|
|
15026
|
+
* Seconds to wait before next poll
|
|
15027
|
+
* @type {number}
|
|
15028
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15029
|
+
*/
|
|
15030
|
+
'retry_interval'?: number;
|
|
15031
|
+
/**
|
|
15032
|
+
* \"success\", \"pending\", or \"error\"
|
|
15033
|
+
* @type {string}
|
|
15034
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15035
|
+
*/
|
|
15036
|
+
'status'?: string;
|
|
15037
|
+
/**
|
|
15038
|
+
*
|
|
15039
|
+
* @type {string}
|
|
15040
|
+
* @memberof DataTypesPaymentStatusPollResponse
|
|
15041
|
+
*/
|
|
15042
|
+
'updated_at'?: string;
|
|
15043
|
+
}
|
|
14945
15044
|
/**
|
|
14946
15045
|
*
|
|
14947
15046
|
* @export
|
|
@@ -28648,6 +28747,14 @@ export declare const PaymentGatewayApiAxiosParamCreator: (configuration?: Config
|
|
|
28648
28747
|
* @throws {RequiredError}
|
|
28649
28748
|
*/
|
|
28650
28749
|
adminPaymentGatewayGatewaysGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28750
|
+
/**
|
|
28751
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
28752
|
+
* @summary Get payment status for polling (frontend)
|
|
28753
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
28754
|
+
* @param {*} [options] Override http request option.
|
|
28755
|
+
* @throws {RequiredError}
|
|
28756
|
+
*/
|
|
28757
|
+
adminPaymentGatewayPaymentStatusOrderIdGet: (orderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28651
28758
|
/**
|
|
28652
28759
|
* Processes a refund for a completed payment
|
|
28653
28760
|
* @summary Process payment refund
|
|
@@ -28716,6 +28823,14 @@ export declare const PaymentGatewayApiFp: (configuration?: Configuration) => {
|
|
|
28716
28823
|
* @throws {RequiredError}
|
|
28717
28824
|
*/
|
|
28718
28825
|
adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGatewayListResponse>>;
|
|
28826
|
+
/**
|
|
28827
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
28828
|
+
* @summary Get payment status for polling (frontend)
|
|
28829
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
28830
|
+
* @param {*} [options] Override http request option.
|
|
28831
|
+
* @throws {RequiredError}
|
|
28832
|
+
*/
|
|
28833
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentStatusPollResponse>>;
|
|
28719
28834
|
/**
|
|
28720
28835
|
* Processes a refund for a completed payment
|
|
28721
28836
|
* @summary Process payment refund
|
|
@@ -28788,6 +28903,14 @@ export declare const PaymentGatewayApiFactory: (configuration?: Configuration, b
|
|
|
28788
28903
|
* @throws {RequiredError}
|
|
28789
28904
|
*/
|
|
28790
28905
|
adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGatewayListResponse>;
|
|
28906
|
+
/**
|
|
28907
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
28908
|
+
* @summary Get payment status for polling (frontend)
|
|
28909
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
28910
|
+
* @param {*} [options] Override http request option.
|
|
28911
|
+
* @throws {RequiredError}
|
|
28912
|
+
*/
|
|
28913
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentStatusPollResponse>;
|
|
28791
28914
|
/**
|
|
28792
28915
|
* Processes a refund for a completed payment
|
|
28793
28916
|
* @summary Process payment refund
|
|
@@ -28865,6 +28988,15 @@ export declare class PaymentGatewayApi extends BaseAPI {
|
|
|
28865
28988
|
* @memberof PaymentGatewayApi
|
|
28866
28989
|
*/
|
|
28867
28990
|
adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGatewayListResponse, any, {}>>;
|
|
28991
|
+
/**
|
|
28992
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
28993
|
+
* @summary Get payment status for polling (frontend)
|
|
28994
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
28995
|
+
* @param {*} [options] Override http request option.
|
|
28996
|
+
* @throws {RequiredError}
|
|
28997
|
+
* @memberof PaymentGatewayApi
|
|
28998
|
+
*/
|
|
28999
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesPaymentStatusPollResponse, any, {}>>;
|
|
28868
29000
|
/**
|
|
28869
29001
|
* Processes a refund for a completed payment
|
|
28870
29002
|
* @summary Process payment refund
|
package/dist/esm/api.js
CHANGED
|
@@ -15834,6 +15834,37 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
|
|
|
15834
15834
|
options: localVarRequestOptions,
|
|
15835
15835
|
};
|
|
15836
15836
|
}),
|
|
15837
|
+
/**
|
|
15838
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
15839
|
+
* @summary Get payment status for polling (frontend)
|
|
15840
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
15841
|
+
* @param {*} [options] Override http request option.
|
|
15842
|
+
* @throws {RequiredError}
|
|
15843
|
+
*/
|
|
15844
|
+
adminPaymentGatewayPaymentStatusOrderIdGet: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
|
|
15845
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
15846
|
+
assertParamExists('adminPaymentGatewayPaymentStatusOrderIdGet', 'orderId', orderId);
|
|
15847
|
+
const localVarPath = `/admin/payment-gateway/payment-status/{order_id}`
|
|
15848
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
15849
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15850
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15851
|
+
let baseOptions;
|
|
15852
|
+
if (configuration) {
|
|
15853
|
+
baseOptions = configuration.baseOptions;
|
|
15854
|
+
}
|
|
15855
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15856
|
+
const localVarHeaderParameter = {};
|
|
15857
|
+
const localVarQueryParameter = {};
|
|
15858
|
+
// authentication BearerAuth required
|
|
15859
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
15860
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15861
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15862
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15863
|
+
return {
|
|
15864
|
+
url: toPathString(localVarUrlObj),
|
|
15865
|
+
options: localVarRequestOptions,
|
|
15866
|
+
};
|
|
15867
|
+
}),
|
|
15837
15868
|
/**
|
|
15838
15869
|
* Processes a refund for a completed payment
|
|
15839
15870
|
* @summary Process payment refund
|
|
@@ -16040,6 +16071,22 @@ export const PaymentGatewayApiFp = function (configuration) {
|
|
|
16040
16071
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16041
16072
|
});
|
|
16042
16073
|
},
|
|
16074
|
+
/**
|
|
16075
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
16076
|
+
* @summary Get payment status for polling (frontend)
|
|
16077
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
16078
|
+
* @param {*} [options] Override http request option.
|
|
16079
|
+
* @throws {RequiredError}
|
|
16080
|
+
*/
|
|
16081
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options) {
|
|
16082
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16083
|
+
var _a, _b, _c;
|
|
16084
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options);
|
|
16085
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16086
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayPaymentStatusOrderIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16087
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16088
|
+
});
|
|
16089
|
+
},
|
|
16043
16090
|
/**
|
|
16044
16091
|
* Processes a refund for a completed payment
|
|
16045
16092
|
* @summary Process payment refund
|
|
@@ -16157,6 +16204,16 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
|
|
|
16157
16204
|
adminPaymentGatewayGatewaysGet(options) {
|
|
16158
16205
|
return localVarFp.adminPaymentGatewayGatewaysGet(options).then((request) => request(axios, basePath));
|
|
16159
16206
|
},
|
|
16207
|
+
/**
|
|
16208
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
16209
|
+
* @summary Get payment status for polling (frontend)
|
|
16210
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
16211
|
+
* @param {*} [options] Override http request option.
|
|
16212
|
+
* @throws {RequiredError}
|
|
16213
|
+
*/
|
|
16214
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options) {
|
|
16215
|
+
return localVarFp.adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options).then((request) => request(axios, basePath));
|
|
16216
|
+
},
|
|
16160
16217
|
/**
|
|
16161
16218
|
* Processes a refund for a completed payment
|
|
16162
16219
|
* @summary Process payment refund
|
|
@@ -16247,6 +16304,17 @@ export class PaymentGatewayApi extends BaseAPI {
|
|
|
16247
16304
|
adminPaymentGatewayGatewaysGet(options) {
|
|
16248
16305
|
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayGatewaysGet(options).then((request) => request(this.axios, this.basePath));
|
|
16249
16306
|
}
|
|
16307
|
+
/**
|
|
16308
|
+
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
16309
|
+
* @summary Get payment status for polling (frontend)
|
|
16310
|
+
* @param {string} orderId Order ID (can be gateway order ID or internal order ID)
|
|
16311
|
+
* @param {*} [options] Override http request option.
|
|
16312
|
+
* @throws {RequiredError}
|
|
16313
|
+
* @memberof PaymentGatewayApi
|
|
16314
|
+
*/
|
|
16315
|
+
adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options) {
|
|
16316
|
+
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayPaymentStatusOrderIdGet(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
16317
|
+
}
|
|
16250
16318
|
/**
|
|
16251
16319
|
* Processes a refund for a completed payment
|
|
16252
16320
|
* @summary Process payment refund
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|