@soltech/fluid-common 1.9.2-sc23265.4 → 1.10.0-beta.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 CHANGED
@@ -253,15 +253,36 @@ export interface CreditcardTransactionParams extends TransactionParams {
253
253
  protectionHeaders?: Record<string, string>;
254
254
  }
255
255
  /**
256
- * Transaction params for any payment method whose payload is keyed dynamically:
257
- * - CMS-defined input fields (bank transfer, crypto, e-wallet, voucher).
258
- * - Native flows like Apple Pay where the gateway-bound `token` is the only
259
- * extra key beyond the base TransactionParams.
256
+ * Transaction params for any payment method whose payload is keyed dynamically by
257
+ * CMS-defined input fields (bank transfer, crypto, e-wallet, voucher).
260
258
  * Field keys typically come from `PaymentMethod.inputFields[].paramName`.
261
259
  */
262
260
  export interface DynamicTransactionParams extends TransactionParams {
263
261
  [key: string]: string | number | undefined;
264
262
  }
263
+ export interface ApplePayTransactionParams extends TransactionParams {
264
+ /** The authorised `ApplePayPaymentToken`, serialised, opaque to everything but the gateway. */
265
+ token: string;
266
+ billingContact?: ApplePayBillingContact;
267
+ }
268
+ /**
269
+ * Apple's own `ApplePayPaymentContact` shape, carried through unchanged: a gateway that wants
270
+ * it expects the field names Apple uses. Only present when the method asks the sheet for it.
271
+ */
272
+ export interface ApplePayBillingContact {
273
+ addressLines?: string[];
274
+ administrativeArea?: string;
275
+ country?: string;
276
+ countryCode?: string;
277
+ emailAddress?: string;
278
+ familyName?: string;
279
+ givenName?: string;
280
+ locality?: string;
281
+ phoneNumber?: string;
282
+ postalCode?: string;
283
+ subAdministrativeArea?: string;
284
+ subLocality?: string;
285
+ }
265
286
  export interface TransactionOptions {
266
287
  bonusCode?: string;
267
288
  activityId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.9.2-sc23265.4",
3
+ "version": "1.10.0-beta.0",
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
@@ -294,16 +294,39 @@ export interface CreditcardTransactionParams extends TransactionParams {
294
294
  }
295
295
 
296
296
  /**
297
- * Transaction params for any payment method whose payload is keyed dynamically:
298
- * - CMS-defined input fields (bank transfer, crypto, e-wallet, voucher).
299
- * - Native flows like Apple Pay where the gateway-bound `token` is the only
300
- * extra key beyond the base TransactionParams.
297
+ * Transaction params for any payment method whose payload is keyed dynamically by
298
+ * CMS-defined input fields (bank transfer, crypto, e-wallet, voucher).
301
299
  * Field keys typically come from `PaymentMethod.inputFields[].paramName`.
302
300
  */
303
301
  export interface DynamicTransactionParams extends TransactionParams {
304
302
  [key: string]: string | number | undefined;
305
303
  }
306
304
 
305
+ export interface ApplePayTransactionParams extends TransactionParams {
306
+ /** The authorised `ApplePayPaymentToken`, serialised, opaque to everything but the gateway. */
307
+ token: string;
308
+ billingContact?: ApplePayBillingContact;
309
+ }
310
+
311
+ /**
312
+ * Apple's own `ApplePayPaymentContact` shape, carried through unchanged: a gateway that wants
313
+ * it expects the field names Apple uses. Only present when the method asks the sheet for it.
314
+ */
315
+ export interface ApplePayBillingContact {
316
+ addressLines?: string[];
317
+ administrativeArea?: string;
318
+ country?: string;
319
+ countryCode?: string;
320
+ emailAddress?: string;
321
+ familyName?: string;
322
+ givenName?: string;
323
+ locality?: string;
324
+ phoneNumber?: string;
325
+ postalCode?: string;
326
+ subAdministrativeArea?: string;
327
+ subLocality?: string;
328
+ }
329
+
307
330
  export interface TransactionOptions {
308
331
  bonusCode?: string;
309
332
  activityId?: string;
@@ -1,7 +0,0 @@
1
- {
2
- "enabledMcpjsonServers": [
3
- "shortcut",
4
- "playwright"
5
- ],
6
- "enableAllProjectMcpServers": true
7
- }