@finverse/sdk-typescript 0.0.163 → 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.
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
@@ -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
@@ -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.163",
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",