@soltech/fluid-common 1.9.2-sc23265.3 → 1.9.2-sc23265.4

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 CHANGED
@@ -118,7 +118,6 @@ export type TransactionStatusSource = 'gateway' | 'fluid';
118
118
  export interface TransactionStatusCheck {
119
119
  url: string;
120
120
  intervalSeconds: number;
121
- /** Who answers the poll. Absent on wallets served by an API that predates this field. */
122
121
  source?: TransactionStatusSource;
123
122
  }
124
123
  export interface AllPaymentMethods {
@@ -162,12 +161,12 @@ export interface EncryptionSettings {
162
161
  expiryDateEncryptionMode: ExpiryDateEncryptionMode;
163
162
  encryptCardholderName: boolean;
164
163
  }
165
- export type HostedFieldsSettings = EncryptedFieldsSettings | CardTokenSettings;
164
+ export type HostedFieldsSettings = CardValuesSettings | CardTokenSettings;
166
165
  interface HostedFieldsBase {
167
166
  url: string;
168
167
  }
169
- export interface EncryptedFieldsSettings extends HostedFieldsBase {
170
- protocol?: HostedFieldsProtocol.ENCRYPTED_FIELDS;
168
+ export interface CardValuesSettings extends HostedFieldsBase {
169
+ protocol?: HostedFieldsProtocol.CARD_VALUES;
171
170
  }
172
171
  export interface CardTokenSettings extends HostedFieldsBase {
173
172
  protocol: HostedFieldsProtocol.CARD_TOKEN;
@@ -178,7 +177,7 @@ export interface CardTokenParams {
178
177
  env: string;
179
178
  }
180
179
  export declare enum HostedFieldsProtocol {
181
- ENCRYPTED_FIELDS = "EncryptedFields",
180
+ CARD_VALUES = "CardValues",
182
181
  CARD_TOKEN = "CardToken"
183
182
  }
184
183
  export declare enum EncryptionType {
package/lib/index.js CHANGED
@@ -36,7 +36,7 @@ export var WindowRedirectType;
36
36
  // is behind them — the gateway's identity stays server-side.
37
37
  export var HostedFieldsProtocol;
38
38
  (function (HostedFieldsProtocol) {
39
- HostedFieldsProtocol["ENCRYPTED_FIELDS"] = "EncryptedFields";
39
+ HostedFieldsProtocol["CARD_VALUES"] = "CardValues";
40
40
  HostedFieldsProtocol["CARD_TOKEN"] = "CardToken";
41
41
  })(HostedFieldsProtocol || (HostedFieldsProtocol = {}));
42
42
  export var EncryptionType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.9.2-sc23265.3",
3
+ "version": "1.9.2-sc23265.4",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend, API and AI common interfaces & enums",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -134,7 +134,6 @@ export type TransactionStatusSource = 'gateway' | 'fluid';
134
134
  export interface TransactionStatusCheck {
135
135
  url: string;
136
136
  intervalSeconds: number;
137
- /** Who answers the poll. Absent on wallets served by an API that predates this field. */
138
137
  source?: TransactionStatusSource;
139
138
  }
140
139
 
@@ -183,21 +182,20 @@ export interface EncryptionSettings {
183
182
  encryptCardholderName: boolean;
184
183
  }
185
184
 
186
- export type HostedFieldsSettings = EncryptedFieldsSettings | CardTokenSettings;
185
+ export type HostedFieldsSettings = CardValuesSettings | CardTokenSettings;
187
186
 
188
187
  interface HostedFieldsBase {
189
188
  // Its presence is also how the client decides a method uses hosted fields at all.
190
189
  url: string;
191
190
  }
192
191
 
193
- export interface EncryptedFieldsSettings extends HostedFieldsBase {
194
- // Absent means EncryptedFields, so responses composed before this field existed keep working.
195
- protocol?: HostedFieldsProtocol.ENCRYPTED_FIELDS;
192
+ export interface CardValuesSettings extends HostedFieldsBase {
193
+ // Absent selects this protocol, so responses composed before the field existed keep working.
194
+ protocol?: HostedFieldsProtocol.CARD_VALUES;
196
195
  }
197
196
 
198
197
  export interface CardTokenSettings extends HostedFieldsBase {
199
198
  protocol: HostedFieldsProtocol.CARD_TOKEN;
200
- // Handed straight to the gateway's own component, uninterpreted.
201
199
  params: CardTokenParams;
202
200
  }
203
201
 
@@ -209,7 +207,7 @@ export interface CardTokenParams {
209
207
  // Which message contract the client must speak to the hosted fields, not which gateway
210
208
  // is behind them — the gateway's identity stays server-side.
211
209
  export enum HostedFieldsProtocol {
212
- ENCRYPTED_FIELDS = 'EncryptedFields',
210
+ CARD_VALUES = 'CardValues',
213
211
  CARD_TOKEN = 'CardToken'
214
212
  }
215
213
 
@@ -291,10 +289,7 @@ export interface CreditcardTransactionParams extends TransactionParams {
291
289
  expiryMonth?: string;
292
290
  expiryYear?: string;
293
291
  expiryDate?: string;
294
- // Set instead of cardNumber when the gateway tokenised the card in the browser.
295
292
  cardToken?: string;
296
- // Device and session signals the gateway's own form collected, which its fraud scoring
297
- // needs on the charge. Opaque: the client passes them through and never interprets them.
298
293
  protectionHeaders?: Record<string, string>;
299
294
  }
300
295