@finverse/sdk-typescript 0.0.162 → 0.0.164

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.
Files changed (3) hide show
  1. package/dist/api.d.ts +336 -10
  2. package/dist/api.js +71 -14
  3. package/package.json +2 -2
package/dist/api.d.ts CHANGED
@@ -608,6 +608,195 @@ export interface BalanceHistory {
608
608
  */
609
609
  currency: string;
610
610
  }
611
+ /**
612
+ *
613
+ * @export
614
+ * @interface CardAccount
615
+ */
616
+ export interface CardAccount {
617
+ /**
618
+ *
619
+ * @type {CurrencyAmount}
620
+ * @memberof CardAccount
621
+ */
622
+ current_balance?: CurrencyAmount;
623
+ /**
624
+ *
625
+ * @type {CurrencyAmount}
626
+ * @memberof CardAccount
627
+ */
628
+ payment_due_amount?: CurrencyAmount;
629
+ /**
630
+ *
631
+ * @type {CurrencyAmount}
632
+ * @memberof CardAccount
633
+ */
634
+ statement_due_amount?: CurrencyAmount;
635
+ /**
636
+ *
637
+ * @type {CurrencyAmount}
638
+ * @memberof CardAccount
639
+ */
640
+ total_credit_limit?: CurrencyAmount;
641
+ /**
642
+ *
643
+ * @type {CurrencyAmount}
644
+ * @memberof CardAccount
645
+ */
646
+ available_credit_limit?: CurrencyAmount;
647
+ /**
648
+ *
649
+ * @type {CurrencyAmount}
650
+ * @memberof CardAccount
651
+ */
652
+ minimum_payment_due?: CurrencyAmount;
653
+ /**
654
+ *
655
+ * @type {RewardsPointsBalance}
656
+ * @memberof CardAccount
657
+ */
658
+ rewards_points_balance?: RewardsPointsBalance;
659
+ /**
660
+ *
661
+ * @type {string}
662
+ * @memberof CardAccount
663
+ */
664
+ last_update?: string;
665
+ /**
666
+ * Account this card is associated with
667
+ * @type {string}
668
+ * @memberof CardAccount
669
+ */
670
+ account_id?: string;
671
+ /**
672
+ *
673
+ * @type {string}
674
+ * @memberof CardAccount
675
+ */
676
+ account_name?: string;
677
+ /**
678
+ * Masked Account number of the card account
679
+ * @type {string}
680
+ * @memberof CardAccount
681
+ */
682
+ account_number_masked?: string;
683
+ /**
684
+ *
685
+ * @type {AccountType}
686
+ * @memberof CardAccount
687
+ */
688
+ account_type?: AccountType;
689
+ /**
690
+ * The statement payment due date
691
+ * @type {string}
692
+ * @memberof CardAccount
693
+ */
694
+ statement_payment_due_date?: string;
695
+ /**
696
+ * The next payment due date
697
+ * @type {string}
698
+ * @memberof CardAccount
699
+ */
700
+ next_payment_due_date?: string;
701
+ /**
702
+ * The statement date
703
+ * @type {string}
704
+ * @memberof CardAccount
705
+ */
706
+ statement_date?: string;
707
+ /**
708
+ * The date of the last payment
709
+ * @type {string}
710
+ * @memberof CardAccount
711
+ */
712
+ last_payment_date?: string;
713
+ /**
714
+ *
715
+ * @type {CurrencyAmount}
716
+ * @memberof CardAccount
717
+ */
718
+ last_payment_amount?: CurrencyAmount;
719
+ }
720
+ /**
721
+ *
722
+ * @export
723
+ * @interface CardAccountAllOf
724
+ */
725
+ export interface CardAccountAllOf {
726
+ /**
727
+ * Account this card is associated with
728
+ * @type {string}
729
+ * @memberof CardAccountAllOf
730
+ */
731
+ account_id?: string;
732
+ /**
733
+ *
734
+ * @type {string}
735
+ * @memberof CardAccountAllOf
736
+ */
737
+ account_name?: string;
738
+ /**
739
+ * Masked Account number of the card account
740
+ * @type {string}
741
+ * @memberof CardAccountAllOf
742
+ */
743
+ account_number_masked?: string;
744
+ /**
745
+ *
746
+ * @type {AccountType}
747
+ * @memberof CardAccountAllOf
748
+ */
749
+ account_type?: AccountType;
750
+ /**
751
+ * The statement payment due date
752
+ * @type {string}
753
+ * @memberof CardAccountAllOf
754
+ */
755
+ statement_payment_due_date?: string;
756
+ /**
757
+ * The next payment due date
758
+ * @type {string}
759
+ * @memberof CardAccountAllOf
760
+ */
761
+ next_payment_due_date?: string;
762
+ /**
763
+ * The statement date
764
+ * @type {string}
765
+ * @memberof CardAccountAllOf
766
+ */
767
+ statement_date?: string;
768
+ /**
769
+ * The date of the last payment
770
+ * @type {string}
771
+ * @memberof CardAccountAllOf
772
+ */
773
+ last_payment_date?: string;
774
+ /**
775
+ *
776
+ * @type {CurrencyAmount}
777
+ * @memberof CardAccountAllOf
778
+ */
779
+ last_payment_amount?: CurrencyAmount;
780
+ }
781
+ /**
782
+ *
783
+ * @export
784
+ * @interface CardDetails
785
+ */
786
+ export interface CardDetails {
787
+ /**
788
+ *
789
+ * @type {Array<CardAccount>}
790
+ * @memberof CardDetails
791
+ */
792
+ card_accounts?: Array<CardAccount>;
793
+ /**
794
+ *
795
+ * @type {CommonCardDetails}
796
+ * @memberof CardDetails
797
+ */
798
+ card_total?: CommonCardDetails;
799
+ }
611
800
  /**
612
801
  *
613
802
  * @export
@@ -633,6 +822,61 @@ export interface CategoryPredictions {
633
822
  */
634
823
  source_id?: string;
635
824
  }
825
+ /**
826
+ *
827
+ * @export
828
+ * @interface CommonCardDetails
829
+ */
830
+ export interface CommonCardDetails {
831
+ /**
832
+ *
833
+ * @type {CurrencyAmount}
834
+ * @memberof CommonCardDetails
835
+ */
836
+ current_balance?: CurrencyAmount;
837
+ /**
838
+ *
839
+ * @type {CurrencyAmount}
840
+ * @memberof CommonCardDetails
841
+ */
842
+ payment_due_amount?: CurrencyAmount;
843
+ /**
844
+ *
845
+ * @type {CurrencyAmount}
846
+ * @memberof CommonCardDetails
847
+ */
848
+ statement_due_amount?: CurrencyAmount;
849
+ /**
850
+ *
851
+ * @type {CurrencyAmount}
852
+ * @memberof CommonCardDetails
853
+ */
854
+ total_credit_limit?: CurrencyAmount;
855
+ /**
856
+ *
857
+ * @type {CurrencyAmount}
858
+ * @memberof CommonCardDetails
859
+ */
860
+ available_credit_limit?: CurrencyAmount;
861
+ /**
862
+ *
863
+ * @type {CurrencyAmount}
864
+ * @memberof CommonCardDetails
865
+ */
866
+ minimum_payment_due?: CurrencyAmount;
867
+ /**
868
+ *
869
+ * @type {RewardsPointsBalance}
870
+ * @memberof CommonCardDetails
871
+ */
872
+ rewards_points_balance?: RewardsPointsBalance;
873
+ /**
874
+ *
875
+ * @type {string}
876
+ * @memberof CommonCardDetails
877
+ */
878
+ last_update?: string;
879
+ }
636
880
  /**
637
881
  *
638
882
  * @export
@@ -3135,6 +3379,31 @@ export interface ListAccountsResponse {
3135
3379
  */
