@cherryin/aigw-api-client 0.1.22 → 0.1.24

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.
@@ -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.22
1
+ ## @cherryin/aigw-api-client@0.1.24
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.22 --save
39
+ npm install @cherryin/aigw-api-client@0.1.24 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -119,8 +119,9 @@ 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
- *UserPortalServiceApi* | [**userPortalServiceUserMeInfo**](docs/UserPortalServiceApi.md#userportalserviceusermeinfo) | **POST** /api/v1/user/me/info | 个人信息接口
124
+ *UserPortalServiceApi* | [**userPortalServiceUserMeInfo**](docs/UserPortalServiceApi.md#userportalserviceusermeinfo) | **GET** /api/v1/user/me/info | 个人信息接口
124
125
  *UserPortalServiceApi* | [**userPortalServiceUserPortalDashboard**](docs/UserPortalServiceApi.md#userportalserviceuserportaldashboard) | **GET** /api/v1/user/portal/dashboard | 用户门户仪表盘信息
125
126
 
126
127
 
@@ -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
@@ -1185,6 +1185,21 @@ export interface UserModelHourActivity {
1185
1185
  export interface UserModelHourlyUsages {
1186
1186
  'hour_activities'?: Array<UserModelHourActivity>;
1187
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
+ }
1188
1203
  export interface UserPayStripeCheckoutResponse {
1189
1204
  'code'?: string;
1190
1205
  'message'?: string;
@@ -7751,6 +7766,45 @@ export type UserModelServiceFrontendModelsResponseOptionEnum = typeof UserModelS
7751
7766
  */
7752
7767
  export const UserPayServiceApiAxiosParamCreator = function (configuration?: Configuration) {
7753
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
+ },
7754
7808
  /**
7755
7809
  *
7756
7810
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -7814,6 +7868,19 @@ export const UserPayServiceApiAxiosParamCreator = function (configuration?: Conf
7814
7868
  export const UserPayServiceApiFp = function(configuration?: Configuration) {
7815
7869
  const localVarAxiosParamCreator = UserPayServiceApiAxiosParamCreator(configuration)
7816
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
+ },
7817
7884
  /**
7818
7885
  *
7819
7886
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -7839,6 +7906,16 @@ export const UserPayServiceApiFp = function(configuration?: Configuration) {
7839
7906
  export const UserPayServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7840
7907
  const localVarFp = UserPayServiceApiFp(configuration)
7841
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
+ },
7842
7919
  /**
7843
7920
  *
7844
7921
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -7859,6 +7936,15 @@ export const UserPayServiceApiFactory = function (configuration?: Configuration,
7859
7936
  * UserPayServiceApi - interface
7860
7937
  */
7861
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
+
7862
7948
  /**
7863
7949
  *
7864
7950
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -7877,6 +7963,17 @@ export interface UserPayServiceApiInterface {
7877
7963
  * UserPayServiceApi - object-oriented interface
7878
7964
  */
7879
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
+
7880
7977
  /**
7881
7978
  *
7882
7979
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -7914,7 +8011,7 @@ export const UserPortalServiceApiAxiosParamCreator = function (configuration?: C
7914
8011
  baseOptions = configuration.baseOptions;
7915
8012
  }
7916
8013
 
7917
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8014
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7918
8015
  const localVarHeaderParameter = {} as any;
7919
8016
  const localVarQueryParameter = {} as any;
7920
8017
 
package/dist/api.d.ts CHANGED
@@ -1180,6 +1180,21 @@ export interface UserModelHourActivity {
1180
1180
  export interface UserModelHourlyUsages {
1181
1181
  'hour_activities'?: Array<UserModelHourActivity>;
1182
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
+ }
1183
1198
  export interface UserPayStripeCheckoutResponse {
1184
1199
  'code'?: string;
1185
1200
  'message'?: string;
@@ -4615,6 +4630,14 @@ export type UserModelServiceFrontendModelsResponseOptionEnum = typeof UserModelS
4615
4630
  * UserPayServiceApi - axios parameter creator
4616
4631
  */
4617
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>;
4618
4641
  /**
4619
4642
  *
4620
4643
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -4631,6 +4654,14 @@ export declare const UserPayServiceApiAxiosParamCreator: (configuration?: Config
4631
4654
  * UserPayServiceApi - functional programming interface
4632
4655
  */
4633
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>>;
4634
4665
  /**
4635
4666
  *
4636
4667
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -4647,6 +4678,14 @@ export declare const UserPayServiceApiFp: (configuration?: Configuration) => {
4647
4678
  * UserPayServiceApi - factory interface
4648
4679
  */
4649
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>;
4650
4689
  /**
4651
4690
  *
4652
4691
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -4663,6 +4702,14 @@ export declare const UserPayServiceApiFactory: (configuration?: Configuration, b
4663
4702
  * UserPayServiceApi - interface
4664
4703
  */
4665
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>;
4666
4713
  /**
4667
4714
  *
4668
4715
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -4679,6 +4726,14 @@ export interface UserPayServiceApiInterface {
4679
4726
  * UserPayServiceApi - object-oriented interface
4680
4727
  */
4681
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, {}>>;
4682
4737
  /**
4683
4738
  *
4684
4739
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
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., \&quot;USD\&quot;
@@ -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., \&quot;USD\&quot;
@@ -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., \&quot;USD\&quot;
@@ -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., \&quot;USD\&quot;
@@ -5576,7 +5644,7 @@ const UserPortalServiceApiAxiosParamCreator = function (configuration) {
5576
5644
  if (configuration) {
5577
5645
  baseOptions = configuration.baseOptions;
5578
5646
  }
5579
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5647
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5580
5648
  const localVarHeaderParameter = {};
5581
5649
  const localVarQueryParameter = {};
5582
5650
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
package/dist/esm/api.d.ts CHANGED
@@ -1180,6 +1180,21 @@ export interface UserModelHourActivity {
1180
1180
  export interface UserModelHourlyUsages {
1181
1181
  'hour_activities'?: Array<UserModelHourActivity>;
1182
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
+ }
1183
1198
  export interface UserPayStripeCheckoutResponse {
1184
1199
  'code'?: string;
1185
1200
  'message'?: string;
@@ -4615,6 +4630,14 @@ export type UserModelServiceFrontendModelsResponseOptionEnum = typeof UserModelS
4615
4630
  * UserPayServiceApi - axios parameter creator
4616
4631
  */
4617
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>;
4618
4641
  /**
4619
4642
  *
4620
4643
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -4631,6 +4654,14 @@ export declare const UserPayServiceApiAxiosParamCreator: (configuration?: Config
4631
4654
  * UserPayServiceApi - functional programming interface
4632
4655
  */
4633
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>>;
4634
4665
  /**
4635
4666
  *
4636
4667
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -4647,6 +4678,14 @@ export declare const UserPayServiceApiFp: (configuration?: Configuration) => {
4647
4678
  * UserPayServiceApi - factory interface
4648
4679
  */
4649
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>;
4650
4689
  /**
4651
4690
  *
4652
4691
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -4663,6 +4702,14 @@ export declare const UserPayServiceApiFactory: (configuration?: Configuration, b
4663
4702
  * UserPayServiceApi - interface
4664
4703
  */
4665
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>;
4666
4713
  /**
4667
4714
  *
4668
4715
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
@@ -4679,6 +4726,14 @@ export interface UserPayServiceApiInterface {
4679
4726
  * UserPayServiceApi - object-oriented interface
4680
4727
  */
4681
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, {}>>;
4682
4737
  /**
4683
4738
  *
4684
4739
  * @param {string} [currencyCode] Currency code, e.g., \&quot;USD\&quot;
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., \&quot;USD\&quot;
@@ -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., \&quot;USD\&quot;
@@ -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., \&quot;USD\&quot;
@@ -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., \&quot;USD\&quot;
@@ -5524,7 +5592,7 @@ export const UserPortalServiceApiAxiosParamCreator = function (configuration) {
5524
5592
  if (configuration) {
5525
5593
  baseOptions = configuration.baseOptions;
5526
5594
  }
5527
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5595
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5528
5596
  const localVarHeaderParameter = {};
5529
5597
  const localVarQueryParameter = {};
5530
5598
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -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&lt;UserPayOrder&gt;**](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
 
@@ -4,7 +4,7 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**userPortalServiceUserMeInfo**](#userportalserviceusermeinfo) | **POST** /api/v1/user/me/info | 个人信息接口|
7
+ |[**userPortalServiceUserMeInfo**](#userportalserviceusermeinfo) | **GET** /api/v1/user/me/info | 个人信息接口|
8
8
  |[**userPortalServiceUserPortalDashboard**](#userportalserviceuserportaldashboard) | **GET** /api/v1/user/portal/dashboard | 用户门户仪表盘信息|
9
9
 
10
10
  # **userPortalServiceUserMeInfo**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cherryin/aigw-api-client",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "OpenAPI client for @cherryin/aigw-api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {