@payrails/web-sdk 5.17.0 → 5.18.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payrails/web-sdk",
3
- "version": "5.17.0",
3
+ "version": "5.18.1",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
package/payrails.d.ts CHANGED
@@ -641,7 +641,8 @@ declare enum ElementType {
641
641
  CARDHOLDER_NAME = "CARDHOLDER_NAME",
642
642
  CVV = "CVV",
643
643
  EXPIRATION_MONTH = "EXPIRATION_MONTH",
644
- EXPIRATION_YEAR = "EXPIRATION_YEAR"
644
+ EXPIRATION_YEAR = "EXPIRATION_YEAR",
645
+ EXPIRATION_DATE = "EXPIRATION_DATE"
645
646
  }
646
647
 
647
648
  interface PaymentInstallmentsElementOptions extends ElementOptions {
@@ -689,6 +690,7 @@ interface OnChange {
689
690
  }
690
691
  interface CardFormOptions extends StoreInstrumentElementOptions {
691
692
  showCardHolderName?: boolean;
693
+ showSingleExpiryDateField?: boolean;
692
694
  enrollInstrumentToNetworkOffers?: boolean;
693
695
  translations?: {
694
696
  placeholders?: {
@@ -1049,6 +1051,7 @@ interface DropinOptions {
1049
1051
  cards?: {
1050
1052
  showCardHolderName?: boolean;
1051
1053
  showExistingCards?: boolean;
1054
+ showSingleExpiryDateField?: boolean;
1052
1055
  } & StorablePaymentMethodConfiguration;
1053
1056
  payPal?: StorablePaymentMethodConfiguration;
1054
1057
  googlePay?: StorablePaymentMethodConfiguration & {
@@ -1133,7 +1136,7 @@ declare class FraudNet implements Mountable {
1133
1136
  interface PayrailsClientOptions {
1134
1137
  environment?: PayrailsEnvironment;
1135
1138
  events?: {
1136
- onClientInitialized: (execution?: WorkflowExecution) => void;
1139
+ onClientInitialized: (execution?: typeof WorkflowExecution) => void;
1137
1140
  };
1138
1141
  redirectFor3DS?: boolean;
1139
1142
  returnInfo?: ReturnInfo;