@soltech/fluid-common 1.9.2-sc23265.0 → 1.9.2-sc23265.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 +4 -1
- package/package.json +1 -1
- package/src/index.ts +7 -2
package/lib/index.d.ts
CHANGED
|
@@ -114,9 +114,12 @@ export interface DepositAmountsSettings {
|
|
|
114
114
|
defaultDepositAmount: number;
|
|
115
115
|
suggestedDepositAmounts: number[];
|
|
116
116
|
}
|
|
117
|
+
export type TransactionStatusSource = 'gateway' | 'fluid';
|
|
117
118
|
export interface TransactionStatusCheck {
|
|
118
119
|
url: string;
|
|
119
120
|
intervalSeconds: number;
|
|
121
|
+
/** Who answers the poll. Absent on wallets served by an API that predates this field. */
|
|
122
|
+
source?: TransactionStatusSource;
|
|
120
123
|
}
|
|
121
124
|
export interface AllPaymentMethods {
|
|
122
125
|
recentPaymentMethods: RecentMethod[];
|
|
@@ -238,7 +241,7 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
238
241
|
expiryYear?: string;
|
|
239
242
|
expiryDate?: string;
|
|
240
243
|
cardToken?: string;
|
|
241
|
-
|
|
244
|
+
protectionHeaders?: Record<string, string>;
|
|
242
245
|
}
|
|
243
246
|
/**
|
|
244
247
|
* Transaction params for any payment method whose payload is keyed dynamically:
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -129,9 +129,13 @@ export interface DepositAmountsSettings {
|
|
|
129
129
|
suggestedDepositAmounts: number[];
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
+
export type TransactionStatusSource = 'gateway' | 'fluid';
|
|
133
|
+
|
|
132
134
|
export interface TransactionStatusCheck {
|
|
133
135
|
url: string;
|
|
134
136
|
intervalSeconds: number;
|
|
137
|
+
/** Who answers the poll. Absent on wallets served by an API that predates this field. */
|
|
138
|
+
source?: TransactionStatusSource;
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
export interface AllPaymentMethods {
|
|
@@ -275,8 +279,9 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
275
279
|
expiryDate?: string;
|
|
276
280
|
// Set instead of cardNumber when the gateway tokenised the card in the browser.
|
|
277
281
|
cardToken?: string;
|
|
278
|
-
// Device
|
|
279
|
-
|
|
282
|
+
// Device and session signals the gateway's own form collected, which its fraud scoring
|
|
283
|
+
// needs on the charge. Opaque: the client passes them through and never interprets them.
|
|
284
|
+
protectionHeaders?: Record<string, string>;
|
|
280
285
|
}
|
|
281
286
|
|
|
282
287
|
/**
|