@rebilly/framepay 1.51.0 → 1.51.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +47 -45
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -168,7 +168,7 @@ export declare interface ButtonStyleDeclaration {
168
168
 
169
169
  export declare class Card extends PaymentMethod {
170
170
  Brands: typeof SupportedCardBrands;
171
- mount(target: HTMLElement | string, fieldType?: string): CardElement;
171
+ mount(target: HTMLElement | string, fieldType?: FieldType): CardElement;
172
172
  }
173
173
 
174
174
  export declare const CARD_CVV_TYPES: {
@@ -284,6 +284,8 @@ export declare interface ControllerTransactionData extends Omit<TransactionData,
284
284
 
285
285
  export declare type CreatedDelegate<T> = () => T | Promise<T>;
286
286
 
287
+ export declare type DigitalWalletFieldType = typeof FIELD_TYPES.googlePay | typeof FIELD_TYPES.applePay | typeof FIELD_TYPES.plaid | typeof FIELD_TYPES.paypal | typeof FIELD_TYPES.klarna | typeof FIELD_TYPES.samsungPay;
288
+
287
289
  export declare class DigitalWalletValidationRequest {
288
290
  #private;
289
291
  /**
@@ -357,33 +359,33 @@ export declare type ExtraPayPalConfigs = Record<(typeof supportedExtraPayPalConf
357
359
  * https://rebilly.github.io/RebillyAPI/#operation/PostToken
358
360
  */
359
361
  export declare const FIELD_TYPES: {
360
- card: string;
361
- cardNumber: string;
362
- khelocardNumber: string;
363
- cardExpiration: string;
364
- cardExpirationMonth: string;
365
- cardExpirationYear: string;
366
- cardCvv: string;
367
- bban: string;
368
- bbanAccountType: string;
369
- bbanAccountNumber: string;
370
- bbanRoutingNumber: string;
371
- bbanBic: string;
372
- bbanBankName: string;
373
- iban: string;
374
- ibanNumber: string;
375
- ibanBic: string;
376
- ibanBankName: string;
377
- cardExpirationMonthList: string;
378
- cardExpirationYearList: string;
379
- digitalWallet: string;
380
- applePay: string;
381
- googlePay: string;
382
- samsungPay: string;
383
- paypal: string;
384
- plaid: string;
385
- klarna: string;
386
- secondary: string;
362
+ readonly card: "card";
363
+ readonly cardNumber: "cardNumber";
364
+ readonly khelocardNumber: "khelocardNumber";
365
+ readonly cardExpiration: "cardExpiration";
366
+ readonly cardExpirationMonth: "cardExpirationMonth";
367
+ readonly cardExpirationYear: "cardExpirationYear";
368
+ readonly cardCvv: "cardCvv";
369
+ readonly bban: "bban";
370
+ readonly bbanAccountType: "bbanAccountType";
371
+ readonly bbanAccountNumber: "bbanAccountNumber";
372
+ readonly bbanRoutingNumber: "bbanRoutingNumber";
373
+ readonly bbanBic: "bbanBic";
374
+ readonly bbanBankName: "bbanBankName";
375
+ readonly iban: "iban";
376
+ readonly ibanNumber: "ibanNumber";
377
+ readonly ibanBic: "ibanBic";
378
+ readonly ibanBankName: "ibanBankName";
379
+ readonly cardExpirationMonthList: "cardExpirationMonthList";
380
+ readonly cardExpirationYearList: "cardExpirationYearList";
381
+ readonly digitalWallet: "digitalWallet";
382
+ readonly applePay: "applePay";
383
+ readonly googlePay: "googlePay";
384
+ readonly samsungPay: "samsungPay";
385
+ readonly paypal: "paypal";
386
+ readonly plaid: "plaid";
387
+ readonly klarna: "klarna";
388
+ readonly secondary: "secondary";
387
389
  };
388
390
 
389
391
  export declare type FieldError = string | FramepayError;
@@ -409,7 +411,7 @@ export declare class FieldNotification {
409
411
 
410
412
  export declare type FieldNotificationType = ValueOf<typeof FieldNotification.TYPES>;
411
413
 
412
- export declare type FieldType = 'googlePay' | 'applePay' | 'plaid' | 'paypal' | 'klarna';
414
+ export declare type FieldType = ValueOf<typeof FIELD_TYPES>;
413
415
 
414
416
  export declare interface FieldValidationParams {
415
417
  form?: HTMLFormElement;
@@ -816,32 +818,32 @@ export declare interface PrepareDigitalWalletPayloadArgs {
816
818
  formData?: {
817
819
  billingAddress?: object;
818
820
  };
819
- fieldType: FieldType;
821
+ fieldType: DigitalWalletFieldType;
820
822
  }
821
823
 
822
824
  export declare const PUBLIC_FIELD_SOURCE_NAMES_REPLACE_MAP: {
823
825
  bankAccount: {
824
- bankAccountType: string;
825
- bankAccountNumber: string;
826
- bankRoutingNumber: string;
827
- bic: string;
828
- bankName: string;
826
+ bankAccountType: "bbanAccountType";
827
+ bankAccountNumber: "bbanAccountNumber";
828
+ bankRoutingNumber: "bbanRoutingNumber";
829
+ bic: "bbanBic";
830
+ bankName: "bbanBankName";
829
831
  };
830
832
  bban: {
831
- accountType: string;
832
- accountNumber: string;
833
- routingNumber: string;
834
- bic: string;
835
- bankName: string;
833
+ accountType: "bbanAccountType";
834
+ accountNumber: "bbanAccountNumber";
835
+ routingNumber: "bbanRoutingNumber";
836
+ bic: "bbanBic";
837
+ bankName: "bbanBankName";
836
838
  };
837
839
  iban: {
838
- bic: string;
839
- bankName: string;
840
+ bic: "ibanBic";
841
+ bankName: "ibanBankName";
840
842
  };
841
843
  digitalWallet: {
842
- applePay: string;
843
- googlePay: string;
844
- samsungPay: string;
844
+ applePay: "applePay";
845
+ googlePay: "googlePay";
846
+ samsungPay: "samsungPay";
845
847
  };
846
848
  };
847
849
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/framepay",
3
- "version": "1.51.0",
3
+ "version": "1.51.2",
4
4
  "description": "A wrapper to load Rebilly's FramePay library and provide TypeScript types",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  "@rebilly/eslint-config": "*",
38
38
  "@rebilly/framepay-app": "*",
39
39
  "typescript": "^5.4.5",
40
- "vite": "^5.4.16",
40
+ "vite": "^5.4.18",
41
41
  "vite-plugin-dts": "^4.5.0"
42
42
  }
43
43
  }