@paydala-payments/models 0.7.91 → 0.7.93

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.
@@ -1,5 +1,4 @@
1
- export type CardType = "CREDIT" | "DEBIT" | "ANY";
2
- export type CardBrand = "VISA" | "MASTERCARD" | "AMEX" | "DISCOVER" | "ANY";
1
+ import { CardType } from "./blocked_instrument";
3
2
  export interface BinValidation {
4
3
  cardDetails?: {
5
4
  cardBrand: string;
@@ -0,0 +1,24 @@
1
+ export type CardType = "credit" | "debit" | "prepaid";
2
+ export type CardBrand = "visa" | "mastercard" | "amex" | "discover" | "diners" | "jcb" | "unionpay" | "mir";
3
+ interface CardConfig {
4
+ type: CardType;
5
+ brand: CardBrand[];
6
+ }
7
+ interface BlockedInstrumentBase {
8
+ disabled: boolean;
9
+ }
10
+ interface BlockedCardInstrument extends BlockedInstrumentBase {
11
+ cards: CardConfig[];
12
+ }
13
+ interface BlockedBankInstrument extends BlockedInstrumentBase {
14
+ banks: any[];
15
+ }
16
+ interface BlockedWalletInstrument extends BlockedInstrumentBase {
17
+ wallets: ("Google" | "Apple")[];
18
+ }
19
+ interface BlockedInstruments {
20
+ card: BlockedCardInstrument;
21
+ bank: BlockedBankInstrument;
22
+ wallet: BlockedWalletInstrument;
23
+ }
24
+ export default BlockedInstruments;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -34,7 +34,7 @@ import type { User } from "./user";
34
34
  import type { UserLogin } from "./user_login";
35
35
  import type { Verify } from "./verify";
36
36
  import type { Widget } from "./widget";
37
- import { BinValidation, CardBrand, CardType } from "./bin_validate";
37
+ import { BinValidation } from "./bin_validate";
38
38
  import { Environment } from "./environment";
39
39
  import { CredentialsPayload, OperatorCredentials, OperatorCustomData } from "./operator_credentials";
40
40
  import { CardTransactionResponse } from "./card_transaction_response";
@@ -48,5 +48,6 @@ import { OTPConfirmRequest } from "./otp_confirm_request";
48
48
  import { OTPConfirmResponse } from "./otp_confirm_response";
49
49
  import { CustomTheme, FontFamily } from "./custom_theme";
50
50
  import { IdentifyResponse, OtpSource } from "./identify_response";
51
+ import { CardBrand, CardType } from "./blocked_instrument";
51
52
  export type { Environment, OperatorCredentials, OnPaydalaClose, User, Partner, OperatorSignAndCredentials, CredentialsPayload, Verify, Member, Widget, Source, BinValidation, CardType, CardBrand, Address, KYCInfo, Prefill, QueriesResult, QueriesError, 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, IdentifyResponse, Regions, CardTransactionResponse, BankTransactionResponse, CustomerKYCStatus, VerifyAmount, LastSelectedOperatorSignAndCreds, OTPStatus, VerifyDeviceStatus, OTPConfirmRequest, OTPConfirmResponse, OperatorCustomData, CustomTheme, };
52
53
  export { IntegrationSource, BankProcessor, OtpSource, FontFamily };
@@ -1,4 +1,4 @@
1
- import { CardBrand, CardType } from "./bin_validate";
1
+ import { CardBrand, CardType } from "./blocked_instrument";
2
2
  import { PredefinedAmount } from "./predefined_amount";
3
3
  import { Prefill } from "./prefill";
4
4
  import { TransactionType } from "./transaction";
package/dist/partner.d.ts CHANGED
@@ -1,24 +1,9 @@
1
1
  import { BankProcessor } from "./bank_processor";
2
+ import BlockedInstruments from "./blocked_instrument";
2
3
  import { OperatorCustomData } from "./operator_credentials";
3
4
  export interface Partner {
4
5
  bankProcessor?: BankProcessor;
5
- blockedInstruments: {
6
- card: {
7
- disabled: boolean;
8
- cards: {
9
- type: "credit" | "debit";
10
- brand: "visa" | "mastercard" | "amex" | "discover" | "diners" | "jcb" | "unionpay" | "mir"[];
11
- }[];
12
- };
13
- bank: {
14
- disabled: boolean;
15
- banks: [];
16
- };
17
- wallet: {
18
- disabled: boolean;
19
- wallets: [];
20
- };
21
- };
6
+ blockedInstruments: BlockedInstruments;
22
7
  partner: {
23
8
  id: number;
24
9
  company: string | null;
package/dist/source.d.ts CHANGED
@@ -11,6 +11,7 @@ export interface PaymentDetails {
11
11
  name?: string;
12
12
  accountType: string;
13
13
  accountNo?: string;
14
+ coolOffAt?: number;
14
15
  }
15
16
  export interface Logos {
16
17
  paydala?: string;
@@ -23,4 +24,11 @@ export interface Source {
23
24
  pymt_details: PaymentDetails[];
24
25
  pref_source: number;
25
26
  logos: Logos;
27
+ sourcesCount: {
28
+ total: number;
29
+ credit: number;
30
+ debit: number;
31
+ wallet: number;
32
+ bank: number;
33
+ };
26
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paydala-payments/models",
3
- "version": "0.7.91",
3
+ "version": "0.7.93",
4
4
  "description": "Models of the Paydala project",
5
5
  "keywords": [
6
6
  "paydala",