@soltech/fluid-common 1.6.21 → 1.6.23
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 +8 -41
- package/package.json +1 -1
- package/src/index.ts +8 -45
package/lib/index.d.ts
CHANGED
|
@@ -213,49 +213,16 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
213
213
|
expiryYear?: string;
|
|
214
214
|
expiryDate?: string;
|
|
215
215
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
beneficiaryName?: string;
|
|
225
|
-
beneficiaryState?: string;
|
|
226
|
-
beneficiaryStreet?: string;
|
|
227
|
-
beneficiaryZip?: string;
|
|
228
|
-
bic?: string;
|
|
229
|
-
branchAddress?: string;
|
|
230
|
-
branchCode?: string;
|
|
231
|
-
branchName?: string;
|
|
232
|
-
clearingNumber?: string;
|
|
233
|
-
countryCode?: string;
|
|
234
|
-
iban?: string;
|
|
235
|
-
nationalId?: string;
|
|
236
|
-
documentType?: string;
|
|
237
|
-
documentNumber?: string;
|
|
238
|
-
}
|
|
239
|
-
export interface CryptoTransactionParams extends TransactionParams {
|
|
240
|
-
cryptoCurrency?: string;
|
|
241
|
-
destinationTag?: string;
|
|
242
|
-
walletAddress?: string;
|
|
243
|
-
}
|
|
244
|
-
export interface EWalletTransactionParams extends TransactionParams {
|
|
245
|
-
customerNumber?: string;
|
|
246
|
-
email?: string;
|
|
247
|
-
mobile?: string;
|
|
248
|
-
phoneNumber?: string;
|
|
249
|
-
service?: string;
|
|
250
|
-
beneficiaryName?: string;
|
|
251
|
-
userAccountId?: string;
|
|
252
|
-
}
|
|
253
|
-
export interface VoucherTransactionParams extends TransactionParams {
|
|
216
|
+
/**
|
|
217
|
+
* Transaction params for any payment method whose payload is keyed dynamically:
|
|
218
|
+
* - CMS-defined input fields (bank transfer, crypto, e-wallet, voucher).
|
|
219
|
+
* - Native flows like Apple Pay where the gateway-bound `token` is the only
|
|
220
|
+
* extra key beyond the base TransactionParams.
|
|
221
|
+
* Field keys typically come from `PaymentMethod.inputFields[].paramName`.
|
|
222
|
+
*/
|
|
223
|
+
export interface DynamicTransactionParams extends TransactionParams {
|
|
254
224
|
[key: string]: string | number | undefined;
|
|
255
225
|
}
|
|
256
|
-
export interface ApplePayTransactionParams extends TransactionParams {
|
|
257
|
-
token?: string;
|
|
258
|
-
}
|
|
259
226
|
export interface TransactionOptions {
|
|
260
227
|
bonusCode?: string;
|
|
261
228
|
activityId?: string;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -242,54 +242,17 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
242
242
|
expiryDate?: string;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
beneficiaryName?: string;
|
|
254
|
-
beneficiaryState?: string;
|
|
255
|
-
beneficiaryStreet?: string;
|
|
256
|
-
beneficiaryZip?: string;
|
|
257
|
-
bic?: string;
|
|
258
|
-
branchAddress?: string;
|
|
259
|
-
branchCode?: string;
|
|
260
|
-
branchName?: string;
|
|
261
|
-
clearingNumber?: string;
|
|
262
|
-
countryCode?: string;
|
|
263
|
-
iban?: string;
|
|
264
|
-
nationalId?: string;
|
|
265
|
-
documentType?: string;
|
|
266
|
-
documentNumber?: string;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
export interface CryptoTransactionParams extends TransactionParams {
|
|
270
|
-
cryptoCurrency?: string;
|
|
271
|
-
destinationTag?: string;
|
|
272
|
-
walletAddress?: string;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
export interface EWalletTransactionParams extends TransactionParams {
|
|
276
|
-
customerNumber?: string;
|
|
277
|
-
email?: string;
|
|
278
|
-
mobile?: string;
|
|
279
|
-
phoneNumber?: string;
|
|
280
|
-
service?: string;
|
|
281
|
-
beneficiaryName?: string;
|
|
282
|
-
userAccountId?: string;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export interface VoucherTransactionParams extends TransactionParams {
|
|
245
|
+
/**
|
|
246
|
+
* Transaction params for any payment method whose payload is keyed dynamically:
|
|
247
|
+
* - CMS-defined input fields (bank transfer, crypto, e-wallet, voucher).
|
|
248
|
+
* - Native flows like Apple Pay where the gateway-bound `token` is the only
|
|
249
|
+
* extra key beyond the base TransactionParams.
|
|
250
|
+
* Field keys typically come from `PaymentMethod.inputFields[].paramName`.
|
|
251
|
+
*/
|
|
252
|
+
export interface DynamicTransactionParams extends TransactionParams {
|
|
286
253
|
[key: string]: string | number | undefined;
|
|
287
254
|
}
|
|
288
255
|
|
|
289
|
-
export interface ApplePayTransactionParams extends TransactionParams {
|
|
290
|
-
token?: string;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
256
|
export interface TransactionOptions {
|
|
294
257
|
bonusCode?: string;
|
|
295
258
|
activityId?: string;
|