@cherryin/aigw-api-client 0.1.21 → 0.1.23
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 +2 -0
- package/README.md +5 -2
- package/api.ts +99 -1
- package/dist/api.d.ts +57 -1
- package/dist/api.js +68 -0
- package/dist/esm/api.d.ts +57 -1
- package/dist/esm/api.js +68 -0
- package/docs/AdminAIModel.md +2 -0
- package/docs/AdminAIModelCreateRequest.md +2 -0
- package/docs/AdminProviderCreateRequest.md +0 -2
- package/docs/UserPayOrder.md +32 -0
- package/docs/UserPayOrderListResponse.md +26 -0
- package/docs/UserPayServiceApi.md +55 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -167,6 +167,8 @@ docs/UserModelActivitySummary.md
|
|
|
167
167
|
docs/UserModelHourActivity.md
|
|
168
168
|
docs/UserModelHourlyUsages.md
|
|
169
169
|
docs/UserModelServiceApi.md
|
|
170
|
+
docs/UserPayOrder.md
|
|
171
|
+
docs/UserPayOrderListResponse.md
|
|
170
172
|
docs/UserPayServiceApi.md
|
|
171
173
|
docs/UserPayStripeCheckoutResponse.md
|
|
172
174
|
docs/UserPortalDashboardResponse.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cherryin/aigw-api-client@0.1.
|
|
1
|
+
## @cherryin/aigw-api-client@0.1.23
|
|
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.23 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -119,6 +119,7 @@ Class | Method | HTTP request | Description
|
|
|
119
119
|
*UserModelServiceApi* | [**userModelServiceFrontendModels**](docs/UserModelServiceApi.md#usermodelservicefrontendmodels) | **GET** /api/v1/frontend/models | FrontendModels 获取前端模型列表 NOTE: 登录态鉴权
|
|
120
120
|
*UserModelServiceApi* | [**userModelServiceFrontendProviders**](docs/UserModelServiceApi.md#usermodelservicefrontendproviders) | **GET** /api/v1/frontend/providers | FrontendProviders 获取前端供应商列表 NOTE: 登录态鉴权
|
|
121
121
|
*UserModelServiceApi* | [**userModelServiceModelList**](docs/UserModelServiceApi.md#usermodelservicemodellist) | **GET** /v1/models | ModelList OpenAI 通用模型列表 NOTE: 需要 API KEY 鉴权
|
|
122
|
+
*UserPayServiceApi* | [**userPayServiceUserPayOrderList**](docs/UserPayServiceApi.md#userpayserviceuserpayorderlist) | **GET** /api/v1/user/pay/order/list |
|
|
122
123
|
*UserPayServiceApi* | [**userPayServiceUserPayStripeCheckout**](docs/UserPayServiceApi.md#userpayserviceuserpaystripecheckout) | **POST** /api/v1/user/pay/stripe/checkout |
|
|
123
124
|
*UserPortalServiceApi* | [**userPortalServiceUserMeInfo**](docs/UserPortalServiceApi.md#userportalserviceusermeinfo) | **POST** /api/v1/user/me/info | 个人信息接口
|
|
124
125
|
*UserPortalServiceApi* | [**userPortalServiceUserPortalDashboard**](docs/UserPortalServiceApi.md#userportalserviceuserportaldashboard) | **GET** /api/v1/user/portal/dashboard | 用户门户仪表盘信息
|
|
@@ -276,6 +277,8 @@ Class | Method | HTTP request | Description
|
|
|
276
277
|
- [UserModelActivitySummary](docs/UserModelActivitySummary.md)
|
|
277
278
|
- [UserModelHourActivity](docs/UserModelHourActivity.md)
|
|
278
279
|
- [UserModelHourlyUsages](docs/UserModelHourlyUsages.md)
|
|
280
|
+
- [UserPayOrder](docs/UserPayOrder.md)
|
|
281
|
+
- [UserPayOrderListResponse](docs/UserPayOrderListResponse.md)
|
|
279
282
|
- [UserPayStripeCheckoutResponse](docs/UserPayStripeCheckoutResponse.md)
|
|
280
283
|
- [UserPortalDashboardResponse](docs/UserPortalDashboardResponse.md)
|
|
281
284
|
- [UserSettings](docs/UserSettings.md)
|
package/api.ts
CHANGED
|
@@ -65,6 +65,7 @@ export interface AdminAIModel {
|
|
|
65
65
|
'created_at'?: string;
|
|
66
66
|
'updated_at'?: string;
|
|
67
67
|
'deleted_at'?: string;
|
|
68
|
+
'official_provider_id'?: string;
|
|
68
69
|
}
|
|
69
70
|
export interface AdminAIModelCheckConnectionResponse {
|
|
70
71
|
'code'?: string;
|
|
@@ -112,6 +113,7 @@ export interface AdminAIModelCreateRequest {
|
|
|
112
113
|
'discount_config'?: AdminAIModelDiscountConfig;
|
|
113
114
|
'model_group'?: string;
|
|
114
115
|
'description'?: string;
|
|
116
|
+
'official_provider_id'?: string;
|
|
115
117
|
}
|
|
116
118
|
export interface AdminAIModelCreateResponse {
|
|
117
119
|
'code'?: string;
|
|
@@ -274,7 +276,6 @@ export interface AdminProviderCreateRequest {
|
|
|
274
276
|
'provider_type'?: string;
|
|
275
277
|
'is_sync'?: boolean;
|
|
276
278
|
'endpoints'?: Array<VersionedAPISchema>;
|
|
277
|
-
'official_provider_id'?: string;
|
|
278
279
|
}
|
|
279
280
|
export interface AdminProviderCreateResponse {
|
|
280
281
|
'code'?: string;
|
|
@@ -1184,6 +1185,21 @@ export interface UserModelHourActivity {
|
|
|
1184
1185
|
export interface UserModelHourlyUsages {
|
|
1185
1186
|
'hour_activities'?: Array<UserModelHourActivity>;
|
|
1186
1187
|
}
|
|
1188
|
+
export interface UserPayOrder {
|
|
1189
|
+
'order_no'?: string;
|
|
1190
|
+
'balance_code'?: string;
|
|
1191
|
+
'charge_amount'?: string;
|
|
1192
|
+
'pay_amount'?: string;
|
|
1193
|
+
'payment_method'?: string;
|
|
1194
|
+
'order_status'?: string;
|
|
1195
|
+
'confirmed_at'?: string;
|
|
1196
|
+
}
|
|
1197
|
+
export interface UserPayOrderListResponse {
|
|
1198
|
+
'code'?: string;
|
|
1199
|
+
'message'?: string;
|
|
1200
|
+
'list'?: Array<UserPayOrder>;
|
|
1201
|
+
'total'?: string;
|
|
1202
|
+
}
|
|
1187
1203
|
export interface UserPayStripeCheckoutResponse {
|
|
1188
1204
|
'code'?: string;
|
|
1189
1205
|
'message'?: string;
|
|
@@ -7750,6 +7766,45 @@ export type UserModelServiceFrontendModelsResponseOptionEnum = typeof UserModelS
|
|
|
7750
7766
|
*/
|
|
7751
7767
|
export const UserPayServiceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7752
7768
|
return {
|
|
7769
|
+
/**
|
|
7770
|
+
*
|
|
7771
|
+
* @param {number} [page]
|
|
7772
|
+
* @param {number} [pageSize]
|
|
7773
|
+
* @param {*} [options] Override http request option.
|
|
7774
|
+
* @throws {RequiredError}
|
|
7775
|
+
*/
|
|
7776
|
+
userPayServiceUserPayOrderList: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7777
|
+
const localVarPath = `/api/v1/user/pay/order/list`;
|
|
7778
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7779
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7780
|
+
let baseOptions;
|
|
7781
|
+
if (configuration) {
|
|
7782
|
+
baseOptions = configuration.baseOptions;
|
|
7783
|
+
}
|
|
7784
|
+
|
|
7785
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7786
|
+
const localVarHeaderParameter = {} as any;
|
|
7787
|
+
const localVarQueryParameter = {} as any;
|
|
7788
|
+
|
|
7789
|
+
if (page !== undefined) {
|
|
7790
|
+
localVarQueryParameter['page'] = page;
|
|
7791
|
+
}
|
|
7792
|
+
|
|
7793
|
+
if (pageSize !== undefined) {
|
|
7794
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7795
|
+
}
|
|
7796
|
+
|
|
7797
|
+
|
|
7798
|
+
|
|
7799
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7800
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7801
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7802
|
+
|
|
7803
|
+
return {
|
|
7804
|
+
url: toPathString(localVarUrlObj),
|
|
7805
|
+
options: localVarRequestOptions,
|
|
7806
|
+
};
|
|
7807
|
+
},
|
|
7753
7808
|
/**
|
|
7754
7809
|
*
|
|
7755
7810
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -7813,6 +7868,19 @@ export const UserPayServiceApiAxiosParamCreator = function (configuration?: Conf
|
|
|
7813
7868
|
export const UserPayServiceApiFp = function(configuration?: Configuration) {
|
|
7814
7869
|
const localVarAxiosParamCreator = UserPayServiceApiAxiosParamCreator(configuration)
|
|
7815
7870
|
return {
|
|
7871
|
+
/**
|
|
7872
|
+
*
|
|
7873
|
+
* @param {number} [page]
|
|
7874
|
+
* @param {number} [pageSize]
|
|
7875
|
+
* @param {*} [options] Override http request option.
|
|
7876
|
+
* @throws {RequiredError}
|
|
7877
|
+
*/
|
|
7878
|
+
async userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayOrderListResponse>> {
|
|
7879
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userPayServiceUserPayOrderList(page, pageSize, options);
|
|
7880
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7881
|
+
const localVarOperationServerBasePath = operationServerMap['UserPayServiceApi.userPayServiceUserPayOrderList']?.[localVarOperationServerIndex]?.url;
|
|
7882
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7883
|
+
},
|
|
7816
7884
|
/**
|
|
7817
7885
|
*
|
|
7818
7886
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -7838,6 +7906,16 @@ export const UserPayServiceApiFp = function(configuration?: Configuration) {
|
|
|
7838
7906
|
export const UserPayServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7839
7907
|
const localVarFp = UserPayServiceApiFp(configuration)
|
|
7840
7908
|
return {
|
|
7909
|
+
/**
|
|
7910
|
+
*
|
|
7911
|
+
* @param {number} [page]
|
|
7912
|
+
* @param {number} [pageSize]
|
|
7913
|
+
* @param {*} [options] Override http request option.
|
|
7914
|
+
* @throws {RequiredError}
|
|
7915
|
+
*/
|
|
7916
|
+
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderListResponse> {
|
|
7917
|
+
return localVarFp.userPayServiceUserPayOrderList(page, pageSize, options).then((request) => request(axios, basePath));
|
|
7918
|
+
},
|
|
7841
7919
|
/**
|
|
7842
7920
|
*
|
|
7843
7921
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -7858,6 +7936,15 @@ export const UserPayServiceApiFactory = function (configuration?: Configuration,
|
|
|
7858
7936
|
* UserPayServiceApi - interface
|
|
7859
7937
|
*/
|
|
7860
7938
|
export interface UserPayServiceApiInterface {
|
|
7939
|
+
/**
|
|
7940
|
+
*
|
|
7941
|
+
* @param {number} [page]
|
|
7942
|
+
* @param {number} [pageSize]
|
|
7943
|
+
* @param {*} [options] Override http request option.
|
|
7944
|
+
* @throws {RequiredError}
|
|
7945
|
+
*/
|
|
7946
|
+
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderListResponse>;
|
|
7947
|
+
|
|
7861
7948
|
/**
|
|
7862
7949
|
*
|
|
7863
7950
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -7876,6 +7963,17 @@ export interface UserPayServiceApiInterface {
|
|
|
7876
7963
|
* UserPayServiceApi - object-oriented interface
|
|
7877
7964
|
*/
|
|
7878
7965
|
export class UserPayServiceApi extends BaseAPI implements UserPayServiceApiInterface {
|
|
7966
|
+
/**
|
|
7967
|
+
*
|
|
7968
|
+
* @param {number} [page]
|
|
7969
|
+
* @param {number} [pageSize]
|
|
7970
|
+
* @param {*} [options] Override http request option.
|
|
7971
|
+
* @throws {RequiredError}
|
|
7972
|
+
*/
|
|
7973
|
+
public userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
|
|
7974
|
+
return UserPayServiceApiFp(this.configuration).userPayServiceUserPayOrderList(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
7975
|
+
}
|
|
7976
|
+
|
|
7879
7977
|
/**
|
|
7880
7978
|
*
|
|
7881
7979
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
package/dist/api.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export interface AdminAIModel {
|
|
|
55
55
|
'created_at'?: string;
|
|
56
56
|
'updated_at'?: string;
|
|
57
57
|
'deleted_at'?: string;
|
|
58
|
+
'official_provider_id'?: string;
|
|
58
59
|
}
|
|
59
60
|
export interface AdminAIModelCheckConnectionResponse {
|
|
60
61
|
'code'?: string;
|
|
@@ -102,6 +103,7 @@ export interface AdminAIModelCreateRequest {
|
|
|
102
103
|
'discount_config'?: AdminAIModelDiscountConfig;
|
|
103
104
|
'model_group'?: string;
|
|
104
105
|
'description'?: string;
|
|
106
|
+
'official_provider_id'?: string;
|
|
105
107
|
}
|
|
106
108
|
export interface AdminAIModelCreateResponse {
|
|
107
109
|
'code'?: string;
|
|
@@ -266,7 +268,6 @@ export interface AdminProviderCreateRequest {
|
|
|
266
268
|
'provider_type'?: string;
|
|
267
269
|
'is_sync'?: boolean;
|
|
268
270
|
'endpoints'?: Array<VersionedAPISchema>;
|
|
269
|
-
'official_provider_id'?: string;
|
|
270
271
|
}
|
|
271
272
|
export interface AdminProviderCreateResponse {
|
|
272
273
|
'code'?: string;
|
|
@@ -1179,6 +1180,21 @@ export interface UserModelHourActivity {
|
|
|
1179
1180
|
export interface UserModelHourlyUsages {
|
|
1180
1181
|
'hour_activities'?: Array<UserModelHourActivity>;
|
|
1181
1182
|
}
|
|
1183
|
+
export interface UserPayOrder {
|
|
1184
|
+
'order_no'?: string;
|
|
1185
|
+
'balance_code'?: string;
|
|
1186
|
+
'charge_amount'?: string;
|
|
1187
|
+
'pay_amount'?: string;
|
|
1188
|
+
'payment_method'?: string;
|
|
1189
|
+
'order_status'?: string;
|
|
1190
|
+
'confirmed_at'?: string;
|
|
1191
|
+
}
|
|
1192
|
+
export interface UserPayOrderListResponse {
|
|
1193
|
+
'code'?: string;
|
|
1194
|
+
'message'?: string;
|
|
1195
|
+
'list'?: Array<UserPayOrder>;
|
|
1196
|
+
'total'?: string;
|
|
1197
|
+
}
|
|
1182
1198
|
export interface UserPayStripeCheckoutResponse {
|
|
1183
1199
|
'code'?: string;
|
|
1184
1200
|
'message'?: string;
|
|
@@ -4614,6 +4630,14 @@ export type UserModelServiceFrontendModelsResponseOptionEnum = typeof UserModelS
|
|
|
4614
4630
|
* UserPayServiceApi - axios parameter creator
|
|
4615
4631
|
*/
|
|
4616
4632
|
export declare const UserPayServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4633
|
+
/**
|
|
4634
|
+
*
|
|
4635
|
+
* @param {number} [page]
|
|
4636
|
+
* @param {number} [pageSize]
|
|
4637
|
+
* @param {*} [options] Override http request option.
|
|
4638
|
+
* @throws {RequiredError}
|
|
4639
|
+
*/
|
|
4640
|
+
userPayServiceUserPayOrderList: (page?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4617
4641
|
/**
|
|
4618
4642
|
*
|
|
4619
4643
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -4630,6 +4654,14 @@ export declare const UserPayServiceApiAxiosParamCreator: (configuration?: Config
|
|
|
4630
4654
|
* UserPayServiceApi - functional programming interface
|
|
4631
4655
|
*/
|
|
4632
4656
|
export declare const UserPayServiceApiFp: (configuration?: Configuration) => {
|
|
4657
|
+
/**
|
|
4658
|
+
*
|
|
4659
|
+
* @param {number} [page]
|
|
4660
|
+
* @param {number} [pageSize]
|
|
4661
|
+
* @param {*} [options] Override http request option.
|
|
4662
|
+
* @throws {RequiredError}
|
|
4663
|
+
*/
|
|
4664
|
+
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayOrderListResponse>>;
|
|
4633
4665
|
/**
|
|
4634
4666
|
*
|
|
4635
4667
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -4646,6 +4678,14 @@ export declare const UserPayServiceApiFp: (configuration?: Configuration) => {
|
|
|
4646
4678
|
* UserPayServiceApi - factory interface
|
|
4647
4679
|
*/
|
|
4648
4680
|
export declare const UserPayServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4681
|
+
/**
|
|
4682
|
+
*
|
|
4683
|
+
* @param {number} [page]
|
|
4684
|
+
* @param {number} [pageSize]
|
|
4685
|
+
* @param {*} [options] Override http request option.
|
|
4686
|
+
* @throws {RequiredError}
|
|
4687
|
+
*/
|
|
4688
|
+
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderListResponse>;
|
|
4649
4689
|
/**
|
|
4650
4690
|
*
|
|
4651
4691
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -4662,6 +4702,14 @@ export declare const UserPayServiceApiFactory: (configuration?: Configuration, b
|
|
|
4662
4702
|
* UserPayServiceApi - interface
|
|
4663
4703
|
*/
|
|
4664
4704
|
export interface UserPayServiceApiInterface {
|
|
4705
|
+
/**
|
|
4706
|
+
*
|
|
4707
|
+
* @param {number} [page]
|
|
4708
|
+
* @param {number} [pageSize]
|
|
4709
|
+
* @param {*} [options] Override http request option.
|
|
4710
|
+
* @throws {RequiredError}
|
|
4711
|
+
*/
|
|
4712
|
+
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderListResponse>;
|
|
4665
4713
|
/**
|
|
4666
4714
|
*
|
|
4667
4715
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -4678,6 +4726,14 @@ export interface UserPayServiceApiInterface {
|
|
|
4678
4726
|
* UserPayServiceApi - object-oriented interface
|
|
4679
4727
|
*/
|
|
4680
4728
|
export declare class UserPayServiceApi extends BaseAPI implements UserPayServiceApiInterface {
|
|
4729
|
+
/**
|
|
4730
|
+
*
|
|
4731
|
+
* @param {number} [page]
|
|
4732
|
+
* @param {number} [pageSize]
|
|
4733
|
+
* @param {*} [options] Override http request option.
|
|
4734
|
+
* @throws {RequiredError}
|
|
4735
|
+
*/
|
|
4736
|
+
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPayOrderListResponse, any, {}>>;
|
|
4681
4737
|
/**
|
|
4682
4738
|
*
|
|
4683
4739
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
package/dist/api.js
CHANGED
|
@@ -5441,6 +5441,38 @@ exports.UserModelServiceFrontendModelsResponseOptionEnum = {
|
|
|
5441
5441
|
*/
|
|
5442
5442
|
const UserPayServiceApiAxiosParamCreator = function (configuration) {
|
|
5443
5443
|
return {
|
|
5444
|
+
/**
|
|
5445
|
+
*
|
|
5446
|
+
* @param {number} [page]
|
|
5447
|
+
* @param {number} [pageSize]
|
|
5448
|
+
* @param {*} [options] Override http request option.
|
|
5449
|
+
* @throws {RequiredError}
|
|
5450
|
+
*/
|
|
5451
|
+
userPayServiceUserPayOrderList: (page_1, pageSize_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, ...args_1], void 0, function* (page, pageSize, options = {}) {
|
|
5452
|
+
const localVarPath = `/api/v1/user/pay/order/list`;
|
|
5453
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5454
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5455
|
+
let baseOptions;
|
|
5456
|
+
if (configuration) {
|
|
5457
|
+
baseOptions = configuration.baseOptions;
|
|
5458
|
+
}
|
|
5459
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5460
|
+
const localVarHeaderParameter = {};
|
|
5461
|
+
const localVarQueryParameter = {};
|
|
5462
|
+
if (page !== undefined) {
|
|
5463
|
+
localVarQueryParameter['page'] = page;
|
|
5464
|
+
}
|
|
5465
|
+
if (pageSize !== undefined) {
|
|
5466
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
5467
|
+
}
|
|
5468
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5469
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5470
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5471
|
+
return {
|
|
5472
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5473
|
+
options: localVarRequestOptions,
|
|
5474
|
+
};
|
|
5475
|
+
}),
|
|
5444
5476
|
/**
|
|
5445
5477
|
*
|
|
5446
5478
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -5494,6 +5526,22 @@ exports.UserPayServiceApiAxiosParamCreator = UserPayServiceApiAxiosParamCreator;
|
|
|
5494
5526
|
const UserPayServiceApiFp = function (configuration) {
|
|
5495
5527
|
const localVarAxiosParamCreator = (0, exports.UserPayServiceApiAxiosParamCreator)(configuration);
|
|
5496
5528
|
return {
|
|
5529
|
+
/**
|
|
5530
|
+
*
|
|
5531
|
+
* @param {number} [page]
|
|
5532
|
+
* @param {number} [pageSize]
|
|
5533
|
+
* @param {*} [options] Override http request option.
|
|
5534
|
+
* @throws {RequiredError}
|
|
5535
|
+
*/
|
|
5536
|
+
userPayServiceUserPayOrderList(page, pageSize, options) {
|
|
5537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5538
|
+
var _a, _b, _c;
|
|
5539
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayServiceUserPayOrderList(page, pageSize, options);
|
|
5540
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5541
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPayServiceApi.userPayServiceUserPayOrderList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5542
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5543
|
+
});
|
|
5544
|
+
},
|
|
5497
5545
|
/**
|
|
5498
5546
|
*
|
|
5499
5547
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -5522,6 +5570,16 @@ exports.UserPayServiceApiFp = UserPayServiceApiFp;
|
|
|
5522
5570
|
const UserPayServiceApiFactory = function (configuration, basePath, axios) {
|
|
5523
5571
|
const localVarFp = (0, exports.UserPayServiceApiFp)(configuration);
|
|
5524
5572
|
return {
|
|
5573
|
+
/**
|
|
5574
|
+
*
|
|
5575
|
+
* @param {number} [page]
|
|
5576
|
+
* @param {number} [pageSize]
|
|
5577
|
+
* @param {*} [options] Override http request option.
|
|
5578
|
+
* @throws {RequiredError}
|
|
5579
|
+
*/
|
|
5580
|
+
userPayServiceUserPayOrderList(page, pageSize, options) {
|
|
5581
|
+
return localVarFp.userPayServiceUserPayOrderList(page, pageSize, options).then((request) => request(axios, basePath));
|
|
5582
|
+
},
|
|
5525
5583
|
/**
|
|
5526
5584
|
*
|
|
5527
5585
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -5542,6 +5600,16 @@ exports.UserPayServiceApiFactory = UserPayServiceApiFactory;
|
|
|
5542
5600
|
* UserPayServiceApi - object-oriented interface
|
|
5543
5601
|
*/
|
|
5544
5602
|
class UserPayServiceApi extends base_1.BaseAPI {
|
|
5603
|
+
/**
|
|
5604
|
+
*
|
|
5605
|
+
* @param {number} [page]
|
|
5606
|
+
* @param {number} [pageSize]
|
|
5607
|
+
* @param {*} [options] Override http request option.
|
|
5608
|
+
* @throws {RequiredError}
|
|
5609
|
+
*/
|
|
5610
|
+
userPayServiceUserPayOrderList(page, pageSize, options) {
|
|
5611
|
+
return (0, exports.UserPayServiceApiFp)(this.configuration).userPayServiceUserPayOrderList(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
5612
|
+
}
|
|
5545
5613
|
/**
|
|
5546
5614
|
*
|
|
5547
5615
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export interface AdminAIModel {
|
|
|
55
55
|
'created_at'?: string;
|
|
56
56
|
'updated_at'?: string;
|
|
57
57
|
'deleted_at'?: string;
|
|
58
|
+
'official_provider_id'?: string;
|
|
58
59
|
}
|
|
59
60
|
export interface AdminAIModelCheckConnectionResponse {
|
|
60
61
|
'code'?: string;
|
|
@@ -102,6 +103,7 @@ export interface AdminAIModelCreateRequest {
|
|
|
102
103
|
'discount_config'?: AdminAIModelDiscountConfig;
|
|
103
104
|
'model_group'?: string;
|
|
104
105
|
'description'?: string;
|
|
106
|
+
'official_provider_id'?: string;
|
|
105
107
|
}
|
|
106
108
|
export interface AdminAIModelCreateResponse {
|
|
107
109
|
'code'?: string;
|
|
@@ -266,7 +268,6 @@ export interface AdminProviderCreateRequest {
|
|
|
266
268
|
'provider_type'?: string;
|
|
267
269
|
'is_sync'?: boolean;
|
|
268
270
|
'endpoints'?: Array<VersionedAPISchema>;
|
|
269
|
-
'official_provider_id'?: string;
|
|
270
271
|
}
|
|
271
272
|
export interface AdminProviderCreateResponse {
|
|
272
273
|
'code'?: string;
|
|
@@ -1179,6 +1180,21 @@ export interface UserModelHourActivity {
|
|
|
1179
1180
|
export interface UserModelHourlyUsages {
|
|
1180
1181
|
'hour_activities'?: Array<UserModelHourActivity>;
|
|
1181
1182
|
}
|
|
1183
|
+
export interface UserPayOrder {
|
|
1184
|
+
'order_no'?: string;
|
|
1185
|
+
'balance_code'?: string;
|
|
1186
|
+
'charge_amount'?: string;
|
|
1187
|
+
'pay_amount'?: string;
|
|
1188
|
+
'payment_method'?: string;
|
|
1189
|
+
'order_status'?: string;
|
|
1190
|
+
'confirmed_at'?: string;
|
|
1191
|
+
}
|
|
1192
|
+
export interface UserPayOrderListResponse {
|
|
1193
|
+
'code'?: string;
|
|
1194
|
+
'message'?: string;
|
|
1195
|
+
'list'?: Array<UserPayOrder>;
|
|
1196
|
+
'total'?: string;
|
|
1197
|
+
}
|
|
1182
1198
|
export interface UserPayStripeCheckoutResponse {
|
|
1183
1199
|
'code'?: string;
|
|
1184
1200
|
'message'?: string;
|
|
@@ -4614,6 +4630,14 @@ export type UserModelServiceFrontendModelsResponseOptionEnum = typeof UserModelS
|
|
|
4614
4630
|
* UserPayServiceApi - axios parameter creator
|
|
4615
4631
|
*/
|
|
4616
4632
|
export declare const UserPayServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4633
|
+
/**
|
|
4634
|
+
*
|
|
4635
|
+
* @param {number} [page]
|
|
4636
|
+
* @param {number} [pageSize]
|
|
4637
|
+
* @param {*} [options] Override http request option.
|
|
4638
|
+
* @throws {RequiredError}
|
|
4639
|
+
*/
|
|
4640
|
+
userPayServiceUserPayOrderList: (page?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4617
4641
|
/**
|
|
4618
4642
|
*
|
|
4619
4643
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -4630,6 +4654,14 @@ export declare const UserPayServiceApiAxiosParamCreator: (configuration?: Config
|
|
|
4630
4654
|
* UserPayServiceApi - functional programming interface
|
|
4631
4655
|
*/
|
|
4632
4656
|
export declare const UserPayServiceApiFp: (configuration?: Configuration) => {
|
|
4657
|
+
/**
|
|
4658
|
+
*
|
|
4659
|
+
* @param {number} [page]
|
|
4660
|
+
* @param {number} [pageSize]
|
|
4661
|
+
* @param {*} [options] Override http request option.
|
|
4662
|
+
* @throws {RequiredError}
|
|
4663
|
+
*/
|
|
4664
|
+
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayOrderListResponse>>;
|
|
4633
4665
|
/**
|
|
4634
4666
|
*
|
|
4635
4667
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -4646,6 +4678,14 @@ export declare const UserPayServiceApiFp: (configuration?: Configuration) => {
|
|
|
4646
4678
|
* UserPayServiceApi - factory interface
|
|
4647
4679
|
*/
|
|
4648
4680
|
export declare const UserPayServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4681
|
+
/**
|
|
4682
|
+
*
|
|
4683
|
+
* @param {number} [page]
|
|
4684
|
+
* @param {number} [pageSize]
|
|
4685
|
+
* @param {*} [options] Override http request option.
|
|
4686
|
+
* @throws {RequiredError}
|
|
4687
|
+
*/
|
|
4688
|
+
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderListResponse>;
|
|
4649
4689
|
/**
|
|
4650
4690
|
*
|
|
4651
4691
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -4662,6 +4702,14 @@ export declare const UserPayServiceApiFactory: (configuration?: Configuration, b
|
|
|
4662
4702
|
* UserPayServiceApi - interface
|
|
4663
4703
|
*/
|
|
4664
4704
|
export interface UserPayServiceApiInterface {
|
|
4705
|
+
/**
|
|
4706
|
+
*
|
|
4707
|
+
* @param {number} [page]
|
|
4708
|
+
* @param {number} [pageSize]
|
|
4709
|
+
* @param {*} [options] Override http request option.
|
|
4710
|
+
* @throws {RequiredError}
|
|
4711
|
+
*/
|
|
4712
|
+
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderListResponse>;
|
|
4665
4713
|
/**
|
|
4666
4714
|
*
|
|
4667
4715
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -4678,6 +4726,14 @@ export interface UserPayServiceApiInterface {
|
|
|
4678
4726
|
* UserPayServiceApi - object-oriented interface
|
|
4679
4727
|
*/
|
|
4680
4728
|
export declare class UserPayServiceApi extends BaseAPI implements UserPayServiceApiInterface {
|
|
4729
|
+
/**
|
|
4730
|
+
*
|
|
4731
|
+
* @param {number} [page]
|
|
4732
|
+
* @param {number} [pageSize]
|
|
4733
|
+
* @param {*} [options] Override http request option.
|
|
4734
|
+
* @throws {RequiredError}
|
|
4735
|
+
*/
|
|
4736
|
+
userPayServiceUserPayOrderList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPayOrderListResponse, any, {}>>;
|
|
4681
4737
|
/**
|
|
4682
4738
|
*
|
|
4683
4739
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
package/dist/esm/api.js
CHANGED
|
@@ -5393,6 +5393,38 @@ export const UserModelServiceFrontendModelsResponseOptionEnum = {
|
|
|
5393
5393
|
*/
|
|
5394
5394
|
export const UserPayServiceApiAxiosParamCreator = function (configuration) {
|
|
5395
5395
|
return {
|
|
5396
|
+
/**
|
|
5397
|
+
*
|
|
5398
|
+
* @param {number} [page]
|
|
5399
|
+
* @param {number} [pageSize]
|
|
5400
|
+
* @param {*} [options] Override http request option.
|
|
5401
|
+
* @throws {RequiredError}
|
|
5402
|
+
*/
|
|
5403
|
+
userPayServiceUserPayOrderList: (page_1, pageSize_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, ...args_1], void 0, function* (page, pageSize, options = {}) {
|
|
5404
|
+
const localVarPath = `/api/v1/user/pay/order/list`;
|
|
5405
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5406
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5407
|
+
let baseOptions;
|
|
5408
|
+
if (configuration) {
|
|
5409
|
+
baseOptions = configuration.baseOptions;
|
|
5410
|
+
}
|
|
5411
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5412
|
+
const localVarHeaderParameter = {};
|
|
5413
|
+
const localVarQueryParameter = {};
|
|
5414
|
+
if (page !== undefined) {
|
|
5415
|
+
localVarQueryParameter['page'] = page;
|
|
5416
|
+
}
|
|
5417
|
+
if (pageSize !== undefined) {
|
|
5418
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
5419
|
+
}
|
|
5420
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5421
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5422
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5423
|
+
return {
|
|
5424
|
+
url: toPathString(localVarUrlObj),
|
|
5425
|
+
options: localVarRequestOptions,
|
|
5426
|
+
};
|
|
5427
|
+
}),
|
|
5396
5428
|
/**
|
|
5397
5429
|
*
|
|
5398
5430
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -5445,6 +5477,22 @@ export const UserPayServiceApiAxiosParamCreator = function (configuration) {
|
|
|
5445
5477
|
export const UserPayServiceApiFp = function (configuration) {
|
|
5446
5478
|
const localVarAxiosParamCreator = UserPayServiceApiAxiosParamCreator(configuration);
|
|
5447
5479
|
return {
|
|
5480
|
+
/**
|
|
5481
|
+
*
|
|
5482
|
+
* @param {number} [page]
|
|
5483
|
+
* @param {number} [pageSize]
|
|
5484
|
+
* @param {*} [options] Override http request option.
|
|
5485
|
+
* @throws {RequiredError}
|
|
5486
|
+
*/
|
|
5487
|
+
userPayServiceUserPayOrderList(page, pageSize, options) {
|
|
5488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5489
|
+
var _a, _b, _c;
|
|
5490
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayServiceUserPayOrderList(page, pageSize, options);
|
|
5491
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5492
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserPayServiceApi.userPayServiceUserPayOrderList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5493
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5494
|
+
});
|
|
5495
|
+
},
|
|
5448
5496
|
/**
|
|
5449
5497
|
*
|
|
5450
5498
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -5472,6 +5520,16 @@ export const UserPayServiceApiFp = function (configuration) {
|
|
|
5472
5520
|
export const UserPayServiceApiFactory = function (configuration, basePath, axios) {
|
|
5473
5521
|
const localVarFp = UserPayServiceApiFp(configuration);
|
|
5474
5522
|
return {
|
|
5523
|
+
/**
|
|
5524
|
+
*
|
|
5525
|
+
* @param {number} [page]
|
|
5526
|
+
* @param {number} [pageSize]
|
|
5527
|
+
* @param {*} [options] Override http request option.
|
|
5528
|
+
* @throws {RequiredError}
|
|
5529
|
+
*/
|
|
5530
|
+
userPayServiceUserPayOrderList(page, pageSize, options) {
|
|
5531
|
+
return localVarFp.userPayServiceUserPayOrderList(page, pageSize, options).then((request) => request(axios, basePath));
|
|
5532
|
+
},
|
|
5475
5533
|
/**
|
|
5476
5534
|
*
|
|
5477
5535
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
|
@@ -5491,6 +5549,16 @@ export const UserPayServiceApiFactory = function (configuration, basePath, axios
|
|
|
5491
5549
|
* UserPayServiceApi - object-oriented interface
|
|
5492
5550
|
*/
|
|
5493
5551
|
export class UserPayServiceApi extends BaseAPI {
|
|
5552
|
+
/**
|
|
5553
|
+
*
|
|
5554
|
+
* @param {number} [page]
|
|
5555
|
+
* @param {number} [pageSize]
|
|
5556
|
+
* @param {*} [options] Override http request option.
|
|
5557
|
+
* @throws {RequiredError}
|
|
5558
|
+
*/
|
|
5559
|
+
userPayServiceUserPayOrderList(page, pageSize, options) {
|
|
5560
|
+
return UserPayServiceApiFp(this.configuration).userPayServiceUserPayOrderList(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
5561
|
+
}
|
|
5494
5562
|
/**
|
|
5495
5563
|
*
|
|
5496
5564
|
* @param {string} [currencyCode] Currency code, e.g., \"USD\"
|
package/docs/AdminAIModel.md
CHANGED
|
@@ -32,6 +32,7 @@ Name | Type | Description | Notes
|
|
|
32
32
|
**created_at** | **string** | | [optional] [default to undefined]
|
|
33
33
|
**updated_at** | **string** | | [optional] [default to undefined]
|
|
34
34
|
**deleted_at** | **string** | | [optional] [default to undefined]
|
|
35
|
+
**official_provider_id** | **string** | | [optional] [default to undefined]
|
|
35
36
|
|
|
36
37
|
## Example
|
|
37
38
|
|
|
@@ -66,6 +67,7 @@ const instance: AdminAIModel = {
|
|
|
66
67
|
created_at,
|
|
67
68
|
updated_at,
|
|
68
69
|
deleted_at,
|
|
70
|
+
official_provider_id,
|
|
69
71
|
};
|
|
70
72
|
```
|
|
71
73
|
|
|
@@ -29,6 +29,7 @@ Name | Type | Description | Notes
|
|
|
29
29
|
**discount_config** | [**AdminAIModelDiscountConfig**](AdminAIModelDiscountConfig.md) | | [optional] [default to undefined]
|
|
30
30
|
**model_group** | **string** | | [optional] [default to undefined]
|
|
31
31
|
**description** | **string** | | [optional] [default to undefined]
|
|
32
|
+
**official_provider_id** | **string** | | [optional] [default to undefined]
|
|
32
33
|
|
|
33
34
|
## Example
|
|
34
35
|
|
|
@@ -60,6 +61,7 @@ const instance: AdminAIModelCreateRequest = {
|
|
|
60
61
|
discount_config,
|
|
61
62
|
model_group,
|
|
62
63
|
description,
|
|
64
|
+
official_provider_id,
|
|
63
65
|
};
|
|
64
66
|
```
|
|
65
67
|
|
|
@@ -17,7 +17,6 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**provider_type** | **string** | | [optional] [default to undefined]
|
|
18
18
|
**is_sync** | **boolean** | | [optional] [default to undefined]
|
|
19
19
|
**endpoints** | [**Array<VersionedAPISchema>**](VersionedAPISchema.md) | | [optional] [default to undefined]
|
|
20
|
-
**official_provider_id** | **string** | | [optional] [default to undefined]
|
|
21
20
|
|
|
22
21
|
## Example
|
|
23
22
|
|
|
@@ -37,7 +36,6 @@ const instance: AdminProviderCreateRequest = {
|
|
|
37
36
|
provider_type,
|
|
38
37
|
is_sync,
|
|
39
38
|
endpoints,
|
|
40
|
-
official_provider_id,
|
|
41
39
|
};
|
|
42
40
|
```
|
|
43
41
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UserPayOrder
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**order_no** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**balance_code** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**charge_amount** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**pay_amount** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**payment_method** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**order_status** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**confirmed_at** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { UserPayOrder } from '@cherryin/aigw-api-client';
|
|
20
|
+
|
|
21
|
+
const instance: UserPayOrder = {
|
|
22
|
+
order_no,
|
|
23
|
+
balance_code,
|
|
24
|
+
charge_amount,
|
|
25
|
+
pay_amount,
|
|
26
|
+
payment_method,
|
|
27
|
+
order_status,
|
|
28
|
+
confirmed_at,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UserPayOrderListResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**list** | [**Array<UserPayOrder>**](UserPayOrder.md) | | [optional] [default to undefined]
|
|
11
|
+
**total** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UserPayOrderListResponse } from '@cherryin/aigw-api-client';
|
|
17
|
+
|
|
18
|
+
const instance: UserPayOrderListResponse = {
|
|
19
|
+
code,
|
|
20
|
+
message,
|
|
21
|
+
list,
|
|
22
|
+
total,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -4,8 +4,63 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**userPayServiceUserPayOrderList**](#userpayserviceuserpayorderlist) | **GET** /api/v1/user/pay/order/list | |
|
|
7
8
|
|[**userPayServiceUserPayStripeCheckout**](#userpayserviceuserpaystripecheckout) | **POST** /api/v1/user/pay/stripe/checkout | |
|
|
8
9
|
|
|
10
|
+
# **userPayServiceUserPayOrderList**
|
|
11
|
+
> UserPayOrderListResponse userPayServiceUserPayOrderList()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
UserPayServiceApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@cherryin/aigw-api-client';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new UserPayServiceApi(configuration);
|
|
24
|
+
|
|
25
|
+
let page: number; // (optional) (default to undefined)
|
|
26
|
+
let pageSize: number; // (optional) (default to undefined)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.userPayServiceUserPayOrderList(
|
|
29
|
+
page,
|
|
30
|
+
pageSize
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **page** | [**number**] | | (optional) defaults to undefined|
|
|
39
|
+
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**UserPayOrderListResponse**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
No authorization required
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: Not defined
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**200** | A successful response. | - |
|
|
60
|
+
|**0** | An unexpected error response. | - |
|
|
61
|
+
|
|
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
|
+
|
|
9
64
|
# **userPayServiceUserPayStripeCheckout**
|
|
10
65
|
> UserPayStripeCheckoutResponse userPayServiceUserPayStripeCheckout()
|
|
11
66
|
|