@paydala-payments/models 0.4.99 → 0.5.1
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/accountList.d.ts +21 -0
- package/dist/accountList.js +2 -0
- package/dist/address.d.ts +6 -0
- package/dist/address.js +2 -0
- package/dist/bank_source.d.ts +21 -0
- package/dist/bank_source.js +2 -0
- package/dist/bank_transaction.d.ts +8 -0
- package/dist/bank_transaction.js +2 -0
- package/dist/bank_transaction_response.d.ts +4 -0
- package/dist/bank_transaction_response.js +2 -0
- package/dist/bank_widget.d.ts +21 -0
- package/dist/bank_widget.js +2 -0
- package/dist/base.d.ts +5 -0
- package/dist/base.js +2 -0
- package/dist/bin_validate.d.ts +21 -0
- package/dist/bin_validate.js +2 -0
- package/dist/card_transaction.d.ts +6 -0
- package/dist/card_transaction.js +2 -0
- package/dist/card_transaction_response.d.ts +5 -0
- package/dist/card_transaction_response.js +2 -0
- package/dist/credential.d.ts +8 -0
- package/dist/credential.js +2 -0
- package/dist/customer_kyc_status.d.ts +18 -0
- package/dist/customer_kyc_status.js +2 -0
- package/dist/environment.d.ts +1 -0
- package/dist/environment.js +2 -0
- package/dist/firebase_error.d.ts +13 -0
- package/dist/firebase_error.js +2 -0
- package/dist/firebase_refresh_token.d.ts +8 -0
- package/dist/firebase_refresh_token.js +2 -0
- package/dist/firebase_token.d.ts +10 -0
- package/dist/firebase_token.js +2 -0
- package/dist/guest_card_login.d.ts +24 -0
- package/dist/guest_card_login.js +2 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +2 -0
- package/dist/institution.d.ts +12 -0
- package/dist/institution.js +2 -0
- package/dist/integrity_check.d.ts +14 -0
- package/dist/integrity_check.js +2 -0
- package/dist/kyc_info.d.ts +16 -0
- package/dist/kyc_info.js +2 -0
- package/dist/last_saved_operator_credentials.d.ts +5 -0
- package/dist/last_saved_operator_credentials.js +2 -0
- package/dist/member.d.ts +3 -0
- package/dist/member.js +2 -0
- package/dist/oob.d.ts +6 -0
- package/dist/oob.js +2 -0
- package/dist/operator_credentials.d.ts +44 -0
- package/dist/operator_credentials.js +2 -0
- package/dist/operator_list.d.ts +7 -0
- package/dist/operator_list.js +2 -0
- package/dist/partner.d.ts +19 -0
- package/dist/partner.js +2 -0
- package/dist/paydala.d.ts +24 -0
- package/dist/paydala.js +6 -0
- package/dist/predefined_amount.d.ts +5 -0
- package/dist/predefined_amount.js +2 -0
- package/dist/prefill.d.ts +18 -0
- package/dist/prefill.js +2 -0
- package/dist/queries_result.d.ts +33 -0
- package/dist/queries_result.js +2 -0
- package/dist/region.d.ts +7 -0
- package/dist/region.js +2 -0
- package/dist/registration.d.ts +8 -0
- package/dist/registration.js +2 -0
- package/dist/social_login_state.d.ts +9 -0
- package/dist/social_login_state.js +2 -0
- package/dist/source.d.ts +26 -0
- package/dist/source.js +2 -0
- package/dist/transaction.d.ts +13 -0
- package/dist/transaction.js +2 -0
- package/dist/transaction_history.d.ts +5 -0
- package/dist/transaction_history.js +2 -0
- package/dist/transaction_history_result.d.ts +27 -0
- package/dist/transaction_history_result.js +2 -0
- package/dist/transaction_operator_details.d.ts +11 -0
- package/dist/transaction_operator_details.js +2 -0
- package/dist/user.d.ts +3 -0
- package/dist/user.js +2 -0
- package/dist/user_login.d.ts +17 -0
- package/dist/user_login.js +2 -0
- package/dist/verify.d.ts +21 -0
- package/dist/verify.js +2 -0
- package/dist/verify_amount.d.ts +5 -0
- package/dist/verify_amount.js +2 -0
- package/dist/widget.d.ts +3 -0
- package/dist/widget.js +2 -0
- package/package.json +1 -1
@@ -0,0 +1,21 @@
|
|
1
|
+
export interface AccountList {
|
2
|
+
accountNumber: string;
|
3
|
+
availableBalance: number;
|
4
|
+
balance: number;
|
5
|
+
createdAt: string;
|
6
|
+
dayPaymentIsDue: number;
|
7
|
+
guid: string;
|
8
|
+
id: string;
|
9
|
+
importedAt: string;
|
10
|
+
institutionCode: string;
|
11
|
+
isClosed: boolean;
|
12
|
+
isHidden: boolean;
|
13
|
+
memberGuid: string;
|
14
|
+
memberIsManagedByUser: boolean;
|
15
|
+
name: string;
|
16
|
+
paymentDueAt: string;
|
17
|
+
routingNumber: string;
|
18
|
+
type: string;
|
19
|
+
updatedAt: string;
|
20
|
+
userGuid: string;
|
21
|
+
}
|
package/dist/address.js
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
export interface BankDetails {
|
2
|
+
id: string;
|
3
|
+
status: string;
|
4
|
+
type: string;
|
5
|
+
accountType: string;
|
6
|
+
name: string;
|
7
|
+
bankName: string;
|
8
|
+
}
|
9
|
+
export interface BankSource {
|
10
|
+
source: {
|
11
|
+
customerId: string;
|
12
|
+
location: string | undefined;
|
13
|
+
processorToken: string | null;
|
14
|
+
accountDetails: BankDetails;
|
15
|
+
balance: string;
|
16
|
+
institutionCode: string;
|
17
|
+
accountGuid: string | null;
|
18
|
+
userGuid: string;
|
19
|
+
memberGuid: string;
|
20
|
+
};
|
21
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export interface BankWidget {
|
2
|
+
userGuid: string | undefined;
|
3
|
+
memberGuid?: string | undefined;
|
4
|
+
accountGuid?: string | undefined;
|
5
|
+
kyc?: {
|
6
|
+
first_name: string;
|
7
|
+
mid_name?: string;
|
8
|
+
last_name: string;
|
9
|
+
address?: string;
|
10
|
+
city?: string;
|
11
|
+
state?: string;
|
12
|
+
zip?: string;
|
13
|
+
dob?: string;
|
14
|
+
mob_no?: string;
|
15
|
+
email: string;
|
16
|
+
ssn_last_four?: string;
|
17
|
+
qual_id?: number;
|
18
|
+
qual_no?: string;
|
19
|
+
issuing_state?: string;
|
20
|
+
};
|
21
|
+
}
|
package/dist/base.d.ts
ADDED
package/dist/base.js
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
export type CardType = "CREDIT" | "DEBIT" | "ANY";
|
2
|
+
export type CardBrand = "VISA" | "MASTERCARD" | "AMEX" | "DISCOVER" | "ANY";
|
3
|
+
export interface BinValidation {
|
4
|
+
binData: {
|
5
|
+
bin: number;
|
6
|
+
cardBrand: string;
|
7
|
+
issuingOrg: string;
|
8
|
+
cardType: CardType;
|
9
|
+
cardCategory: string;
|
10
|
+
issuingCountry: string;
|
11
|
+
issuingCountryCodeA2: string;
|
12
|
+
issuingCountryCodeA3: string;
|
13
|
+
issuingCountryNumber: number;
|
14
|
+
issuingPhone: string;
|
15
|
+
issuingWebsite: string;
|
16
|
+
panLength: string;
|
17
|
+
issuedEntity: string;
|
18
|
+
isRegulated: string;
|
19
|
+
isCommercial: boolean;
|
20
|
+
};
|
21
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export interface CustomerKYCStatus {
|
2
|
+
bank?: {
|
3
|
+
kycCompleted: boolean;
|
4
|
+
kycMatched: boolean;
|
5
|
+
error?: string;
|
6
|
+
source?: {
|
7
|
+
location: string;
|
8
|
+
balance: number;
|
9
|
+
accountDetails: {
|
10
|
+
bankName: string;
|
11
|
+
name: string;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
};
|
15
|
+
card?: {
|
16
|
+
kycCompleted: boolean;
|
17
|
+
};
|
18
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type Environment = "local" | "production" | "development" | "sandbox" | "staging";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
export interface GuestCardLogin {
|
2
|
+
pymt_type: number;
|
3
|
+
card_no: string;
|
4
|
+
exp_date: string;
|
5
|
+
cvv: number;
|
6
|
+
zip: string;
|
7
|
+
kyc: {
|
8
|
+
first_name: string;
|
9
|
+
mid_name?: string;
|
10
|
+
last_name: string;
|
11
|
+
address: string;
|
12
|
+
city: string;
|
13
|
+
state: string;
|
14
|
+
zip: string;
|
15
|
+
dob: string;
|
16
|
+
mob_no: string;
|
17
|
+
email?: string;
|
18
|
+
ssn_last_four: string;
|
19
|
+
qual_id?: number;
|
20
|
+
qual_no?: string;
|
21
|
+
issuing_state?: string;
|
22
|
+
};
|
23
|
+
pref_pymt: number;
|
24
|
+
}
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
import type { AccountDetail, TransactionDetail, TransactionHistoryResult } from "./transaction_history_result";
|
2
|
+
import type { OnPaydalaClose, OperatorSignAndCredentials, Paydala } from "./paydala";
|
3
|
+
import type { PaymentDetails, Source } from "./source";
|
4
|
+
import type { Region, Regions } from "./region";
|
5
|
+
import type { TransactionOperatorDetail, TransactionOperatorDetails } from "./transaction_operator_details";
|
6
|
+
import type { AccountList } from "./accountList";
|
7
|
+
import type { Address } from "./address";
|
8
|
+
import type { BankSource } from "./bank_source";
|
9
|
+
import type { BankTransaction } from "./bank_transaction";
|
10
|
+
import type { BankWidget } from "./bank_widget";
|
11
|
+
import type { BaseResponse } from "./base";
|
12
|
+
import type { Credential } from "./credential";
|
13
|
+
import { FirebaseError } from "./firebase_error";
|
14
|
+
import type { FirebaseRefreshToken } from "./firebase_refresh_token";
|
15
|
+
import type { FirebaseToken } from "./firebase_token";
|
16
|
+
import type { GuestCardLogin } from "./guest_card_login";
|
17
|
+
import type { Institution } from "./institution";
|
18
|
+
import type { IntegrityCheck } from "./integrity_check";
|
19
|
+
import type { KYCInfo } from "./kyc_info";
|
20
|
+
import type { Member } from "./member";
|
21
|
+
import type { OobCode } from "./oob";
|
22
|
+
import type { OperatorList } from "./operator_list";
|
23
|
+
import type { Partner } from "./partner";
|
24
|
+
import type { PredefinedAmount } from "./predefined_amount";
|
25
|
+
import { Prefill } from "./prefill";
|
26
|
+
import { QueriesError, QueriesResult } from "./queries_result";
|
27
|
+
import type { Registration } from "./registration";
|
28
|
+
import type SocialLoginState from "./social_login_state";
|
29
|
+
import type { Transaction, TransactionMode, TransactionType } from "./transaction";
|
30
|
+
import { TransactionHistory } from "./transaction_history";
|
31
|
+
import type { User } from "./user";
|
32
|
+
import type { UserLogin } from "./user_login";
|
33
|
+
import type { Verify } from "./verify";
|
34
|
+
import type { Widget } from "./widget";
|
35
|
+
import { BinValidation, CardBrand, CardType } from "./bin_validate";
|
36
|
+
import { Environment } from "./environment";
|
37
|
+
import { CredentialsPayload, OperatorCredentials } from "./operator_credentials";
|
38
|
+
import { CardTransactionResponse } from "./card_transaction_response";
|
39
|
+
import { BankTransactionResponse } from "./bank_transaction_response";
|
40
|
+
import { CustomerKYCStatus } from "./customer_kyc_status";
|
41
|
+
import { VerifyAmount } from "./verify_amount";
|
42
|
+
import { LastSelectedOperatorSignAndCreds } from "./last_saved_operator_credentials";
|
43
|
+
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, Regions, CardTransactionResponse, BankTransactionResponse, CustomerKYCStatus, VerifyAmount, LastSelectedOperatorSignAndCreds, };
|
package/dist/index.js
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
export interface Institution {
|
2
|
+
code: string;
|
3
|
+
name: string;
|
4
|
+
url: string;
|
5
|
+
medium_logo_url: string;
|
6
|
+
small_logo_url: string;
|
7
|
+
supports_account_identification: boolean;
|
8
|
+
supports_account_statement: boolean;
|
9
|
+
supports_account_verification: boolean;
|
10
|
+
supports_oauth: boolean;
|
11
|
+
supports_transaction_history: boolean;
|
12
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export interface FormItems {
|
2
|
+
label: string;
|
3
|
+
required: boolean;
|
4
|
+
}
|
5
|
+
export interface IntegrityCheck {
|
6
|
+
data: {
|
7
|
+
recognized: boolean;
|
8
|
+
attempts: number;
|
9
|
+
verification: {
|
10
|
+
emptySubmissionAllowed: boolean;
|
11
|
+
formItems: FormItems[];
|
12
|
+
};
|
13
|
+
};
|
14
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export interface KYCInfoAddress {
|
2
|
+
street?: string;
|
3
|
+
city?: string;
|
4
|
+
state?: string;
|
5
|
+
zip?: string;
|
6
|
+
}
|
7
|
+
export interface KYCInfo {
|
8
|
+
address?: KYCInfoAddress;
|
9
|
+
email?: string;
|
10
|
+
dob?: string;
|
11
|
+
ssnNumber?: string;
|
12
|
+
firstName?: string;
|
13
|
+
lastName?: string;
|
14
|
+
middleName?: string;
|
15
|
+
phoneNumber?: string;
|
16
|
+
}
|
package/dist/kyc_info.js
ADDED
package/dist/member.d.ts
ADDED
package/dist/member.js
ADDED
package/dist/oob.d.ts
ADDED
package/dist/oob.js
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
import { CardBrand, CardType } from "./bin_validate";
|
2
|
+
import { PredefinedAmount } from "./predefined_amount";
|
3
|
+
import { Prefill } from "./prefill";
|
4
|
+
import { TransactionType } from "./transaction";
|
5
|
+
export interface OperatorCredentials extends PaydalaOperator {
|
6
|
+
payload: CredentialsPayload | null;
|
7
|
+
}
|
8
|
+
interface PaydalaOperator {
|
9
|
+
client_id: string | null;
|
10
|
+
category_id: number | null;
|
11
|
+
region: string | null;
|
12
|
+
timestamp: string | null;
|
13
|
+
}
|
14
|
+
export interface CredentialsPayload {
|
15
|
+
/** A unique string to help identify transactions */
|
16
|
+
requestId: string;
|
17
|
+
/** A unique string to help identify customer */
|
18
|
+
customerId?: string;
|
19
|
+
/** Default amount sent by the operator */
|
20
|
+
predefinedAmount?: PredefinedAmount;
|
21
|
+
/** Predefined user information for KYC flow */
|
22
|
+
defaultUser?: Prefill;
|
23
|
+
/** the URL of the host application to enable OAuth redirection */
|
24
|
+
redirectUrl: string;
|
25
|
+
/** Should be true with using the `native-widget-sdk` */
|
26
|
+
isWebView?: boolean;
|
27
|
+
/** Should be true when using the `iframe-sdk` */
|
28
|
+
isiFrame?: boolean;
|
29
|
+
/** transaction type wether it's a deposit or a withdraw */
|
30
|
+
transactionType: TransactionType;
|
31
|
+
/** user flow depenedent configuration */
|
32
|
+
userFlow?: {
|
33
|
+
/** wether to disable login and registration flows for returning users */
|
34
|
+
guestOnly?: boolean;
|
35
|
+
/** DEPRECATED: custom card validations for deposit flow */
|
36
|
+
cardValidation?: {
|
37
|
+
/** which types of card are allowed for card transactions */
|
38
|
+
types?: CardType[];
|
39
|
+
/** which brands of card are allowed for card transactions */
|
40
|
+
brands?: CardBrand[];
|
41
|
+
};
|
42
|
+
};
|
43
|
+
}
|
44
|
+
export {};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export interface Partner {
|
2
|
+
blockedInstruments: {
|
3
|
+
card: {
|
4
|
+
disabled: boolean;
|
5
|
+
cards: {
|
6
|
+
type: "credit" | "debit";
|
7
|
+
brand: "visa" | "mastercard" | "amex" | "discover" | "diners" | "jcb" | "unionpay" | "mir"[];
|
8
|
+
}[];
|
9
|
+
};
|
10
|
+
bank: {
|
11
|
+
disabled: boolean;
|
12
|
+
banks: [];
|
13
|
+
};
|
14
|
+
};
|
15
|
+
partner: {
|
16
|
+
id: number;
|
17
|
+
company: string | null;
|
18
|
+
};
|
19
|
+
}
|
package/dist/partner.js
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
import { Environment } from "./environment";
|
2
|
+
import { OperatorCredentials } from "./operator_credentials";
|
3
|
+
import { TransactionOperatorDetail } from "./transaction_operator_details";
|
4
|
+
export interface Paydala extends PaydalaBasic {
|
5
|
+
/** Callback function when the Paydala session is finished */
|
6
|
+
onClose?: (data: OnPaydalaClose) => void;
|
7
|
+
onTransactionComplete?: (data: TransactionOperatorDetail) => void;
|
8
|
+
}
|
9
|
+
export interface OperatorSignAndCredentials {
|
10
|
+
sign: string | null;
|
11
|
+
credentials: OperatorCredentials | null;
|
12
|
+
clientId: string | null;
|
13
|
+
}
|
14
|
+
interface PaydalaBasic {
|
15
|
+
/** Operator configuration */
|
16
|
+
operatorCredentials: OperatorSignAndCredentials | null;
|
17
|
+
/** The application environment default value is `production`*/
|
18
|
+
environment: Environment;
|
19
|
+
}
|
20
|
+
export interface OnPaydalaClose extends PaydalaBasic {
|
21
|
+
/** List of all operations performed in the Paydala SDK */
|
22
|
+
txnDetails: TransactionOperatorDetail[];
|
23
|
+
}
|
24
|
+
export {};
|
package/dist/paydala.js
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
export interface PrefillAddress {
|
2
|
+
city: string;
|
3
|
+
region?: string;
|
4
|
+
postalCode: string;
|
5
|
+
street: string;
|
6
|
+
address: string;
|
7
|
+
extendedAddress?: string;
|
8
|
+
}
|
9
|
+
export interface Prefill {
|
10
|
+
address?: PrefillAddress;
|
11
|
+
email?: string;
|
12
|
+
dob?: string;
|
13
|
+
ssn?: string;
|
14
|
+
first_name?: string;
|
15
|
+
last_name?: string;
|
16
|
+
mid_name?: string;
|
17
|
+
phone?: string;
|
18
|
+
}
|
package/dist/prefill.js
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
import { KYCInfo } from "./kyc_info";
|
2
|
+
export interface KYCQuery extends Omit<KYCInfo, "address"> {
|
3
|
+
address: string;
|
4
|
+
addressStreet: string;
|
5
|
+
addressCity: string;
|
6
|
+
addressState: string;
|
7
|
+
addressZip: string;
|
8
|
+
}
|
9
|
+
type KYCKey = keyof KYCQuery;
|
10
|
+
export type QueriesError = {
|
11
|
+
[key in KYCKey]?: {
|
12
|
+
updateValidation?: {
|
13
|
+
max: string;
|
14
|
+
};
|
15
|
+
message?: string;
|
16
|
+
};
|
17
|
+
};
|
18
|
+
export interface QueriesResult {
|
19
|
+
active: boolean;
|
20
|
+
id: string;
|
21
|
+
query: string;
|
22
|
+
verified: Partial<KYCInfo>;
|
23
|
+
error?: QueriesError;
|
24
|
+
policyScore: string;
|
25
|
+
status: "pass" | "review" | "reject";
|
26
|
+
policyStatus: "pass" | "reject";
|
27
|
+
created: string;
|
28
|
+
compliance?: {
|
29
|
+
success: false;
|
30
|
+
message: string;
|
31
|
+
};
|
32
|
+
}
|
33
|
+
export {};
|
package/dist/region.d.ts
ADDED
package/dist/region.js
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
import { FirebaseToken } from "./firebase_token";
|
2
|
+
interface SocialLoginState {
|
3
|
+
active: boolean;
|
4
|
+
provider?: "google" | "facebook";
|
5
|
+
providerId?: 1 | 3;
|
6
|
+
state?: "register" | "login";
|
7
|
+
temporaryToken?: FirebaseToken | null;
|
8
|
+
}
|
9
|
+
export default SocialLoginState;
|
package/dist/source.d.ts
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
export interface PaymentDetails {
|
2
|
+
source: string;
|
3
|
+
source_id: number;
|
4
|
+
payment_type: string;
|
5
|
+
location?: string | undefined;
|
6
|
+
balance?: number;
|
7
|
+
cardNo?: string;
|
8
|
+
cardId?: string;
|
9
|
+
logo?: string;
|
10
|
+
zip?: string;
|
11
|
+
name?: string;
|
12
|
+
accountType: string;
|
13
|
+
accountNo?: string;
|
14
|
+
}
|
15
|
+
export interface Logos {
|
16
|
+
paydala?: string;
|
17
|
+
mastercard?: string;
|
18
|
+
american_express?: string;
|
19
|
+
visa?: string;
|
20
|
+
}
|
21
|
+
export interface Source {
|
22
|
+
balance: number;
|
23
|
+
pymt_details: PaymentDetails[];
|
24
|
+
pref_source: number;
|
25
|
+
logos: Logos;
|
26
|
+
}
|
package/dist/source.js
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { BankTransaction } from "./bank_transaction";
|
2
|
+
import type { CardTransaction } from "./card_transaction";
|
3
|
+
export type TransactionMode = "bank" | "card" | "wallet";
|
4
|
+
export type TransactionType = "deposit" | "withdraw" | "fundForDeposit" | "fund" | "oneTimeWithdraw";
|
5
|
+
export interface Transaction {
|
6
|
+
card?: CardTransaction;
|
7
|
+
bank?: BankTransaction;
|
8
|
+
activeAmount: string;
|
9
|
+
fundForDepositBalanceAmount?: number;
|
10
|
+
totalAmountToDeposit: string;
|
11
|
+
currency: string | "usd";
|
12
|
+
amountDeposited?: string;
|
13
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export interface AccountDetail {
|
2
|
+
label?: string;
|
3
|
+
name: string;
|
4
|
+
number: string;
|
5
|
+
id: number;
|
6
|
+
type: string;
|
7
|
+
imageURL?: string;
|
8
|
+
}
|
9
|
+
export interface TransactionDetail {
|
10
|
+
transactionTime: string;
|
11
|
+
transactionId: string;
|
12
|
+
from: AccountDetail;
|
13
|
+
to: AccountDetail;
|
14
|
+
amount: number;
|
15
|
+
type: string;
|
16
|
+
}
|
17
|
+
export interface Logos {
|
18
|
+
paydala: string;
|
19
|
+
mastercard: string;
|
20
|
+
american_express: string;
|
21
|
+
visa: string;
|
22
|
+
}
|
23
|
+
export interface TransactionHistoryResult {
|
24
|
+
userTotal: number;
|
25
|
+
user: Array<TransactionDetail>;
|
26
|
+
logos: Logos;
|
27
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export interface TransactionOperatorDetail {
|
2
|
+
refType: number;
|
3
|
+
status: string;
|
4
|
+
currencyId: number;
|
5
|
+
amount: number;
|
6
|
+
timeStamp: string;
|
7
|
+
txnRef: string | null;
|
8
|
+
}
|
9
|
+
export interface TransactionOperatorDetails {
|
10
|
+
txnDetails: TransactionOperatorDetail[];
|
11
|
+
}
|
package/dist/user.d.ts
ADDED
package/dist/user.js
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
export interface UserLogin {
|
2
|
+
user: {
|
3
|
+
kyc: {
|
4
|
+
address: string;
|
5
|
+
street: string;
|
6
|
+
city: string;
|
7
|
+
state: string;
|
8
|
+
zip: string;
|
9
|
+
email: string;
|
10
|
+
first_name: string;
|
11
|
+
last_name: string;
|
12
|
+
mid_name?: string;
|
13
|
+
mob_no: string;
|
14
|
+
qual_id: number;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
}
|
package/dist/verify.d.ts
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
interface VerifyItem {
|
2
|
+
valid: boolean;
|
3
|
+
message: string | null;
|
4
|
+
}
|
5
|
+
export interface Verify {
|
6
|
+
paydala: {
|
7
|
+
score: number;
|
8
|
+
partner_threshold: number;
|
9
|
+
city?: VerifyItem;
|
10
|
+
first_name?: VerifyItem;
|
11
|
+
last_name?: VerifyItem;
|
12
|
+
mid_name?: VerifyItem;
|
13
|
+
email?: VerifyItem;
|
14
|
+
postalCode?: VerifyItem;
|
15
|
+
region?: VerifyItem;
|
16
|
+
street?: VerifyItem;
|
17
|
+
street_num?: VerifyItem;
|
18
|
+
verified?: boolean;
|
19
|
+
} | null;
|
20
|
+
}
|
21
|
+
export {};
|
package/dist/verify.js
ADDED
package/dist/widget.d.ts
ADDED
package/dist/widget.js
ADDED