@soltech/fluid-common 0.3.0 → 0.3.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/lib/index.d.ts +24 -1
- package/lib/index.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +30 -6
package/lib/index.d.ts
CHANGED
|
@@ -56,6 +56,14 @@ export interface PaymentMethod {
|
|
|
56
56
|
maxAmount: number;
|
|
57
57
|
info: string;
|
|
58
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;
|
|
59
67
|
}
|
|
60
68
|
export interface RecentMethod extends PaymentMethod {
|
|
61
69
|
accountId: string;
|
|
@@ -66,7 +74,7 @@ export interface RecentMethod extends PaymentMethod {
|
|
|
66
74
|
export interface TransactionParams {
|
|
67
75
|
accountId?: string;
|
|
68
76
|
amount: number;
|
|
69
|
-
|
|
77
|
+
providerType: string;
|
|
70
78
|
preventCancelWithdrawal?: boolean;
|
|
71
79
|
service?: string;
|
|
72
80
|
storeAccount?: boolean;
|
|
@@ -79,11 +87,25 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
79
87
|
expiryYear?: string;
|
|
80
88
|
}
|
|
81
89
|
export interface BankTransferTransactionParams extends TransactionParams {
|
|
90
|
+
accountName?: string;
|
|
82
91
|
accountNumber?: string;
|
|
92
|
+
accountType?: string;
|
|
93
|
+
bankCode?: string;
|
|
83
94
|
bankName?: string;
|
|
95
|
+
beneficiaryCity?: string;
|
|
96
|
+
beneficiaryCountry?: string;
|
|
97
|
+
beneficiaryName?: string;
|
|
98
|
+
beneficiaryState?: string;
|
|
99
|
+
beneficiaryStreet?: string;
|
|
100
|
+
beneficiaryZip?: string;
|
|
84
101
|
bic?: string;
|
|
85
102
|
branchAddress?: string;
|
|
103
|
+
branchCode?: string;
|
|
86
104
|
branchName?: string;
|
|
105
|
+
clearingNumber?: string;
|
|
106
|
+
countryCode?: string;
|
|
107
|
+
iban?: string;
|
|
108
|
+
nationalId?: string;
|
|
87
109
|
}
|
|
88
110
|
export interface DigitalWalletTransactionParams extends TransactionParams {
|
|
89
111
|
email?: string;
|
|
@@ -111,6 +133,7 @@ export declare enum TransactionState {
|
|
|
111
133
|
SUCCESS = "SUCCESS",
|
|
112
134
|
FAIL = "FAIL",
|
|
113
135
|
PROCESSING = "PROCESSING",
|
|
136
|
+
WAITING_APPROVAL = "WAITING_APPROVAL",
|
|
114
137
|
WAITING_INPUT = "WAITING_INPUT"
|
|
115
138
|
}
|
|
116
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
|
@@ -66,6 +66,15 @@ export interface PaymentMethod {
|
|
|
66
66
|
maxAmount: number;
|
|
67
67
|
info: string;
|
|
68
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;
|
|
69
78
|
}
|
|
70
79
|
|
|
71
80
|
export interface RecentMethod extends PaymentMethod {
|
|
@@ -78,7 +87,7 @@ export interface RecentMethod extends PaymentMethod {
|
|
|
78
87
|
export interface TransactionParams {
|
|
79
88
|
accountId?: string;
|
|
80
89
|
amount: number;
|
|
81
|
-
|
|
90
|
+
providerType: string;
|
|
82
91
|
preventCancelWithdrawal?: boolean;
|
|
83
92
|
service?: string;
|
|
84
93
|
storeAccount?: boolean;
|
|
@@ -93,11 +102,25 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
93
102
|
}
|
|
94
103
|
|
|
95
104
|
export interface BankTransferTransactionParams extends TransactionParams {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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;
|
|
101
124
|
}
|
|
102
125
|
|
|
103
126
|
export interface DigitalWalletTransactionParams extends TransactionParams {
|
|
@@ -130,6 +153,7 @@ export enum TransactionState {
|
|
|
130
153
|
SUCCESS = 'SUCCESS',
|
|
131
154
|
FAIL = 'FAIL',
|
|
132
155
|
PROCESSING = 'PROCESSING',
|
|
156
|
+
WAITING_APPROVAL = 'WAITING_APPROVAL',
|
|
133
157
|
WAITING_INPUT = 'WAITING_INPUT'
|
|
134
158
|
}
|
|
135
159
|
|