@authvia/payment-method-create 1.0.10 → 1.0.12

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.
@@ -29,6 +29,7 @@ declare const _default: import('vue').DefineComponent<Props, {
29
29
  country?: string;
30
30
  postalCode?: string;
31
31
  selectionMode?: "default" | "collapse";
32
+ isAddressEditable?: boolean;
32
33
  };
33
34
  card: {
34
35
  demoMode?: boolean;
@@ -45,6 +46,7 @@ declare const _default: import('vue').DefineComponent<Props, {
45
46
  country?: string;
46
47
  postalCode?: string;
47
48
  selectionMode?: "default" | "collapse";
49
+ isAddressEditable?: boolean;
48
50
  };
49
51
  paypal: boolean | import('../types').PayPalConfig;
50
52
  paze: {
@@ -118,6 +118,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
118
118
  isAddressFieldDisabled: (fieldValue: string | undefined) => boolean;
119
119
  azp: import('vue').ComputedRef<string>;
120
120
  handleAddressFormSubmit: (data: PaymentMethodBillingAddress) => void;
121
+ handleAddressSummaryClick: (event: MouseEvent) => void;
122
+ resetAddressToOriginalPrefill: () => void;
123
+ addressFormRemountKey: import('vue').Ref<number, number>;
121
124
  handleUpdateForgetCard: (value: boolean) => void;
122
125
  addressFormRef: import('vue').Ref<unknown, unknown>;
123
126
  formRef: import('vue').Ref<unknown, unknown>;
@@ -263,7 +266,62 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
263
266
  "onUpdate:accountNumber"?: ((value: string) => any) | undefined;
264
267
  "onUpdate:accountNumberConfirmed"?: ((value: boolean) => any) | undefined;
265
268
  "onUpdate:nameOnAccount"?: ((value: string) => any) | undefined;
266
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
269
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
270
+ horizontalRowRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
271
+ routingNumber: string;
272
+ accountNumber: string;
273
+ accountNumberConfirmed: boolean;
274
+ } & {
275
+ fieldsDisabled: boolean;
276
+ accountType: string;
277
+ markFieldDirty: (field: import('../../types/achForm').AchFieldKey) => void;
278
+ onDigitKeydown: (event: KeyboardEvent) => void;
279
+ onRoutingPaste: (event: ClipboardEvent) => void;
280
+ onAccountPaste: (event: ClipboardEvent) => void;
281
+ }> & Readonly<{
282
+ "onSelect-account-type"?: ((value: string) => any) | undefined;
283
+ "onUpdate:routingNumber"?: ((value: string) => any) | undefined;
284
+ "onUpdate:accountNumber"?: ((value: string) => any) | undefined;
285
+ "onUpdate:accountNumberConfirmed"?: ((value: boolean) => any) | undefined;
286
+ }>, {
287
+ activateCell: (id: "routing" | "account" | null) => void;
288
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
289
+ "update:routingNumber": (value: string) => any;
290
+ "update:accountNumber": (value: string) => any;
291
+ "update:accountNumberConfirmed": (value: boolean) => any;
292
+ } & {
293
+ "select-account-type": (value: string) => any;
294
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
295
+ routingInputRef: HTMLInputElement;
296
+ accountInputRef: HTMLInputElement;
297
+ confirmInputRef: HTMLInputElement;
298
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
299
+ P: {};
300
+ B: {};
301
+ D: {};
302
+ C: {};
303
+ M: {};
304
+ Defaults: {};
305
+ }, Readonly<{
306
+ routingNumber: string;
307
+ accountNumber: string;
308
+ accountNumberConfirmed: boolean;
309
+ } & {
310
+ fieldsDisabled: boolean;
311
+ accountType: string;
312
+ markFieldDirty: (field: import('../../types/achForm').AchFieldKey) => void;
313
+ onDigitKeydown: (event: KeyboardEvent) => void;
314
+ onRoutingPaste: (event: ClipboardEvent) => void;
315
+ onAccountPaste: (event: ClipboardEvent) => void;
316
+ }> & Readonly<{
317
+ "onSelect-account-type"?: ((value: string) => any) | undefined;
318
+ "onUpdate:routingNumber"?: ((value: string) => any) | undefined;
319
+ "onUpdate:accountNumber"?: ((value: string) => any) | undefined;
320
+ "onUpdate:accountNumberConfirmed"?: ((value: boolean) => any) | undefined;
321
+ }>, {
322
+ activateCell: (id: "routing" | "account" | null) => void;
323
+ }, {}, {}, {}, {}> | null;
324
+ }, any>;
267
325
  AchFormSubmitBar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
