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