@soltech/fluid-common 1.19.0-sc24805.0 → 1.20.0-sc24806.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.
@@ -59,7 +59,7 @@ export interface EncryptionSettings {
59
59
  expiryDateEncryptionMode: ExpiryDateEncryptionMode;
60
60
  encryptCardholderName: boolean;
61
61
  }
62
- export type HostedFieldsSettings = CardValuesSettings | CardTokenSettings;
62
+ export type HostedFieldsSettings = CardValuesSettings | CardTokenSettings | TicketedCardTokenSettings;
63
63
  interface HostedFieldsBase {
64
64
  url: string;
65
65
  }
@@ -70,6 +70,9 @@ export interface CardTokenSettings extends HostedFieldsBase {
70
70
  protocol: HostedFieldsProtocol.CARD_TOKEN;
71
71
  params: CardTokenParams;
72
72
  }
73
+ export interface TicketedCardTokenSettings extends HostedFieldsBase {
74
+ protocol: HostedFieldsProtocol.TICKETED_CARD_TOKEN;
75
+ }
73
76
  export interface CardTokenParams {
74
77
  merchantId: string;
75
78
  env: string;
@@ -77,7 +80,8 @@ export interface CardTokenParams {
77
80
  }
78
81
  export declare enum HostedFieldsProtocol {
79
82
  CARD_VALUES = "CardValues",
80
- CARD_TOKEN = "CardToken"
83
+ CARD_TOKEN = "CardToken",
84
+ TICKETED_CARD_TOKEN = "TicketedCardToken"
81
85
  }
82
86
  export declare enum EncryptionType {
83
87
  NO_ENCRYPTION = "NO_ENCRYPTION",
@@ -13,6 +13,7 @@ export var HostedFieldsProtocol;
13
13
  (function (HostedFieldsProtocol) {
14
14
  HostedFieldsProtocol["CARD_VALUES"] = "CardValues";
15
15
  HostedFieldsProtocol["CARD_TOKEN"] = "CardToken";
16
+ HostedFieldsProtocol["TICKETED_CARD_TOKEN"] = "TicketedCardToken";
16
17
  })(HostedFieldsProtocol || (HostedFieldsProtocol = {}));
17
18
  export var EncryptionType;
18
19
  (function (EncryptionType) {
@@ -21,6 +21,15 @@ export interface CreditcardTransactionParams extends TransactionParams, GatewayP
21
21
  expiryYear?: string;
22
22
  expiryDate?: string;
23
23
  cardToken?: string;
24
+ cardTokenEndpointId?: string;
25
+ }
26
+ export interface HostedFieldsTicketParams {
27
+ paymentMethodId: string;
28
+ amount: number;
29
+ }
30
+ export interface HostedFieldsTicket {
31
+ ticket: string;
32
+ endpointId: string;
24
33
  }
25
34
  export interface ApplePayTransactionParams extends TransactionParams, GatewayProtectionParams {
26
35
  /** The authorised `ApplePayPaymentToken`, serialised, opaque to everything but the gateway. */
@@ -84,6 +84,10 @@ export declare enum Content {
84
84
  cancelWithdrawalsSuccess = "cancelWithdrawalsSuccess",
85
85
  cancelWithdrawalSuccess = "cancelWithdrawalSuccess",
86
86
  cardDetailsGenericError = "cardDetailsGenericError",
87
+ cardFieldsCvvError = "cardFieldsCvvError",
88
+ cardFieldsExpiryError = "cardFieldsExpiryError",
89
+ cardFieldsNumberError = "cardFieldsNumberError",
90
+ cardFieldsRejectedError = "cardFieldsRejectedError",
87
91
  cardInformation = "cardInformation",
88
92
  cardNumber = "cardNumber",
89
93
  closeLabel = "closeLabel",
@@ -86,6 +86,10 @@ export var Content;
86
86
  Content["cancelWithdrawalsSuccess"] = "cancelWithdrawalsSuccess";
87
87
  Content["cancelWithdrawalSuccess"] = "cancelWithdrawalSuccess";
88
88
  Content["cardDetailsGenericError"] = "cardDetailsGenericError";
89
+ Content["cardFieldsCvvError"] = "cardFieldsCvvError";
90
+ Content["cardFieldsExpiryError"] = "cardFieldsExpiryError";
91
+ Content["cardFieldsNumberError"] = "cardFieldsNumberError";
92
+ Content["cardFieldsRejectedError"] = "cardFieldsRejectedError";
89
93
  Content["cardInformation"] = "cardInformation";
90
94
  Content["cardNumber"] = "cardNumber";
91
95
  Content["closeLabel"] = "closeLabel";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.19.0-sc24805.0",
3
+ "version": "1.20.0-sc24806.0",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend, API and AI common interfaces & enums",
6
6
  "main": "lib/index.js",