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