@finverse/sdk-typescript 0.0.163 → 0.0.165

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
@@ -312,6 +312,12 @@ export interface AllProductStatus {
312
312
  * @memberof AllProductStatus
313
313
  */
314
314
  income_estimation?: ProductStatus;
315
+ /**
316
+ *
317
+ * @type {ProductStatus}
318
+ * @memberof AllProductStatus
319
+ */
320
+ card_details?: ProductStatus;
315
321
  }
316
322
  /**
317
323
  *
@@ -608,6 +614,195 @@ export interface BalanceHistory {
608
614
  */
609
615
  currency: string;
610
616
  }
617
+ /**
618
+ *
619
+ * @export
620
+ * @interface CardAccount
621
+ */
622
+ export interface CardAccount {
623
+ /**
624
+ *
625
+ * @type {CurrencyAmount}
626
+ * @memberof CardAccount
627
+ */
628
+ current_balance?: CurrencyAmount;
629
+ /**
630
+ *
631
+ * @type {CurrencyAmount}
632
+ * @memberof CardAccount
633
+ */
634
+ payment_due_amount?: CurrencyAmount;
635
+ /**
636
+ *
637
+ * @type {CurrencyAmount}
638
+ * @memberof CardAccount
639
+ */
640
+ statement_due_amount?: CurrencyAmount;
641
+ /**
642
+ *
643
+ * @type {CurrencyAmount}
644
+ * @memberof CardAccount
645
+ */
646
+ total_credit_limit?: CurrencyAmount;
647
+ /**
648
+ *
649
+ * @type {CurrencyAmount}
650
+ * @memberof CardAccount
651
+ */
652
+ available_credit_limit?: CurrencyAmount;
653
+ /**
654
+ *
655
+ * @type {CurrencyAmount}
656
+ * @memberof CardAccount
657
+ */
658
+ minimum_payment_due?: CurrencyAmount;
659
+ /**
660
+ *
661
+ * @type {RewardsPointsBalance}
662
+ * @memberof CardAccount
663
+ */
664
+ rewards_points_balance?: RewardsPointsBalance;
665
+ /**
666
+ *
667
+ * @type {string}
668
+ * @memberof CardAccount
669
+ */
670
+ last_update?: string;
671
+ /**
672
+ * Account this card is associated with
673
+ * @type {string}
674
+ * @memberof CardAccount
675
+ */
676
+ account_id?: string;
677
+ /**
678
+ *
679
+ * @type {string}
680
+ * @memberof CardAccount
681
+ */
682
+ account_name?: string;
683
+ /**
684
+ * Masked Account number of the card account
685
+ * @type {string}
686
+ * @memberof CardAccount
687
+ */
688
+ account_number_masked?: string;
689
+ /**
690
+ *
691
+ * @type {AccountType}
692
+ * @memberof CardAccount
693
+ */
694
+ account_type?: AccountType;
695
+ /**
696
+ * The statement payment due date
697
+ * @type {string}
698
+ * @memberof CardAccount
699
+ */
700
+ statement_payment_due_date?: string;
701
+ /**
702
+ * The next payment due date
703
+ * @type {string}
704
+ * @memberof CardAccount
705
+ */
706
+ next_payment_due_date?: string;
707
+ /**
708
+ * The statement date
709
+ * @type {string}
710
+ * @memberof CardAccount
711
+ */
712
+ statement_date?: string;
713
+ /**
714
+ * The date of the last payment
715
+ * @type {string}
716
+ * @memberof CardAccount
717
+ */
718
+ last_payment_date?: string;
719
+ /**
720
+ *
721
+ * @type {CurrencyAmount}
722
+ * @memberof CardAccount
723
+ */
724
+ last_payment_amount?: CurrencyAmount;
725
+ }
726
+ /**
727
+ *
728
+ * @export
729
+ * @interface CardAccountAllOf
730
+ */
731
+ export interface CardAccountAllOf {
732
+ /**
733
+ * Account this card is associated with
734
+ * @type {string}
735
+ * @memberof CardAccountAllOf
736
+ */
737
+ account_id?: string;
738
+ /**
739
+ *
740
+ * @type {string}
741
+ * @memberof CardAccountAllOf
742
+ */
743
+ account_name?: string;
744
+ /**
745
+ * Masked Account number of the card account
746
+ * @type {string}
747
+ * @memberof CardAccountAllOf
748
+ */
749
+ account_number_masked?: string;
750
+ /**
751
+ *
752
+ * @type {AccountType}
753
+ * @memberof CardAccountAllOf
754
+ */
755
+ account_type?: AccountType;
756
+ /**
757
+ * The statement payment due date
758
+ * @type {string}
759
+ * @memberof CardAccountAllOf
760
+ */
761
+ statement_payment_due_date?: string;
762
+ /**
763
+ * The next payment due date
764
+ * @type {string}
765
+ * @memberof CardAccountAllOf
766
+ */
767
+ next_payment_due_date?: string;
768
+ /**
769
+ * The statement date
770
+ * @type {string}
771
+ * @memberof CardAccountAllOf
772
+ */
773
+ statement_date?: string;
774
+ /**
775
+ * The date of the last payment
776
+ * @type {string}
777
+ * @memberof CardAccountAllOf
778
+ */
779
+ last_payment_date?: string;
780
+ /**
781
+ *
782
+ * @type {CurrencyAmount}
783
+ * @memberof CardAccountAllOf
784
+ */
785
+ last_payment_amount?: CurrencyAmount;
786
+ }
787
+ /**
788
+ *
789
+ * @export
790
+ * @interface CardDetails
791
+ */
792
+ export interface CardDetails {
793
+ /**
794
+ *
795
+ * @type {Array<CardAccount>}
796
+ * @memberof CardDetails
797
+ */
798
+ card_accounts?: Array<CardAccount>;
799
+ /**
800
+ *
801
+ * @type {CommonCardDetails}
802
+ * @memberof CardDetails
803
+ */
804
+ card_total?: CommonCardDetails;
805
+ }
611
806
  /**
612
807
  *
613
808
  * @export
@@ -633,6 +828,61 @@ export interface CategoryPredictions {
633
828
  */
