@paydala-payments/models 0.2.84 → 0.2.86

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.
@@ -0,0 +1,16 @@
1
+ export interface BankKYC {
2
+ first_name: string;
3
+ mid_name?: string;
4
+ last_name: string;
5
+ address?: string;
6
+ city?: string;
7
+ state?: string;
8
+ zip?: string;
9
+ dob?: string;
10
+ mob_no?: string;
11
+ email: string;
12
+ ssn_last_four?: string;
13
+ qual_id?: number;
14
+ qual_no?: string;
15
+ issuing_state?: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  export type CardType = "CREDIT" | "DEBIT" | "ANY";
2
+ export type CardBrand = "VISA" | "MASTERCARD" | "AMEX" | "DISCOVER" | "ANY";
2
3
  export interface BinValidation {
3
4
  binData: {
4
5
  bin: number;
package/dist/index.d.ts CHANGED
@@ -32,10 +32,10 @@ import type { User } from "./user";
32
32
  import type { UserLogin } from "./user_login";
33
33
  import type { Verify } from "./verify";
34
34
  import type { Widget } from "./widget";
35
- import { BinValidation, CardType } from "./bin_validate";
35
+ import { BinValidation, CardBrand, CardType } from "./bin_validate";
36
36
  import { Environment } from "./environment";
37
37
  import { CredentialsPayload, OperatorCredentials } from "./operator_credentials";
38
38
  import { CardTransactionResponse } from "./card_transaction_response";
39
39
  import { BankTransactionResponse } from "./bank_transaction_response";
40
40
  import { CustomerKYCStatus } from "./customer_kyc_status";
41
- export type { Environment, OperatorCredentials, OnPaydalaClose, User, Partner, OperatorSignAndCredentials, CredentialsPayload, Verify, Member, Widget, Source, BinValidation, CardType, Address, KYCInfo, Prefill, QueriesResult, OobCode, Credential, BankSource, BankWidget, Transaction, Institution, AccountList, BaseResponse, Registration, UserLogin, AccountDetail, PaymentDetails, GuestCardLogin, IntegrityCheck, BankTransaction, TransactionMode, TransactionType, TransactionOperatorDetails, TransactionOperatorDetail, TransactionDetail, TransactionHistoryResult, TransactionHistory, Paydala, FirebaseToken, FirebaseError, FirebaseRefreshToken, OperatorList, SocialLoginState, PredefinedAmount, Region, Regions, CardTransactionResponse, BankTransactionResponse, CustomerKYCStatus, };
41
+ export type { Environment, OperatorCredentials, OnPaydalaClose, User, Partner, OperatorSignAndCredentials, CredentialsPayload, Verify, Member, Widget, Source, BinValidation, CardType, CardBrand, Address, KYCInfo, Prefill, QueriesResult, OobCode, Credential, BankSource, BankWidget, Transaction, Institution, AccountList, BaseResponse, Registration, UserLogin, AccountDetail, PaymentDetails, GuestCardLogin, IntegrityCheck, BankTransaction, TransactionMode, TransactionType, TransactionOperatorDetails, TransactionOperatorDetail, TransactionDetail, TransactionHistoryResult, TransactionHistory, Paydala, FirebaseToken, FirebaseError, FirebaseRefreshToken, OperatorList, SocialLoginState, PredefinedAmount, Region, Regions, CardTransactionResponse, BankTransactionResponse, CustomerKYCStatus, };
@@ -1,4 +1,4 @@
1
- import { CardType } from "./bin_validate";
1
+ import { CardBrand, CardType } from "./bin_validate";
2
2
  import { PredefinedAmount } from "./predefined_amount";
3
3
  import { Prefill } from "./prefill";
4
4
  import { TransactionType } from "./transaction";
@@ -30,8 +30,13 @@ export interface CredentialsPayload {
30
30
  userFlow?: {
31
31
  /** wether to disable login and registration flows for returning users */
32
32
  guestOnly?: boolean;
33
- /** which types of card are allowed for card transactions */
34
- validateCardBin?: CardType;
33
+ /** custom card validations for deposit flow */
34
+ cardValidation?: {
35
+ /** which types of card are allowed for card transactions */
36
+ types: CardType[];
37
+ /** which brands of card are allowed for card transactions */
38
+ brands: CardBrand[];
39
+ };
35
40
  };
36
41
  }
37
42
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paydala-payments/models",
3
- "version": "0.2.84",
3
+ "version": "0.2.86",
4
4
  "description": "Models of the Paydala project",
5
5
  "keywords": [
6
6
  "paydala",