@soltech/fluid-common 0.2.0 → 0.2.2
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/lib/index.d.ts +26 -1
- package/lib/index.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +32 -6
package/lib/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export interface WalletConfig {
|
|
|
36
36
|
logo: string;
|
|
37
37
|
suggestedDepositAmounts: number[];
|
|
38
38
|
theme: Record<string, string>;
|
|
39
|
+
integration: Integration;
|
|
39
40
|
}
|
|
40
41
|
export interface WalletConfigParams {
|
|
41
42
|
contentText: Record<string, ContentType>;
|
|
@@ -55,16 +56,25 @@ export interface PaymentMethod {
|
|
|
55
56
|
maxAmount: number;
|
|
56
57
|
info: string;
|
|
57
58
|
paymentType: PaymentType;
|
|
59
|
+
providerType: string;
|
|
60
|
+
inputFields?: InputField[];
|
|
61
|
+
}
|
|
62
|
+
export interface InputField {
|
|
63
|
+
paramName: string;
|
|
64
|
+
format: string;
|
|
65
|
+
text: string;
|
|
66
|
+
placeholderText: string;
|
|
58
67
|
}
|
|
59
68
|
export interface RecentMethod extends PaymentMethod {
|
|
60
69
|
accountId: string;
|
|
61
70
|
maskedAccount: string;
|
|
62
71
|
lastSuccess: string;
|
|
72
|
+
expiryDate: string;
|
|
63
73
|
}
|
|
64
74
|
export interface TransactionParams {
|
|
65
75
|
accountId?: string;
|
|
66
76
|
amount: number;
|
|
67
|
-
|
|
77
|
+
providerType: string;
|
|
68
78
|
preventCancelWithdrawal?: boolean;
|
|
69
79
|
service?: string;
|
|
70
80
|
storeAccount?: boolean;
|
|
@@ -77,11 +87,25 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
77
87
|
expiryYear?: string;
|
|
78
88
|
}
|
|
79
89
|
export interface BankTransferTransactionParams extends TransactionParams {
|
|
90
|
+
accountName?: string;
|
|
80
91
|
accountNumber?: string;
|
|
92
|
+
accountType?: string;
|
|
93
|
+
bankCode?: string;
|
|
81
94
|
bankName?: string;
|
|
95
|
+
beneficiaryCity?: string;
|
|
96
|
+
beneficiaryCountry?: string;
|
|
97
|
+
beneficiaryName?: string;
|
|
98
|
+
beneficiaryState?: string;
|
|
99
|
+
beneficiaryStreet?: string;
|
|
100
|
+
beneficiaryZip?: string;
|
|
82
101
|
bic?: string;
|
|
83
102
|
branchAddress?: string;
|
|
103
|
+
branchCode?: string;
|
|
84
104
|
branchName?: string;
|
|
105
|
+
clearingNumber?: string;
|
|
106
|
+
countryCode?: string;
|
|
107
|
+
iban?: string;
|
|
108
|
+
nationalId?: string;
|
|
85
109
|
}
|
|
86
110
|
export interface DigitalWalletTransactionParams extends TransactionParams {
|
|
87
111
|
email?: string;
|
|
@@ -109,6 +133,7 @@ export declare enum TransactionState {
|
|
|
109
133
|
SUCCESS = "SUCCESS",
|
|
110
134
|
FAIL = "FAIL",
|
|
111
135
|
PROCESSING = "PROCESSING",
|
|
136
|
+
WAITING_APPROVAL = "WAITING_APPROVAL",
|
|
112
137
|
WAITING_INPUT = "WAITING_INPUT"
|
|
113
138
|
}
|
|
114
139
|
export interface ProviderTransactionError {
|
package/lib/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export var TransactionState;
|
|
|
29
29
|
TransactionState["SUCCESS"] = "SUCCESS";
|
|
30
30
|
TransactionState["FAIL"] = "FAIL";
|
|
31
31
|
TransactionState["PROCESSING"] = "PROCESSING";
|
|
32
|
+
TransactionState["WAITING_APPROVAL"] = "WAITING_APPROVAL";
|
|
32
33
|
TransactionState["WAITING_INPUT"] = "WAITING_INPUT";
|
|
33
34
|
})(TransactionState || (TransactionState = {}));
|
|
34
35
|
export var ErrorAction;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -43,6 +43,7 @@ export interface WalletConfig {
|
|
|
43
43
|
logo: string;
|
|
44
44
|
suggestedDepositAmounts: number[];
|
|
45
45
|
theme: Record<string, string>;
|
|
46
|
+
integration: Integration;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
export interface WalletConfigParams {
|
|
@@ -65,18 +66,28 @@ export interface PaymentMethod {
|
|
|
65
66
|
maxAmount: number;
|
|
66
67
|
info: string;
|
|
67
68
|
paymentType: PaymentType;
|
|
69
|
+
providerType: string;
|
|
70
|
+
inputFields?: InputField[];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface InputField {
|
|
74
|
+
paramName: string;
|
|
75
|
+
format: string;
|
|
76
|
+
text: string;
|
|
77
|
+
placeholderText: string;
|
|
68
78
|
}
|
|
69
79
|
|
|
70
80
|
export interface RecentMethod extends PaymentMethod {
|
|
71
81
|
accountId: string;
|
|
72
82
|
maskedAccount: string;
|
|
73
83
|
lastSuccess: string;
|
|
84
|
+
expiryDate: string;
|
|
74
85
|
}
|
|
75
86
|
|
|
76
87
|
export interface TransactionParams {
|
|
77
88
|
accountId?: string;
|
|
78
89
|
amount: number;
|
|
79
|
-
|
|
90
|
+
providerType: string;
|
|
80
91
|
preventCancelWithdrawal?: boolean;
|
|
81
92
|
service?: string;
|
|
82
93
|
storeAccount?: boolean;
|
|
@@ -91,11 +102,25 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
91
102
|
}
|
|
92
103
|
|
|
93
104
|
export interface BankTransferTransactionParams extends TransactionParams {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
105
|
+
accountName?: string;
|
|
106
|
+
accountNumber?: string;
|
|
107
|
+
accountType?: string;
|
|
108
|
+
bankCode?: string;
|
|
109
|
+
bankName?: string;
|
|
110
|
+
beneficiaryCity?: string;
|
|
111
|
+
beneficiaryCountry?: string;
|
|
112
|
+
beneficiaryName?: string;
|
|
113
|
+
beneficiaryState?: string;
|
|
114
|
+
beneficiaryStreet?: string;
|
|
115
|
+
beneficiaryZip?: string;
|
|
116
|
+
bic?: string;
|
|
117
|
+
branchAddress?: string;
|
|
118
|
+
branchCode?: string;
|
|
119
|
+
branchName?: string;
|
|
120
|
+
clearingNumber?: string;
|
|
121
|
+
countryCode?: string;
|
|
122
|
+
iban?: string;
|
|
123
|
+
nationalId?: string;
|
|
99
124
|
}
|
|
100
125
|
|
|
101
126
|
export interface DigitalWalletTransactionParams extends TransactionParams {
|
|
@@ -128,6 +153,7 @@ export enum TransactionState {
|
|
|
128
153
|
SUCCESS = 'SUCCESS',
|
|
129
154
|
FAIL = 'FAIL',
|
|
130
155
|
PROCESSING = 'PROCESSING',
|
|
156
|
+
WAITING_APPROVAL = 'WAITING_APPROVAL',
|
|
131
157
|
WAITING_INPUT = 'WAITING_INPUT'
|
|
132
158
|
}
|
|
133
159
|
|