@idonatedev/idonate-sdk 1.1.0-dev1 → 1.1.0-dev10

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.
@@ -5,6 +5,7 @@ import ConfigHandler from '../config-handler';
5
5
  export declare class SpreedlyTokenizer extends Tokenizer {
6
6
  private environmentKey;
7
7
  private containerId;
8
+ private layout;
8
9
  private spreedly;
9
10
  private isReady;
10
11
  private currentValidationState;
@@ -14,8 +15,9 @@ export declare class SpreedlyTokenizer extends Tokenizer {
14
15
  private cvvEl;
15
16
  private expiryId;
16
17
  private containerEl?;
17
- private organizationId?;
18
- private embedId?;
18
+ private organizationId;
19
+ private embedId;
20
+ private clientConfig;
19
21
  private bankCountry;
20
22
  private routingNumberEl?;
21
23
  private accountNumberEl?;
@@ -24,9 +26,10 @@ export declare class SpreedlyTokenizer extends Tokenizer {
24
26
  private transitNumberEl?;
25
27
  private enableTestMode;
26
28
  private constructor();
27
- static create(gateway: PaymentGateway, container: TokenizerContainer, config?: {
29
+ static create(gateway: PaymentGateway, container: TokenizerContainer, config: {
28
30
  organizationId: string;
29
31
  embedId: string;
32
+ clientConfig: ConfigHandler;
30
33
  }): Promise<SpreedlyTokenizer>;
31
34
  private init;
32
35
  tokenize(paymentData: PaymentData): Promise<PaymentToken>;
@@ -41,6 +44,10 @@ export declare class SpreedlyTokenizer extends Tokenizer {
41
44
  clear(): void;
42
45
  focus(field: 'cardNumber' | 'cvv' | 'expiry' | 'routingNumber' | 'accountNumber'): void;
43
46
  destroy(): void;
47
+ hasToken(): boolean;
48
+ getToken(): PaymentToken | null;
49
+ get tokenizationMode(): 'auto' | 'manual';
50
+ private updateOverallValidation;
44
51
  private handleFieldEvent;
45
52
  private createInternalElements;
46
53
  private createCreditCardFields;