@justifi/webcomponents 4.12.2 → 4.13.0-rc.1
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/cjs/{Api-a06b996e.js → Api-ab34a402.js} +4 -1
- package/dist/cjs/{Business-21cef37d.js → Business-32a53780.js} +8 -3
- package/dist/cjs/{utils-f8079741.js → ComponentError-8ba0c0e7.js} +0 -25
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{business-additional-questions-schema-f5f303fb.js → business-additional-questions-schema-0a35f597.js} +17 -9
- package/dist/cjs/{business-form-types-a3cc374d.js → business-form-options-43366c9a.js} +50 -33
- package/dist/cjs/business-form-types-29b2bad9.js +26 -0
- package/dist/cjs/form-control-date_3.cjs.entry.js +1 -1
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +1 -1
- package/dist/cjs/form-control-file.cjs.entry.js +44 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js +7 -12
- package/dist/cjs/form-input-masks-0879c139.js +27 -0
- package/dist/cjs/{index-fc5339a5.js → index-d8e99b54.js} +352 -198
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +10 -9
- package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +6 -6
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +8 -7
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-business-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +30 -11
- package/dist/cjs/justifi-checkout.cjs.entry.js +36 -9
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -6
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +12 -12
- package/dist/cjs/justifi-owner-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +1 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{payload-parsers-74693a97.js → payload-parsers-6c4b5323.js} +61 -6
- package/dist/cjs/{payment.service-9db24ab9.js → payment.service-336189d3.js} +1 -1
- package/dist/cjs/{payout.service-a0efb71a.js → payout.service-6012d576.js} +1 -1
- package/dist/cjs/utils-491248ca.js +28 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +4 -1
- package/dist/collection/api/Business.js +8 -3
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +2 -2
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +4 -2
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +4 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -2
- package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +16 -9
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +3 -1
- package/dist/collection/components/business-forms/schemas/schema-helpers.js +3 -0
- package/dist/collection/components/business-forms/schemas/schema-validations.js +51 -7
- package/dist/collection/components/business-forms/utils/business-form-options.js +119 -0
- package/dist/collection/components/business-forms/utils/business-form-types.js +0 -81
- package/dist/collection/components/checkout/checkout-actions.js +29 -7
- package/dist/collection/components/checkout/checkout-core.js +51 -14
- package/dist/collection/components/checkout/checkout.js +30 -2
- package/dist/collection/components/checkout/new-payment-method.js +11 -11
- package/dist/collection/components/checkout/payment-method-options.js +2 -18
- package/dist/collection/components/checkout/test/checkout-actions.spec.js +124 -0
- package/dist/collection/components/checkout/test/checkout-core.spec.js +127 -0
- package/dist/collection/components/checkout/test/checkout.spec.js +0 -153
- package/dist/collection/components/form/form-control-file.css +1806 -0
- package/dist/collection/components/form/form-control-file.js +169 -0
- package/dist/collection/components/form/form-control-monetary.css +1812 -0
- package/dist/collection/components/form/form-control-monetary.js +24 -11
- package/dist/collection/components/form/test/form-control-file.spec.js +84 -0
- package/dist/collection/components/form/test/form-control-monetary.spec.js +5 -3
- package/dist/collection/components/refund-form/refund-form.js +2 -1
- package/dist/collection/utils/form-input-masks.js +15 -0
- package/dist/docs.json +275 -33
- package/dist/esm/{Api-0e88671c.js → Api-e9d568c7.js} +4 -1
- package/dist/esm/{Business-0e8a9a3a.js → Business-d83fbdb4.js} +8 -3
- package/dist/esm/{utils-4609f32c.js → ComponentError-2a58dbbc.js} +1 -23
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{business-additional-questions-schema-a84dd641.js → business-additional-questions-schema-e96b0509.js} +18 -10
- package/dist/esm/{business-form-types-7420dc96.js → business-form-options-de11bc46.js} +46 -32
- package/dist/esm/business-form-types-0d76133c.js +26 -0
- package/dist/esm/form-control-date_3.entry.js +1 -1
- package/dist/esm/form-control-datepart_2.entry.js +1 -1
- package/dist/esm/form-control-file.entry.js +40 -0
- package/dist/esm/form-control-monetary.entry.js +7 -12
- package/dist/esm/form-input-masks-0e18300f.js +22 -0
- package/dist/esm/{index-5eb05747.js → index-dc1350b1.js} +352 -198
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +10 -9
- package/dist/esm/justifi-additional-questions_4.entry.js +6 -6
- package/dist/esm/justifi-billing-form_4.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +4 -3
- package/dist/esm/justifi-business-form.entry.js +6 -5
- package/dist/esm/justifi-business-list.entry.js +2 -2
- package/dist/esm/justifi-business-owners.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +30 -11
- package/dist/esm/justifi-checkout.entry.js +37 -10
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -2
- package/dist/esm/justifi-new-payment-method_4.entry.js +12 -12
- package/dist/esm/justifi-owner-form.entry.js +6 -5
- package/dist/esm/justifi-payment-balance-transactions.entry.js +1 -1
- package/dist/esm/justifi-payment-details.entry.js +4 -3
- package/dist/esm/justifi-payment-form.entry.js +2 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +1 -3
- package/dist/esm/justifi-payments-list.entry.js +4 -3
- package/dist/esm/justifi-payout-details.entry.js +4 -3
- package/dist/esm/justifi-payouts-list.entry.js +4 -3
- package/dist/esm/justifi-proceeds-list.entry.js +1 -1
- package/dist/esm/justifi-refund-form.entry.js +3 -2
- package/dist/esm/justifi-subaccount-details.entry.js +1 -1
- package/dist/esm/justifi-subaccounts-list.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{payload-parsers-0c4fc2b1.js → payload-parsers-32028700.js} +54 -7
- package/dist/esm/{payment.service-ec28a959.js → payment.service-2fdc5018.js} +1 -1
- package/dist/esm/{payout.service-5fd5986c.js → payout.service-15064bcc.js} +1 -1
- package/dist/esm/utils-f580d6b7.js +25 -0
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Api.js +4 -1
- package/dist/module/Business.js +8 -3
- package/dist/module/ComponentError.js +16 -0
- package/dist/module/additional-questions-details2.js +2 -2
- package/dist/module/additional-questions.js +18 -4
- package/dist/module/business-additional-questions-form-step.js +18 -4
- package/dist/module/business-additional-questions-schema.js +16 -9
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-core-info-form-step.js +10 -3
- package/dist/module/business-core-info-schema.js +3 -1
- package/dist/module/business-core-info.js +9 -3
- package/dist/module/business-form-options.js +122 -0
- package/dist/module/business-form-types.js +153 -82
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/checkout-core.js +30 -13
- package/dist/module/form-control-file.d.ts +11 -0
- package/dist/module/form-control-file.js +67 -0
- package/dist/module/form-control-monetary2.js +8 -12
- package/dist/module/form-input-masks.js +16 -1
- package/dist/module/index2.js +352 -198
- package/dist/module/justifi-business-details.js +2 -1
- package/dist/module/justifi-business-form.js +2 -2
- package/dist/module/justifi-checkout.js +37 -11
- package/dist/module/justifi-gross-payment-chart.js +2 -1
- package/dist/module/justifi-payment-details.js +2 -1
- package/dist/module/justifi-payment-form.js +2 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-payments-list.js +2 -1
- package/dist/module/justifi-payout-details.js +2 -1
- package/dist/module/justifi-payouts-list.js +2 -1
- package/dist/module/justifi-refund-form.js +2 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/new-payment-method.js +11 -11
- package/dist/module/owner-form.js +2 -2
- package/dist/module/payload-parsers.js +1 -107
- package/dist/module/payment-method-form.js +2 -2
- package/dist/module/payment-method-options.js +2 -2
- package/dist/module/utils3.js +2 -15
- package/dist/types/api/Api.d.ts +1 -0
- package/dist/types/api/Business.d.ts +15 -5
- package/dist/types/api/services/checkout.service.d.ts +3 -3
- package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +10 -4
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +2 -0
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +12 -4
- package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +3 -0
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +8 -0
- package/dist/types/components/business-forms/utils/business-form-options.d.ts +21 -0
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +0 -9
- package/dist/types/components/checkout/checkout-core.d.ts +8 -3
- package/dist/types/components/checkout/checkout.d.ts +3 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +1 -1
- package/dist/types/components/checkout/payment-method-payload.d.ts +5 -0
- package/dist/types/components/form/form-control-file.d.ts +17 -0
- package/dist/types/components/form/form-control-monetary.d.ts +1 -0
- package/dist/types/components/payment-method-form/payment-method-responses.d.ts +1 -0
- package/dist/types/components.d.ts +61 -2
- package/dist/types/utils/form-input-masks.d.ts +15 -0
- package/dist/webcomponents/p-00ca94d1.js +1 -0
- package/dist/webcomponents/p-02b18979.entry.js +1 -0
- package/dist/webcomponents/p-0d80748f.js +1 -0
- package/dist/webcomponents/p-101b2648.entry.js +1 -0
- package/dist/webcomponents/p-132ba228.js +1 -0
- package/dist/webcomponents/p-13e2f667.js +1 -0
- package/dist/webcomponents/{p-18cf5a16.entry.js → p-1885c478.entry.js} +1 -1
- package/dist/webcomponents/{p-8abba4c2.entry.js → p-23099f1f.entry.js} +1 -1
- package/dist/webcomponents/p-230b96df.entry.js +1 -0
- package/dist/webcomponents/{p-2fbe8823.entry.js → p-3367225e.entry.js} +1 -1
- package/dist/webcomponents/p-3917edbf.entry.js +1 -0
- package/dist/webcomponents/p-3da23f21.js +1 -0
- package/dist/webcomponents/p-41bdee27.entry.js +1 -0
- package/dist/webcomponents/{p-5ff7826e.entry.js → p-4c84952f.entry.js} +1 -1
- package/dist/webcomponents/p-4ff52695.entry.js +1 -0
- package/dist/webcomponents/p-525db3e8.js +1 -0
- package/dist/webcomponents/p-61fd33c7.js +1 -0
- package/dist/webcomponents/p-64710363.entry.js +1 -0
- package/dist/webcomponents/{p-9245777b.js → p-731085e3.js} +1 -1
- package/dist/webcomponents/p-78b32fb9.entry.js +1 -0
- package/dist/webcomponents/p-7e334dce.entry.js +1 -0
- package/dist/webcomponents/p-7faacb1e.entry.js +1 -0
- package/dist/webcomponents/{p-5f5e730c.entry.js → p-834cba99.entry.js} +1 -1
- package/dist/webcomponents/p-87d646c0.js +1 -0
- package/dist/webcomponents/p-935d6f55.js +1 -0
- package/dist/webcomponents/{p-e3946c2b.js → p-9ada56da.js} +1 -1
- package/dist/webcomponents/p-9ba31a6a.entry.js +1 -0
- package/dist/webcomponents/p-a9af8f40.entry.js +1 -0
- package/dist/webcomponents/p-b81afd51.entry.js +1 -0
- package/dist/webcomponents/{p-c556deda.entry.js → p-bb58e656.entry.js} +1 -1
- package/dist/webcomponents/p-bc12b8b9.js +1 -0
- package/dist/webcomponents/p-bfe7c55c.entry.js +1 -0
- package/dist/webcomponents/p-c1be3378.entry.js +1 -0
- package/dist/webcomponents/p-cb31488b.entry.js +1 -0
- package/dist/webcomponents/p-cf3151a3.entry.js +1 -0
- package/dist/webcomponents/p-d0a8c631.entry.js +1 -0
- package/dist/webcomponents/p-e6ab1f0d.entry.js +1 -0
- package/dist/webcomponents/p-ee68566f.entry.js +1 -0
- package/dist/webcomponents/{p-3adc0688.entry.js → p-efbc8ffc.entry.js} +1 -1
- package/dist/webcomponents/{p-b9f04fb0.entry.js → p-f152d6b8.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/form-input-masks-efd44b8e.js +0 -11
- package/dist/esm/form-input-masks-84875967.js +0 -7
- package/dist/webcomponents/p-01913426.js +0 -1
- package/dist/webcomponents/p-04c7f8f8.js +0 -1
- package/dist/webcomponents/p-0c269feb.entry.js +0 -1
- package/dist/webcomponents/p-0eb77101.entry.js +0 -1
- package/dist/webcomponents/p-19001cc5.entry.js +0 -1
- package/dist/webcomponents/p-2319abaf.entry.js +0 -1
- package/dist/webcomponents/p-2bee72bd.entry.js +0 -1
- package/dist/webcomponents/p-51ee396f.entry.js +0 -1
- package/dist/webcomponents/p-52e4cc27.js +0 -1
- package/dist/webcomponents/p-602a1588.entry.js +0 -1
- package/dist/webcomponents/p-6ec77980.entry.js +0 -1
- package/dist/webcomponents/p-6f294d5d.js +0 -1
- package/dist/webcomponents/p-81c43ba5.entry.js +0 -1
- package/dist/webcomponents/p-927150b4.entry.js +0 -1
- package/dist/webcomponents/p-93579716.js +0 -1
- package/dist/webcomponents/p-9e35b0f6.entry.js +0 -1
- package/dist/webcomponents/p-9e3f9e05.entry.js +0 -1
- package/dist/webcomponents/p-9ec89299.entry.js +0 -1
- package/dist/webcomponents/p-a8caec98.entry.js +0 -1
- package/dist/webcomponents/p-a90f7ca0.js +0 -1
- package/dist/webcomponents/p-abc03d5a.entry.js +0 -1
- package/dist/webcomponents/p-b38baa84.entry.js +0 -1
- package/dist/webcomponents/p-bfc634c6.entry.js +0 -1
- package/dist/webcomponents/p-c1b92cec.entry.js +0 -1
- package/dist/webcomponents/p-cb86b2fd.js +0 -1
- package/dist/webcomponents/p-d2b7beac.js +0 -1
- package/dist/webcomponents/p-d69a485a.entry.js +0 -1
|
@@ -4,4 +4,7 @@ export declare const phoneRegex: RegExp;
|
|
|
4
4
|
export declare const urlRegex: RegExp;
|
|
5
5
|
export declare const taxIdRegex: RegExp;
|
|
6
6
|
export declare const stringLettersOnlyRegex: RegExp;
|
|
7
|
+
export declare const numbersOnlyRegex: RegExp;
|
|
7
8
|
export declare const ssnRegex: RegExp;
|
|
9
|
+
export declare const streetAddressRegex: RegExp;
|
|
10
|
+
export declare const poBoxRegex: RegExp;
|
|
@@ -7,6 +7,7 @@ export declare const businessTypeValidation: import("yup").StringSchema<string,
|
|
|
7
7
|
export declare const businessStructureValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
8
8
|
export declare const industryValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
9
9
|
export declare const taxIdValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
10
|
+
export declare const dateOfIncorporationValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
10
11
|
export declare const identityNameValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
11
12
|
export declare const identityTitleValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
12
13
|
export declare const dobValidation: (role: string) => import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
@@ -16,3 +17,10 @@ export declare const lineTwoValidation: import("yup").StringSchema<string, impor
|
|
|
16
17
|
export declare const cityValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
17
18
|
export declare const stateValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
18
19
|
export declare const postalValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
20
|
+
export declare const revenueValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
21
|
+
export declare const paymentVolumeValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
22
|
+
export declare const whenServiceReceivedValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
23
|
+
export declare const recurringPaymentsValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
24
|
+
export declare const recurringPaymentsPercentageValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
25
|
+
export declare const seasonalBusinessValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
26
|
+
export declare const otherPaymentDetailsValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BusinessStructure, BusinessType } from "../../../api/Business";
|
|
2
|
+
export declare const businessTypeOptions: {
|
|
3
|
+
label: string;
|
|
4
|
+
value: BusinessType | string;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const businessStructureOptions: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: BusinessStructure | string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const businessServiceReceivedOptions: {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}[];
|
|
14
|
+
export declare const recurringPaymentsOptions: {
|
|
15
|
+
label: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[];
|
|
18
|
+
export declare const seasonalBusinessOptions: {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BusinessStructure, BusinessType } from "../../../api/Business";
|
|
2
1
|
export interface BusinessFormSubmitEvent {
|
|
3
2
|
data: any;
|
|
4
3
|
metadata?: BusinessFormEventMetaData;
|
|
@@ -47,12 +46,4 @@ export declare enum OwnerFormClickActions {
|
|
|
47
46
|
addOwnerForm = "addOwnerForm",
|
|
48
47
|
updateOwner = "updateOwner"
|
|
49
48
|
}
|
|
50
|
-
export declare const BusinessTypeOptions: {
|
|
51
|
-
label: string;
|
|
52
|
-
value: BusinessType | string;
|
|
53
|
-
}[];
|
|
54
|
-
export declare const BusinessStructureOptions: {
|
|
55
|
-
label: string;
|
|
56
|
-
value: BusinessStructure | string;
|
|
57
|
-
}[];
|
|
58
49
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { ICheckout, ICheckoutCompleteResponse } from '../../api/Checkout';
|
|
3
|
+
import { ComponentError, ComponentErrorCodes, ComponentErrorSeverity } from '../../api/ComponentError';
|
|
3
4
|
export declare class CheckoutCore {
|
|
4
5
|
/**
|
|
5
6
|
* URL for the rendered iFrame. End-users need not use this.
|
|
@@ -13,17 +14,21 @@ export declare class CheckoutCore {
|
|
|
13
14
|
isLoading: boolean;
|
|
14
15
|
checkout: ICheckout;
|
|
15
16
|
serverError: boolean;
|
|
16
|
-
errorMessage: string;
|
|
17
17
|
creatingNewPaymentMethod: boolean;
|
|
18
|
-
selectedPaymentMethodToken: string;
|
|
19
18
|
submitted: EventEmitter<ICheckoutCompleteResponse>;
|
|
19
|
+
errorEvent: EventEmitter<ComponentError>;
|
|
20
20
|
private paymentMethodOptionsRef?;
|
|
21
21
|
componentWillLoad(): void;
|
|
22
22
|
connectedCallback(): void;
|
|
23
23
|
fetchData(): void;
|
|
24
24
|
loadFontsOnParent(): Promise<any>;
|
|
25
25
|
submit(event: any): Promise<void>;
|
|
26
|
-
onSubmitted: (data:
|
|
26
|
+
onSubmitted: (data: ICheckoutCompleteResponse) => void;
|
|
27
|
+
onError: ({ error, code, severity }: {
|
|
28
|
+
error: string;
|
|
29
|
+
code: ComponentErrorCodes;
|
|
30
|
+
severity: ComponentErrorSeverity;
|
|
31
|
+
}) => void;
|
|
27
32
|
private loadingSpinner;
|
|
28
33
|
render(): any;
|
|
29
34
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { ComponentError } from '../../api/ComponentError';
|
|
1
3
|
export declare class Checkout {
|
|
2
4
|
iframeOrigin?: string;
|
|
3
5
|
authToken: string;
|
|
@@ -5,6 +7,7 @@ export declare class Checkout {
|
|
|
5
7
|
getCheckout: Function;
|
|
6
8
|
complete: Function;
|
|
7
9
|
errorMessage: string;
|
|
10
|
+
errorEvent: EventEmitter<ComponentError>;
|
|
8
11
|
componentWillLoad(): void;
|
|
9
12
|
private initializeGetCheckout;
|
|
10
13
|
propChanged(): void;
|
|
@@ -10,8 +10,8 @@ export declare class PaymentMethodOptions {
|
|
|
10
10
|
accountId: string;
|
|
11
11
|
iframeOrigin?: string;
|
|
12
12
|
savedPaymentMethods: any[];
|
|
13
|
-
selectedPaymentMethodId: string;
|
|
14
13
|
paymentAmount: string;
|
|
14
|
+
selectedPaymentMethodId: string;
|
|
15
15
|
paymentMethodOptions: PaymentMethodOption[];
|
|
16
16
|
toggleCreatingNewPaymentMethod: EventEmitter;
|
|
17
17
|
private selectedPaymentMethodOptionRef?;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class FileInput {
|
|
3
|
+
el: HTMLElement;
|
|
4
|
+
label: string;
|
|
5
|
+
name: any;
|
|
6
|
+
error: string;
|
|
7
|
+
inputHandler: (name: string, value: string) => void;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
input: string;
|
|
10
|
+
file: File;
|
|
11
|
+
formControlInput: EventEmitter<any>;
|
|
12
|
+
formControlBlur: EventEmitter<any>;
|
|
13
|
+
updateInput(newValue: any): void;
|
|
14
|
+
handleFormControlInput(event: any): void;
|
|
15
|
+
handleFileChange(event: any): void;
|
|
16
|
+
render(): any;
|
|
17
|
+
}
|
|
@@ -72,11 +72,19 @@ export namespace Components {
|
|
|
72
72
|
"name": string;
|
|
73
73
|
"type": 'day' | 'month' | 'year';
|
|
74
74
|
}
|
|
75
|
+
interface FormControlFile {
|
|
76
|
+
"disabled": boolean;
|
|
77
|
+
"error": string;
|
|
78
|
+
"inputHandler": (name: string, value: string) => void;
|
|
79
|
+
"label": string;
|
|
80
|
+
"name": any;
|
|
81
|
+
}
|
|
75
82
|
interface FormControlMonetary {
|
|
76
83
|
"defaultValue": string;
|
|
77
84
|
"error": string;
|
|
78
85
|
"inputHandler": (name: string, value: string) => void;
|
|
79
86
|
"label": string;
|
|
87
|
+
"maskOptions": any;
|
|
80
88
|
"name": string;
|
|
81
89
|
}
|
|
82
90
|
interface FormControlNumber {
|
|
@@ -453,7 +461,6 @@ export namespace Components {
|
|
|
453
461
|
"paymentAmount": string;
|
|
454
462
|
"resolvePaymentMethod": () => Promise<PaymentMethodPayload>;
|
|
455
463
|
"savedPaymentMethods": any[];
|
|
456
|
-
"selectedPaymentMethodId": string;
|
|
457
464
|
"showAch": boolean;
|
|
458
465
|
"showCard": boolean;
|
|
459
466
|
}
|
|
@@ -685,6 +692,10 @@ export interface FormControlDatepartCustomEvent<T> extends CustomEvent<T> {
|
|
|
685
692
|
detail: T;
|
|
686
693
|
target: HTMLFormControlDatepartElement;
|
|
687
694
|
}
|
|
695
|
+
export interface FormControlFileCustomEvent<T> extends CustomEvent<T> {
|
|
696
|
+
detail: T;
|
|
697
|
+
target: HTMLFormControlFileElement;
|
|
698
|
+
}
|
|
688
699
|
export interface FormControlMonetaryCustomEvent<T> extends CustomEvent<T> {
|
|
689
700
|
detail: T;
|
|
690
701
|
target: HTMLFormControlMonetaryElement;
|
|
@@ -741,6 +752,10 @@ export interface JustifiCardFormCustomEvent<T> extends CustomEvent<T> {
|
|
|
741
752
|
detail: T;
|
|
742
753
|
target: HTMLJustifiCardFormElement;
|
|
743
754
|
}
|
|
755
|
+
export interface JustifiCheckoutCustomEvent<T> extends CustomEvent<T> {
|
|
756
|
+
detail: T;
|
|
757
|
+
target: HTMLJustifiCheckoutElement;
|
|
758
|
+
}
|
|
744
759
|
export interface JustifiCheckoutCoreCustomEvent<T> extends CustomEvent<T> {
|
|
745
760
|
detail: T;
|
|
746
761
|
target: HTMLJustifiCheckoutCoreElement;
|
|
@@ -908,6 +923,24 @@ declare global {
|
|
|
908
923
|
prototype: HTMLFormControlDatepartElement;
|
|
909
924
|
new (): HTMLFormControlDatepartElement;
|
|
910
925
|
};
|
|
926
|
+
interface HTMLFormControlFileElementEventMap {
|
|
927
|
+
"formControlInput": any;
|
|
928
|
+
"formControlBlur": any;
|
|
929
|
+
}
|
|
930
|
+
interface HTMLFormControlFileElement extends Components.FormControlFile, HTMLStencilElement {
|
|
931
|
+
addEventListener<K extends keyof HTMLFormControlFileElementEventMap>(type: K, listener: (this: HTMLFormControlFileElement, ev: FormControlFileCustomEvent<HTMLFormControlFileElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
932
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
933
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
934
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
935
|
+
removeEventListener<K extends keyof HTMLFormControlFileElementEventMap>(type: K, listener: (this: HTMLFormControlFileElement, ev: FormControlFileCustomEvent<HTMLFormControlFileElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
936
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
937
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
938
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
939
|
+
}
|
|
940
|
+
var HTMLFormControlFileElement: {
|
|
941
|
+
prototype: HTMLFormControlFileElement;
|
|
942
|
+
new (): HTMLFormControlFileElement;
|
|
943
|
+
};
|
|
911
944
|
interface HTMLFormControlMonetaryElementEventMap {
|
|
912
945
|
"formControlInput": any;
|
|
913
946
|
"formControlBlur": any;
|
|
@@ -1280,7 +1313,18 @@ declare global {
|
|
|
1280
1313
|
prototype: HTMLJustifiCardFormElement;
|
|
1281
1314
|
new (): HTMLJustifiCardFormElement;
|
|
1282
1315
|
};
|
|
1316
|
+
interface HTMLJustifiCheckoutElementEventMap {
|
|
1317
|
+
"error-event": ComponentError;
|
|
1318
|
+
}
|
|
1283
1319
|
interface HTMLJustifiCheckoutElement extends Components.JustifiCheckout, HTMLStencilElement {
|
|
1320
|
+
addEventListener<K extends keyof HTMLJustifiCheckoutElementEventMap>(type: K, listener: (this: HTMLJustifiCheckoutElement, ev: JustifiCheckoutCustomEvent<HTMLJustifiCheckoutElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1321
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1322
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1323
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1324
|
+
removeEventListener<K extends keyof HTMLJustifiCheckoutElementEventMap>(type: K, listener: (this: HTMLJustifiCheckoutElement, ev: JustifiCheckoutCustomEvent<HTMLJustifiCheckoutElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1325
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1326
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1327
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1284
1328
|
}
|
|
1285
1329
|
var HTMLJustifiCheckoutElement: {
|
|
1286
1330
|
prototype: HTMLJustifiCheckoutElement;
|
|
@@ -1288,6 +1332,7 @@ declare global {
|
|
|
1288
1332
|
};
|
|
1289
1333
|
interface HTMLJustifiCheckoutCoreElementEventMap {
|
|
1290
1334
|
"submitted": ICheckoutCompleteResponse;
|
|
1335
|
+
"error-event": ComponentError;
|
|
1291
1336
|
}
|
|
1292
1337
|
interface HTMLJustifiCheckoutCoreElement extends Components.JustifiCheckoutCore, HTMLStencilElement {
|
|
1293
1338
|
addEventListener<K extends keyof HTMLJustifiCheckoutCoreElementEventMap>(type: K, listener: (this: HTMLJustifiCheckoutCoreElement, ev: JustifiCheckoutCoreCustomEvent<HTMLJustifiCheckoutCoreElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1924,6 +1969,7 @@ declare global {
|
|
|
1924
1969
|
"business-details-core": HTMLBusinessDetailsCoreElement;
|
|
1925
1970
|
"form-control-date": HTMLFormControlDateElement;
|
|
1926
1971
|
"form-control-datepart": HTMLFormControlDatepartElement;
|
|
1972
|
+
"form-control-file": HTMLFormControlFileElement;
|
|
1927
1973
|
"form-control-monetary": HTMLFormControlMonetaryElement;
|
|
1928
1974
|
"form-control-number": HTMLFormControlNumberElement;
|
|
1929
1975
|
"form-control-number-masked": HTMLFormControlNumberMaskedElement;
|
|
@@ -2025,11 +2071,21 @@ declare namespace LocalJSX {
|
|
|
2025
2071
|
"onFormControlInput"?: (event: FormControlDatepartCustomEvent<any>) => void;
|
|
2026
2072
|
"type"?: 'day' | 'month' | 'year';
|
|
2027
2073
|
}
|
|
2074
|
+
interface FormControlFile {
|
|
2075
|
+
"disabled"?: boolean;
|
|
2076
|
+
"error"?: string;
|
|
2077
|
+
"inputHandler"?: (name: string, value: string) => void;
|
|
2078
|
+
"label"?: string;
|
|
2079
|
+
"name"?: any;
|
|
2080
|
+
"onFormControlBlur"?: (event: FormControlFileCustomEvent<any>) => void;
|
|
2081
|
+
"onFormControlInput"?: (event: FormControlFileCustomEvent<any>) => void;
|
|
2082
|
+
}
|
|
2028
2083
|
interface FormControlMonetary {
|
|
2029
2084
|
"defaultValue"?: string;
|
|
2030
2085
|
"error"?: string;
|
|
2031
2086
|
"inputHandler"?: (name: string, value: string) => void;
|
|
2032
2087
|
"label"?: string;
|
|
2088
|
+
"maskOptions"?: any;
|
|
2033
2089
|
"name"?: string;
|
|
2034
2090
|
"onFormControlBlur"?: (event: FormControlMonetaryCustomEvent<any>) => void;
|
|
2035
2091
|
"onFormControlInput"?: (event: FormControlMonetaryCustomEvent<any>) => void;
|
|
@@ -2304,6 +2360,7 @@ declare namespace LocalJSX {
|
|
|
2304
2360
|
"authToken"?: string;
|
|
2305
2361
|
"checkoutId"?: string;
|
|
2306
2362
|
"iframeOrigin"?: string;
|
|
2363
|
+
"onError-event"?: (event: JustifiCheckoutCustomEvent<ComponentError>) => void;
|
|
2307
2364
|
}
|
|
2308
2365
|
interface JustifiCheckoutCore {
|
|
2309
2366
|
"authToken"?: string;
|
|
@@ -2314,6 +2371,7 @@ declare namespace LocalJSX {
|
|
|
2314
2371
|
* URL for the rendered iFrame. End-users need not use this.
|
|
2315
2372
|
*/
|
|
2316
2373
|
"iframeOrigin"?: string;
|
|
2374
|
+
"onError-event"?: (event: JustifiCheckoutCoreCustomEvent<ComponentError>) => void;
|
|
2317
2375
|
"onSubmitted"?: (event: JustifiCheckoutCoreCustomEvent<ICheckoutCompleteResponse>) => void;
|
|
2318
2376
|
}
|
|
2319
2377
|
interface JustifiDetails {
|
|
@@ -2435,7 +2493,6 @@ declare namespace LocalJSX {
|
|
|
2435
2493
|
"onToggleCreatingNewPaymentMethod"?: (event: JustifiPaymentMethodOptionsCustomEvent<any>) => void;
|
|
2436
2494
|
"paymentAmount"?: string;
|
|
2437
2495
|
"savedPaymentMethods"?: any[];
|
|
2438
|
-
"selectedPaymentMethodId"?: string;
|
|
2439
2496
|
"showAch"?: boolean;
|
|
2440
2497
|
"showCard"?: boolean;
|
|
2441
2498
|
}
|
|
@@ -2678,6 +2735,7 @@ declare namespace LocalJSX {
|
|
|
2678
2735
|
"business-details-core": BusinessDetailsCore;
|
|
2679
2736
|
"form-control-date": FormControlDate;
|
|
2680
2737
|
"form-control-datepart": FormControlDatepart;
|
|
2738
|
+
"form-control-file": FormControlFile;
|
|
2681
2739
|
"form-control-monetary": FormControlMonetary;
|
|
2682
2740
|
"form-control-number": FormControlNumber;
|
|
2683
2741
|
"form-control-number-masked": FormControlNumberMasked;
|
|
@@ -2758,6 +2816,7 @@ declare module "@stencil/core" {
|
|
|
2758
2816
|
"business-details-core": LocalJSX.BusinessDetailsCore & JSXBase.HTMLAttributes<HTMLBusinessDetailsCoreElement>;
|
|
2759
2817
|
"form-control-date": LocalJSX.FormControlDate & JSXBase.HTMLAttributes<HTMLFormControlDateElement>;
|
|
2760
2818
|
"form-control-datepart": LocalJSX.FormControlDatepart & JSXBase.HTMLAttributes<HTMLFormControlDatepartElement>;
|
|
2819
|
+
"form-control-file": LocalJSX.FormControlFile & JSXBase.HTMLAttributes<HTMLFormControlFileElement>;
|
|
2761
2820
|
"form-control-monetary": LocalJSX.FormControlMonetary & JSXBase.HTMLAttributes<HTMLFormControlMonetaryElement>;
|
|
2762
2821
|
"form-control-number": LocalJSX.FormControlNumber & JSXBase.HTMLAttributes<HTMLFormControlNumberElement>;
|
|
2763
2822
|
"form-control-number-masked": LocalJSX.FormControlNumberMasked & JSXBase.HTMLAttributes<HTMLFormControlNumberMaskedElement>;
|
|
@@ -5,3 +5,18 @@ export declare const TAX_ID_MASKS: {
|
|
|
5
5
|
US: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const SSN_MASK = "000-00-0000";
|
|
8
|
+
export declare const CURRENCY_MASK: {
|
|
9
|
+
WHOLE: {
|
|
10
|
+
mask: NumberConstructor;
|
|
11
|
+
thousandsSeparator: string;
|
|
12
|
+
normalizeZeros: boolean;
|
|
13
|
+
};
|
|
14
|
+
DECIMAL: {
|
|
15
|
+
mask: NumberConstructor;
|
|
16
|
+
scale: number;
|
|
17
|
+
thousandsSeparator: string;
|
|
18
|
+
padFractionalZeros: boolean;
|
|
19
|
+
normalizeZeros: boolean;
|
|
20
|
+
radix: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./p-0d80748f.js";const a=t=>"string"==typeof t?t:t.message,o=a=>"not_authenticated"===a?t.NOT_AUTHENTICATED:t.FETCH_ERROR;export{o as a,a as g}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as r,H as o}from"./p-9ee8ad4d.js";import{t as e}from"./p-2b6c9c4f.js";import{P as i}from"./p-731085e3.js";import"./p-56f6ce4c.js";import"./p-02fa533c.js";import{P as a}from"./p-e3fab0e2.js";import{C as n,a as p}from"./p-0d80748f.js";import{g as c,a as h}from"./p-00ca94d1.js";import{E as d}from"./p-3302bc76.js";import"./p-13e2f667.js";import"./p-ae263544.js";const u=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayouts=void 0,this.errorMessage=null}componentWillLoad(){this.initializeGetPayouts()}propChanged(){this.initializeGetPayouts()}initializeGetPayouts(){this.accountId&&this.authToken?this.getPayouts=(({id:t,authToken:s,service:r})=>async({params:o,onSuccess:e,onError:i})=>{var p,d;try{const u=await r.fetchPayouts(t,s,o);if(u.error)return i({error:c(u.error),code:h(null===(d=u.error)||void 0===d?void 0:d.code),severity:n.ERROR});{const t=Object.assign({},u.page_info);e({payouts:(null===(p=u.data)||void 0===p?void 0:p.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){return i({error:c(t),code:h(null==t?void 0:t.code),severity:n.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new i}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:"Account ID and Auth Token are required"}))}render(){return this.errorMessage?d(this.errorMessage):r(o,{exportedparts:e},r("payouts-list-core",{getPayouts:this.getPayouts,"onError-event":this.handleOnError}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payouts_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r,n;!function(r){r.MISSING_PROPS="missing-props",r.FETCH_ERROR="fetch-error",r.UNKNOWN_ERROR="unknown-error",r.TOKENIZE_ERROR="tokenize-error",r.NOT_AUTHENTICATED="not-authenticated"}(r||(r={})),function(r){r.INFO="info",r.WARNING="warning",r.ERROR="error"}(n||(n={}));export{n as C,r as a}
|