3136
3380
  institution?: InstitutionShort;
3137
3381
  }
3382
+ /**
3383
+ *
3384
+ * @export
3385
+ * @interface ListCardsDetailsResponse
3386
+ */
3387
+ export interface ListCardsDetailsResponse {
3388
+ /**
3389
+ *
3390
+ * @type {LoginIdentityShort}
3391
+ * @memberof ListCardsDetailsResponse
3392
+ */
3393
+ login_identity?: LoginIdentityShort;
3394
+ /**
3395
+ *
3396
+ * @type {InstitutionShort}
3397
+ * @memberof ListCardsDetailsResponse
3398
+ */
3399
+ institution?: InstitutionShort;
3400
+ /**
3401
+ *
3402
+ * @type {CardDetails}
3403
+ * @memberof ListCardsDetailsResponse
3404
+ */
3405
+ card_details?: CardDetails;
3406
+ }
3138
3407
  /**
3139
3408
  *
3140
3409
  * @export
@@ -5181,6 +5450,31 @@ export interface RelinkRequest {
5181
5450
  */
5182
5451
  consent?: boolean | null;
5183
5452
  }
5453
+ /**
5454
+ *
5455
+ * @export
5456
+ * @interface RewardsPointsBalance
5457
+ */
5458
+ export interface RewardsPointsBalance {
5459
+ /**
5460
+ *
5461
+ * @type {string}
5462
+ * @memberof RewardsPointsBalance
5463
+ */
5464
+ currency?: string;
5465
+ /**
5466
+ *
5467
+ * @type {number}
5468
+ * @memberof RewardsPointsBalance
5469
+ */
5470
+ balance: number;
5471
+ /**
5472
+ *
5473
+ * @type {string}
5474
+ * @memberof RewardsPointsBalance
5475
+ */
5476
+ raw?: string;
5477
+ }
5184
5478
  /**
5185
5479
  *
5186
5480
  * @export
@@ -5793,11 +6087,11 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
5793
6087
  createPaymentInstruction: (paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5794
6088
  /**
5795
6089
  * Create a payment user
5796
- * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
6090
+ * @param {CreatePaymentUserRequest} createPaymentUserRequest request body for creating payment user
5797
6091
  * @param {*} [options] Override http request option.
5798
6092
  * @throws {RequiredError}
5799
6093
  */
