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