@soltech/fluid-common 1.12.0 → 1.12.1-sc23268.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/.claude/settings.local.json +7 -0
- package/lib/payment-methods.d.ts +1 -0
- package/lib/transactions.d.ts +6 -0
- package/lib/transactions.js +4 -0
- package/lib/wallet-config-keys.d.ts +2 -0
- package/lib/wallet-config-keys.js +2 -0
- package/package.json +1 -1
- package/src/payment-methods.ts +2 -0
- package/src/transactions.ts +7 -0
- package/src/wallet-config-keys.ts +2 -0
package/lib/payment-methods.d.ts
CHANGED
package/lib/transactions.d.ts
CHANGED
|
@@ -73,6 +73,8 @@ export interface DepositContinuationParams {
|
|
|
73
73
|
protectionHeaders?: Record<string, string>;
|
|
74
74
|
/** A credential: carried on the challenge and handed back, never logged. */
|
|
75
75
|
sessionKey?: string;
|
|
76
|
+
/** The stored method the purchase began on, so the concluding charge keeps its endpoint. */
|
|
77
|
+
accountId?: string;
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
78
80
|
* Transaction params for any payment method whose payload is keyed dynamically by
|
|
@@ -108,8 +110,12 @@ export interface RedirectOutput {
|
|
|
108
110
|
sizeUnit?: string;
|
|
109
111
|
url: string;
|
|
110
112
|
width?: number;
|
|
113
|
+
purpose?: RedirectPurpose;
|
|
111
114
|
}
|
|
112
115
|
export type RedirectContainer = 'iframe' | 'window' | 'redirect';
|
|
116
|
+
export declare enum RedirectPurpose {
|
|
117
|
+
BANK_LINKING = "BANK_LINKING"
|
|
118
|
+
}
|
|
113
119
|
export declare enum TransactionState {
|
|
114
120
|
SUCCESS = "SUCCESS",
|
|
115
121
|
FAIL = "FAIL",
|
package/lib/transactions.js
CHANGED
|
@@ -4,6 +4,10 @@ export var WindowRedirectType;
|
|
|
4
4
|
WindowRedirectType["BROWSER_TAB"] = "browserTab";
|
|
5
5
|
WindowRedirectType["NONE"] = "none";
|
|
6
6
|
})(WindowRedirectType || (WindowRedirectType = {}));
|
|
7
|
+
export var RedirectPurpose;
|
|
8
|
+
(function (RedirectPurpose) {
|
|
9
|
+
RedirectPurpose["BANK_LINKING"] = "BANK_LINKING";
|
|
10
|
+
})(RedirectPurpose || (RedirectPurpose = {}));
|
|
7
11
|
export var TransactionState;
|
|
8
12
|
(function (TransactionState) {
|
|
9
13
|
TransactionState["SUCCESS"] = "SUCCESS";
|
|
@@ -68,6 +68,7 @@ export declare enum Content {
|
|
|
68
68
|
amountPlaceholderLabel = "amountPlaceholderLabel",
|
|
69
69
|
authorisationTitle = "authorisationTitle",
|
|
70
70
|
backLabel = "backLabel",
|
|
71
|
+
bankLinkingFrameTitle = "bankLinkingFrameTitle",
|
|
71
72
|
bonus = "bonus",
|
|
72
73
|
bonusCodeInputPlaceholder = "bonusCodeInputPlaceholder",
|
|
73
74
|
bonusCodeMessage = "bonusCodeMessage",
|
|
@@ -282,6 +283,7 @@ export declare enum ContentVirtual {
|
|
|
282
283
|
abandonDepositModalTitle = "abandonDepositModalTitle",
|
|
283
284
|
authorisationTitle = "authorisationTitle",
|
|
284
285
|
backLabel = "backLabel",
|
|
286
|
+
bankLinkingFrameTitle = "bankLinkingFrameTitle",
|
|
285
287
|
cancelWithdrawalsSuccess = "cancelWithdrawalsSuccess",
|
|
286
288
|
cancelWithdrawalSuccess = "cancelWithdrawalSuccess",
|
|
287
289
|
cardDetailsGenericError = "cardDetailsGenericError",
|
|
@@ -70,6 +70,7 @@ export var Content;
|
|
|
70
70
|
Content["amountPlaceholderLabel"] = "amountPlaceholderLabel";
|
|
71
71
|
Content["authorisationTitle"] = "authorisationTitle";
|
|
72
72
|
Content["backLabel"] = "backLabel";
|
|
73
|
+
Content["bankLinkingFrameTitle"] = "bankLinkingFrameTitle";
|
|
73
74
|
Content["bonus"] = "bonus";
|
|
74
75
|
Content["bonusCodeInputPlaceholder"] = "bonusCodeInputPlaceholder";
|
|
75
76
|
Content["bonusCodeMessage"] = "bonusCodeMessage";
|
|
@@ -285,6 +286,7 @@ export var ContentVirtual;
|
|
|
285
286
|
ContentVirtual["abandonDepositModalTitle"] = "abandonDepositModalTitle";
|
|
286
287
|
ContentVirtual["authorisationTitle"] = "authorisationTitle";
|
|
287
288
|
ContentVirtual["backLabel"] = "backLabel";
|
|
289
|
+
ContentVirtual["bankLinkingFrameTitle"] = "bankLinkingFrameTitle";
|
|
288
290
|
ContentVirtual["cancelWithdrawalsSuccess"] = "cancelWithdrawalsSuccess";
|
|
289
291
|
ContentVirtual["cancelWithdrawalSuccess"] = "cancelWithdrawalSuccess";
|
|
290
292
|
ContentVirtual["cardDetailsGenericError"] = "cardDetailsGenericError";
|
package/package.json
CHANGED
package/src/payment-methods.ts
CHANGED
|
@@ -89,6 +89,8 @@ export interface CardTokenSettings extends HostedFieldsBase {
|
|
|
89
89
|
export interface CardTokenParams {
|
|
90
90
|
merchantId: string;
|
|
91
91
|
env: string;
|
|
92
|
+
// Set only on a stored method, whose fields re-verify a card rather than collect a new one.
|
|
93
|
+
token?: string;
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
// Which message contract the client must speak to the hosted fields, not which gateway
|
package/src/transactions.ts
CHANGED
|
@@ -81,6 +81,8 @@ export interface DepositContinuationParams {
|
|
|
81
81
|
protectionHeaders?: Record<string, string>;
|
|
82
82
|
/** A credential: carried on the challenge and handed back, never logged. */
|
|
83
83
|
sessionKey?: string;
|
|
84
|
+
/** The stored method the purchase began on, so the concluding charge keeps its endpoint. */
|
|
85
|
+
accountId?: string;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
/**
|
|
@@ -120,10 +122,15 @@ export interface RedirectOutput {
|
|
|
120
122
|
sizeUnit?: string;
|
|
121
123
|
url: string;
|
|
122
124
|
width?: number;
|
|
125
|
+
purpose?: RedirectPurpose;
|
|
123
126
|
}
|
|
124
127
|
|
|
125
128
|
export type RedirectContainer = 'iframe' | 'window' | 'redirect';
|
|
126
129
|
|
|
130
|
+
export enum RedirectPurpose {
|
|
131
|
+
BANK_LINKING = 'BANK_LINKING'
|
|
132
|
+
}
|
|
133
|
+
|
|
127
134
|
export enum TransactionState {
|
|
128
135
|
SUCCESS = 'SUCCESS',
|
|
129
136
|
FAIL = 'FAIL',
|
|
@@ -74,6 +74,7 @@ export enum Content {
|
|
|
74
74
|
amountPlaceholderLabel = 'amountPlaceholderLabel',
|
|
75
75
|
authorisationTitle = 'authorisationTitle',
|
|
76
76
|
backLabel = 'backLabel',
|
|
77
|
+
bankLinkingFrameTitle = 'bankLinkingFrameTitle',
|
|
77
78
|
bonus = 'bonus',
|
|
78
79
|
bonusCodeInputPlaceholder = 'bonusCodeInputPlaceholder',
|
|
79
80
|
bonusCodeMessage = 'bonusCodeMessage',
|
|
@@ -289,6 +290,7 @@ export enum ContentVirtual {
|
|
|
289
290
|
abandonDepositModalTitle = 'abandonDepositModalTitle',
|
|
290
291
|
authorisationTitle = 'authorisationTitle',
|
|
291
292
|
backLabel = 'backLabel',
|
|
293
|
+
bankLinkingFrameTitle = 'bankLinkingFrameTitle',
|
|
292
294
|
cancelWithdrawalsSuccess = 'cancelWithdrawalsSuccess',
|
|
293
295
|
cancelWithdrawalSuccess = 'cancelWithdrawalSuccess',
|
|
294
296
|
cardDetailsGenericError = 'cardDetailsGenericError',
|