5800
- createPaymentUser: (createPaymentAccountRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6094
+ createPaymentUser: (createPaymentUserRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5801
6095
  /**
5802
6096
  * Create new Payout instruction
5803
6097
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -5979,11 +6273,11 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5979
6273
  createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentInstructionResponse>>;
5980
6274
  /**
5981
6275
  * Create a payment user
5982
- * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
6276
+ * @param {CreatePaymentUserRequest} createPaymentUserRequest request body for creating payment user
5983
6277
  * @param {*} [options] Override http request option.
5984
6278
  * @throws {RequiredError}
5985
6279
  */
5986
- createPaymentUser(createPaymentAccountRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentUser>>;
6280
+ createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentUser>>;
5987
6281
  /**
5988
6282
  * Create new Payout instruction
5989
6283
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -6165,11 +6459,11 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
6165
6459
  createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: any): AxiosPromise<CreatePaymentInstructionResponse>;
6166
6460
  /**
6167
6461
  * Create a payment user
6168
- * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
6462
+ * @param {CreatePaymentUserRequest} createPaymentUserRequest request body for creating payment user
6169
6463
  * @param {*} [options] Override http request option.
6170
6464
  * @throws {RequiredError}
6171
6465
  */
6172
- createPaymentUser(createPaymentAccountRequest: CreatePaymentUserRequest, options?: any): AxiosPromise<PaymentUser>;
6466
+ createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: any): AxiosPromise<PaymentUser>;
6173
6467
  /**
6174
6468
  * Create new Payout instruction
6175
6469
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -6357,12 +6651,12 @@ export interface CustomerApiInterface {
6357
6651
  createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentInstructionResponse>;
6358
6652
  /**
6359
6653
  * Create a payment user
6360
- * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
6654
+ * @param {CreatePaymentUserRequest} createPaymentUserRequest request body for creating payment user
6361
6655
  * @param {*} [options] Override http request option.
6362
6656
  * @throws {RequiredError}
6363
6657
  * @memberof CustomerApiInterface
6364
6658
  */
6365
- createPaymentUser(createPaymentAccountRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): AxiosPromise<PaymentUser>;
6659
+ createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): AxiosPromise<PaymentUser>;
6366
6660
  /**
6367
6661
  * Create new Payout instruction
6368
6662
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -6570,12 +6864,12 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
6570
6864
  createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentInstructionResponse>>;
6571
6865
  /**
6572
6866
  * Create a payment user
6573
- * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
6867
+ * @param {CreatePaymentUserRequest} createPaymentUserRequest request body for creating payment user
6574
6868
  * @param {*} [options] Override http request option.
6575
6869
  * @throws {RequiredError}
6576
6870
  * @memberof CustomerApi
6577
6871
  */
6578
- createPaymentUser(createPaymentAccountRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentUser>>;
6872
+ createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentUser>>;
6579
6873
  /**
6580
6874
  * Create new Payout instruction
6581
6875
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -7797,6 +8091,12 @@ export declare const LoginIdentityApiAxiosParamCreator: (configuration?: Configu
7797
8091
  * @throws {RequiredError}
7798
8092
  */
7799
8093
  listAccounts: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
8094
+ /**
8095
+ * Get a list of card details for a login identity
8096
+ * @param {*} [options] Override http request option.
8097
+ * @throws {RequiredError}
8098
+ */
8099
+ listCardDetails: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
7800
8100
  /**
7801
8101
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
7802
8102
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
@@ -7908,6 +8208,12 @@ export declare const LoginIdentityApiFp: (configuration?: Configuration) => {
7908
8208
  * @throws {RequiredError}
7909
8209
  */
7910
8210
  listAccounts(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponse>>;
8211
+ /**
8212
+ * Get a list of card details for a login identity
8213
+ * @param {*} [options] Override http request option.
8214
+ * @throws {RequiredError}
8215
+ */
8216
+ listCardDetails(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCardsDetailsResponse>>;
7911
8217
  /**
7912
8218
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
7913
8219
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
@@ -8019,6 +8325,12 @@ export declare const LoginIdentityApiFactory: (configuration?: Configuration, ba
8019
8325
  * @throws {RequiredError}
8020
8326
  */
8021
8327
  listAccounts(options?: any): AxiosPromise<ListAccountsResponse>;
8328
+ /**
8329
+ * Get a list of card details for a login identity
8330
+ * @param {*} [options] Override http request option.
8331
+ * @throws {RequiredError}
8332
+ */
8333
+ listCardDetails(options?: any): AxiosPromise<ListCardsDetailsResponse>;
8022
8334
  /**
8023
8335
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
8024
8336
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
@@ -8143,6 +8455,13 @@ export interface LoginIdentityApiInterface {
8143
8455
  * @memberof LoginIdentityApiInterface
8144
8456
  */
8145
8457
  listAccounts(options?: AxiosRequestConfig): AxiosPromise<ListAccountsResponse>;
8458
+ /**
8459
+ * Get a list of card details for a login identity
8460
+ * @param {*} [options] Override http request option.
8461
+ * @throws {RequiredError}
8462
+ * @memberof LoginIdentityApiInterface
8463
+ */
8464
+ listCardDetails(options?: AxiosRequestConfig): AxiosPromise<ListCardsDetailsResponse>;
8146
8465
  /**
8147
8466
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
8148
8467
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
@@ -8271,6 +8590,13 @@ export declare class LoginIdentityApi extends BaseAPI implements LoginIdentityAp
8271
8590
  * @memberof LoginIdentityApi
8272
8591
  */
8273
8592
  listAccounts(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountsResponse>>;
8593
+ /**
8594
+ * Get a list of card details for a login identity
8595
+ * @param {*} [options] Override http request option.
8596
+ * @throws {RequiredError}
8597
+ * @memberof LoginIdentityApi
8598
+ */
8599
+ listCardDetails(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCardsDetailsResponse>>;
8274
8600
  /**
8275
8601
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
8276
8602
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
package/dist/api.js CHANGED
@@ -474,13 +474,13 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
474
474
  }),
475
475
  /**
476
476
  * Create a payment user
477
- * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
477
+ * @param {CreatePaymentUserRequest} createPaymentUserRequest request body for creating payment user
478
478
  * @param {*} [options] Override http request option.
479
479
  * @throws {RequiredError}
480
480
  */
481
- createPaymentUser: (createPaymentAccountRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
482
- // verify required parameter 'createPaymentAccountRequest' is not null or undefined
483
- common_1.assertParamExists('createPaymentUser', 'createPaymentAccountRequest', createPaymentAccountRequest);
481
+ createPaymentUser: (createPaymentUserRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
482
+ // verify required parameter 'createPaymentUserRequest' is not null or undefined
483
+ common_1.assertParamExists('createPaymentUser', 'createPaymentUserRequest', createPaymentUserRequest);
484
484
  const localVarPath = `/payment_users`;
485
485
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
486
486
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -498,7 +498,7 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
498
498
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
499
499
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
500
500
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
501
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPaymentAccountRequest, localVarRequestOptions, configuration);
501
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPaymentUserRequest, localVarRequestOptions, configuration);
502
502
  return {
503
503
  url: common_1.toPathString(localVarUrlObj),
504
504
  options: localVarRequestOptions,
@@ -1173,13 +1173,13 @@ exports.CustomerApiFp = function (configuration) {
1173
1173
  },
1174
1174
  /**
1175
1175
  * Create a payment user
1176
- * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
1176
+ * @param {CreatePaymentUserRequest} createPaymentUserRequest request body for creating payment user
1177
1177
  * @param {*} [options] Override http request option.
1178
1178
  * @throws {RequiredError}
1179
1179
  */
1180
- createPaymentUser(createPaymentAccountRequest, options) {
1180
+ createPaymentUser(createPaymentUserRequest, options) {
1181
1181
  return __awaiter(this, void 0, void 0, function* () {
1182
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentUser(createPaymentAccountRequest, options);
1182
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentUser(createPaymentUserRequest, options);
1183
1183
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1184
1184
  });
1185
1185
  },
@@ -1482,13 +1482,13 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1482
1482
  },
1483
1483
  /**
1484
1484
  * Create a payment user
1485
- * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
1485
+ * @param {CreatePaymentUserRequest} createPaymentUserRequest request body for creating payment user
1486
1486
  * @param {*} [options] Override http request option.
1487
1487
  * @throws {RequiredError}
1488
1488
  */
1489
- createPaymentUser(createPaymentAccountRequest, options) {
1489
+ createPaymentUser(createPaymentUserRequest, options) {
1490
1490
  return localVarFp
1491
- .createPaymentUser(createPaymentAccountRequest, options)
1491
+ .createPaymentUser(createPaymentUserRequest, options)
1492
1492
  .then((request) => request(axios, basePath));
1493
1493
  },
1494
1494
  /**
@@ -1748,14 +1748,14 @@ class CustomerApi extends base_1.BaseAPI {
1748
1748
  }
1749
1749
  /**
1750
1750
  * Create a payment user
1751
- * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
1751
+ * @param {CreatePaymentUserRequest} createPaymentUserRequest request body for creating payment user
1752
1752
  * @param {*} [options] Override http request option.
1753
1753
  * @throws {RequiredError}
1754
1754
  * @memberof CustomerApi
1755
1755
  */
1756
- createPaymentUser(createPaymentAccountRequest, options) {
1756
+ createPaymentUser(createPaymentUserRequest, options) {
1757
1757
  return exports.CustomerApiFp(this.configuration)
1758
- .createPaymentUser(createPaymentAccountRequest, options)
1758
+ .createPaymentUser(createPaymentUserRequest, options)
1759
1759
  .then((request) => request(this.axios, this.basePath));
1760
1760
  }
1761
1761
  /**
@@ -4004,6 +4004,33 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
4004
4004
  options: localVarRequestOptions,
4005
4005
  };
4006
4006
  }),
4007
+ /**
4008
+ * Get a list of card details for a login identity
4009
+ * @param {*} [options] Override http request option.
4010
+ * @throws {RequiredError}
4011
+ */
4012
+ listCardDetails: (options = {}) => __awaiter(this, void 0, void 0, function* () {
4013
+ const localVarPath = `/card_details`;
4014
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4015
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4016
+ let baseOptions;
4017
+ if (configuration) {
4018
+ baseOptions = configuration.baseOptions;
4019
+ }
4020
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4021
+ const localVarHeaderParameter = {};
4022
+ const localVarQueryParameter = {};
4023
+ // authentication Oauth2 required
4024
+ // oauth required
4025
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
4026
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4027
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4028
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4029
+ return {
4030
+ url: common_1.toPathString(localVarUrlObj),
4031
+ options: localVarRequestOptions,
4032
+ };
4033
+ }),
4007
4034
  /**
4008
4035
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
4009
4036
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
@@ -4261,6 +4288,17 @@ exports.LoginIdentityApiFp = function (configuration) {
4261
4288
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
4262
4289
  });
4263
4290
  },
4291
+ /**
4292
+ * Get a list of card details for a login identity
4293
+ * @param {*} [options] Override http request option.
4294
+ * @throws {RequiredError}
4295
+ */
4296
+ listCardDetails(options) {
4297
+ return __awaiter(this, void 0, void 0, function* () {
4298
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCardDetails(options);
4299
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
4300
+ });
4301
+ },
4264
4302
  /**
4265
4303
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
4266
4304
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
@@ -4414,6 +4452,14 @@ exports.LoginIdentityApiFactory = function (configuration, basePath, axios) {
4414
4452
  listAccounts(options) {
4415
4453
  return localVarFp.listAccounts(options).then((request) => request(axios, basePath));
4416
4454
  },
4455
+ /**
4456
+ * Get a list of card details for a login identity
4457
+ * @param {*} [options] Override http request option.
4458
+ * @throws {RequiredError}
4459
+ */
4460
+ listCardDetails(options) {
4461
+ return localVarFp.listCardDetails(options).then((request) => request(axios, basePath));
4462
+ },
4417
4463
  /**
4418
4464
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
4419
4465
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
@@ -4598,6 +4644,17 @@ class LoginIdentityApi extends base_1.BaseAPI {
4598
4644
  .listAccounts(options)
4599
4645
  .then((request) => request(this.axios, this.basePath));
4600
4646
  }
4647
+ /**
4648
+ * Get a list of card details for a login identity
4649
+ * @param {*} [options] Override http request option.
4650
+ * @throws {RequiredError}
4651
+ * @memberof LoginIdentityApi
4652
+ */
4653
+ listCardDetails(options) {
4654
+ return exports.LoginIdentityApiFp(this.configuration)
4655
+ .listCardDetails(options)
4656
+ .then((request) => request(this.axios, this.basePath));
4657
+ }
4601
4658
  /**
4602
4659
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
4603
4660
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.162",
3
+ "version": "0.0.164",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -21,7 +21,7 @@
21
21
  "axios": "^0.21.4"
22
22
  },
23
23
  "devDependencies": {
24
- "@types/chai": "^4.3.5",
24
+ "@types/chai": "^4.3.6",
25
25
  "@types/mocha": "^10.0.1",
26
26
  "@types/node": "^12.11.5",
27
27
  "axios-mock-adapter": "^1.21.2",