@cherryin/aigw-api-client 0.1.24 → 0.1.25
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/.openapi-generator/FILES +1 -0
- package/README.md +3 -2
- package/api.ts +25 -53
- package/dist/api.d.ts +17 -30
- package/dist/api.js +15 -42
- package/dist/esm/api.d.ts +17 -30
- package/dist/esm/api.js +15 -42
- package/docs/UserPayServiceApi.md +7 -18
- package/docs/UserPayStripeCheckoutRequest.md +28 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -170,6 +170,7 @@ docs/UserModelServiceApi.md
|
|
|
170
170
|
docs/UserPayOrder.md
|
|
171
171
|
docs/UserPayOrderListResponse.md
|
|
172
172
|
docs/UserPayServiceApi.md
|
|
173
|
+
docs/UserPayStripeCheckoutRequest.md
|
|
173
174
|
docs/UserPayStripeCheckoutResponse.md
|
|
174
175
|
docs/UserPortalDashboardResponse.md
|
|
175
176
|
docs/UserPortalServiceApi.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cherryin/aigw-api-client@0.1.
|
|
1
|
+
## @cherryin/aigw-api-client@0.1.25
|
|
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 @cherryin/aigw-api-client@0.1.
|
|
39
|
+
npm install @cherryin/aigw-api-client@0.1.25 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -279,6 +279,7 @@ Class | Method | HTTP request | Description
|
|
|
279
279
|
- [UserModelHourlyUsages](docs/UserModelHourlyUsages.md)
|
|
280
280
|
- [UserPayOrder](docs/UserPayOrder.md)
|
|
281
281
|
- [UserPayOrderListResponse](docs/UserPayOrderListResponse.md)
|
|
282
|
+
- [UserPayStripeCheckoutRequest](docs/UserPayStripeCheckoutRequest.md)
|
|
282
283
|
- [UserPayStripeCheckoutResponse](docs/UserPayStripeCheckoutResponse.md)
|
|
283
284
|
- [UserPortalDashboardResponse](docs/UserPortalDashboardResponse.md)
|
|
284
285
|
- [UserSettings](docs/UserSettings.md)
|
package/api.ts
CHANGED
|
@@ -1200,6 +1200,13 @@ export interface UserPayOrderListResponse {
|
|
|
1200
1200
|
'list'?: Array<UserPayOrder>;
|
|
1201
1201
|
'total'?: string;
|
|
1202
1202
|
}
|
|
1203
|
+
export interface UserPayStripeCheckoutRequest {
|
|
1204
|
+
'currency_code'?: string;
|
|
1205
|
+
'charge_amount'?: string;
|
|
1206
|
+
'redirect'?: boolean;
|
|
1207
|
+
'success_url'?: string;
|
|
1208
|
+
'cancel_url'?: string;
|
|
1209
|
+
}
|
|
1203
1210
|
export interface UserPayStripeCheckoutResponse {
|
|
1204
1211
|
'code'?: string;
|
|
1205
1212
|
'message'?: string;
|
|
@@ -7807,15 +7814,13 @@ export const UserPayServiceApiAxiosParamCreator = function (configuration?: Conf
|
|
|
7807
7814
|
},
|
|
7808
7815
|
/**
|
|
7809
7816
|
*
|
|
7810
|
-
* @param {
|
|
7811
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
7812
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
7813
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
7814
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
7817
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
7815
7818
|
* @param {*} [options] Override http request option.
|
|
7816
7819
|
* @throws {RequiredError}
|
|
7817
7820
|
*/
|
|
7818
|
-
userPayServiceUserPayStripeCheckout: async (
|
|
7821
|
+
userPayServiceUserPayStripeCheckout: async (body: UserPayStripeCheckoutRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7822
|
+
// verify required parameter 'body' is not null or undefined
|
|
7823
|
+
assertParamExists('userPayServiceUserPayStripeCheckout', 'body', body)
|
|
7819
7824
|
const localVarPath = `/api/v1/user/pay/stripe/checkout`;
|
|
7820
7825
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7821
7826
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7828,31 +7833,14 @@ export const UserPayServiceApiAxiosParamCreator = function (configuration?: Conf
|
|
|
7828
7833
|
const localVarHeaderParameter = {} as any;
|
|
7829
7834
|
const localVarQueryParameter = {} as any;
|
|
7830
7835
|
|
|
7831
|
-
if (currencyCode !== undefined) {
|
|
7832
|
-
localVarQueryParameter['currency_code'] = currencyCode;
|
|
7833
|
-
}
|
|
7834
|
-
|
|
7835
|
-
if (chargeAmount !== undefined) {
|
|
7836
|
-
localVarQueryParameter['charge_amount'] = chargeAmount;
|
|
7837
|
-
}
|
|
7838
|
-
|
|
7839
|
-
if (redirect !== undefined) {
|
|
7840
|
-
localVarQueryParameter['redirect'] = redirect;
|
|
7841
|
-
}
|
|
7842
|
-
|
|
7843
|
-
if (successUrl !== undefined) {
|
|
7844
|
-
localVarQueryParameter['success_url'] = successUrl;
|
|
7845
|
-
}
|
|
7846
|
-
|
|
7847
|
-
if (cancelUrl !== undefined) {
|
|
7848
|
-
localVarQueryParameter['cancel_url'] = cancelUrl;
|
|
7849
|
-
}
|
|
7850
|
-
|
|
7851
7836
|
|
|
7852
7837
|
|
|
7838
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7839
|
+
|
|
7853
7840
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7854
7841
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7855
7842
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7843
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
7856
7844
|
|
|
7857
7845
|
return {
|
|
7858
7846
|
url: toPathString(localVarUrlObj),
|
|
@@ -7883,16 +7871,12 @@ export const UserPayServiceApiFp = function(configuration?: Configuration) {
|
|
|
7883
7871
|
},
|
|
7884
7872
|
/**
|
|
7885
7873
|
*
|
|
7886
|
-
* @param {
|
|
7887
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
7888
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
7889
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
7890
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
7874
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
7891
7875
|
* @param {*} [options] Override http request option.
|
|
7892
7876
|
* @throws {RequiredError}
|
|
7893
7877
|
*/
|
|
7894
|
-
async userPayServiceUserPayStripeCheckout(
|
|
7895
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.userPayServiceUserPayStripeCheckout(
|
|
7878
|
+
async userPayServiceUserPayStripeCheckout(body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayStripeCheckoutResponse>> {
|
|
7879
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userPayServiceUserPayStripeCheckout(body, options);
|
|
7896
7880
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7897
7881
|
const localVarOperationServerBasePath = operationServerMap['UserPayServiceApi.userPayServiceUserPayStripeCheckout']?.[localVarOperationServerIndex]?.url;
|
|
7898
7882
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7918,16 +7902,12 @@ export const UserPayServiceApiFactory = function (configuration?: Configuration,
|
|
|
7918
7902
|
},
|
|
7919
7903
|
/**
|
|
7920
7904
|
*
|
|
7921
|
-
* @param {
|
|
7922
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
7923
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
7924
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
7925
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
7905
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
7926
7906
|
* @param {*} [options] Override http request option.
|
|
7927
7907
|
* @throws {RequiredError}
|
|
7928
7908
|
*/
|
|
7929
|
-
userPayServiceUserPayStripeCheckout(
|
|
7930
|
-
return localVarFp.userPayServiceUserPayStripeCheckout(
|
|
7909
|
+
userPayServiceUserPayStripeCheckout(body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayStripeCheckoutResponse> {
|
|
7910
|
+
return localVarFp.userPayServiceUserPayStripeCheckout(body, options).then((request) => request(axios, basePath));
|
|
7931
7911
|
},
|
|
7932
7912
|
};
|
|
7933
7913
|
};
|
|
@@ -7947,15 +7927,11 @@ export interface UserPayServiceApiInterface {
|
|
|
7947
7927
|
|
|
7948
7928
|
/**
|
|
7949
7929
|
*
|
|
7950
|
-
* @param {
|
|
7951
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
7952
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
7953
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
7954
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
7930
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
7955
7931
|
* @param {*} [options] Override http request option.
|
|
7956
7932
|
* @throws {RequiredError}
|
|
7957
7933
|
*/
|
|
7958
|
-
userPayServiceUserPayStripeCheckout(
|
|
7934
|
+
userPayServiceUserPayStripeCheckout(body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayStripeCheckoutResponse>;
|
|
7959
7935
|
|
|
7960
7936
|
}
|
|
7961
7937
|
|
|
@@ -7976,16 +7952,12 @@ export class UserPayServiceApi extends BaseAPI implements UserPayServiceApiInter
|
|
|
7976
7952
|
|
|
7977
7953
|
/**
|
|
7978
7954
|
*
|
|
7979
|
-
* @param {
|
|
7980
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
7981
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
7982
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
7983
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
7955
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
7984
7956
|
* @param {*} [options] Override http request option.
|
|
7985
7957
|
* @throws {RequiredError}
|
|
7986
7958
|
*/
|
|
7987
|
-
public userPayServiceUserPayStripeCheckout(
|
|
7988
|
-
return UserPayServiceApiFp(this.configuration).userPayServiceUserPayStripeCheckout(
|
|
7959
|
+
public userPayServiceUserPayStripeCheckout(body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig) {
|
|
7960
|
+
return UserPayServiceApiFp(this.configuration).userPayServiceUserPayStripeCheckout(body, options).then((request) => request(this.axios, this.basePath));
|
|
7989
7961
|
}
|
|
7990
7962
|
}
|
|
7991
7963
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1195,6 +1195,13 @@ export interface UserPayOrderListResponse {
|
|
|
1195
1195
|
'list'?: Array<UserPayOrder>;
|
|
1196
1196
|
'total'?: string;
|
|
1197
1197
|
}
|
|
1198
|
+
export interface UserPayStripeCheckoutRequest {
|
|
1199
|
+
'currency_code'?: string;
|
|
1200
|
+
'charge_amount'?: string;
|
|
1201
|
+
'redirect'?: boolean;
|
|
1202
|
+
'success_url'?: string;
|
|
1203
|
+
'cancel_url'?: string;
|
|
1204
|
+
}
|
|
1198
1205
|
export interface UserPayStripeCheckoutResponse {
|
|
1199
1206
|
'code'?: string;
|
|
1200
1207
|
'message'?: string;
|
|
@@ -4640,15 +4647,11 @@ export declare const UserPayServiceApiAxiosParamCreator: (configuration?: Config
|
|
|
4640
4647
|
userPayServiceUserPayOrderList: (page?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4641
4648
|
/**
|
|
4642
4649
|
*
|
|
4643
|
-
* @param {
|
|
4644
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
4645
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
4646
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
4647
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
4650
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
4648
4651
|
* @param {*} [options] Override http request option.
|
|
4649
4652
|
* @throws {RequiredError}
|
|
4650
4653
|
*/
|
|
4651
|
-
userPayServiceUserPayStripeCheckout: (
|
|
4654
|
+
userPayServiceUserPayStripeCheckout: (body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4652
4655
|
};
|
|
4653
4656
|
/**
|
|
4654
4657
|
* UserPayServiceApi - functional programming interface
|
|
@@ -4664,15 +4667,11 @@ export declare const UserPayServiceApiFp: (configuration?: Configuration) => {
|
|
|
4664
4667
|
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayOrderListResponse>>;
|
|
4665
4668
|
/**
|
|
4666
4669
|
*
|
|
4667
|
-
* @param {
|
|
4668
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
4669
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
4670
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
4671
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
4670
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
4672
4671
|
* @param {*} [options] Override http request option.
|
|
4673
4672
|
* @throws {RequiredError}
|
|
4674
4673
|
*/
|
|
4675
|
-
userPayServiceUserPayStripeCheckout(
|
|
4674
|
+
userPayServiceUserPayStripeCheckout(body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayStripeCheckoutResponse>>;
|
|
4676
4675
|
};
|
|
4677
4676
|
/**
|
|
4678
4677
|
* UserPayServiceApi - factory interface
|
|
@@ -4688,15 +4687,11 @@ export declare const UserPayServiceApiFactory: (configuration?: Configuration, b
|
|
|
4688
4687
|
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderListResponse>;
|
|
4689
4688
|
/**
|
|
4690
4689
|
*
|
|
4691
|
-
* @param {
|
|
4692
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
4693
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
4694
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
4695
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
4690
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
4696
4691
|
* @param {*} [options] Override http request option.
|
|
4697
4692
|
* @throws {RequiredError}
|
|
4698
4693
|
*/
|
|
4699
|
-
userPayServiceUserPayStripeCheckout(
|
|
4694
|
+
userPayServiceUserPayStripeCheckout(body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayStripeCheckoutResponse>;
|
|
4700
4695
|
};
|
|
4701
4696
|
/**
|
|
4702
4697
|
* UserPayServiceApi - interface
|
|
@@ -4712,15 +4707,11 @@ export interface UserPayServiceApiInterface {
|
|
|
4712
4707
|
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderListResponse>;
|
|
4713
4708
|
/**
|
|
4714
4709
|
*
|
|
4715
|
-
* @param {
|
|
4716
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
4717
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
4718
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
4719
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
4710
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
4720
4711
|
* @param {*} [options] Override http request option.
|
|
4721
4712
|
* @throws {RequiredError}
|
|
4722
4713
|
*/
|
|
4723
|
-
userPayServiceUserPayStripeCheckout(
|
|
4714
|
+
userPayServiceUserPayStripeCheckout(body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayStripeCheckoutResponse>;
|
|
4724
4715
|
}
|
|
4725
4716
|
/**
|
|
4726
4717
|
* UserPayServiceApi - object-oriented interface
|
|
@@ -4736,15 +4727,11 @@ export declare class UserPayServiceApi extends BaseAPI implements UserPayService
|
|
|
4736
4727
|
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPayOrderListResponse, any, {}>>;
|
|
4737
4728
|
/**
|
|
4738
4729
|
*
|
|
4739
|
-
* @param {
|
|
4740
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
4741
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
4742
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
4743
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
4730
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
4744
4731
|
* @param {*} [options] Override http request option.
|
|
4745
4732
|
* @throws {RequiredError}
|
|
4746
4733
|
*/
|
|
4747
|
-
userPayServiceUserPayStripeCheckout(
|
|
4734
|
+
userPayServiceUserPayStripeCheckout(body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPayStripeCheckoutResponse, any, {}>>;
|
|
4748
4735
|
}
|
|
4749
4736
|
/**
|
|
4750
4737
|
* UserPortalServiceApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -5475,15 +5475,13 @@ const UserPayServiceApiAxiosParamCreator = function (configuration) {
|
|
|
5475
5475
|
}),
|
|
5476
5476
|
/**
|
|
5477
5477
|
*
|
|
5478
|
-
* @param {
|
|
5479
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
5480
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
5481
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
5482
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
5478
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
5483
5479
|
* @param {*} [options] Override http request option.
|
|
5484
5480
|
* @throws {RequiredError}
|
|
5485
5481
|
*/
|
|
5486
|
-
userPayServiceUserPayStripeCheckout: (
|
|
5482
|
+
userPayServiceUserPayStripeCheckout: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
5483
|
+
// verify required parameter 'body' is not null or undefined
|
|
5484
|
+
(0, common_1.assertParamExists)('userPayServiceUserPayStripeCheckout', 'body', body);
|
|
5487
5485
|
const localVarPath = `/api/v1/user/pay/stripe/checkout`;
|
|
5488
5486
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5489
5487
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5494,24 +5492,11 @@ const UserPayServiceApiAxiosParamCreator = function (configuration) {
|
|
|
5494
5492
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5495
5493
|
const localVarHeaderParameter = {};
|
|
5496
5494
|
const localVarQueryParameter = {};
|
|
5497
|
-
|
|
5498
|
-
localVarQueryParameter['currency_code'] = currencyCode;
|
|
5499
|
-
}
|
|
5500
|
-
if (chargeAmount !== undefined) {
|
|
5501
|
-
localVarQueryParameter['charge_amount'] = chargeAmount;
|
|
5502
|
-
}
|
|
5503
|
-
if (redirect !== undefined) {
|
|
5504
|
-
localVarQueryParameter['redirect'] = redirect;
|
|
5505
|
-
}
|
|
5506
|
-
if (successUrl !== undefined) {
|
|
5507
|
-
localVarQueryParameter['success_url'] = successUrl;
|
|
5508
|
-
}
|
|
5509
|
-
if (cancelUrl !== undefined) {
|
|
5510
|
-
localVarQueryParameter['cancel_url'] = cancelUrl;
|
|
5511
|
-
}
|
|
5495
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5512
5496
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5513
5497
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5514
5498
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5499
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
5515
5500
|
return {
|
|
5516
5501
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5517
5502
|
options: localVarRequestOptions,
|
|
@@ -5544,18 +5529,14 @@ const UserPayServiceApiFp = function (configuration) {
|
|
|
5544
5529
|
},
|
|
5545
5530
|
/**
|
|
5546
5531
|
*
|
|
5547
|
-
* @param {
|
|
5548
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
5549
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
5550
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
5551
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
5532
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
5552
5533
|
* @param {*} [options] Override http request option.
|
|
5553
5534
|
* @throws {RequiredError}
|
|
5554
5535
|
*/
|
|
5555
|
-
userPayServiceUserPayStripeCheckout(
|
|
5536
|
+
userPayServiceUserPayStripeCheckout(body, options) {
|
|
5556
5537
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5557
5538
|
var _a, _b, _c;
|
|
5558
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayServiceUserPayStripeCheckout(
|
|
5539
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayServiceUserPayStripeCheckout(body, options);
|
|
5559
5540
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5560
5541
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPayServiceApi.userPayServiceUserPayStripeCheckout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5561
5542
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5582,16 +5563,12 @@ const UserPayServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
5582
5563
|
},
|
|
5583
5564
|
/**
|
|
5584
5565
|
*
|
|
5585
|
-
* @param {
|
|
5586
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
5587
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
5588
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
5589
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
5566
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
5590
5567
|
* @param {*} [options] Override http request option.
|
|
5591
5568
|
* @throws {RequiredError}
|
|
5592
5569
|
*/
|
|
5593
|
-
userPayServiceUserPayStripeCheckout(
|
|
5594
|
-
return localVarFp.userPayServiceUserPayStripeCheckout(
|
|
5570
|
+
userPayServiceUserPayStripeCheckout(body, options) {
|
|
5571
|
+
return localVarFp.userPayServiceUserPayStripeCheckout(body, options).then((request) => request(axios, basePath));
|
|
5595
5572
|
},
|
|
5596
5573
|
};
|
|
5597
5574
|
};
|
|
@@ -5612,16 +5589,12 @@ class UserPayServiceApi extends base_1.BaseAPI {
|
|
|
5612
5589
|
}
|
|
5613
5590
|
/**
|
|
5614
5591
|
*
|
|
5615
|
-
* @param {
|
|
5616
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
5617
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
5618
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
5619
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
5592
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
5620
5593
|
* @param {*} [options] Override http request option.
|
|
5621
5594
|
* @throws {RequiredError}
|
|
5622
5595
|
*/
|
|
5623
|
-
userPayServiceUserPayStripeCheckout(
|
|
5624
|
-
return (0, exports.UserPayServiceApiFp)(this.configuration).userPayServiceUserPayStripeCheckout(
|
|
5596
|
+
userPayServiceUserPayStripeCheckout(body, options) {
|
|
5597
|
+
return (0, exports.UserPayServiceApiFp)(this.configuration).userPayServiceUserPayStripeCheckout(body, options).then((request) => request(this.axios, this.basePath));
|
|
5625
5598
|
}
|
|
5626
5599
|
}
|
|
5627
5600
|
exports.UserPayServiceApi = UserPayServiceApi;
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1195,6 +1195,13 @@ export interface UserPayOrderListResponse {
|
|
|
1195
1195
|
'list'?: Array<UserPayOrder>;
|
|
1196
1196
|
'total'?: string;
|
|
1197
1197
|
}
|
|
1198
|
+
export interface UserPayStripeCheckoutRequest {
|
|
1199
|
+
'currency_code'?: string;
|
|
1200
|
+
'charge_amount'?: string;
|
|
1201
|
+
'redirect'?: boolean;
|
|
1202
|
+
'success_url'?: string;
|
|
1203
|
+
'cancel_url'?: string;
|
|
1204
|
+
}
|
|
1198
1205
|
export interface UserPayStripeCheckoutResponse {
|
|
1199
1206
|
'code'?: string;
|
|
1200
1207
|
'message'?: string;
|
|
@@ -4640,15 +4647,11 @@ export declare const UserPayServiceApiAxiosParamCreator: (configuration?: Config
|
|
|
4640
4647
|
userPayServiceUserPayOrderList: (page?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4641
4648
|
/**
|
|
4642
4649
|
*
|
|
4643
|
-
* @param {
|
|
4644
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
4645
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
4646
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
4647
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
4650
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
4648
4651
|
* @param {*} [options] Override http request option.
|
|
4649
4652
|
* @throws {RequiredError}
|
|
4650
4653
|
*/
|
|
4651
|
-
userPayServiceUserPayStripeCheckout: (
|
|
4654
|
+
userPayServiceUserPayStripeCheckout: (body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4652
4655
|
};
|
|
4653
4656
|
/**
|
|
4654
4657
|
* UserPayServiceApi - functional programming interface
|
|
@@ -4664,15 +4667,11 @@ export declare const UserPayServiceApiFp: (configuration?: Configuration) => {
|
|
|
4664
4667
|
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayOrderListResponse>>;
|
|
4665
4668
|
/**
|
|
4666
4669
|
*
|
|
4667
|
-
* @param {
|
|
4668
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
4669
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
4670
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
4671
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
4670
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
4672
4671
|
* @param {*} [options] Override http request option.
|
|
4673
4672
|
* @throws {RequiredError}
|
|
4674
4673
|
*/
|
|
4675
|
-
userPayServiceUserPayStripeCheckout(
|
|
4674
|
+
userPayServiceUserPayStripeCheckout(body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayStripeCheckoutResponse>>;
|
|
4676
4675
|
};
|
|
4677
4676
|
/**
|
|
4678
4677
|
* UserPayServiceApi - factory interface
|
|
@@ -4688,15 +4687,11 @@ export declare const UserPayServiceApiFactory: (configuration?: Configuration, b
|
|
|
4688
4687
|
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderListResponse>;
|
|
4689
4688
|
/**
|
|
4690
4689
|
*
|
|
4691
|
-
* @param {
|
|
4692
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
4693
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
4694
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
4695
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
4690
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
4696
4691
|
* @param {*} [options] Override http request option.
|
|
4697
4692
|
* @throws {RequiredError}
|
|
4698
4693
|
*/
|
|
4699
|
-
userPayServiceUserPayStripeCheckout(
|
|
4694
|
+
userPayServiceUserPayStripeCheckout(body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayStripeCheckoutResponse>;
|
|
4700
4695
|
};
|
|
4701
4696
|
/**
|
|
4702
4697
|
* UserPayServiceApi - interface
|
|
@@ -4712,15 +4707,11 @@ export interface UserPayServiceApiInterface {
|
|
|
4712
4707
|
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderListResponse>;
|
|
4713
4708
|
/**
|
|
4714
4709
|
*
|
|
4715
|
-
* @param {
|
|
4716
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
4717
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
4718
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
4719
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
4710
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
4720
4711
|
* @param {*} [options] Override http request option.
|
|
4721
4712
|
* @throws {RequiredError}
|
|
4722
4713
|
*/
|
|
4723
|
-
userPayServiceUserPayStripeCheckout(
|
|
4714
|
+
userPayServiceUserPayStripeCheckout(body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayStripeCheckoutResponse>;
|
|
4724
4715
|
}
|
|
4725
4716
|
/**
|
|
4726
4717
|
* UserPayServiceApi - object-oriented interface
|
|
@@ -4736,15 +4727,11 @@ export declare class UserPayServiceApi extends BaseAPI implements UserPayService
|
|
|
4736
4727
|
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPayOrderListResponse, any, {}>>;
|
|
4737
4728
|
/**
|
|
4738
4729
|
*
|
|
4739
|
-
* @param {
|
|
4740
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
4741
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
4742
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
4743
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
4730
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
4744
4731
|
* @param {*} [options] Override http request option.
|
|
4745
4732
|
* @throws {RequiredError}
|
|
4746
4733
|
*/
|
|
4747
|
-
userPayServiceUserPayStripeCheckout(
|
|
4734
|
+
userPayServiceUserPayStripeCheckout(body: UserPayStripeCheckoutRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPayStripeCheckoutResponse, any, {}>>;
|
|
4748
4735
|
}
|
|
4749
4736
|
/**
|
|
4750
4737
|
* UserPortalServiceApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -5427,15 +5427,13 @@ export const UserPayServiceApiAxiosParamCreator = function (configuration) {
|
|
|
5427
5427
|
}),
|
|
5428
5428
|
/**
|
|
5429
5429
|
*
|
|
5430
|
-
* @param {
|
|
5431
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
5432
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
5433
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
5434
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
5430
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
5435
5431
|
* @param {*} [options] Override http request option.
|
|
5436
5432
|
* @throws {RequiredError}
|
|
5437
5433
|
*/
|
|
5438
|
-
userPayServiceUserPayStripeCheckout: (
|
|
5434
|
+
userPayServiceUserPayStripeCheckout: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
5435
|
+
// verify required parameter 'body' is not null or undefined
|
|
5436
|
+
assertParamExists('userPayServiceUserPayStripeCheckout', 'body', body);
|
|
5439
5437
|
const localVarPath = `/api/v1/user/pay/stripe/checkout`;
|
|
5440
5438
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5441
5439
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5446,24 +5444,11 @@ export const UserPayServiceApiAxiosParamCreator = function (configuration) {
|
|
|
5446
5444
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5447
5445
|
const localVarHeaderParameter = {};
|
|
5448
5446
|
const localVarQueryParameter = {};
|
|
5449
|
-
|
|
5450
|
-
localVarQueryParameter['currency_code'] = currencyCode;
|
|
5451
|
-
}
|
|
5452
|
-
if (chargeAmount !== undefined) {
|
|
5453
|
-
localVarQueryParameter['charge_amount'] = chargeAmount;
|
|
5454
|
-
}
|
|
5455
|
-
if (redirect !== undefined) {
|
|
5456
|
-
localVarQueryParameter['redirect'] = redirect;
|
|
5457
|
-
}
|
|
5458
|
-
if (successUrl !== undefined) {
|
|
5459
|
-
localVarQueryParameter['success_url'] = successUrl;
|
|
5460
|
-
}
|
|
5461
|
-
if (cancelUrl !== undefined) {
|
|
5462
|
-
localVarQueryParameter['cancel_url'] = cancelUrl;
|
|
5463
|
-
}
|
|
5447
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5464
5448
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5465
5449
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5466
5450
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5451
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
5467
5452
|
return {
|
|
5468
5453
|
url: toPathString(localVarUrlObj),
|
|
5469
5454
|
options: localVarRequestOptions,
|
|
@@ -5495,18 +5480,14 @@ export const UserPayServiceApiFp = function (configuration) {
|
|
|
5495
5480
|
},
|
|
5496
5481
|
/**
|
|
5497
5482
|
*
|
|
5498
|
-
* @param {
|
|
5499
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
5500
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
5501
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
5502
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
5483
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
5503
5484
|
* @param {*} [options] Override http request option.
|
|
5504
5485
|
* @throws {RequiredError}
|
|
5505
5486
|
*/
|
|
5506
|
-
userPayServiceUserPayStripeCheckout(
|
|
5487
|
+
userPayServiceUserPayStripeCheckout(body, options) {
|
|
5507
5488
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5508
5489
|
var _a, _b, _c;
|
|
5509
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayServiceUserPayStripeCheckout(
|
|
5490
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayServiceUserPayStripeCheckout(body, options);
|
|
5510
5491
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5511
5492
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserPayServiceApi.userPayServiceUserPayStripeCheckout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5512
5493
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5532,16 +5513,12 @@ export const UserPayServiceApiFactory = function (configuration, basePath, axios
|
|
|
5532
5513
|
},
|
|
5533
5514
|
/**
|
|
5534
5515
|
*
|
|
5535
|
-
* @param {
|
|
5536
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
5537
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
5538
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
5539
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
5516
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
5540
5517
|
* @param {*} [options] Override http request option.
|
|
5541
5518
|
* @throws {RequiredError}
|
|
5542
5519
|
*/
|
|
5543
|
-
userPayServiceUserPayStripeCheckout(
|
|
5544
|
-
return localVarFp.userPayServiceUserPayStripeCheckout(
|
|
5520
|
+
userPayServiceUserPayStripeCheckout(body, options) {
|
|
5521
|
+
return localVarFp.userPayServiceUserPayStripeCheckout(body, options).then((request) => request(axios, basePath));
|
|
5545
5522
|
},
|
|
5546
5523
|
};
|
|
5547
5524
|
};
|
|
@@ -5561,16 +5538,12 @@ export class UserPayServiceApi extends BaseAPI {
|
|
|
5561
5538
|
}
|
|
5562
5539
|
/**
|
|
5563
5540
|
*
|
|
5564
|
-
* @param {
|
|
5565
|
-
* @param {string} [chargeAmount] 充值金额(必须整数,10)
|
|
5566
|
-
* @param {boolean} [redirect] 是否跳转到支付页面,true-跳转,false-不跳转
|
|
5567
|
-
* @param {string} [successUrl] 支付成功跳转地址
|
|
5568
|
-
* @param {string} [cancelUrl] 支付取消跳转地址
|
|
5541
|
+
* @param {UserPayStripeCheckoutRequest} body
|
|
5569
5542
|
* @param {*} [options] Override http request option.
|
|
5570
5543
|
* @throws {RequiredError}
|
|
5571
5544
|
*/
|
|
5572
|
-
userPayServiceUserPayStripeCheckout(
|
|
5573
|
-
return UserPayServiceApiFp(this.configuration).userPayServiceUserPayStripeCheckout(
|
|
5545
|
+
userPayServiceUserPayStripeCheckout(body, options) {
|
|
5546
|
+
return UserPayServiceApiFp(this.configuration).userPayServiceUserPayStripeCheckout(body, options).then((request) => request(this.axios, this.basePath));
|
|
5574
5547
|
}
|
|
5575
5548
|
}
|
|
5576
5549
|
/**
|
|
@@ -62,7 +62,7 @@ No authorization required
|
|
|
62
62
|
[[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)
|
|
63
63
|
|
|
64
64
|
# **userPayServiceUserPayStripeCheckout**
|
|
65
|
-
> UserPayStripeCheckoutResponse userPayServiceUserPayStripeCheckout()
|
|
65
|
+
> UserPayStripeCheckoutResponse userPayServiceUserPayStripeCheckout(body)
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
### Example
|
|
@@ -70,24 +70,17 @@ No authorization required
|
|
|
70
70
|
```typescript
|
|
71
71
|
import {
|
|
72
72
|
UserPayServiceApi,
|
|
73
|
-
Configuration
|
|
73
|
+
Configuration,
|
|
74
|
+
UserPayStripeCheckoutRequest
|
|
74
75
|
} from '@cherryin/aigw-api-client';
|
|
75
76
|
|
|
76
77
|
const configuration = new Configuration();
|
|
77
78
|
const apiInstance = new UserPayServiceApi(configuration);
|
|
78
79
|
|
|
79
|
-
let
|
|
80
|
-
let chargeAmount: string; //充值金额(必须整数,10) (optional) (default to undefined)
|
|
81
|
-
let redirect: boolean; //是否跳转到支付页面,true-跳转,false-不跳转 (optional) (default to undefined)
|
|
82
|
-
let successUrl: string; //支付成功跳转地址 (optional) (default to undefined)
|
|
83
|
-
let cancelUrl: string; //支付取消跳转地址 (optional) (default to undefined)
|
|
80
|
+
let body: UserPayStripeCheckoutRequest; //
|
|
84
81
|
|
|
85
82
|
const { status, data } = await apiInstance.userPayServiceUserPayStripeCheckout(
|
|
86
|
-
|
|
87
|
-
chargeAmount,
|
|
88
|
-
redirect,
|
|
89
|
-
successUrl,
|
|
90
|
-
cancelUrl
|
|
83
|
+
body
|
|
91
84
|
);
|
|
92
85
|
```
|
|
93
86
|
|
|
@@ -95,11 +88,7 @@ const { status, data } = await apiInstance.userPayServiceUserPayStripeCheckout(
|
|
|
95
88
|
|
|
96
89
|
|Name | Type | Description | Notes|
|
|
97
90
|
|------------- | ------------- | ------------- | -------------|
|
|
98
|
-
| **
|
|
99
|
-
| **chargeAmount** | [**string**] | 充值金额(必须整数,10) | (optional) defaults to undefined|
|
|
100
|
-
| **redirect** | [**boolean**] | 是否跳转到支付页面,true-跳转,false-不跳转 | (optional) defaults to undefined|
|
|
101
|
-
| **successUrl** | [**string**] | 支付成功跳转地址 | (optional) defaults to undefined|
|
|
102
|
-
| **cancelUrl** | [**string**] | 支付取消跳转地址 | (optional) defaults to undefined|
|
|
91
|
+
| **body** | **UserPayStripeCheckoutRequest**| | |
|
|
103
92
|
|
|
104
93
|
|
|
105
94
|
### Return type
|
|
@@ -112,7 +101,7 @@ No authorization required
|
|
|
112
101
|
|
|
113
102
|
### HTTP request headers
|
|
114
103
|
|
|
115
|
-
- **Content-Type**:
|
|
104
|
+
- **Content-Type**: application/json
|
|
116
105
|
- **Accept**: application/json
|
|
117
106
|
|
|
118
107
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# UserPayStripeCheckoutRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**currency_code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**charge_amount** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**redirect** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**success_url** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**cancel_url** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UserPayStripeCheckoutRequest } from '@cherryin/aigw-api-client';
|
|
18
|
+
|
|
19
|
+
const instance: UserPayStripeCheckoutRequest = {
|
|
20
|
+
currency_code,
|
|
21
|
+
charge_amount,
|
|
22
|
+
redirect,
|
|
23
|
+
success_url,
|
|
24
|
+
cancel_url,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|