@soltech/fluid-common 0.1.20 → 0.2.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 +6 -29
- package/lib/index.js +6 -0
- package/package.json +1 -1
- package/src/index.ts +12 -36
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export declare enum Integration {
|
|
2
|
+
LEFT = "LEFT",
|
|
3
|
+
RIGHT = "RIGHT",
|
|
4
|
+
INLINE = "INLINE"
|
|
5
|
+
}
|
|
1
6
|
export declare enum ContentType {
|
|
2
7
|
PLAIN_TEXT = "PLAIN_TEXT",
|
|
3
8
|
HTML = "HTML"
|
|
@@ -50,30 +55,16 @@ export interface PaymentMethod {
|
|
|
50
55
|
maxAmount: number;
|
|
51
56
|
info: string;
|
|
52
57
|
paymentType: PaymentType;
|
|
53
|
-
providerType: string;
|
|
54
|
-
inputFields?: InputField[];
|
|
55
|
-
}
|
|
56
|
-
export interface ProviderTypeInput {
|
|
57
|
-
name: string;
|
|
58
|
-
providerType: string;
|
|
59
|
-
inputFields: InputField[];
|
|
60
|
-
}
|
|
61
|
-
export interface InputField {
|
|
62
|
-
paramName: string;
|
|
63
|
-
format: string;
|
|
64
|
-
text: string;
|
|
65
|
-
placeholderText: string;
|
|
66
58
|
}
|
|
67
59
|
export interface RecentMethod extends PaymentMethod {
|
|
68
60
|
accountId: string;
|
|
69
61
|
maskedAccount: string;
|
|
70
62
|
lastSuccess: string;
|
|
71
|
-
expiryDate: string;
|
|
72
63
|
}
|
|
73
64
|
export interface TransactionParams {
|
|
74
65
|
accountId?: string;
|
|
75
66
|
amount: number;
|
|
76
|
-
|
|
67
|
+
paymentType: string;
|
|
77
68
|
preventCancelWithdrawal?: boolean;
|
|
78
69
|
service?: string;
|
|
79
70
|
storeAccount?: boolean;
|
|
@@ -86,25 +77,11 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
86
77
|
expiryYear?: string;
|
|
87
78
|
}
|
|
88
79
|
export interface BankTransferTransactionParams extends TransactionParams {
|
|
89
|
-
accountName?: string;
|
|
90
80
|
accountNumber?: string;
|
|
91
|
-
accountType?: string;
|
|
92
|
-
bankCode?: string;
|
|
93
81
|
bankName?: string;
|
|
94
|
-
beneficiaryCity?: string;
|
|
95
|
-
beneficiaryCountry?: string;
|
|
96
|
-
beneficiaryName?: string;
|
|
97
|
-
beneficiaryState?: string;
|
|
98
|
-
beneficiaryStreet?: string;
|
|
99
|
-
beneficiaryZip?: string;
|
|
100
82
|
bic?: string;
|
|
101
83
|
branchAddress?: string;
|
|
102
|
-
branchCode?: string;
|
|
103
84
|
branchName?: string;
|
|
104
|
-
clearingNumber?: string;
|
|
105
|
-
countryCode?: string;
|
|
106
|
-
iban?: string;
|
|
107
|
-
nationalId?: string;
|
|
108
85
|
}
|
|
109
86
|
export interface DigitalWalletTransactionParams extends TransactionParams {
|
|
110
87
|
email?: string;
|
package/lib/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export var Integration;
|
|
2
|
+
(function (Integration) {
|
|
3
|
+
Integration["LEFT"] = "LEFT";
|
|
4
|
+
Integration["RIGHT"] = "RIGHT";
|
|
5
|
+
Integration["INLINE"] = "INLINE";
|
|
6
|
+
})(Integration || (Integration = {}));
|
|
1
7
|
export var ContentType;
|
|
2
8
|
(function (ContentType) {
|
|
3
9
|
ContentType["PLAIN_TEXT"] = "PLAIN_TEXT";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
|
|
2
|
+
export enum Integration {
|
|
3
|
+
LEFT = 'LEFT',
|
|
4
|
+
RIGHT = 'RIGHT',
|
|
5
|
+
INLINE = 'INLINE'
|
|
6
|
+
}
|
|
7
|
+
|
|
2
8
|
export enum ContentType {
|
|
3
9
|
PLAIN_TEXT = 'PLAIN_TEXT',
|
|
4
10
|
HTML = 'HTML'
|
|
@@ -59,34 +65,18 @@ export interface PaymentMethod {
|
|
|
59
65
|
maxAmount: number;
|
|
60
66
|
info: string;
|
|
61
67
|
paymentType: PaymentType;
|
|
62
|
-
providerType: string;
|
|
63
|
-
inputFields?: InputField[];
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface ProviderTypeInput {
|
|
67
|
-
name: string;
|
|
68
|
-
providerType: string;
|
|
69
|
-
inputFields: InputField[];
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface InputField {
|
|
73
|
-
paramName: string;
|
|
74
|
-
format: string;
|
|
75
|
-
text: string;
|
|
76
|
-
placeholderText: string;
|
|
77
68
|
}
|
|
78
69
|
|
|
79
70
|
export interface RecentMethod extends PaymentMethod {
|
|
80
71
|
accountId: string;
|
|
81
72
|
maskedAccount: string;
|
|
82
73
|
lastSuccess: string;
|
|
83
|
-
expiryDate: string;
|
|
84
74
|
}
|
|
85
75
|
|
|
86
76
|
export interface TransactionParams {
|
|
87
77
|
accountId?: string;
|
|
88
78
|
amount: number;
|
|
89
|
-
|
|
79
|
+
paymentType: string;
|
|
90
80
|
preventCancelWithdrawal?: boolean;
|
|
91
81
|
service?: string;
|
|
92
82
|
storeAccount?: boolean;
|
|
@@ -101,25 +91,11 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
101
91
|
}
|
|
102
92
|
|
|
103
93
|
export interface BankTransferTransactionParams extends TransactionParams {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
beneficiaryCity?: string;
|
|
110
|
-
beneficiaryCountry?: string;
|
|
111
|
-
beneficiaryName?: string;
|
|
112
|
-
beneficiaryState?: string;
|
|
113
|
-
beneficiaryStreet?: string;
|
|
114
|
-
beneficiaryZip?: string;
|
|
115
|
-
bic?: string;
|
|
116
|
-
branchAddress?: string;
|
|
117
|
-
branchCode?: string;
|
|
118
|
-
branchName?: string;
|
|
119
|
-
clearingNumber?: string;
|
|
120
|
-
countryCode?: string;
|
|
121
|
-
iban?: string;
|
|
122
|
-
nationalId?: string;
|
|
94
|
+
accountNumber?: string;
|
|
95
|
+
bankName?: string;
|
|
96
|
+
bic?: string;
|
|
97
|
+
branchAddress?: string;
|
|
98
|
+
branchName?: string;
|
|
123
99
|
}
|
|
124
100
|
|
|
125
101
|
export interface DigitalWalletTransactionParams extends TransactionParams {
|