634
829
  source_id?: string;
635
830
  }
831
+ /**
832
+ *
833
+ * @export
834
+ * @interface CommonCardDetails
835
+ */
836
+ export interface CommonCardDetails {
837
+ /**
838
+ *
839
+ * @type {CurrencyAmount}
840
+ * @memberof CommonCardDetails
841
+ */
842
+ current_balance?: CurrencyAmount;
843
+ /**
844
+ *
845
+ * @type {CurrencyAmount}
846
+ * @memberof CommonCardDetails
847
+ */
848
+ payment_due_amount?: CurrencyAmount;
849
+ /**
850
+ *
851
+ * @type {CurrencyAmount}
852
+ * @memberof CommonCardDetails
853
+ */
854
+ statement_due_amount?: CurrencyAmount;
855
+ /**
856
+ *
857
+ * @type {CurrencyAmount}
858
+ * @memberof CommonCardDetails
859
+ */
860
+ total_credit_limit?: CurrencyAmount;
861
+ /**
862
+ *
863
+ * @type {CurrencyAmount}
864
+ * @memberof CommonCardDetails
865
+ */
866
+ available_credit_limit?: CurrencyAmount;
867
+ /**
868
+ *
869
+ * @type {CurrencyAmount}
870
+ * @memberof CommonCardDetails
871
+ */
872
+ minimum_payment_due?: CurrencyAmount;
873
+ /**
874
+ *
875
+ * @type {RewardsPointsBalance}
876
+ * @memberof CommonCardDetails
877
+ */
878
+ rewards_points_balance?: RewardsPointsBalance;
879
+ /**
880
+ *
881
+ * @type {string}
882
+ * @memberof CommonCardDetails
883
+ */
884
+ last_update?: string;
885
+ }
636
886
  /**
637
887
  *
638
888
  * @export
@@ -3135,6 +3385,31 @@ export interface ListAccountsResponse {
3135
3385
  */
3136
3386
  institution?: InstitutionShort;
3137
3387
  }
3388
+ /**
3389
+ *
3390
+ * @export
3391
+ * @interface ListCardsDetailsResponse
3392
+ */
3393
+ export interface ListCardsDetailsResponse {
3394
+ /**
3395
+ *
3396
+ * @type {LoginIdentityShort}
3397
+ * @memberof ListCardsDetailsResponse
3398
+ */
3399
+ login_identity?: LoginIdentityShort;
3400
+ /**
3401
+ *
3402
+ * @type {InstitutionShort}
3403
+ * @memberof ListCardsDetailsResponse
3404
+ */
3405
+ institution?: InstitutionShort;
3406
+ /**
3407
+ *
3408
+ * @type {CardDetails}
3409
+ * @memberof ListCardsDetailsResponse
3410
+ */
3411
+ card_details?: CardDetails;
3412
+ }
3138
3413
  /**
3139
3414
  *
3140
3415
  * @export
@@ -5181,6 +5456,31 @@ export interface RelinkRequest {
5181
5456
  */
