@payrails/web-sdk 5.31.1 → 5.31.2

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.31.1",
3
+ "version": "5.31.2",
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
@@ -583,6 +583,7 @@ declare class CollectElement extends SkyflowElement {
583
583
  resetError(): void;
584
584
  setValue(elementValue: string): void;
585
585
  clearValue(): void;
586
+ setAttribute(attribute: string, value: string | number): void;
586
587
  }
587
588
 
588
589
  interface CollectElementInput$1 {
@@ -642,6 +643,7 @@ declare class ComposableElement {
642
643
  constructor(name: any, eventEmitter: any);
643
644
  on(eventName: string, handler: any): void;
644
645
  update: (options: any) => void;
646
+ setAttribute(attribute: string, value: string | number): void;
645
647
  }
646
648
 
647
649
  /**
@@ -900,6 +902,7 @@ interface PayrailsSecureField {
900
902
  setValue?: (elementValue: string) => void;
901
903
  clearValue?: () => void;
902
904
  update?: (data: Partial<CollectElementOptions>) => void;
905
+ setAttribute: (attribute: string, value: string | number) => void;
903
906
  }
904
907
  declare class PayrailsCollectContainer implements Mountable {
905
908
  bin: string;
@@ -912,6 +915,7 @@ declare class PayrailsCollectContainer implements Mountable {
912
915
  private element;
913
916
  private readonly cardTableName;
914
917
  private readonly containerType;
918
+ private manualErrorElements;
915
919
  constructor(__client: Skyflow, options: CollectContainerOptions);
916
920
  static init(vaultClient: Skyflow, options: CollectContainerOptions): PayrailsCollectContainer;
917
921
  createCollectElement(options: CollectElementOptions): PayrailsSecureField;
@@ -976,7 +980,7 @@ declare const regexes: {
976
980
  visa: RegExp;
977
981
  mastercard: RegExp;
978
982
  amex: RegExp;
979
- diners: RegExp;
983
+ diners_club: RegExp;
980
984
  discover: RegExp;
981
985
  jcb: RegExp;
982
986
  hipercard: RegExp;
@@ -1148,7 +1152,7 @@ declare class CardForm extends PayrailsElementWithStoreInstrumentCheckbox {
1148
1152
  errors: string;
1149
1153
  }>;
1150
1154
  get isValid(): boolean;
1151
- get cardNetwork(): "" | "visa" | "mastercard" | "amex" | "diners" | "discover" | "jcb" | "hipercard" | "unionpay" | "maestro" | "elo";
1155
+ get cardNetwork(): "" | "visa" | "mastercard" | "amex" | "diners_club" | "discover" | "jcb" | "hipercard" | "unionpay" | "maestro" | "elo";
1152
1156
  onChange(): void;
1153
1157
  private updateInstallments;
1154
1158
  private reset;