@cherryin/aigw-api-client 0.1.31 → 0.1.32
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 +6 -0
- package/README.md +11 -5
- package/api.ts +172 -3
- package/dist/api.d.ts +116 -0
- package/dist/api.js +103 -5
- package/dist/esm/api.d.ts +116 -0
- package/dist/esm/api.js +97 -3
- package/docs/UserBalanceServiceApi.md +3 -3
- package/docs/UserPayAdminServiceApi.md +60 -0
- package/docs/UserPayOrderAdminItem.md +48 -0
- package/docs/UserPayOrderAdminListRequest.md +36 -0
- package/docs/UserPayOrderAdminListResponse.md +26 -0
- package/docs/UserPayOrderStripe.md +40 -0
- package/docs/UserPayOrderTimeRange.md +22 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -160,8 +160,14 @@ docs/UserLabelPairChangeResponse.md
|
|
|
160
160
|
docs/UserLabelServiceApi.md
|
|
161
161
|
docs/UserMeInfoResponse.md
|
|
162
162
|
docs/UserModelServiceApi.md
|
|
163
|
+
docs/UserPayAdminServiceApi.md
|
|
163
164
|
docs/UserPayOrder.md
|
|
165
|
+
docs/UserPayOrderAdminItem.md
|
|
166
|
+
docs/UserPayOrderAdminListRequest.md
|
|
167
|
+
docs/UserPayOrderAdminListResponse.md
|
|
164
168
|
docs/UserPayOrderListResponse.md
|
|
169
|
+
docs/UserPayOrderStripe.md
|
|
170
|
+
docs/UserPayOrderTimeRange.md
|
|
165
171
|
docs/UserPayServiceApi.md
|
|
166
172
|
docs/UserPayStripeCheckoutRequest.md
|
|
167
173
|
docs/UserPayStripeCheckoutResponse.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cherryin/aigw-api-client@0.1.
|
|
1
|
+
## @cherryin/aigw-api-client@0.1.32
|
|
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.32 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -102,9 +102,9 @@ Class | Method | HTTP request | Description
|
|
|
102
102
|
*UserAPIKeyServiceApi* | [**userAPIKeyServiceUserAPIKeyUpdate**](docs/UserAPIKeyServiceApi.md#userapikeyserviceuserapikeyupdate) | **POST** /api/v1/user/api-key/update | UserAPIKeyUpdate 更新现有的 UserAPIKey 请求路径: POST /api/user/api-key/update
|
|
103
103
|
*UserAdminServiceApi* | [**userAdminServiceUserInfoPageGet**](docs/UserAdminServiceApi.md#useradminserviceuserinfopageget) | **POST** /admin/users/search | 用户信息-分页查询接口
|
|
104
104
|
*UserAdminServiceApi* | [**userAdminServiceUserInfoUpdate**](docs/UserAdminServiceApi.md#useradminserviceuserinfoupdate) | **POST** /admin/users/update | 用户信息-单个更新接口
|
|
105
|
-
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceChange**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalancechange) | **POST** /
|
|
106
|
-
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceEdit**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalanceedit) | **POST** /
|
|
107
|
-
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceList**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalancelist) | **GET** /
|
|
105
|
+
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceChange**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalancechange) | **POST** /admin/users/balance/change | 用户余额变更接口 - 增量操作
|
|
106
|
+
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceEdit**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalanceedit) | **POST** /admin/users/balance/edit | 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
|
|
107
|
+
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceList**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalancelist) | **GET** /admin/users/balance/list | 用户余额列表接口
|
|
108
108
|
*UserLabelServiceApi* | [**userLabelServiceLabelCreate**](docs/UserLabelServiceApi.md#userlabelservicelabelcreate) | **POST** /admin/label/create |
|
|
109
109
|
*UserLabelServiceApi* | [**userLabelServiceLabelDelete**](docs/UserLabelServiceApi.md#userlabelservicelabeldelete) | **DELETE** /admin/label/delete |
|
|
110
110
|
*UserLabelServiceApi* | [**userLabelServiceLabelGet**](docs/UserLabelServiceApi.md#userlabelservicelabelget) | **GET** /admin/label/get |
|
|
@@ -115,6 +115,7 @@ Class | Method | HTTP request | Description
|
|
|
115
115
|
*UserModelServiceApi* | [**userModelServiceFrontendModels**](docs/UserModelServiceApi.md#usermodelservicefrontendmodels) | **GET** /api/v1/frontend/models | FrontendModels 获取前端模型列表 NOTE: 登录态鉴权
|
|
116
116
|
*UserModelServiceApi* | [**userModelServiceFrontendProviders**](docs/UserModelServiceApi.md#usermodelservicefrontendproviders) | **GET** /api/v1/frontend/providers | FrontendProviders 获取前端供应商列表 NOTE: 登录态鉴权
|
|
117
117
|
*UserModelServiceApi* | [**userModelServiceModelList**](docs/UserModelServiceApi.md#usermodelservicemodellist) | **GET** /v1/models | ModelList OpenAI 通用模型列表 NOTE: 需要 API KEY 鉴权
|
|
118
|
+
*UserPayAdminServiceApi* | [**userPayAdminServiceUserPayOrderAdminList**](docs/UserPayAdminServiceApi.md#userpayadminserviceuserpayorderadminlist) | **POST** /admin/users/orders/list | Admin - 用户订单查询列表
|
|
118
119
|
*UserPayServiceApi* | [**userPayServiceUserPayOrderList**](docs/UserPayServiceApi.md#userpayserviceuserpayorderlist) | **GET** /api/v1/user/pay/order/list |
|
|
119
120
|
*UserPayServiceApi* | [**userPayServiceUserPayStripeCheckout**](docs/UserPayServiceApi.md#userpayserviceuserpaystripecheckout) | **POST** /api/v1/user/pay/stripe/checkout |
|
|
120
121
|
*UserPortalServiceApi* | [**userPortalServiceUserMeInfo**](docs/UserPortalServiceApi.md#userportalserviceusermeinfo) | **GET** /api/v1/user/me/info | 个人信息接口
|
|
@@ -267,7 +268,12 @@ Class | Method | HTTP request | Description
|
|
|
267
268
|
- [UserLabelPairChangeResponse](docs/UserLabelPairChangeResponse.md)
|
|
268
269
|
- [UserMeInfoResponse](docs/UserMeInfoResponse.md)
|
|
269
270
|
- [UserPayOrder](docs/UserPayOrder.md)
|
|
271
|
+
- [UserPayOrderAdminItem](docs/UserPayOrderAdminItem.md)
|
|
272
|
+
- [UserPayOrderAdminListRequest](docs/UserPayOrderAdminListRequest.md)
|
|
273
|
+
- [UserPayOrderAdminListResponse](docs/UserPayOrderAdminListResponse.md)
|
|
270
274
|
- [UserPayOrderListResponse](docs/UserPayOrderListResponse.md)
|
|
275
|
+
- [UserPayOrderStripe](docs/UserPayOrderStripe.md)
|
|
276
|
+
- [UserPayOrderTimeRange](docs/UserPayOrderTimeRange.md)
|
|
271
277
|
- [UserPayStripeCheckoutRequest](docs/UserPayStripeCheckoutRequest.md)
|
|
272
278
|
- [UserPayStripeCheckoutResponse](docs/UserPayStripeCheckoutResponse.md)
|
|
273
279
|
- [UserPaymentInfo](docs/UserPaymentInfo.md)
|
package/api.ts
CHANGED
|
@@ -1123,12 +1123,63 @@ export interface UserPayOrder {
|
|
|
1123
1123
|
'order_status'?: string;
|
|
1124
1124
|
'confirmed_at'?: string;
|
|
1125
1125
|
}
|
|
1126
|
+
export interface UserPayOrderAdminItem {
|
|
1127
|
+
'order_no'?: string;
|
|
1128
|
+
'balance_code'?: string;
|
|
1129
|
+
'charge_amount'?: string;
|
|
1130
|
+
'pay_amount'?: string;
|
|
1131
|
+
'payment_method'?: string;
|
|
1132
|
+
'order_status'?: string;
|
|
1133
|
+
'confirmed_at'?: string;
|
|
1134
|
+
'created_at'?: string;
|
|
1135
|
+
'failed_at'?: string;
|
|
1136
|
+
'expired_at'?: string;
|
|
1137
|
+
'refunded_at'?: string;
|
|
1138
|
+
'user_agent'?: string;
|
|
1139
|
+
'client_ip'?: string;
|
|
1140
|
+
'user_id'?: string;
|
|
1141
|
+
'extra_stripe'?: UserPayOrderStripe;
|
|
1142
|
+
}
|
|
1143
|
+
export interface UserPayOrderAdminListRequest {
|
|
1144
|
+
'page'?: number;
|
|
1145
|
+
'page_size'?: number;
|
|
1146
|
+
'user_ids'?: Array<string>;
|
|
1147
|
+
'query_start_at'?: UserPayOrderTimeRange;
|
|
1148
|
+
'query_confirmed_at'?: UserPayOrderTimeRange;
|
|
1149
|
+
'query_failed_at'?: UserPayOrderTimeRange;
|
|
1150
|
+
'query_expired_at'?: UserPayOrderTimeRange;
|
|
1151
|
+
'query_order_status'?: Array<string>;
|
|
1152
|
+
'order_by'?: Array<OrderItem>;
|
|
1153
|
+
}
|
|
1154
|
+
export interface UserPayOrderAdminListResponse {
|
|
1155
|
+
'code'?: string;
|
|
1156
|
+
'message'?: string;
|
|
1157
|
+
'order_list'?: Array<UserPayOrderAdminItem>;
|
|
1158
|
+
'total'?: string;
|
|
1159
|
+
}
|
|
1126
1160
|
export interface UserPayOrderListResponse {
|
|
1127
1161
|
'code'?: string;
|
|
1128
1162
|
'message'?: string;
|
|
1129
1163
|
'list'?: Array<UserPayOrder>;
|
|
1130
1164
|
'total'?: string;
|
|
1131
1165
|
}
|
|
1166
|
+
export interface UserPayOrderStripe {
|
|
1167
|
+
'checkout_session_id'?: string;
|
|
1168
|
+
'price_id'?: string;
|
|
1169
|
+
'product_quantity'?: string;
|
|
1170
|
+
'promotion_codes_enabled'?: boolean;
|
|
1171
|
+
'customer_id'?: string;
|
|
1172
|
+
'customer_email'?: string;
|
|
1173
|
+
'customer_name'?: string;
|
|
1174
|
+
'currency'?: string;
|
|
1175
|
+
'total_amount'?: string;
|
|
1176
|
+
'subtotal_amount'?: string;
|
|
1177
|
+
'payment_intent_id'?: string;
|
|
1178
|
+
}
|
|
1179
|
+
export interface UserPayOrderTimeRange {
|
|
1180
|
+
'start_at'?: string;
|
|
1181
|
+
'until_at'?: string;
|
|
1182
|
+
}
|
|
1132
1183
|
export interface UserPayStripeCheckoutRequest {
|
|
1133
1184
|
'currency_code'?: string;
|
|
1134
1185
|
'charge_amount'?: string;
|
|
@@ -6002,7 +6053,7 @@ export const UserBalanceServiceApiAxiosParamCreator = function (configuration?:
|
|
|
6002
6053
|
* @throws {RequiredError}
|
|
6003
6054
|
*/
|
|
6004
6055
|
userBalanceServiceUserBalanceChange: async (forceCreate?: boolean, uid?: string, balanceCode?: string, action?: string, deltaPrepaidBalanceTotal?: string, deltaBonusBalanceTotal?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6005
|
-
const localVarPath = `/
|
|
6056
|
+
const localVarPath = `/admin/users/balance/change`;
|
|
6006
6057
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6007
6058
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6008
6059
|
let baseOptions;
|
|
@@ -6070,7 +6121,7 @@ export const UserBalanceServiceApiAxiosParamCreator = function (configuration?:
|
|
|
6070
6121
|
* @throws {RequiredError}
|
|
6071
6122
|
*/
|
|
6072
6123
|
userBalanceServiceUserBalanceEdit: async (forceCreate?: boolean, uid?: string, dataId?: string, dataCreatedAt?: string, dataUpdatedAt?: string, dataUid?: string, dataBalanceCode?: string, dataPrepaidBalanceTotal?: string, dataPrepaidBalanceUsed?: string, dataPrepaidBalanceFrozen?: string, dataBonusBalanceTotal?: string, dataBonusBalanceUsed?: string, dataBonusBalanceFrozen?: string, dataVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6073
|
-
const localVarPath = `/
|
|
6124
|
+
const localVarPath = `/admin/users/balance/edit`;
|
|
6074
6125
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6075
6126
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6076
6127
|
let baseOptions;
|
|
@@ -6159,7 +6210,7 @@ export const UserBalanceServiceApiAxiosParamCreator = function (configuration?:
|
|
|
6159
6210
|
* @throws {RequiredError}
|
|
6160
6211
|
*/
|
|
6161
6212
|
userBalanceServiceUserBalanceList: async (page?: number, pageSize?: number, uidList?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6162
|
-
const localVarPath = `/
|
|
6213
|
+
const localVarPath = `/admin/users/balance/list`;
|
|
6163
6214
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6164
6215
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6165
6216
|
let baseOptions;
|
|
@@ -7386,6 +7437,124 @@ export const UserModelServiceFrontendModelsResponseOptionEnum = {
|
|
|
7386
7437
|
export type UserModelServiceFrontendModelsResponseOptionEnum = typeof UserModelServiceFrontendModelsResponseOptionEnum[keyof typeof UserModelServiceFrontendModelsResponseOptionEnum];
|
|
7387
7438
|
|
|
7388
7439
|
|
|
7440
|
+
/**
|
|
7441
|
+
* UserPayAdminServiceApi - axios parameter creator
|
|
7442
|
+
*/
|
|
7443
|
+
export const UserPayAdminServiceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7444
|
+
return {
|
|
7445
|
+
/**
|
|
7446
|
+
*
|
|
7447
|
+
* @summary Admin - 用户订单查询列表
|
|
7448
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
7449
|
+
* @param {*} [options] Override http request option.
|
|
7450
|
+
* @throws {RequiredError}
|
|
7451
|
+
*/
|
|
7452
|
+
userPayAdminServiceUserPayOrderAdminList: async (body: UserPayOrderAdminListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7453
|
+
// verify required parameter 'body' is not null or undefined
|
|
7454
|
+
assertParamExists('userPayAdminServiceUserPayOrderAdminList', 'body', body)
|
|
7455
|
+
const localVarPath = `/admin/users/orders/list`;
|
|
7456
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7457
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7458
|
+
let baseOptions;
|
|
7459
|
+
if (configuration) {
|
|
7460
|
+
baseOptions = configuration.baseOptions;
|
|
7461
|
+
}
|
|
7462
|
+
|
|
7463
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7464
|
+
const localVarHeaderParameter = {} as any;
|
|
7465
|
+
const localVarQueryParameter = {} as any;
|
|
7466
|
+
|
|
7467
|
+
|
|
7468
|
+
|
|
7469
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7470
|
+
|
|
7471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7473
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7474
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
7475
|
+
|
|
7476
|
+
return {
|
|
7477
|
+
url: toPathString(localVarUrlObj),
|
|
7478
|
+
options: localVarRequestOptions,
|
|
7479
|
+
};
|
|
7480
|
+
},
|
|
7481
|
+
}
|
|
7482
|
+
};
|
|
7483
|
+
|
|
7484
|
+
/**
|
|
7485
|
+
* UserPayAdminServiceApi - functional programming interface
|
|
7486
|
+
*/
|
|
7487
|
+
export const UserPayAdminServiceApiFp = function(configuration?: Configuration) {
|
|
7488
|
+
const localVarAxiosParamCreator = UserPayAdminServiceApiAxiosParamCreator(configuration)
|
|
7489
|
+
return {
|
|
7490
|
+
/**
|
|
7491
|
+
*
|
|
7492
|
+
* @summary Admin - 用户订单查询列表
|
|
7493
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
7494
|
+
* @param {*} [options] Override http request option.
|
|
7495
|
+
* @throws {RequiredError}
|
|
7496
|
+
*/
|
|
7497
|
+
async userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayOrderAdminListResponse>> {
|
|
7498
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userPayAdminServiceUserPayOrderAdminList(body, options);
|
|
7499
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7500
|
+
const localVarOperationServerBasePath = operationServerMap['UserPayAdminServiceApi.userPayAdminServiceUserPayOrderAdminList']?.[localVarOperationServerIndex]?.url;
|
|
7501
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7502
|
+
},
|
|
7503
|
+
}
|
|
7504
|
+
};
|
|
7505
|
+
|
|
7506
|
+
/**
|
|
7507
|
+
* UserPayAdminServiceApi - factory interface
|
|
7508
|
+
*/
|
|
7509
|
+
export const UserPayAdminServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7510
|
+
const localVarFp = UserPayAdminServiceApiFp(configuration)
|
|
7511
|
+
return {
|
|
7512
|
+
/**
|
|
7513
|
+
*
|
|
7514
|
+
* @summary Admin - 用户订单查询列表
|
|
7515
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
7516
|
+
* @param {*} [options] Override http request option.
|
|
7517
|
+
* @throws {RequiredError}
|
|
7518
|
+
*/
|
|
7519
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderAdminListResponse> {
|
|
7520
|
+
return localVarFp.userPayAdminServiceUserPayOrderAdminList(body, options).then((request) => request(axios, basePath));
|
|
7521
|
+
},
|
|
7522
|
+
};
|
|
7523
|
+
};
|
|
7524
|
+
|
|
7525
|
+
/**
|
|
7526
|
+
* UserPayAdminServiceApi - interface
|
|
7527
|
+
*/
|
|
7528
|
+
export interface UserPayAdminServiceApiInterface {
|
|
7529
|
+
/**
|
|
7530
|
+
*
|
|
7531
|
+
* @summary Admin - 用户订单查询列表
|
|
7532
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
7533
|
+
* @param {*} [options] Override http request option.
|
|
7534
|
+
* @throws {RequiredError}
|
|
7535
|
+
*/
|
|
7536
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderAdminListResponse>;
|
|
7537
|
+
|
|
7538
|
+
}
|
|
7539
|
+
|
|
7540
|
+
/**
|
|
7541
|
+
* UserPayAdminServiceApi - object-oriented interface
|
|
7542
|
+
*/
|
|
7543
|
+
export class UserPayAdminServiceApi extends BaseAPI implements UserPayAdminServiceApiInterface {
|
|
7544
|
+
/**
|
|
7545
|
+
*
|
|
7546
|
+
* @summary Admin - 用户订单查询列表
|
|
7547
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
7548
|
+
* @param {*} [options] Override http request option.
|
|
7549
|
+
* @throws {RequiredError}
|
|
7550
|
+
*/
|
|
7551
|
+
public userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig) {
|
|
7552
|
+
return UserPayAdminServiceApiFp(this.configuration).userPayAdminServiceUserPayOrderAdminList(body, options).then((request) => request(this.axios, this.basePath));
|
|
7553
|
+
}
|
|
7554
|
+
}
|
|
7555
|
+
|
|
7556
|
+
|
|
7557
|
+
|
|
7389
7558
|
/**
|
|
7390
7559
|
* UserPayServiceApi - axios parameter creator
|
|
7391
7560
|
*/
|
package/dist/api.d.ts
CHANGED
|
@@ -1124,12 +1124,63 @@ export interface UserPayOrder {
|
|
|
1124
1124
|
'order_status'?: string;
|
|
1125
1125
|
'confirmed_at'?: string;
|
|
1126
1126
|
}
|
|
1127
|
+
export interface UserPayOrderAdminItem {
|
|
1128
|
+
'order_no'?: string;
|
|
1129
|
+
'balance_code'?: string;
|
|
1130
|
+
'charge_amount'?: string;
|
|
1131
|
+
'pay_amount'?: string;
|
|
1132
|
+
'payment_method'?: string;
|
|
1133
|
+
'order_status'?: string;
|
|
1134
|
+
'confirmed_at'?: string;
|
|
1135
|
+
'created_at'?: string;
|
|
1136
|
+
'failed_at'?: string;
|
|
1137
|
+
'expired_at'?: string;
|
|
1138
|
+
'refunded_at'?: string;
|
|
1139
|
+
'user_agent'?: string;
|
|
1140
|
+
'client_ip'?: string;
|
|
1141
|
+
'user_id'?: string;
|
|
1142
|
+
'extra_stripe'?: UserPayOrderStripe;
|
|
1143
|
+
}
|
|
1144
|
+
export interface UserPayOrderAdminListRequest {
|
|
1145
|
+
'page'?: number;
|
|
1146
|
+
'page_size'?: number;
|
|
1147
|
+
'user_ids'?: Array<string>;
|
|
1148
|
+
'query_start_at'?: UserPayOrderTimeRange;
|
|
1149
|
+
'query_confirmed_at'?: UserPayOrderTimeRange;
|
|
1150
|
+
'query_failed_at'?: UserPayOrderTimeRange;
|
|
1151
|
+
'query_expired_at'?: UserPayOrderTimeRange;
|
|
1152
|
+
'query_order_status'?: Array<string>;
|
|
1153
|
+
'order_by'?: Array<OrderItem>;
|
|
1154
|
+
}
|
|
1155
|
+
export interface UserPayOrderAdminListResponse {
|
|
1156
|
+
'code'?: string;
|
|
1157
|
+
'message'?: string;
|
|
1158
|
+
'order_list'?: Array<UserPayOrderAdminItem>;
|
|
1159
|
+
'total'?: string;
|
|
1160
|
+
}
|
|
1127
1161
|
export interface UserPayOrderListResponse {
|
|
1128
1162
|
'code'?: string;
|
|
1129
1163
|
'message'?: string;
|
|
1130
1164
|
'list'?: Array<UserPayOrder>;
|
|
1131
1165
|
'total'?: string;
|
|
1132
1166
|
}
|
|
1167
|
+
export interface UserPayOrderStripe {
|
|
1168
|
+
'checkout_session_id'?: string;
|
|
1169
|
+
'price_id'?: string;
|
|
1170
|
+
'product_quantity'?: string;
|
|
1171
|
+
'promotion_codes_enabled'?: boolean;
|
|
1172
|
+
'customer_id'?: string;
|
|
1173
|
+
'customer_email'?: string;
|
|
1174
|
+
'customer_name'?: string;
|
|
1175
|
+
'currency'?: string;
|
|
1176
|
+
'total_amount'?: string;
|
|
1177
|
+
'subtotal_amount'?: string;
|
|
1178
|
+
'payment_intent_id'?: string;
|
|
1179
|
+
}
|
|
1180
|
+
export interface UserPayOrderTimeRange {
|
|
1181
|
+
'start_at'?: string;
|
|
1182
|
+
'until_at'?: string;
|
|
1183
|
+
}
|
|
1133
1184
|
export interface UserPayStripeCheckoutRequest {
|
|
1134
1185
|
'currency_code'?: string;
|
|
1135
1186
|
'charge_amount'?: string;
|
|
@@ -4412,6 +4463,71 @@ export declare const UserModelServiceFrontendModelsResponseOptionEnum: {
|
|
|
4412
4463
|
readonly ResponseOptionDataOnly: "RESPONSE_OPTION_DATA_ONLY";
|
|
4413
4464
|
};
|
|
4414
4465
|
export type UserModelServiceFrontendModelsResponseOptionEnum = typeof UserModelServiceFrontendModelsResponseOptionEnum[keyof typeof UserModelServiceFrontendModelsResponseOptionEnum];
|
|
4466
|
+
/**
|
|
4467
|
+
* UserPayAdminServiceApi - axios parameter creator
|
|
4468
|
+
*/
|
|
4469
|
+
export declare const UserPayAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4470
|
+
/**
|
|
4471
|
+
*
|
|
4472
|
+
* @summary Admin - 用户订单查询列表
|
|
4473
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4474
|
+
* @param {*} [options] Override http request option.
|
|
4475
|
+
* @throws {RequiredError}
|
|
4476
|
+
*/
|
|
4477
|
+
userPayAdminServiceUserPayOrderAdminList: (body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4478
|
+
};
|
|
4479
|
+
/**
|
|
4480
|
+
* UserPayAdminServiceApi - functional programming interface
|
|
4481
|
+
*/
|
|
4482
|
+
export declare const UserPayAdminServiceApiFp: (configuration?: Configuration) => {
|
|
4483
|
+
/**
|
|
4484
|
+
*
|
|
4485
|
+
* @summary Admin - 用户订单查询列表
|
|
4486
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4487
|
+
* @param {*} [options] Override http request option.
|
|
4488
|
+
* @throws {RequiredError}
|
|
4489
|
+
*/
|
|
4490
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayOrderAdminListResponse>>;
|
|
4491
|
+
};
|
|
4492
|
+
/**
|
|
4493
|
+
* UserPayAdminServiceApi - factory interface
|
|
4494
|
+
*/
|
|
4495
|
+
export declare const UserPayAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4496
|
+
/**
|
|
4497
|
+
*
|
|
4498
|
+
* @summary Admin - 用户订单查询列表
|
|
4499
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4500
|
+
* @param {*} [options] Override http request option.
|
|
4501
|
+
* @throws {RequiredError}
|
|
4502
|
+
*/
|
|
4503
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderAdminListResponse>;
|
|
4504
|
+
};
|
|
4505
|
+
/**
|
|
4506
|
+
* UserPayAdminServiceApi - interface
|
|
4507
|
+
*/
|
|
4508
|
+
export interface UserPayAdminServiceApiInterface {
|
|
4509
|
+
/**
|
|
4510
|
+
*
|
|
4511
|
+
* @summary Admin - 用户订单查询列表
|
|
4512
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4513
|
+
* @param {*} [options] Override http request option.
|
|
4514
|
+
* @throws {RequiredError}
|
|
4515
|
+
*/
|
|
4516
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderAdminListResponse>;
|
|
4517
|
+
}
|
|
4518
|
+
/**
|
|
4519
|
+
* UserPayAdminServiceApi - object-oriented interface
|
|
4520
|
+
*/
|
|
4521
|
+
export declare class UserPayAdminServiceApi extends BaseAPI implements UserPayAdminServiceApiInterface {
|
|
4522
|
+
/**
|
|
4523
|
+
*
|
|
4524
|
+
* @summary Admin - 用户订单查询列表
|
|
4525
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4526
|
+
* @param {*} [options] Override http request option.
|
|
4527
|
+
* @throws {RequiredError}
|
|
4528
|
+
*/
|
|
4529
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPayOrderAdminListResponse, any, {}>>;
|
|
4530
|
+
}
|
|
4415
4531
|
/**
|
|
4416
4532
|
* UserPayServiceApi - axios parameter creator
|
|
4417
4533
|
*/
|
package/dist/api.js
CHANGED
|
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.UserPortalServiceApi = exports.UserPortalServiceApiFactory = exports.UserPortalServiceApiFp = exports.UserPortalServiceApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.UserPayAdminServiceApi = exports.UserPayAdminServiceApiFactory = exports.UserPayAdminServiceApiFp = exports.UserPayAdminServiceApiAxiosParamCreator = exports.UserModelServiceFrontendModelsResponseOptionEnum = exports.UserModelServiceApi = exports.UserModelServiceApiFactory = exports.UserModelServiceApiFp = exports.UserModelServiceApiAxiosParamCreator = exports.UserLabelServiceApi = exports.UserLabelServiceApiFactory = exports.UserLabelServiceApiFp = exports.UserLabelServiceApiAxiosParamCreator = exports.UserBalanceServiceApi = exports.UserBalanceServiceApiFactory = exports.UserBalanceServiceApiFp = exports.UserBalanceServiceApiAxiosParamCreator = exports.UserAdminServiceApi = exports.UserAdminServiceApiFactory = exports.UserAdminServiceApiFp = exports.UserAdminServiceApiAxiosParamCreator = exports.UserAPIKeyServiceApi = exports.UserAPIKeyServiceApiFactory = exports.UserAPIKeyServiceApiFp = exports.UserAPIKeyServiceApiAxiosParamCreator = exports.QRCodeAdminServiceApi = exports.QRCodeAdminServiceApiFactory = exports.QRCodeAdminServiceApiFp = exports.QRCodeAdminServiceApiAxiosParamCreator = exports.ProviderModelAdminServiceApi = exports.ProviderModelAdminServiceApiFactory = exports.ProviderModelAdminServiceApiFp = exports.ProviderModelAdminServiceApiAxiosParamCreator = exports.ProviderAdminServiceApi = exports.ProviderAdminServiceApiFactory = exports.ProviderAdminServiceApiFp = exports.ProviderAdminServiceApiAxiosParamCreator = exports.DiscountAdminServiceApi = exports.DiscountAdminServiceApiFactory = exports.DiscountAdminServiceApiFp = exports.DiscountAdminServiceApiAxiosParamCreator = exports.AdminAPITokenServiceApi = exports.AdminAPITokenServiceApiFactory = exports.AdminAPITokenServiceApiFp = exports.AdminAPITokenServiceApiAxiosParamCreator = exports.AIModelAdminServiceApi = exports.AIModelAdminServiceApiFactory = exports.AIModelAdminServiceApiFp = exports.AIModelAdminServiceApiAxiosParamCreator = exports.FrontendModelsResponseOption = void 0;
|
|
26
|
+
exports.UserPortalServiceApi = exports.UserPortalServiceApiFactory = exports.UserPortalServiceApiFp = exports.UserPortalServiceApiAxiosParamCreator = exports.UserPayServiceApi = exports.UserPayServiceApiFactory = exports.UserPayServiceApiFp = exports.UserPayServiceApiAxiosParamCreator = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// Some imports not used depending on template conditions
|
|
29
29
|
// @ts-ignore
|
|
@@ -4032,7 +4032,7 @@ const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
|
|
|
4032
4032
|
* @throws {RequiredError}
|
|
4033
4033
|
*/
|
|
4034
4034
|
userBalanceServiceUserBalanceChange: (forceCreate_1, uid_1, balanceCode_1, action_1, deltaPrepaidBalanceTotal_1, deltaBonusBalanceTotal_1, ...args_1) => __awaiter(this, [forceCreate_1, uid_1, balanceCode_1, action_1, deltaPrepaidBalanceTotal_1, deltaBonusBalanceTotal_1, ...args_1], void 0, function* (forceCreate, uid, balanceCode, action, deltaPrepaidBalanceTotal, deltaBonusBalanceTotal, options = {}) {
|
|
4035
|
-
const localVarPath = `/
|
|
4035
|
+
const localVarPath = `/admin/users/balance/change`;
|
|
4036
4036
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4037
4037
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4038
4038
|
let baseOptions;
|
|
@@ -4089,7 +4089,7 @@ const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
|
|
|
4089
4089
|
* @throws {RequiredError}
|
|
4090
4090
|
*/
|
|
4091
4091
|
userBalanceServiceUserBalanceEdit: (forceCreate_1, uid_1, dataId_1, dataCreatedAt_1, dataUpdatedAt_1, dataUid_1, dataBalanceCode_1, dataPrepaidBalanceTotal_1, dataPrepaidBalanceUsed_1, dataPrepaidBalanceFrozen_1, dataBonusBalanceTotal_1, dataBonusBalanceUsed_1, dataBonusBalanceFrozen_1, dataVersion_1, ...args_1) => __awaiter(this, [forceCreate_1, uid_1, dataId_1, dataCreatedAt_1, dataUpdatedAt_1, dataUid_1, dataBalanceCode_1, dataPrepaidBalanceTotal_1, dataPrepaidBalanceUsed_1, dataPrepaidBalanceFrozen_1, dataBonusBalanceTotal_1, dataBonusBalanceUsed_1, dataBonusBalanceFrozen_1, dataVersion_1, ...args_1], void 0, function* (forceCreate, uid, dataId, dataCreatedAt, dataUpdatedAt, dataUid, dataBalanceCode, dataPrepaidBalanceTotal, dataPrepaidBalanceUsed, dataPrepaidBalanceFrozen, dataBonusBalanceTotal, dataBonusBalanceUsed, dataBonusBalanceFrozen, dataVersion, options = {}) {
|
|
4092
|
-
const localVarPath = `/
|
|
4092
|
+
const localVarPath = `/admin/users/balance/edit`;
|
|
4093
4093
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4094
4094
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4095
4095
|
let baseOptions;
|
|
@@ -4159,7 +4159,7 @@ const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
|
|
|
4159
4159
|
* @throws {RequiredError}
|
|
4160
4160
|
*/
|
|
4161
4161
|
userBalanceServiceUserBalanceList: (page_1, pageSize_1, uidList_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, uidList_1, ...args_1], void 0, function* (page, pageSize, uidList, options = {}) {
|
|
4162
|
-
const localVarPath = `/
|
|
4162
|
+
const localVarPath = `/admin/users/balance/list`;
|
|
4163
4163
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4164
4164
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4165
4165
|
let baseOptions;
|
|
@@ -5166,6 +5166,104 @@ exports.UserModelServiceFrontendModelsResponseOptionEnum = {
|
|
|
5166
5166
|
ResponseOptionCdnOnly: 'RESPONSE_OPTION_CDN_ONLY',
|
|
5167
5167
|
ResponseOptionDataOnly: 'RESPONSE_OPTION_DATA_ONLY'
|
|
5168
5168
|
};
|
|
5169
|
+
/**
|
|
5170
|
+
* UserPayAdminServiceApi - axios parameter creator
|
|
5171
|
+
*/
|
|
5172
|
+
const UserPayAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
5173
|
+
return {
|
|
5174
|
+
/**
|
|
5175
|
+
*
|
|
5176
|
+
* @summary Admin - 用户订单查询列表
|
|
5177
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
5178
|
+
* @param {*} [options] Override http request option.
|
|
5179
|
+
* @throws {RequiredError}
|
|
5180
|
+
*/
|
|
5181
|
+
userPayAdminServiceUserPayOrderAdminList: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
5182
|
+
// verify required parameter 'body' is not null or undefined
|
|
5183
|
+
(0, common_1.assertParamExists)('userPayAdminServiceUserPayOrderAdminList', 'body', body);
|
|
5184
|
+
const localVarPath = `/admin/users/orders/list`;
|
|
5185
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5186
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5187
|
+
let baseOptions;
|
|
5188
|
+
if (configuration) {
|
|
5189
|
+
baseOptions = configuration.baseOptions;
|
|
5190
|
+
}
|
|
5191
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5192
|
+
const localVarHeaderParameter = {};
|
|
5193
|
+
const localVarQueryParameter = {};
|
|
5194
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5195
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5197
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5198
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
5199
|
+
return {
|
|
5200
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5201
|
+
options: localVarRequestOptions,
|
|
5202
|
+
};
|
|
5203
|
+
}),
|
|
5204
|
+
};
|
|
5205
|
+
};
|
|
5206
|
+
exports.UserPayAdminServiceApiAxiosParamCreator = UserPayAdminServiceApiAxiosParamCreator;
|
|
5207
|
+
/**
|
|
5208
|
+
* UserPayAdminServiceApi - functional programming interface
|
|
5209
|
+
*/
|
|
5210
|
+
const UserPayAdminServiceApiFp = function (configuration) {
|
|
5211
|
+
const localVarAxiosParamCreator = (0, exports.UserPayAdminServiceApiAxiosParamCreator)(configuration);
|
|
5212
|
+
return {
|
|
5213
|
+
/**
|
|
5214
|
+
*
|
|
5215
|
+
* @summary Admin - 用户订单查询列表
|
|
5216
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
5217
|
+
* @param {*} [options] Override http request option.
|
|
5218
|
+
* @throws {RequiredError}
|
|
5219
|
+
*/
|
|
5220
|
+
userPayAdminServiceUserPayOrderAdminList(body, options) {
|
|
5221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5222
|
+
var _a, _b, _c;
|
|
5223
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayAdminServiceUserPayOrderAdminList(body, options);
|
|
5224
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5225
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPayAdminServiceApi.userPayAdminServiceUserPayOrderAdminList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5226
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5227
|
+
});
|
|
5228
|
+
},
|
|
5229
|
+
};
|
|
5230
|
+
};
|
|
5231
|
+
exports.UserPayAdminServiceApiFp = UserPayAdminServiceApiFp;
|
|
5232
|
+
/**
|
|
5233
|
+
* UserPayAdminServiceApi - factory interface
|
|
5234
|
+
*/
|
|
5235
|
+
const UserPayAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
5236
|
+
const localVarFp = (0, exports.UserPayAdminServiceApiFp)(configuration);
|
|
5237
|
+
return {
|
|
5238
|
+
/**
|
|
5239
|
+
*
|
|
5240
|
+
* @summary Admin - 用户订单查询列表
|
|
5241
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
5242
|
+
* @param {*} [options] Override http request option.
|
|
5243
|
+
* @throws {RequiredError}
|
|
5244
|
+
*/
|
|
5245
|
+
userPayAdminServiceUserPayOrderAdminList(body, options) {
|
|
5246
|
+
return localVarFp.userPayAdminServiceUserPayOrderAdminList(body, options).then((request) => request(axios, basePath));
|
|
5247
|
+
},
|
|
5248
|
+
};
|
|
5249
|
+
};
|
|
5250
|
+
exports.UserPayAdminServiceApiFactory = UserPayAdminServiceApiFactory;
|
|
5251
|
+
/**
|
|
5252
|
+
* UserPayAdminServiceApi - object-oriented interface
|
|
5253
|
+
*/
|
|
5254
|
+
class UserPayAdminServiceApi extends base_1.BaseAPI {
|
|
5255
|
+
/**
|
|
5256
|
+
*
|
|
5257
|
+
* @summary Admin - 用户订单查询列表
|
|
5258
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
5259
|
+
* @param {*} [options] Override http request option.
|
|
5260
|
+
* @throws {RequiredError}
|
|
5261
|
+
*/
|
|
5262
|
+
userPayAdminServiceUserPayOrderAdminList(body, options) {
|
|
5263
|
+
return (0, exports.UserPayAdminServiceApiFp)(this.configuration).userPayAdminServiceUserPayOrderAdminList(body, options).then((request) => request(this.axios, this.basePath));
|
|
5264
|
+
}
|
|
5265
|
+
}
|
|
5266
|
+
exports.UserPayAdminServiceApi = UserPayAdminServiceApi;
|
|
5169
5267
|
/**
|
|
5170
5268
|
* UserPayServiceApi - axios parameter creator
|
|
5171
5269
|
*/
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1124,12 +1124,63 @@ export interface UserPayOrder {
|
|
|
1124
1124
|
'order_status'?: string;
|
|
1125
1125
|
'confirmed_at'?: string;
|
|
1126
1126
|
}
|
|
1127
|
+
export interface UserPayOrderAdminItem {
|
|
1128
|
+
'order_no'?: string;
|
|
1129
|
+
'balance_code'?: string;
|
|
1130
|
+
'charge_amount'?: string;
|
|
1131
|
+
'pay_amount'?: string;
|
|
1132
|
+
'payment_method'?: string;
|
|
1133
|
+
'order_status'?: string;
|
|
1134
|
+
'confirmed_at'?: string;
|
|
1135
|
+
'created_at'?: string;
|
|
1136
|
+
'failed_at'?: string;
|
|
1137
|
+
'expired_at'?: string;
|
|
1138
|
+
'refunded_at'?: string;
|
|
1139
|
+
'user_agent'?: string;
|
|
1140
|
+
'client_ip'?: string;
|
|
1141
|
+
'user_id'?: string;
|
|
1142
|
+
'extra_stripe'?: UserPayOrderStripe;
|
|
1143
|
+
}
|
|
1144
|
+
export interface UserPayOrderAdminListRequest {
|
|
1145
|
+
'page'?: number;
|
|
1146
|
+
'page_size'?: number;
|
|
1147
|
+
'user_ids'?: Array<string>;
|
|
1148
|
+
'query_start_at'?: UserPayOrderTimeRange;
|
|
1149
|
+
'query_confirmed_at'?: UserPayOrderTimeRange;
|
|
1150
|
+
'query_failed_at'?: UserPayOrderTimeRange;
|
|
1151
|
+
'query_expired_at'?: UserPayOrderTimeRange;
|
|
1152
|
+
'query_order_status'?: Array<string>;
|
|
1153
|
+
'order_by'?: Array<OrderItem>;
|
|
1154
|
+
}
|
|
1155
|
+
export interface UserPayOrderAdminListResponse {
|
|
1156
|
+
'code'?: string;
|
|
1157
|
+
'message'?: string;
|
|
1158
|
+
'order_list'?: Array<UserPayOrderAdminItem>;
|
|
1159
|
+
'total'?: string;
|
|
1160
|
+
}
|
|
1127
1161
|
export interface UserPayOrderListResponse {
|
|
1128
1162
|
'code'?: string;
|
|
1129
1163
|
'message'?: string;
|
|
1130
1164
|
'list'?: Array<UserPayOrder>;
|
|
1131
1165
|
'total'?: string;
|
|
1132
1166
|
}
|
|
1167
|
+
export interface UserPayOrderStripe {
|
|
1168
|
+
'checkout_session_id'?: string;
|
|
1169
|
+
'price_id'?: string;
|
|
1170
|
+
'product_quantity'?: string;
|
|
1171
|
+
'promotion_codes_enabled'?: boolean;
|
|
1172
|
+
'customer_id'?: string;
|
|
1173
|
+
'customer_email'?: string;
|
|
1174
|
+
'customer_name'?: string;
|
|
1175
|
+
'currency'?: string;
|
|
1176
|
+
'total_amount'?: string;
|
|
1177
|
+
'subtotal_amount'?: string;
|
|
1178
|
+
'payment_intent_id'?: string;
|
|
1179
|
+
}
|
|
1180
|
+
export interface UserPayOrderTimeRange {
|
|
1181
|
+
'start_at'?: string;
|
|
1182
|
+
'until_at'?: string;
|
|
1183
|
+
}
|
|
1133
1184
|
export interface UserPayStripeCheckoutRequest {
|
|
1134
1185
|
'currency_code'?: string;
|
|
1135
1186
|
'charge_amount'?: string;
|
|
@@ -4412,6 +4463,71 @@ export declare const UserModelServiceFrontendModelsResponseOptionEnum: {
|
|
|
4412
4463
|
readonly ResponseOptionDataOnly: "RESPONSE_OPTION_DATA_ONLY";
|
|
4413
4464
|
};
|
|
4414
4465
|
export type UserModelServiceFrontendModelsResponseOptionEnum = typeof UserModelServiceFrontendModelsResponseOptionEnum[keyof typeof UserModelServiceFrontendModelsResponseOptionEnum];
|
|
4466
|
+
/**
|
|
4467
|
+
* UserPayAdminServiceApi - axios parameter creator
|
|
4468
|
+
*/
|
|
4469
|
+
export declare const UserPayAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4470
|
+
/**
|
|
4471
|
+
*
|
|
4472
|
+
* @summary Admin - 用户订单查询列表
|
|
4473
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4474
|
+
* @param {*} [options] Override http request option.
|
|
4475
|
+
* @throws {RequiredError}
|
|
4476
|
+
*/
|
|
4477
|
+
userPayAdminServiceUserPayOrderAdminList: (body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4478
|
+
};
|
|
4479
|
+
/**
|
|
4480
|
+
* UserPayAdminServiceApi - functional programming interface
|
|
4481
|
+
*/
|
|
4482
|
+
export declare const UserPayAdminServiceApiFp: (configuration?: Configuration) => {
|
|
4483
|
+
/**
|
|
4484
|
+
*
|
|
4485
|
+
* @summary Admin - 用户订单查询列表
|
|
4486
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4487
|
+
* @param {*} [options] Override http request option.
|
|
4488
|
+
* @throws {RequiredError}
|
|
4489
|
+
*/
|
|
4490
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayOrderAdminListResponse>>;
|
|
4491
|
+
};
|
|
4492
|
+
/**
|
|
4493
|
+
* UserPayAdminServiceApi - factory interface
|
|
4494
|
+
*/
|
|
4495
|
+
export declare const UserPayAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4496
|
+
/**
|
|
4497
|
+
*
|
|
4498
|
+
* @summary Admin - 用户订单查询列表
|
|
4499
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4500
|
+
* @param {*} [options] Override http request option.
|
|
4501
|
+
* @throws {RequiredError}
|
|
4502
|
+
*/
|
|
4503
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderAdminListResponse>;
|
|
4504
|
+
};
|
|
4505
|
+
/**
|
|
4506
|
+
* UserPayAdminServiceApi - interface
|
|
4507
|
+
*/
|
|
4508
|
+
export interface UserPayAdminServiceApiInterface {
|
|
4509
|
+
/**
|
|
4510
|
+
*
|
|
4511
|
+
* @summary Admin - 用户订单查询列表
|
|
4512
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4513
|
+
* @param {*} [options] Override http request option.
|
|
4514
|
+
* @throws {RequiredError}
|
|
4515
|
+
*/
|
|
4516
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderAdminListResponse>;
|
|
4517
|
+
}
|
|
4518
|
+
/**
|
|
4519
|
+
* UserPayAdminServiceApi - object-oriented interface
|
|
4520
|
+
*/
|
|
4521
|
+
export declare class UserPayAdminServiceApi extends BaseAPI implements UserPayAdminServiceApiInterface {
|
|
4522
|
+
/**
|
|
4523
|
+
*
|
|
4524
|
+
* @summary Admin - 用户订单查询列表
|
|
4525
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4526
|
+
* @param {*} [options] Override http request option.
|
|
4527
|
+
* @throws {RequiredError}
|
|
4528
|
+
*/
|
|
4529
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPayOrderAdminListResponse, any, {}>>;
|
|
4530
|
+
}
|
|
4415
4531
|
/**
|
|
4416
4532
|
* UserPayServiceApi - axios parameter creator
|
|
4417
4533
|
*/
|
package/dist/esm/api.js
CHANGED
|
@@ -3996,7 +3996,7 @@ export const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
|
|
|
3996
3996
|
* @throws {RequiredError}
|
|
3997
3997
|
*/
|
|
3998
3998
|
userBalanceServiceUserBalanceChange: (forceCreate_1, uid_1, balanceCode_1, action_1, deltaPrepaidBalanceTotal_1, deltaBonusBalanceTotal_1, ...args_1) => __awaiter(this, [forceCreate_1, uid_1, balanceCode_1, action_1, deltaPrepaidBalanceTotal_1, deltaBonusBalanceTotal_1, ...args_1], void 0, function* (forceCreate, uid, balanceCode, action, deltaPrepaidBalanceTotal, deltaBonusBalanceTotal, options = {}) {
|
|
3999
|
-
const localVarPath = `/
|
|
3999
|
+
const localVarPath = `/admin/users/balance/change`;
|
|
4000
4000
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4001
4001
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4002
4002
|
let baseOptions;
|
|
@@ -4053,7 +4053,7 @@ export const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
|
|
|
4053
4053
|
* @throws {RequiredError}
|
|
4054
4054
|
*/
|
|
4055
4055
|
userBalanceServiceUserBalanceEdit: (forceCreate_1, uid_1, dataId_1, dataCreatedAt_1, dataUpdatedAt_1, dataUid_1, dataBalanceCode_1, dataPrepaidBalanceTotal_1, dataPrepaidBalanceUsed_1, dataPrepaidBalanceFrozen_1, dataBonusBalanceTotal_1, dataBonusBalanceUsed_1, dataBonusBalanceFrozen_1, dataVersion_1, ...args_1) => __awaiter(this, [forceCreate_1, uid_1, dataId_1, dataCreatedAt_1, dataUpdatedAt_1, dataUid_1, dataBalanceCode_1, dataPrepaidBalanceTotal_1, dataPrepaidBalanceUsed_1, dataPrepaidBalanceFrozen_1, dataBonusBalanceTotal_1, dataBonusBalanceUsed_1, dataBonusBalanceFrozen_1, dataVersion_1, ...args_1], void 0, function* (forceCreate, uid, dataId, dataCreatedAt, dataUpdatedAt, dataUid, dataBalanceCode, dataPrepaidBalanceTotal, dataPrepaidBalanceUsed, dataPrepaidBalanceFrozen, dataBonusBalanceTotal, dataBonusBalanceUsed, dataBonusBalanceFrozen, dataVersion, options = {}) {
|
|
4056
|
-
const localVarPath = `/
|
|
4056
|
+
const localVarPath = `/admin/users/balance/edit`;
|
|
4057
4057
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4058
4058
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4059
4059
|
let baseOptions;
|
|
@@ -4123,7 +4123,7 @@ export const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
|
|
|
4123
4123
|
* @throws {RequiredError}
|
|
4124
4124
|
*/
|
|
4125
4125
|
userBalanceServiceUserBalanceList: (page_1, pageSize_1, uidList_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, uidList_1, ...args_1], void 0, function* (page, pageSize, uidList, options = {}) {
|
|
4126
|
-
const localVarPath = `/
|
|
4126
|
+
const localVarPath = `/admin/users/balance/list`;
|
|
4127
4127
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4128
4128
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4129
4129
|
let baseOptions;
|
|
@@ -5118,6 +5118,100 @@ export const UserModelServiceFrontendModelsResponseOptionEnum = {
|
|
|
5118
5118
|
ResponseOptionCdnOnly: 'RESPONSE_OPTION_CDN_ONLY',
|
|
5119
5119
|
ResponseOptionDataOnly: 'RESPONSE_OPTION_DATA_ONLY'
|
|
5120
5120
|
};
|
|
5121
|
+
/**
|
|
5122
|
+
* UserPayAdminServiceApi - axios parameter creator
|
|
5123
|
+
*/
|
|
5124
|
+
export const UserPayAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
5125
|
+
return {
|
|
5126
|
+
/**
|
|
5127
|
+
*
|
|
5128
|
+
* @summary Admin - 用户订单查询列表
|
|
5129
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
5130
|
+
* @param {*} [options] Override http request option.
|
|
5131
|
+
* @throws {RequiredError}
|
|
5132
|
+
*/
|
|
5133
|
+
userPayAdminServiceUserPayOrderAdminList: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
5134
|
+
// verify required parameter 'body' is not null or undefined
|
|
5135
|
+
assertParamExists('userPayAdminServiceUserPayOrderAdminList', 'body', body);
|
|
5136
|
+
const localVarPath = `/admin/users/orders/list`;
|
|
5137
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5138
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5139
|
+
let baseOptions;
|
|
5140
|
+
if (configuration) {
|
|
5141
|
+
baseOptions = configuration.baseOptions;
|
|
5142
|
+
}
|
|
5143
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5144
|
+
const localVarHeaderParameter = {};
|
|
5145
|
+
const localVarQueryParameter = {};
|
|
5146
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5147
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5148
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5149
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5150
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
5151
|
+
return {
|
|
5152
|
+
url: toPathString(localVarUrlObj),
|
|
5153
|
+
options: localVarRequestOptions,
|
|
5154
|
+
};
|
|
5155
|
+
}),
|
|
5156
|
+
};
|
|
5157
|
+
};
|
|
5158
|
+
/**
|
|
5159
|
+
* UserPayAdminServiceApi - functional programming interface
|
|
5160
|
+
*/
|
|
5161
|
+
export const UserPayAdminServiceApiFp = function (configuration) {
|
|
5162
|
+
const localVarAxiosParamCreator = UserPayAdminServiceApiAxiosParamCreator(configuration);
|
|
5163
|
+
return {
|
|
5164
|
+
/**
|
|
5165
|
+
*
|
|
5166
|
+
* @summary Admin - 用户订单查询列表
|
|
5167
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
5168
|
+
* @param {*} [options] Override http request option.
|
|
5169
|
+
* @throws {RequiredError}
|
|
5170
|
+
*/
|
|
5171
|
+
userPayAdminServiceUserPayOrderAdminList(body, options) {
|
|
5172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5173
|
+
var _a, _b, _c;
|
|
5174
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayAdminServiceUserPayOrderAdminList(body, options);
|
|
5175
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5176
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserPayAdminServiceApi.userPayAdminServiceUserPayOrderAdminList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5177
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5178
|
+
});
|
|
5179
|
+
},
|
|
5180
|
+
};
|
|
5181
|
+
};
|
|
5182
|
+
/**
|
|
5183
|
+
* UserPayAdminServiceApi - factory interface
|
|
5184
|
+
*/
|
|
5185
|
+
export const UserPayAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
5186
|
+
const localVarFp = UserPayAdminServiceApiFp(configuration);
|
|
5187
|
+
return {
|
|
5188
|
+
/**
|
|
5189
|
+
*
|
|
5190
|
+
* @summary Admin - 用户订单查询列表
|
|
5191
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
5192
|
+
* @param {*} [options] Override http request option.
|
|
5193
|
+
* @throws {RequiredError}
|
|
5194
|
+
*/
|
|
5195
|
+
userPayAdminServiceUserPayOrderAdminList(body, options) {
|
|
5196
|
+
return localVarFp.userPayAdminServiceUserPayOrderAdminList(body, options).then((request) => request(axios, basePath));
|
|
5197
|
+
},
|
|
5198
|
+
};
|
|
5199
|
+
};
|
|
5200
|
+
/**
|
|
5201
|
+
* UserPayAdminServiceApi - object-oriented interface
|
|
5202
|
+
*/
|
|
5203
|
+
export class UserPayAdminServiceApi extends BaseAPI {
|
|
5204
|
+
/**
|
|
5205
|
+
*
|
|
5206
|
+
* @summary Admin - 用户订单查询列表
|
|
5207
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
5208
|
+
* @param {*} [options] Override http request option.
|
|
5209
|
+
* @throws {RequiredError}
|
|
5210
|
+
*/
|
|
5211
|
+
userPayAdminServiceUserPayOrderAdminList(body, options) {
|
|
5212
|
+
return UserPayAdminServiceApiFp(this.configuration).userPayAdminServiceUserPayOrderAdminList(body, options).then((request) => request(this.axios, this.basePath));
|
|
5213
|
+
}
|
|
5214
|
+
}
|
|
5121
5215
|
/**
|
|
5122
5216
|
* UserPayServiceApi - axios parameter creator
|
|
5123
5217
|
*/
|
|
@@ -4,9 +4,9 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**userBalanceServiceUserBalanceChange**](#userbalanceserviceuserbalancechange) | **POST** /
|
|
8
|
-
|[**userBalanceServiceUserBalanceEdit**](#userbalanceserviceuserbalanceedit) | **POST** /
|
|
9
|
-
|[**userBalanceServiceUserBalanceList**](#userbalanceserviceuserbalancelist) | **GET** /
|
|
7
|
+
|[**userBalanceServiceUserBalanceChange**](#userbalanceserviceuserbalancechange) | **POST** /admin/users/balance/change | 用户余额变更接口 - 增量操作|
|
|
8
|
+
|[**userBalanceServiceUserBalanceEdit**](#userbalanceserviceuserbalanceedit) | **POST** /admin/users/balance/edit | 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致|
|
|
9
|
+
|[**userBalanceServiceUserBalanceList**](#userbalanceserviceuserbalancelist) | **GET** /admin/users/balance/list | 用户余额列表接口|
|
|
10
10
|
|
|
11
11
|
# **userBalanceServiceUserBalanceChange**
|
|
12
12
|
> UserBalanceChangeResponse userBalanceServiceUserBalanceChange()
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# UserPayAdminServiceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**userPayAdminServiceUserPayOrderAdminList**](#userpayadminserviceuserpayorderadminlist) | **POST** /admin/users/orders/list | Admin - 用户订单查询列表|
|
|
8
|
+
|
|
9
|
+
# **userPayAdminServiceUserPayOrderAdminList**
|
|
10
|
+
> UserPayOrderAdminListResponse userPayAdminServiceUserPayOrderAdminList(body)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
UserPayAdminServiceApi,
|
|
18
|
+
Configuration,
|
|
19
|
+
UserPayOrderAdminListRequest
|
|
20
|
+
} from '@cherryin/aigw-api-client';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new UserPayAdminServiceApi(configuration);
|
|
24
|
+
|
|
25
|
+
let body: UserPayOrderAdminListRequest; //
|
|
26
|
+
|
|
27
|
+
const { status, data } = await apiInstance.userPayAdminServiceUserPayOrderAdminList(
|
|
28
|
+
body
|
|
29
|
+
);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
|
|
34
|
+
|Name | Type | Description | Notes|
|
|
35
|
+
|------------- | ------------- | ------------- | -------------|
|
|
36
|
+
| **body** | **UserPayOrderAdminListRequest**| | |
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Return type
|
|
40
|
+
|
|
41
|
+
**UserPayOrderAdminListResponse**
|
|
42
|
+
|
|
43
|
+
### Authorization
|
|
44
|
+
|
|
45
|
+
No authorization required
|
|
46
|
+
|
|
47
|
+
### HTTP request headers
|
|
48
|
+
|
|
49
|
+
- **Content-Type**: application/json
|
|
50
|
+
- **Accept**: application/json
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### HTTP response details
|
|
54
|
+
| Status code | Description | Response headers |
|
|
55
|
+
|-------------|-------------|------------------|
|
|
56
|
+
|**200** | A successful response. | - |
|
|
57
|
+
|**0** | An unexpected error response. | - |
|
|
58
|
+
|
|
59
|
+
[[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)
|
|
60
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# UserPayOrderAdminItem
|
|
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
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**failed_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**expired_at** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**refunded_at** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**user_agent** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**client_ip** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**user_id** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**extra_stripe** | [**UserPayOrderStripe**](UserPayOrderStripe.md) | | [optional] [default to undefined]
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { UserPayOrderAdminItem } from '@cherryin/aigw-api-client';
|
|
28
|
+
|
|
29
|
+
const instance: UserPayOrderAdminItem = {
|
|
30
|
+
order_no,
|
|
31
|
+
balance_code,
|
|
32
|
+
charge_amount,
|
|
33
|
+
pay_amount,
|
|
34
|
+
payment_method,
|
|
35
|
+
order_status,
|
|
36
|
+
confirmed_at,
|
|
37
|
+
created_at,
|
|
38
|
+
failed_at,
|
|
39
|
+
expired_at,
|
|
40
|
+
refunded_at,
|
|
41
|
+
user_agent,
|
|
42
|
+
client_ip,
|
|
43
|
+
user_id,
|
|
44
|
+
extra_stripe,
|
|
45
|
+
};
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[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,36 @@
|
|
|
1
|
+
# UserPayOrderAdminListRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**page** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**page_size** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**user_ids** | **Array<string>** | | [optional] [default to undefined]
|
|
11
|
+
**query_start_at** | [**UserPayOrderTimeRange**](UserPayOrderTimeRange.md) | | [optional] [default to undefined]
|
|
12
|
+
**query_confirmed_at** | [**UserPayOrderTimeRange**](UserPayOrderTimeRange.md) | | [optional] [default to undefined]
|
|
13
|
+
**query_failed_at** | [**UserPayOrderTimeRange**](UserPayOrderTimeRange.md) | | [optional] [default to undefined]
|
|
14
|
+
**query_expired_at** | [**UserPayOrderTimeRange**](UserPayOrderTimeRange.md) | | [optional] [default to undefined]
|
|
15
|
+
**query_order_status** | **Array<string>** | | [optional] [default to undefined]
|
|
16
|
+
**order_by** | [**Array<OrderItem>**](OrderItem.md) | | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { UserPayOrderAdminListRequest } from '@cherryin/aigw-api-client';
|
|
22
|
+
|
|
23
|
+
const instance: UserPayOrderAdminListRequest = {
|
|
24
|
+
page,
|
|
25
|
+
page_size,
|
|
26
|
+
user_ids,
|
|
27
|
+
query_start_at,
|
|
28
|
+
query_confirmed_at,
|
|
29
|
+
query_failed_at,
|
|
30
|
+
query_expired_at,
|
|
31
|
+
query_order_status,
|
|
32
|
+
order_by,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[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
|
+
# UserPayOrderAdminListResponse
|
|
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
|
+
**order_list** | [**Array<UserPayOrderAdminItem>**](UserPayOrderAdminItem.md) | | [optional] [default to undefined]
|
|
11
|
+
**total** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UserPayOrderAdminListResponse } from '@cherryin/aigw-api-client';
|
|
17
|
+
|
|
18
|
+
const instance: UserPayOrderAdminListResponse = {
|
|
19
|
+
code,
|
|
20
|
+
message,
|
|
21
|
+
order_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)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# UserPayOrderStripe
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**checkout_session_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**price_id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**product_quantity** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**promotion_codes_enabled** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
**customer_id** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**customer_email** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**customer_name** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**currency** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**total_amount** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**subtotal_amount** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**payment_intent_id** | **string** | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { UserPayOrderStripe } from '@cherryin/aigw-api-client';
|
|
24
|
+
|
|
25
|
+
const instance: UserPayOrderStripe = {
|
|
26
|
+
checkout_session_id,
|
|
27
|
+
price_id,
|
|
28
|
+
product_quantity,
|
|
29
|
+
promotion_codes_enabled,
|
|
30
|
+
customer_id,
|
|
31
|
+
customer_email,
|
|
32
|
+
customer_name,
|
|
33
|
+
currency,
|
|
34
|
+
total_amount,
|
|
35
|
+
subtotal_amount,
|
|
36
|
+
payment_intent_id,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[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,22 @@
|
|
|
1
|
+
# UserPayOrderTimeRange
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**start_at** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**until_at** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UserPayOrderTimeRange } from '@cherryin/aigw-api-client';
|
|
15
|
+
|
|
16
|
+
const instance: UserPayOrderTimeRange = {
|
|
17
|
+
start_at,
|
|
18
|
+
until_at,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|