@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.
- package/dist/index.d.ts +47 -45
- 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?:
|
|
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:
|
|
361
|
-
cardNumber:
|
|
362
|
-
khelocardNumber:
|
|
363
|
-
cardExpiration:
|
|
364
|
-
cardExpirationMonth:
|
|
365
|
-
cardExpirationYear:
|
|
366
|
-
cardCvv:
|
|
367
|
-
bban:
|
|
368
|
-
bbanAccountType:
|
|
369
|
-
bbanAccountNumber:
|
|
370
|
-
bbanRoutingNumber:
|
|
371
|
-
bbanBic:
|
|
372
|
-
bbanBankName:
|
|
373
|
-
iban:
|
|
374
|
-
ibanNumber:
|
|
375
|
-
ibanBic:
|
|
376
|
-
ibanBankName:
|
|
377
|
-
cardExpirationMonthList:
|
|
378
|
-
cardExpirationYearList:
|
|
379
|
-
digitalWallet:
|
|
380
|
-
applePay:
|
|
381
|
-
googlePay:
|
|
382
|
-
samsungPay:
|
|
383
|
-
paypal:
|
|
384
|
-
plaid:
|
|
385
|
-
klarna:
|
|
386
|
-
secondary:
|
|
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 =
|
|
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:
|
|
821
|
+
fieldType: DigitalWalletFieldType;
|
|
820
822
|
}
|
|
821
823
|
|
|
822
824
|
export declare const PUBLIC_FIELD_SOURCE_NAMES_REPLACE_MAP: {
|
|
823
825
|
bankAccount: {
|
|
824
|
-
bankAccountType:
|
|
825
|
-
bankAccountNumber:
|
|
826
|
-
bankRoutingNumber:
|
|
827
|
-
bic:
|
|
828
|
-
bankName:
|
|
826
|
+
bankAccountType: "bbanAccountType";
|
|
827
|
+
bankAccountNumber: "bbanAccountNumber";
|
|
828
|
+
bankRoutingNumber: "bbanRoutingNumber";
|
|
829
|
+
bic: "bbanBic";
|
|
830
|
+
bankName: "bbanBankName";
|
|
829
831
|
};
|
|
830
832
|
bban: {
|
|
831
|
-
accountType:
|
|
832
|
-
accountNumber:
|
|
833
|
-
routingNumber:
|
|
834
|
-
bic:
|
|
835
|
-
bankName:
|
|
833
|
+
accountType: "bbanAccountType";
|
|
834
|
+
accountNumber: "bbanAccountNumber";
|
|
835
|
+
routingNumber: "bbanRoutingNumber";
|
|
836
|
+
bic: "bbanBic";
|
|
837
|
+
bankName: "bbanBankName";
|
|
836
838
|
};
|
|
837
839
|
iban: {
|
|
838
|
-
bic:
|
|
839
|
-
bankName:
|
|
840
|
+
bic: "ibanBic";
|
|
841
|
+
bankName: "ibanBankName";
|
|
840
842
|
};
|
|
841
843
|
digitalWallet: {
|
|
842
|
-
applePay:
|
|
843
|
-
googlePay:
|
|
844
|
-
samsungPay:
|
|
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.
|
|
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.
|
|
40
|
+
"vite": "^5.4.18",
|
|
41
41
|
"vite-plugin-dts": "^4.5.0"
|
|
42
42
|
}
|
|
43
43
|
}
|