268
326
  isFormValid: {
269
327
  type: BooleanConstructor;
@@ -1,4 +1,5 @@
1
1
  import { AchFieldKey } from '../../../types/achForm';
2
+ type ActiveCell = 'routing' | 'account' | null;
2
3
  type __VLS_Props = {
3
4
  fieldsDisabled: boolean;
4
5
  accountType: string;
@@ -7,12 +8,15 @@ type __VLS_Props = {
7
8
  onRoutingPaste: (event: ClipboardEvent) => void;
8
9
  onAccountPaste: (event: ClipboardEvent) => void;
9
10
  };
11
+ declare function activateCell(id: ActiveCell): void;
10
12
  type __VLS_PublicProps = {
11
13
  'routingNumber': string;
12
14
  'accountNumber': string;
13
15
  'accountNumberConfirmed': boolean;
14
16
  } & __VLS_Props;
15
- declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
18
+ activateCell: typeof activateCell;
19
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
20
  "update:routingNumber": (value: string) => any;
17
21
  "update:accountNumber": (value: string) => any;
18
22
  "update:accountNumberConfirmed": (value: boolean) => any;
@@ -1,6 +1,7 @@
1
1
  import { AchFieldKey } from '../../../types/achForm';
2
2
  type __VLS_Props = {
3
3
  fieldsDisabled: boolean;
4
+ manageTabForward?: boolean;
4
5
  markFieldDirty: (field: AchFieldKey) => void;
5
6
  onNameKeydown: (event: KeyboardEvent) => void;
6
7
  onNamePaste: (event: ClipboardEvent) => void;
@@ -10,9 +11,14 @@ type __VLS_PublicProps = {
10
11
  } & __VLS_Props;
11
12
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
13
  "update:nameOnAccount": (value: string) => any;
14
+ } & {
15
+ "tab-forward": () => any;
13
16
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
+ "onTab-forward"?: (() => any) | undefined;
14
18
  "onUpdate:nameOnAccount"?: ((value: string) => any) | undefined;
15
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
19
+ }>, {
20
+ manageTabForward: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
16
22
  inputRef: HTMLInputElement;
17
23
  }, HTMLDivElement>;
18
24
  export default _default;
@@ -27,5 +27,60 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
27
27
  "onUpdate:accountNumber"?: ((value: string) => any) | undefined;
28
28
  "onUpdate:accountNumberConfirmed"?: ((value: boolean) => any) | undefined;
29
29
  "onUpdate:nameOnAccount"?: ((value: string) => any) | undefined;
30
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
31
+ horizontalRowRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
32
+ routingNumber: string;
33
+ accountNumber: string;
34
+ accountNumberConfirmed: boolean;
35
+ } & {
36
+ fieldsDisabled: boolean;
37
+ accountType: string;
38
+ markFieldDirty: (field: AchFieldKey) => void;
39
+ onDigitKeydown: (event: KeyboardEvent) => void;
40
+ onRoutingPaste: (event: ClipboardEvent) => void;
41
+ onAccountPaste: (event: ClipboardEvent) => void;
42
+ }> & Readonly<{
43
+ "onSelect-account-type"?: ((value: string) => any) | undefined;
44
+ "onUpdate:routingNumber"?: ((value: string) => any) | undefined;
45
+ "onUpdate:accountNumber"?: ((value: string) => any) | undefined;
46
+ "onUpdate:accountNumberConfirmed"?: ((value: boolean) => any) | undefined;
47
+ }>, {
48
+ activateCell: (id: "routing" | "account" | null) => void;
49
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
50
+ "update:routingNumber": (value: string) => any;
51
+ "update:accountNumber": (value: string) => any;
52
+ "update:accountNumberConfirmed": (value: boolean) => any;
53
+ } & {
54
+ "select-account-type": (value: string) => any;
55
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
56
+ routingInputRef: HTMLInputElement;
57
+ accountInputRef: HTMLInputElement;
58
+ confirmInputRef: HTMLInputElement;
59
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
60
+ P: {};
61
+ B: {};
62
+ D: {};
63
+ C: {};
64
+ M: {};
65
+ Defaults: {};
66
+ }, Readonly<{
67
+ routingNumber: string;
68
+ accountNumber: string;
69
+ accountNumberConfirmed: boolean;
70
+ } & {
71
+ fieldsDisabled: boolean;
72
+ accountType: string;
73
+ markFieldDirty: (field: AchFieldKey) => void;
74
+ onDigitKeydown: (event: KeyboardEvent) => void;
75
+ onRoutingPaste: (event: ClipboardEvent) => void;
76
+ onAccountPaste: (event: ClipboardEvent) => void;
77
+ }> & Readonly<{
78
+ "onSelect-account-type"?: ((value: string) => any) | undefined;
79
+ "onUpdate:routingNumber"?: ((value: string) => any) | undefined;
80
+ "onUpdate:accountNumber"?: ((value: string) => any) | undefined;
81
+ "onUpdate:accountNumberConfirmed"?: ((value: boolean) => any) | undefined;
82
+ }>, {
83
+ activateCell: (id: "routing" | "account" | null) => void;
84
+ }, {}, {}, {}, {}> | null;
85
+ }, any>;
31
86
  export default _default;
@@ -54,6 +54,9 @@ export declare function useAuthviaPaymentMethodAddAchForm(props: AuthviaPaymentM
54
54
  isAddressFieldDisabled: (fieldValue: string | undefined) => boolean;
55
55
  azp: ComputedRef<string>;
56
56
  handleAddressFormSubmit: (data: PaymentMethodBillingAddress) => void;
57
+ handleAddressSummaryClick: (event: MouseEvent) => void;
58
+ resetAddressToOriginalPrefill: () => void;
59
+ addressFormRemountKey: Ref<number, number>;
57
60
  handleUpdateForgetCard: (value: boolean) => void;
58
61
  addressFormRef: Ref<unknown, unknown>;
59
62
  formRef: Ref<unknown, unknown>;
@@ -82,6 +82,7 @@ export interface AuthviaPaymentMethodFormProps {
82
82
  postalCode?: string;
83
83
  /** Address selection mode for embedded card address form; default `default`. */
84
84
  selectionMode?: 'default' | 'collapse';
85
+ isAddressEditable?: boolean;
85
86
  };
86
87
  ach?: {
87
88
  demoMode?: boolean;
@@ -100,6 +101,7 @@ export interface AuthviaPaymentMethodFormProps {
100
101
  postalCode?: string;
101
102
  /** Address selection mode for embedded ACH address form; default `default`. */
102
103
  selectionMode?: 'default' | 'collapse';
104
+ isAddressEditable?: boolean;
103
105
  };
104
106
  paypal?: boolean | PayPalConfig;
105
107
  /** `true`, or `{ merchantId, redirectUrl? }` when you want Venmo without a `paypal` prop. */