@paydala-payments/models 0.2.77 → 0.2.78

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/index.d.ts CHANGED
@@ -26,7 +26,7 @@ import { Prefill } from "./prefill";
26
26
  import { QueriesResult } from "./queries_result";
27
27
  import type { Registration } from "./registration";
28
28
  import type SocialLoginState from "./social_login_state";
29
- import type { Transaction } from "./transaction";
29
+ import type { Transaction, TransactionMode, TransactionType } from "./transaction";
30
30
  import { TransactionHistory } from "./transaction_history";
31
31
  import type { User } from "./user";
32
32
  import type { UserLogin } from "./user_login";
@@ -38,4 +38,4 @@ 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, 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, 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,6 +1,7 @@
1
1
  import { CardType } from "./bin_validate";
2
2
  import { PredefinedAmount } from "./predefined_amount";
3
3
  import { Prefill } from "./prefill";
4
+ import { TransactionType } from "./transaction";
4
5
  export interface OperatorCredentials extends PaydalaOperator {
5
6
  payload: CredentialsPayload | null;
6
7
  }
@@ -23,6 +24,8 @@ export interface CredentialsPayload {
23
24
  redirectUrl: string;
24
25
  /** wether the SDK is being used within the widget for webviews */
25
26
  isWebView?: boolean;
27
+ /** transaction type wether it's a deposit or a withdraw */
28
+ transactionType?: TransactionType;
26
29
  /** user flow depenedent configuration */
27
30
  userFlow?: {
28
31
  /** wether to disable login and registration flows for returning users */
package/dist/partner.d.ts CHANGED
@@ -1,20 +1,6 @@
1
1
  export interface Partner {
2
2
  partner: {
3
3
  id: number;
4
- region: {
5
- id: number;
6
- state: string;
7
- details: string | null;
8
- };
9
4
  company: string | null;
10
- details: string | null;
11
- sandboxApiKey: string | null;
12
- prodApiKey: string | null;
13
- logoData: string | null;
14
- logoType: string | null;
15
- subType: number;
16
- createdDate: string;
17
- trialPeriod: string | null;
18
- status: number;
19
5
  };
20
6
  }
@@ -1,5 +1,7 @@
1
1
  import type { BankTransaction } from "./bank_transaction";
2
2
  import type { CardTransaction } from "./card_transaction";
3
+ export type TransactionMode = "bank" | "card" | "wallet";
4
+ export type TransactionType = "deposit" | "withdraw" | "fundForDeposit" | "fund";
3
5
  export interface Transaction {
4
6
  card?: CardTransaction;
5
7
  bank?: BankTransaction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paydala-payments/models",
3
- "version": "0.2.77",
3
+ "version": "0.2.78",
4
4
  "description": "Models of the Paydala project",
5
5
  "keywords": [
6
6
  "paydala",