@rebilly/framepay 1.2.2 → 1.2.3
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 +29 -26
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -231,6 +231,33 @@ export declare interface ClassesConfig {
|
|
|
231
231
|
googlePay?: string;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
/**
|
|
235
|
+
* The configuration input directly provided by merchants.
|
|
236
|
+
*/
|
|
237
|
+
export declare interface Configuration {
|
|
238
|
+
publishableKey?: string;
|
|
239
|
+
applePay?: ApplePayConfig;
|
|
240
|
+
bankAccount?: unknown;
|
|
241
|
+
bban?: unknown;
|
|
242
|
+
card?: CardConfig;
|
|
243
|
+
classes?: ClassesConfig;
|
|
244
|
+
googlePay?: GooglePayConfig;
|
|
245
|
+
i18n?: I18nConfig;
|
|
246
|
+
icon?: IconConfig;
|
|
247
|
+
isParamountBankAccount?: boolean;
|
|
248
|
+
kountAccountId?: string;
|
|
249
|
+
locale?: string;
|
|
250
|
+
methods?: 'auto' | ReadyToPayObject[];
|
|
251
|
+
organizationId?: string;
|
|
252
|
+
paypal?: PaypalConfig;
|
|
253
|
+
placeholders?: PlaceholdersConfig;
|
|
254
|
+
sandbox?: boolean;
|
|
255
|
+
style?: StyleConfig;
|
|
256
|
+
transactionData?: TransactionData;
|
|
257
|
+
websiteId?: string;
|
|
258
|
+
samsungPay?: SamsungPayConfig;
|
|
259
|
+
}
|
|
260
|
+
|
|
234
261
|
export declare interface ControllerTransactionData extends Omit<TransactionData, 'amount'> {
|
|
235
262
|
amount?: string;
|
|
236
263
|
shippingOptions?: ShippingOptionItem[] & {
|
|
@@ -463,7 +490,7 @@ export declare class FramePay {
|
|
|
463
490
|
/**
|
|
464
491
|
* Trigger an update of current and future mounted element configuration.
|
|
465
492
|
*/
|
|
466
|
-
update(configuration?:
|
|
493
|
+
update(configuration?: Configuration): Promise<void>;
|
|
467
494
|
/**
|
|
468
495
|
* Create a token for the provided form and elements within (card, bban account, etc.).
|
|
469
496
|
*/
|
|
@@ -501,7 +528,7 @@ export declare interface FramepayEventMap {
|
|
|
501
528
|
'billing-address-changed': Parameters<BillingAddressChangedHandler>;
|
|
502
529
|
}
|
|
503
530
|
|
|
504
|
-
export declare interface FramepayInitializeParams extends
|
|
531
|
+
export declare interface FramepayInitializeParams extends Configuration {
|
|
505
532
|
publishableKey?: string;
|
|
506
533
|
jwt?: string;
|
|
507
534
|
}
|
|
@@ -796,30 +823,6 @@ export declare const PUBLIC_FIELD_SOURCE_NAMES_REPLACE_MAP: {
|
|
|
796
823
|
};
|
|
797
824
|
};
|
|
798
825
|
|
|
799
|
-
export declare interface RawConfiguration {
|
|
800
|
-
publishableKey?: string;
|
|
801
|
-
applePay?: ApplePayConfig;
|
|
802
|
-
bankAccount?: unknown;
|
|
803
|
-
bban?: unknown;
|
|
804
|
-
card?: CardConfig;
|
|
805
|
-
classes?: ClassesConfig;
|
|
806
|
-
googlePay?: GooglePayConfig;
|
|
807
|
-
i18n?: I18nConfig;
|
|
808
|
-
icon?: IconConfig;
|
|
809
|
-
isParamountBankAccount?: boolean;
|
|
810
|
-
kountAccountId?: string;
|
|
811
|
-
locale?: string;
|
|
812
|
-
methods?: 'auto' | ReadyToPayObject[];
|
|
813
|
-
organizationId?: string;
|
|
814
|
-
paypal?: PaypalConfig;
|
|
815
|
-
placeholders?: PlaceholdersConfig;
|
|
816
|
-
sandbox?: boolean;
|
|
817
|
-
style?: StyleConfig;
|
|
818
|
-
transactionData?: TransactionData;
|
|
819
|
-
websiteId?: string;
|
|
820
|
-
samsungPay?: SamsungPayConfig;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
826
|
export declare interface ReadyToPayObject {
|
|
824
827
|
method: string;
|
|
825
828
|
filters?: string[];
|