@soltech/fluid-common 0.1.19 → 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 -28
- package/lib/index.js +6 -0
- package/package.json +1 -1
- package/src/index.ts +12 -35
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,19 +55,6 @@ 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;
|
|
@@ -72,7 +64,7 @@ export interface RecentMethod extends PaymentMethod {
|
|
|
72
64
|
export interface TransactionParams {
|
|
73
65
|
accountId?: string;
|
|
74
66
|
amount: number;
|
|
75
|
-
|
|
67
|
+
paymentType: string;
|
|
76
68
|
preventCancelWithdrawal?: boolean;
|
|
77
69
|
service?: string;
|
|
78
70
|
storeAccount?: boolean;
|
|
@@ -85,25 +77,11 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
85
77
|
expiryYear?: string;
|
|
86
78
|
}
|
|
87
79
|
export interface BankTransferTransactionParams extends TransactionParams {
|
|
88
|
-
accountName?: string;
|
|
89
80
|
accountNumber?: string;
|
|
90
|
-
accountType?: string;
|
|
91
|
-
bankCode?: string;
|
|
92
81
|
bankName?: string;
|
|
93
|
-
beneficiaryCity?: string;
|
|
94
|
-
beneficiaryCountry?: string;
|
|
95
|
-
beneficiaryName?: string;
|
|
96
|
-
beneficiaryState?: string;
|
|
97
|
-
beneficiaryStreet?: string;
|
|
98
|
-
beneficiaryZip?: string;
|
|
99
82
|
bic?: string;
|
|
100
83
|
branchAddress?: string;
|
|
101
|
-
branchCode?: string;
|
|
102
84
|
branchName?: string;
|
|
103
|
-
clearingNumber?: string;
|
|
104
|
-
countryCode?: string;
|
|
105
|
-
iban?: string;
|
|
106
|
-
nationalId?: string;
|
|
107
85
|
}
|
|
108
86
|
export interface DigitalWalletTransactionParams extends TransactionParams {
|
|
109
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,21 +65,6 @@ 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 {
|
|
@@ -85,7 +76,7 @@ export interface RecentMethod extends PaymentMethod {
|
|
|
85
76
|
export interface TransactionParams {
|
|
86
77
|
accountId?: string;
|
|
87
78
|
amount: number;
|
|
88
|
-
|
|
79
|
+
paymentType: string;
|
|
89
80
|
preventCancelWithdrawal?: boolean;
|
|
90
81
|
service?: string;
|
|
91
82
|
storeAccount?: boolean;
|
|
@@ -100,25 +91,11 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
100
91
|
}
|
|
101
92
|
|
|
102
93
|
export interface BankTransferTransactionParams extends TransactionParams {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
beneficiaryCity?: string;
|
|
109
|
-
beneficiaryCountry?: string;
|
|
110
|
-
beneficiaryName?: string;
|
|
111
|
-
beneficiaryState?: string;
|
|
112
|
-
beneficiaryStreet?: string;
|
|
113
|
-
beneficiaryZip?: string;
|
|
114
|
-
bic?: string;
|
|
115
|
-
branchAddress?: string;
|
|
116
|
-
branchCode?: string;
|
|
117
|
-
branchName?: string;
|
|
118
|
-
clearingNumber?: string;
|
|
119
|
-
countryCode?: string;
|
|
120
|
-
iban?: string;
|
|
121
|
-
nationalId?: string;
|
|
94
|
+
accountNumber?: string;
|
|
95
|
+
bankName?: string;
|
|
96
|
+
bic?: string;
|
|
97
|
+
branchAddress?: string;
|
|
98
|
+
branchName?: string;
|
|
122
99
|
}
|
|
123
100
|
|
|
124
101
|
export interface DigitalWalletTransactionParams extends TransactionParams {
|