5182
5457
  consent?: boolean | null;
5183
5458
  }
5459
+ /**
5460
+ *
5461
+ * @export
5462
+ * @interface RewardsPointsBalance
5463
+ */
5464
+ export interface RewardsPointsBalance {
5465
+ /**
5466
+ *
5467
+ * @type {string}
5468
+ * @memberof RewardsPointsBalance
5469
+ */
5470
+ currency?: string;
5471
+ /**
5472
+ *
5473
+ * @type {number}
5474
+ * @memberof RewardsPointsBalance
5475
+ */
5476
+ balance: number;
5477
+ /**
5478
+ *
5479
+ * @type {string}
5480
+ * @memberof RewardsPointsBalance
5481
+ */
5482
+ raw?: string;
5483
+ }
5184
5484
  /**
5185
5485
  *
5186
5486
  * @export
@@ -7797,6 +8097,12 @@ export declare const LoginIdentityApiAxiosParamCreator: (configuration?: Configu
7797
8097
  * @throws {RequiredError}
7798
8098
  */
7799
8099
  listAccounts: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
8100
+ /**
8101
+ * Get a list of card details for a login identity
8102
+ * @param {*} [options] Override http request option.
8103
+ * @throws {RequiredError}
8104
+ */
8105
+ listCardDetails: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
7800
8106
  /**
7801
8107
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
7802
8108
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
@@ -7908,6 +8214,12 @@ export declare const LoginIdentityApiFp: (configuration?: Configuration) => {
7908
8214
  * @throws {RequiredError}
7909
8215
  */
7910
8216
  listAccounts(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponse>>;
8217
+ /**
8218
+ * Get a list of card details for a login identity
8219
+ * @param {*} [options] Override http request option.
8220
+ * @throws {RequiredError}
8221
+ */
8222
+ listCardDetails(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCardsDetailsResponse>>;
7911
8223
  /**
7912
8224
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
7913
8225
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
@@ -8019,6 +8331,12 @@ export declare const LoginIdentityApiFactory: (configuration?: Configuration, ba
8019
8331
  * @throws {RequiredError}
8020
8332
  */
8021
8333
  listAccounts(options?: any): AxiosPromise<ListAccountsResponse>;
8334
+ /**
8335
+ * Get a list of card details for a login identity
8336
+ * @param {*} [options] Override http request option.
8337
+ * @throws {RequiredError}
8338
+ */
8339
+ listCardDetails(options?: any): AxiosPromise<ListCardsDetailsResponse>;
8022
8340
  /**
8023
8341
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
8024
8342
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
@@ -8143,6 +8461,13 @@ export interface LoginIdentityApiInterface {
8143
8461
  * @memberof LoginIdentityApiInterface
8144
8462
  */
8145
8463
  listAccounts(options?: AxiosRequestConfig): AxiosPromise<ListAccountsResponse>;
8464
+ /**
8465
+ * Get a list of card details for a login identity
8466
+ * @param {*} [options] Override http request option.
8467
+ * @throws {RequiredError}
8468
+ * @memberof LoginIdentityApiInterface
8469
+ */
8470
+ listCardDetails(options?: AxiosRequestConfig): AxiosPromise<ListCardsDetailsResponse>;
8146
8471
  /**
8147
8472
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
8148
8473
  * @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
@@ -8271,6 +8596,13 @@ export declare class LoginIdentityApi extends BaseAPI implements LoginIdentityAp
8271
8596
  * @memberof LoginIdentityApi
8272
8597
  */
8273
8598
  listAccounts(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountsResponse>>;
8599
+ /**
8600
+ * Get a list of card details for a login identity
8601
+ * @param {*} [options] Override http request option.
8602
+ * @throws {RequiredError}
8603
+ * @memberof LoginIdentityApi
8604
+ */
8605
+ listCardDetails(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCardsDetailsResponse>>;
8274
8606
  /**
8275
8607
  * Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
8276
8608
  * @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.165",
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",