@authvia/payment-method-create 0.4.0 → 0.6.0
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/README.md +26 -7
- package/dist/components/AuthviaPaymentMethodForm.vue.d.ts +10 -11
- package/dist/components/internal/AuthviaPaymentMethodAddAch.vue.d.ts +134 -63
- package/dist/components/internal/AuthviaPaymentMethodAddAchOnline.vue.d.ts +4 -4
- package/dist/components/internal/AuthviaPaymentMethodAddAchOptions.vue.d.ts +1 -1
- package/dist/components/internal/AuthviaPaymentMethodAddPaymentsPayPal.vue.d.ts +10 -15
- package/dist/components/internal/AuthviaPaymentMethodAddPayoutsPayPal.vue.d.ts +7 -13
- package/dist/components/internal/AuthviaPaymentMethodCard.vue.d.ts +1 -1
- package/dist/components/internal/AuthviaPaymentMethodCreditCard.vue.d.ts +6 -6
- package/dist/components/internal/AuthviaPaymentMethodOptions.vue.d.ts +585 -0
- package/dist/components/internal/AuthviaPazeForm.vue.d.ts +54 -0
- package/dist/components/internal/ach/AchFormPlaidBannerAndTypeToggle.vue.d.ts +31 -0
- package/dist/components/internal/ach/AchFormRoutingAccountNameFields.vue.d.ts +29 -0
- package/dist/components/internal/ach/AchFormSubmitBar.vue.d.ts +28 -0
- package/dist/components/internal/paymentMethodOptions/AuthviaPaymentMethodOptionsAchFlowDialogs.vue.d.ts +53 -0
- package/dist/components/internal/paymentMethodOptions/AuthviaPaymentMethodOptionsBankPlaceDialog.vue.d.ts +14 -0
- package/dist/components/internal/paymentMethodOptions/AuthviaPaymentMethodOptionsPickerCard.vue.d.ts +15 -0
- package/dist/components/internal/paymentMethodOptions/AuthviaPaymentMethodOptionsPlaidHost.vue.d.ts +17 -0
- package/dist/components/internal/paymentMethodOptions/AuthviaPaymentMethodOptionsWalletFormDialog.vue.d.ts +64 -0
- package/dist/composables/ach/useAchFormInputModels.d.ts +23 -0
- package/dist/composables/ach/useAchFormReset.d.ts +6 -0
- package/dist/composables/ach/useAchFormSubmitFlow.d.ts +25 -0
- package/dist/composables/ach/useAchFormValidation.d.ts +10 -0
- package/dist/composables/ach/useAuthviaPaymentMethodAddAchForm.d.ts +69 -0
- package/dist/composables/paymentMethodForm/paymentMethodFormTypes.d.ts +27 -0
- package/dist/composables/paymentMethodForm/useAuthviaPaymentMethodForm.d.ts +44 -0
- package/dist/composables/paymentMethodForm/usePaymentMethodFormChildProps.d.ts +25 -0
- package/dist/composables/paymentMethodForm/usePaymentMethodFormHandlers.d.ts +9 -0
- package/dist/composables/paymentMethodForm/usePaymentMethodFormPermittedTypes.d.ts +8 -0
- package/dist/composables/paymentMethodForm/usePaymentMethodFormTheme.d.ts +20 -0
- package/dist/composables/paymentMethodForm/usePaymentMethodFormTokenValidation.d.ts +10 -0
- package/dist/composables/paymentMethodOptions/paymentMethodOptionsTypes.d.ts +13 -0
- package/dist/composables/paymentMethodOptions/useAuthviaPaymentMethodOptions.d.ts +84 -0
- package/dist/composables/paymentMethodOptions/usePaymentMethodOptionsDisplay.d.ts +14 -0
- package/dist/composables/paymentMethodOptions/usePaymentMethodOptionsHandlers.d.ts +43 -0
- package/dist/composables/paymentMethodOptions/usePaymentMethodOptionsState.d.ts +27 -0
- package/dist/constants/themeAvwcDerived.d.ts +13 -4
- package/dist/entry/web-component.d.ts +2 -0
- package/dist/model/PaymentMethodAPIError.d.ts +3 -1
- package/dist/types/achForm.d.ts +42 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/paymentMethodOptions.d.ts +34 -0
- package/dist/utils/achApiErrorMapping.d.ts +8 -0
- package/dist/utils/achCreatePayload.d.ts +8 -0
- package/dist/utils/authviaAddressFormComponent.d.ts +6 -0
- package/dist/utils/sentryErrorSummary.d.ts +10 -0
- package/dist/utils/sentryWidget.d.ts +41 -0
- package/dist/utils/tokenUtils.d.ts +5 -0
- package/dist/vue-plugin.js +2 -2
- package/dist/vue-plugin.umd.cjs +2 -2
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -25,9 +25,10 @@ Exports:
|
|
|
25
25
|
|
|
26
26
|
## Features (summary)
|
|
27
27
|
|
|
28
|
-
- **Token:** A valid JWT is required for the inner form to render. The token must include `https://authvia.com/uuid` and `payment_methods:create` in `scope`.
|
|
28
|
+
- **Token:** A valid JWT is required for the inner form to render. The token must include `https://authvia.com/uuid` and `payment_methods:create` in `scope`. Missing, empty, invalid, or expired tokens keep the form hidden; the wrapper emits `error` as `{ phase: 'init', error }` and logs a warning, and does **not** emit `ready`. **`ready` is emitted only after the token passes validation.**
|
|
29
29
|
- **Enabled methods:** Props such as `card`, `ach`, `paypal`, `venmo`, and `paze` control what appears. Methods you do not configure stay off the list.
|
|
30
30
|
- **Runtime errors:** Failures while saving emit `error` with a payload that usually includes a `message` string (shape is **not** `{ phase: 'init', … }`). Incomplete **Paze** or **PayPal/Venmo** (for non-`payouts` intent) config hides those methods in the list instead of erroring on open. The embed usually stays mounted so the user can retry.
|
|
31
|
+
- **Sentry:** Supports standalone widget ownership (`VITE_WIDGET_SENTRY_DSN`) and host-owned ownership (`VITE_SENTRY_EMBED_MODE=lock` or `window.__AUTHVIA_EMBED__.sentry='host'`) without double-init.
|
|
31
32
|
- **Success:** `success` carries payment method details (see Events). The host decides navigation or hiding the embed.
|
|
32
33
|
- **Styling:** Accent color, border radius, and field `variant` are configurable; CSS variables use the `--avwc-*` prefix on the form root.
|
|
33
34
|
|
|
@@ -72,7 +73,7 @@ Named export `AuthviaPaymentMethodFormPlugin` is also available for explicit imp
|
|
|
72
73
|
import { AuthviaPaymentMethodForm } from '@authvia/payment-method-create';
|
|
73
74
|
|
|
74
75
|
function onReady(): void {
|
|
75
|
-
/*
|
|
76
|
+
/* JWT passed validation; inner form can render */
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
function onSuccess(detail: unknown): void {
|
|
@@ -112,7 +113,7 @@ See `demo.html` in this repo for a full page example.
|
|
|
112
113
|
Load the built script after Vue (for example the output of `npm run build:wc`):
|
|
113
114
|
|
|
114
115
|
```html
|
|
115
|
-
<script type="module" src="
|
|
116
|
+
<script type="module" src=".https://cdn.authvia.com/web-components/authvia-payment-method-create/authvia-payment-method-create.js"></script>
|
|
116
117
|
```
|
|
117
118
|
|
|
118
119
|
### Web component events
|
|
@@ -121,7 +122,7 @@ Listen on the custom element for:
|
|
|
121
122
|
|
|
122
123
|
| Event | `detail` |
|
|
123
124
|
|--------|----------|
|
|
124
|
-
| `ready` |
|
|
125
|
+
| `ready` | Emitted only when the JWT passes validation (non-empty, parseable, not expired, required scope). Not emitted for missing, invalid, expired, or under-scoped tokens; use `error` with `{ phase: 'init', error }` instead. |
|
|
125
126
|
| `submit` | Emitted from some inner flows (for example ACH / PayPal) with form-related payloads. |
|
|
126
127
|
| `success` | Saved payment method; includes `paymentMethodId` in the normalized payload. |
|
|
127
128
|
| `error` | Init failures: `{ phase: 'init', error }`. Runtime: often `{ message: string }` or similar. |
|
|
@@ -136,6 +137,24 @@ Listen on the custom element for:
|
|
|
136
137
|
</script>
|
|
137
138
|
```
|
|
138
139
|
|
|
140
|
+
## Sentry behavior
|
|
141
|
+
|
|
142
|
+
The package uses a single-client ownership model:
|
|
143
|
+
|
|
144
|
+
- **Standalone widget mode:** set `VITE_WIDGET_SENTRY_DSN`; the widget calls `Sentry.init` once and tags events with `component=payment-method-create` and `integration=standalone-web-component`.
|
|
145
|
+
- **Embedded host mode (Lock or another host):** set `VITE_SENTRY_EMBED_MODE=lock` at build time, or set `window.__AUTHVIA_EMBED__.sentry = 'host'` before widget mount; the widget skips `Sentry.init` and attaches handlers to the active host client.
|
|
146
|
+
- **No active Sentry client:** capture helpers are safe no-ops.
|
|
147
|
+
|
|
148
|
+
Supported Sentry env vars:
|
|
149
|
+
|
|
150
|
+
| Variable | Purpose | Default |
|
|
151
|
+
|----------|---------|---------|
|
|
152
|
+
| `VITE_WIDGET_SENTRY_DSN` | DSN for standalone widget ownership | unset |
|
|
153
|
+
| `VITE_SENTRY_EMBED_MODE` | Set to `lock` to force host-owned mode | unset |
|
|
154
|
+
| `VITE_SENTRY_RELEASE` | Optional release version sent to Sentry | unset |
|
|
155
|
+
| `VITE_SENTRY_REPLAY_SESSION_SAMPLE_RATE` | Session replay sample rate (`0..1`) | `0` |
|
|
156
|
+
| `VITE_SENTRY_REPLAY_ON_ERROR_SAMPLE_RATE` | Replay-on-error sample rate (`0..1`) | `1` |
|
|
157
|
+
|
|
139
158
|
## Props (overview)
|
|
140
159
|
|
|
141
160
|
Details and examples match **Storybook** (`src/components/AuthviaPaymentMethodForm.stories.ts`).
|
|
@@ -147,7 +166,7 @@ Details and examples match **Storybook** (`src/components/AuthviaPaymentMethodFo
|
|
|
147
166
|
| List UI | `paymentMethodDisplay` (titles, subtitles, order; optional root `gap`) |
|
|
148
167
|
| Legal / footer | `terms` (privacy + terms links) |
|
|
149
168
|
| Behavior | `forgetHidden`, `forgetDefault`, `restrictions` |
|
|
150
|
-
| Styling | `color` (default `#4CAF50`), `borderRadius` (default `1rem`), `variant` (default `outlined`), `vuetifyOverrides` (web component: plain CSS string for Shadow DOM) |
|
|
169
|
+
| Styling | `color` (default `#4CAF50`, from `DEFAULT_AVWC_PRIMARY_COLOR`), `borderRadius` (default `1rem`, from `DEFAULT_AVWC_BORDER_RADIUS`), `variant` (default `outlined`, from `DEFAULT_AVWC_FIELD_VARIANT`), `vuetifyOverrides` (web component: plain CSS string for Shadow DOM) |
|
|
151
170
|
|
|
152
171
|
### `paymentMethodDisplay`
|
|
153
172
|
|
|
@@ -205,8 +224,8 @@ Use these hooks in `data-vuetify-overrides` (web component) or host CSS. Canonic
|
|
|
205
224
|
|
|
206
225
|
The form root sets theming variables, including:
|
|
207
226
|
|
|
208
|
-
- `--avwc-color` (accent; mirrors `color` prop, default `#4CAF50`)
|
|
209
|
-
- `--avwc-border-radius` (mirrors `borderRadius`, default `1rem`)
|
|
227
|
+
- `--avwc-color` (accent; mirrors `color` prop, default `#4CAF50` from `DEFAULT_AVWC_PRIMARY_COLOR`)
|
|
228
|
+
- `--avwc-border-radius` (mirrors `borderRadius`, default `1rem` from `DEFAULT_AVWC_BORDER_RADIUS`)
|
|
210
229
|
|
|
211
230
|
Additional tokens (for example `--avwc-text-color-light`) are documented in `variables.css` and Storybook.
|
|
212
231
|
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AuthviaPaymentMethodFormProps as Props, PaymentMethodFormData, PaymentMethodRestrictions } from '../types';
|
|
1
|
+
import { AuthviaPaymentMethodFormProps as Props, PaymentMethodFormData } from '../types';
|
|
3
2
|
declare const _default: import('vue').DefineComponent<Props, {
|
|
4
|
-
rootRef: Ref<HTMLElement | null, HTMLElement | null>;
|
|
3
|
+
rootRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
5
4
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
error: (error: any) => any;
|
|
7
|
-
success: (data: any) => any;
|
|
8
5
|
submit: (data: PaymentMethodFormData) => any;
|
|
6
|
+
success: (data: any) => any;
|
|
7
|
+
error: (error: any) => any;
|
|
9
8
|
ready: () => any;
|
|
10
9
|
"payment-method-created": (paymentMethodId: string) => any;
|
|
11
10
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
12
|
-
onError?: ((error: any) => any) | undefined;
|
|
13
|
-
onSuccess?: ((data: any) => any) | undefined;
|
|
14
11
|
onSubmit?: ((data: PaymentMethodFormData) => any) | undefined;
|
|
12
|
+
onSuccess?: ((data: any) => any) | undefined;
|
|
13
|
+
onError?: ((error: any) => any) | undefined;
|
|
15
14
|
onReady?: (() => any) | undefined;
|
|
16
15
|
"onPayment-method-created"?: ((paymentMethodId: string) => any) | undefined;
|
|
17
16
|
}>, {
|
|
@@ -55,15 +54,15 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
55
54
|
venmo: boolean | import('../types').VenmoConfig;
|
|
56
55
|
variant: "outlined" | "plain" | "underlined" | "filled" | "solo" | "solo-filled" | "solo-inverted";
|
|
57
56
|
merchantId: string;
|
|
58
|
-
color: string;
|
|
59
|
-
forgetDefault: boolean | string;
|
|
60
57
|
customerRef: string;
|
|
61
58
|
token: string;
|
|
62
|
-
|
|
59
|
+
color: string;
|
|
60
|
+
forgetDefault: boolean | string;
|
|
63
61
|
forgetHidden: boolean | string;
|
|
64
62
|
intent: string;
|
|
63
|
+
borderRadius: string;
|
|
65
64
|
vuetifyOverrides: string;
|
|
66
|
-
restrictions: PaymentMethodRestrictions[];
|
|
65
|
+
restrictions: import('../types').PaymentMethodRestrictions[];
|
|
67
66
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
68
67
|
rootRef: HTMLDivElement;
|
|
69
68
|
}, HTMLDivElement>;
|
|
@@ -1,33 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { PaymentMethodBillingAddress } from '../../model';
|
|
3
3
|
import { TermsConfig } from '../../types';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
accountNumber: string;
|
|
7
|
-
routingNumber: string;
|
|
8
|
-
accountType: string;
|
|
9
|
-
streetAddress: string;
|
|
10
|
-
city: string;
|
|
11
|
-
state: string;
|
|
12
|
-
country: string;
|
|
13
|
-
postalCode: string;
|
|
14
|
-
}
|
|
15
|
-
type AchFieldKey = 'routingNumber' | 'accountNumber' | 'nameOnAccount';
|
|
16
|
-
type ValidationRule = (value: unknown) => true | string;
|
|
17
|
-
export interface Props {
|
|
18
|
-
demoMode?: boolean;
|
|
19
|
-
submitBtnText?: string;
|
|
20
|
-
plaid?: Record<string, unknown>;
|
|
21
|
-
billingAddress?: PaymentMethodBillingAddress;
|
|
22
|
-
terms?: TermsConfig;
|
|
23
|
-
forgetHidden?: boolean;
|
|
24
|
-
forgetDefault?: boolean;
|
|
25
|
-
authToken: string;
|
|
26
|
-
customerRef?: string;
|
|
27
|
-
dataBillingAddress?: PaymentMethodBillingAddress;
|
|
28
|
-
intent?: string;
|
|
29
|
-
merchantId?: string;
|
|
30
|
-
}
|
|
4
|
+
export type { P_ACHValues, AuthviaPaymentMethodAddAchProps } from '../../types/achForm';
|
|
5
|
+
export type { AuthviaPaymentMethodAddAchProps as Props } from '../../types/achForm';
|
|
31
6
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
32
7
|
demoMode: {
|
|
33
8
|
type: BooleanConstructor;
|
|
@@ -78,7 +53,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
78
53
|
variant: {
|
|
79
54
|
type: StringConstructor;
|
|
80
55
|
required: false;
|
|
81
|
-
default:
|
|
56
|
+
default: "outlined";
|
|
82
57
|
};
|
|
83
58
|
color: {
|
|
84
59
|
type: StringConstructor;
|
|
@@ -103,52 +78,52 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
103
78
|
savings: string;
|
|
104
79
|
checking: string;
|
|
105
80
|
};
|
|
106
|
-
fieldVariant: ComputedRef<"outlined" | "plain" | "underlined" | "filled" | "solo" | "solo-filled" | "solo-inverted">;
|
|
107
|
-
fieldVariantSafe: ComputedRef<"outlined" | "plain" | "underlined" | "filled" | "solo" | "solo-filled" | "solo-inverted">;
|
|
108
|
-
formData: P_ACHValues;
|
|
109
|
-
isWorking: Ref<boolean, boolean>;
|
|
110
|
-
isFormValid: ComputedRef<boolean>;
|
|
111
|
-
markFieldDirty: (field: AchFieldKey) => void;
|
|
112
|
-
getFieldRules: (field: AchFieldKey) =>
|
|
113
|
-
routingNumberModel: ComputedRef<string>;
|
|
114
|
-
accountNumberModel: ComputedRef<string>;
|
|
115
|
-
nameOnAccountModel: ComputedRef<string>;
|
|
81
|
+
fieldVariant: import('vue').ComputedRef<"outlined" | "plain" | "underlined" | "filled" | "solo" | "solo-filled" | "solo-inverted">;
|
|
82
|
+
fieldVariantSafe: import('vue').ComputedRef<"outlined" | "plain" | "underlined" | "filled" | "solo" | "solo-filled" | "solo-inverted">;
|
|
83
|
+
formData: import('../../types/achForm').P_ACHValues;
|
|
84
|
+
isWorking: import('vue').Ref<boolean, boolean>;
|
|
85
|
+
isFormValid: import('vue').ComputedRef<boolean>;
|
|
86
|
+
markFieldDirty: (field: import('../../types/achForm').AchFieldKey) => void;
|
|
87
|
+
getFieldRules: (field: import('../../types/achForm').AchFieldKey) => ((value: unknown) => true | string)[];
|
|
88
|
+
routingNumberModel: import('vue').ComputedRef<string>;
|
|
89
|
+
accountNumberModel: import('vue').ComputedRef<string>;
|
|
90
|
+
nameOnAccountModel: import('vue').ComputedRef<string>;
|
|
116
91
|
onDigitKeydown: (event: KeyboardEvent) => void;
|
|
117
92
|
onNameKeydown: (event: KeyboardEvent) => void;
|
|
118
93
|
onRoutingPaste: (event: ClipboardEvent) => void;
|
|
119
94
|
onAccountPaste: (event: ClipboardEvent) => void;
|
|
120
95
|
onNamePaste: (event: ClipboardEvent) => void;
|
|
121
|
-
errorsType: Ref<{
|
|
96
|
+
errorsType: import('vue').Ref<{
|
|
122
97
|
other: string | undefined;
|
|
123
98
|
}, {
|
|
124
99
|
other: string | undefined;
|
|
125
100
|
}>;
|
|
126
|
-
computedSubmitLabel: ComputedRef<string>;
|
|
101
|
+
computedSubmitLabel: import('vue').ComputedRef<string>;
|
|
127
102
|
handleSubmit: () => Promise<void>;
|
|
128
|
-
isActiveTab: Ref<boolean, boolean>;
|
|
103
|
+
isActiveTab: import('vue').Ref<boolean, boolean>;
|
|
129
104
|
addButtonToggle: (value?: boolean) => void;
|
|
130
|
-
address: Ref<HTMLInputElement, HTMLInputElement>;
|
|
105
|
+
address: import('vue').Ref<HTMLInputElement, HTMLInputElement>;
|
|
131
106
|
resetFormAddressData: () => void;
|
|
132
|
-
activeMerchant: ComputedRef<string | undefined>;
|
|
133
|
-
isPaymentMethodAdded: Ref<boolean, boolean>;
|
|
134
|
-
paymentMethodResponse: Ref<PaymentMethod | undefined, PaymentMethod | undefined>;
|
|
107
|
+
activeMerchant: import('vue').ComputedRef<string | undefined>;
|
|
108
|
+
isPaymentMethodAdded: import('vue').Ref<boolean, boolean>;
|
|
109
|
+
paymentMethodResponse: import('vue').Ref<import('../../model').PaymentMethod | undefined, import('../../model').PaymentMethod | undefined>;
|
|
135
110
|
isAddressFieldDisabled: (fieldValue: string | undefined) => boolean;
|
|
136
|
-
azp: ComputedRef<string>;
|
|
111
|
+
azp: import('vue').ComputedRef<string>;
|
|
137
112
|
handleAddressFormSubmit: (data: PaymentMethodBillingAddress) => void;
|
|
138
|
-
handleUpdateForgetCard: (
|
|
139
|
-
addressFormRef: Ref<unknown, unknown>;
|
|
140
|
-
formRef: Ref<unknown, unknown>;
|
|
141
|
-
demoMode: ComputedRef<boolean>;
|
|
142
|
-
plaid: ComputedRef<Record<string, unknown> | undefined>;
|
|
143
|
-
billingAddress: ComputedRef<PaymentMethodBillingAddress | undefined>;
|
|
144
|
-
streetAddress: string
|
|
145
|
-
city: string
|
|
146
|
-
state: string
|
|
147
|
-
country: string
|
|
148
|
-
postalCode: string
|
|
113
|
+
handleUpdateForgetCard: (value: boolean) => void;
|
|
114
|
+
addressFormRef: import('vue').Ref<unknown, unknown>;
|
|
115
|
+
formRef: import('vue').Ref<unknown, unknown>;
|
|
116
|
+
demoMode: import('vue').ComputedRef<boolean>;
|
|
117
|
+
plaid: import('vue').ComputedRef<Record<string, unknown> | undefined>;
|
|
118
|
+
billingAddress: import('vue').ComputedRef<PaymentMethodBillingAddress | undefined>;
|
|
119
|
+
streetAddress: import('vue').Ref<string, string>;
|
|
120
|
+
city: import('vue').Ref<string, string>;
|
|
121
|
+
state: import('vue').Ref<string, string>;
|
|
122
|
+
country: import('vue').Ref<string, string>;
|
|
123
|
+
postalCode: import('vue').Ref<string, string>;
|
|
149
124
|
googleMapsApiKey: string;
|
|
150
125
|
isAddressFormValid: (isValid: boolean) => void;
|
|
151
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("
|
|
126
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("submit" | "success" | "error")[], "submit" | "success" | "error", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
152
127
|
demoMode: {
|
|
153
128
|
type: BooleanConstructor;
|
|
154
129
|
required: false;
|
|
@@ -198,7 +173,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
198
173
|
variant: {
|
|
199
174
|
type: StringConstructor;
|
|
200
175
|
required: false;
|
|
201
|
-
default:
|
|
176
|
+
default: "outlined";
|
|
202
177
|
};
|
|
203
178
|
color: {
|
|
204
179
|
type: StringConstructor;
|
|
@@ -209,15 +184,110 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
209
184
|
required: false;
|
|
210
185
|
};
|
|
211
186
|
}>> & Readonly<{
|
|
212
|
-
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
213
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
214
187
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
188
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
189
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
215
190
|
}>, {
|
|
216
191
|
variant: string;
|
|
217
192
|
forgetDefault: boolean;
|
|
218
193
|
demoMode: boolean;
|
|
219
194
|
forgetHidden: boolean;
|
|
220
195
|
}, {}, {
|
|
196
|
+
AchFormPlaidBannerAndTypeToggle: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
197
|
+
plaid: {
|
|
198
|
+
type: PropType<Record<string, unknown> | undefined>;
|
|
199
|
+
default: undefined;
|
|
200
|
+
};
|
|
201
|
+
isActiveTab: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
required: true;
|
|
204
|
+
};
|
|
205
|
+
onAccountTypeToggle: {
|
|
206
|
+
type: PropType<(value?: boolean) => void>;
|
|
207
|
+
required: true;
|
|
208
|
+
};
|
|
209
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
210
|
+
plaid: {
|
|
211
|
+
type: PropType<Record<string, unknown> | undefined>;
|
|
212
|
+
default: undefined;
|
|
213
|
+
};
|
|
214
|
+
isActiveTab: {
|
|
215
|
+
type: BooleanConstructor;
|
|
216
|
+
required: true;
|
|
217
|
+
};
|
|
218
|
+
onAccountTypeToggle: {
|
|
219
|
+
type: PropType<(value?: boolean) => void>;
|
|
220
|
+
required: true;
|
|
221
|
+
};
|
|
222
|
+
}>> & Readonly<{}>, {
|
|
223
|
+
plaid: Record<string, unknown> | undefined;
|
|
224
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
225
|
+
AchFormRoutingAccountNameFields: import('vue').DefineComponent<{
|
|
226
|
+
routingNumber: string;
|
|
227
|
+
accountNumber: string;
|
|
228
|
+
nameOnAccount: string;
|
|
229
|
+
} & {
|
|
230
|
+
plaid: Record<string, unknown> | undefined;
|
|
231
|
+
fieldsDisabled: boolean;
|
|
232
|
+
fieldVariantSafe: import('../../types').VuetifyFieldVariant;
|
|
233
|
+
getFieldRules: (field: import('../../types/achForm').AchFieldKey) => Array<(value: unknown) => true | string>;
|
|
234
|
+
markFieldDirty: (field: import('../../types/achForm').AchFieldKey) => void;
|
|
235
|
+
onDigitKeydown: (event: KeyboardEvent) => void;
|
|
236
|
+
onNameKeydown: (event: KeyboardEvent) => void;
|
|
237
|
+
onRoutingPaste: (event: ClipboardEvent) => void;
|
|
238
|
+
onAccountPaste: (event: ClipboardEvent) => void;
|
|
239
|
+
onNamePaste: (event: ClipboardEvent) => void;
|
|
240
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
241
|
+
"update:routingNumber": (value: string) => any;
|
|
242
|
+
"update:accountNumber": (value: string) => any;
|
|
243
|
+
"update:nameOnAccount": (value: string) => any;
|
|
244
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
245
|
+
routingNumber: string;
|
|
246
|
+
accountNumber: string;
|
|
247
|
+
nameOnAccount: string;
|
|
248
|
+
} & {
|
|
249
|
+
plaid: Record<string, unknown> | undefined;
|
|
250
|
+
fieldsDisabled: boolean;
|
|
251
|
+
fieldVariantSafe: import('../../types').VuetifyFieldVariant;
|
|
252
|
+
getFieldRules: (field: import('../../types/achForm').AchFieldKey) => Array<(value: unknown) => true | string>;
|
|
253
|
+
markFieldDirty: (field: import('../../types/achForm').AchFieldKey) => void;
|
|
254
|
+
onDigitKeydown: (event: KeyboardEvent) => void;
|
|
255
|
+
onNameKeydown: (event: KeyboardEvent) => void;
|
|
256
|
+
onRoutingPaste: (event: ClipboardEvent) => void;
|
|
257
|
+
onAccountPaste: (event: ClipboardEvent) => void;
|
|
258
|
+
onNamePaste: (event: ClipboardEvent) => void;
|
|
259
|
+
}> & Readonly<{
|
|
260
|
+
"onUpdate:routingNumber"?: ((value: string) => any) | undefined;
|
|
261
|
+
"onUpdate:accountNumber"?: ((value: string) => any) | undefined;
|
|
262
|
+
"onUpdate:nameOnAccount"?: ((value: string) => any) | undefined;
|
|
263
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
264
|
+
AchFormSubmitBar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
265
|
+
isFormValid: {
|
|
266
|
+
type: BooleanConstructor;
|
|
267
|
+
required: true;
|
|
268
|
+
};
|
|
269
|
+
isWorking: {
|
|
270
|
+
type: BooleanConstructor;
|
|
271
|
+
required: true;
|
|
272
|
+
};
|
|
273
|
+
submitLabel: {
|
|
274
|
+
type: StringConstructor;
|
|
275
|
+
required: true;
|
|
276
|
+
};
|
|
277
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
278
|
+
isFormValid: {
|
|
279
|
+
type: BooleanConstructor;
|
|
280
|
+
required: true;
|
|
281
|
+
};
|
|
282
|
+
isWorking: {
|
|
283
|
+
type: BooleanConstructor;
|
|
284
|
+
required: true;
|
|
285
|
+
};
|
|
286
|
+
submitLabel: {
|
|
287
|
+
type: StringConstructor;
|
|
288
|
+
required: true;
|
|
289
|
+
};
|
|
290
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
221
291
|
AuthviaFormWithTerms: import('vue').DefineComponent<{
|
|
222
292
|
terms?: TermsConfig;
|
|
223
293
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
@@ -230,5 +300,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
230
300
|
}>, {
|
|
231
301
|
forgetDefault: boolean;
|
|
232
302
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
303
|
+
AuthviaAddressForm: import('vue').Component;
|
|
233
304
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
234
305
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
2
|
authToken: string;
|
|
3
|
-
}
|
|
4
|
-
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
5
5
|
handleContinue: () => void;
|
|
6
6
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
"close-ach-options": () => any;
|
|
@@ -11,7 +11,7 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
11
11
|
"plaid-exit": () => any;
|
|
12
12
|
"plaid-error": () => any;
|
|
13
13
|
"plaid-event": (eventName: unknown) => any;
|
|
14
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
15
|
"onClose-ach-options"?: (() => any) | undefined;
|
|
16
16
|
"onAch-option-select"?: (() => any) | undefined;
|
|
17
17
|
"onGet-plaid-data"?: ((accountData: unknown) => any) | undefined;
|
|
@@ -36,7 +36,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
36
36
|
"onClose-ach-options"?: ((...args: any[]) => any) | undefined;
|
|
37
37
|
"onAch-option-select"?: ((...args: any[]) => any) | undefined;
|
|
38
38
|
}>, {
|
|
39
|
-
isPlaidVisible: boolean;
|
|
40
39
|
showConfirmLoader: boolean;
|
|
40
|
+
isPlaidVisible: boolean;
|
|
41
41
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
42
42
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PaymentMethodType } from '../../model';
|
|
2
|
+
import { PaymentMethodErrorPayload } from '../../types';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
authToken: string;
|
|
4
5
|
merchantId?: string;
|
|
@@ -8,14 +9,6 @@ type __VLS_Props = {
|
|
|
8
9
|
pvSettings?: Record<string, unknown>;
|
|
9
10
|
};
|
|
10
11
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
-
error: (payload: {
|
|
12
|
-
message: string;
|
|
13
|
-
type: PaymentMethodType;
|
|
14
|
-
}) => any;
|
|
15
|
-
success: (payload: {
|
|
16
|
-
id: string;
|
|
17
|
-
forgetCard?: boolean;
|
|
18
|
-
}) => any;
|
|
19
12
|
submit: (payload: {
|
|
20
13
|
payload: {
|
|
21
14
|
type: PaymentMethodType;
|
|
@@ -24,15 +17,12 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
24
17
|
};
|
|
25
18
|
};
|
|
26
19
|
}) => any;
|
|
27
|
-
|
|
28
|
-
onError?: ((payload: {
|
|
29
|
-
message: string;
|
|
30
|
-
type: PaymentMethodType;
|
|
31
|
-
}) => any) | undefined;
|
|
32
|
-
onSuccess?: ((payload: {
|
|
20
|
+
success: (payload: {
|
|
33
21
|
id: string;
|
|
34
22
|
forgetCard?: boolean;
|
|
35
|
-
}) => any
|
|
23
|
+
}) => any;
|
|
24
|
+
error: (payload: PaymentMethodErrorPayload) => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
36
26
|
onSubmit?: ((payload: {
|
|
37
27
|
payload: {
|
|
38
28
|
type: PaymentMethodType;
|
|
@@ -41,6 +31,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
41
31
|
};
|
|
42
32
|
};
|
|
43
33
|
}) => any) | undefined;
|
|
34
|
+
onSuccess?: ((payload: {
|
|
35
|
+
id: string;
|
|
36
|
+
forgetCard?: boolean;
|
|
37
|
+
}) => any) | undefined;
|
|
38
|
+
onError?: ((payload: PaymentMethodErrorPayload) => any) | undefined;
|
|
44
39
|
}>, {
|
|
45
40
|
type: "paypal" | "venmo";
|
|
46
41
|
merchantId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaymentMethodType } from '../../model';
|
|
2
|
-
import { TermsConfig, Variant } from '../../types';
|
|
2
|
+
import { PaymentMethodErrorPayload, TermsConfig, Variant } from '../../types';
|
|
3
3
|
type FormType = 'paypal' | 'venmo';
|
|
4
4
|
type PayoutTraits = {
|
|
5
5
|
email?: string;
|
|
@@ -18,32 +18,26 @@ type __VLS_Props = {
|
|
|
18
18
|
variant?: Variant | string;
|
|
19
19
|
};
|
|
20
20
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
-
error: (payload: {
|
|
22
|
-
message: string;
|
|
23
|
-
type: PaymentMethodType;
|
|
24
|
-
}) => any;
|
|
25
|
-
success: (payload: Record<string, unknown>) => any;
|
|
26
21
|
submit: (payload: {
|
|
27
22
|
type: PaymentMethodType;
|
|
28
23
|
traits: PayoutTraits;
|
|
29
24
|
}) => any;
|
|
25
|
+
success: (payload: Record<string, unknown>) => any;
|
|
26
|
+
error: (payload: PaymentMethodErrorPayload) => any;
|
|
30
27
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
-
onError?: ((payload: {
|
|
32
|
-
message: string;
|
|
33
|
-
type: PaymentMethodType;
|
|
34
|
-
}) => any) | undefined;
|
|
35
|
-
onSuccess?: ((payload: Record<string, unknown>) => any) | undefined;
|
|
36
28
|
onSubmit?: ((payload: {
|
|
37
29
|
type: PaymentMethodType;
|
|
38
30
|
traits: PayoutTraits;
|
|
39
31
|
}) => any) | undefined;
|
|
32
|
+
onSuccess?: ((payload: Record<string, unknown>) => any) | undefined;
|
|
33
|
+
onError?: ((payload: PaymentMethodErrorPayload) => any) | undefined;
|
|
40
34
|
}>, {
|
|
41
35
|
type: FormType;
|
|
42
36
|
variant: Variant | string;
|
|
43
37
|
merchantId: string;
|
|
44
|
-
forgetDefault: boolean;
|
|
45
|
-
terms: TermsConfig;
|
|
46
38
|
customerRef: string;
|
|
39
|
+
terms: TermsConfig;
|
|
40
|
+
forgetDefault: boolean;
|
|
47
41
|
forgetHidden: boolean;
|
|
48
42
|
intent: string;
|
|
49
43
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -15,8 +15,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
15
15
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
16
16
|
onClick?: (() => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
+
iconSize: number;
|
|
18
19
|
disabled: boolean;
|
|
19
20
|
logoSize: number;
|
|
20
|
-
iconSize: number;
|
|
21
21
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
export default _default;
|
|
@@ -62,7 +62,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
62
62
|
variant: {
|
|
63
63
|
type: StringConstructor;
|
|
64
64
|
required: false;
|
|
65
|
-
default:
|
|
65
|
+
default: "outlined";
|
|
66
66
|
};
|
|
67
67
|
color: {
|
|
68
68
|
type: StringConstructor;
|
|
@@ -111,7 +111,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
111
111
|
submitLabel: any;
|
|
112
112
|
handleSuccess: (event: unknown) => void;
|
|
113
113
|
handleError: (error: unknown) => void;
|
|
114
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("
|
|
114
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("success" | "error")[], "success" | "error", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
115
115
|
demoMode: {
|
|
116
116
|
type: BooleanConstructor;
|
|
117
117
|
default: boolean;
|
|
@@ -166,7 +166,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
166
166
|
variant: {
|
|
167
167
|
type: StringConstructor;
|
|
168
168
|
required: false;
|
|
169
|
-
default:
|
|
169
|
+
default: "outlined";
|
|
170
170
|
};
|
|
171
171
|
color: {
|
|
172
172
|
type: StringConstructor;
|
|
@@ -187,15 +187,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
187
187
|
required: false;
|
|
188
188
|
};
|
|
189
189
|
}>> & Readonly<{
|
|
190
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
191
190
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
191
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
192
192
|
}>, {
|
|
193
193
|
variant: string;
|
|
194
194
|
color: string;
|
|
195
|
+
submitLabel: string;
|
|
195
196
|
forgetDefault: boolean;
|
|
196
197
|
demoMode: boolean;
|
|
197
|
-
borderRadius: string;
|
|
198
198
|
forgetHidden: boolean;
|
|
199
|
-
|
|
199
|
+
borderRadius: string;
|
|
200
200
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
201
201
|
export default _default;
|