@justifi/webcomponents 4.13.0 → 4.15.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/dist/cjs/{Api-ab34a402.js → Api-3bc6e43f.js} +7 -2
- package/dist/cjs/{Payment-eceed10f.js → Payment-24f22eca.js} +2 -1
- package/dist/cjs/{SubAccount-b3902202.js → SubAccount-f1eda5da.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/business-additional-questions-schema-e7dd7bc3.js +57 -0
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/{index.esm-d25bd7bf.js → index.esm-a32e1831.js} +727 -0
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +20 -17
- package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +4 -1
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1796 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +8 -8
- package/dist/cjs/justifi-business-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +12 -6
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +13 -11
- package/dist/cjs/justifi-owner-form.cjs.entry.js +12 -8
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-form.cjs.entry.js +39 -5
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/payload-parsers-c2df4b29.js +95 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-336189d3.js → payment.service-35298e95.js} +4 -4
- package/dist/cjs/payments-list-core.cjs.entry.js +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{payout.service-6012d576.js → payout.service-eec372aa.js} +4 -4
- package/dist/cjs/payouts-list-core.cjs.entry.js +2 -2
- package/dist/cjs/{payload-parsers-6c4b5323.js → schema-validations-3c70335c.js} +15 -89
- package/dist/cjs/select-input.cjs.entry.js +31 -0
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +1 -1
- package/dist/cjs/text-input.cjs.entry.js +30 -0
- package/dist/cjs/{utils-6f62f7a1.js → utils-e58fe016.js} +0 -2
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +7 -2
- package/dist/collection/api/Payment.js +2 -1
- package/dist/collection/api/services/business.service.js +1 -1
- package/dist/collection/api/services/checkout.service.js +5 -3
- package/dist/collection/api/services/payment.service.js +2 -2
- package/dist/collection/api/services/payout.service.js +2 -2
- package/dist/collection/api/services/reports.service.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/billing-form/billing-form-schema.js +8 -8
- package/dist/collection/components/billing-form/billing-form.js +49 -89
- package/dist/collection/components/billing-form/test/billing-form.spec.js +2 -1
- package/dist/collection/components/business-forms/business-form/business-form.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +4 -1
- package/dist/collection/components/business-forms/owner-form/owner-form.js +6 -2
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +5 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +4 -2
- package/dist/collection/components/business-forms/schemas/schema-validations.js +5 -0
- package/dist/collection/components/business-list/business-list.js +1 -1
- package/dist/collection/components/checkout/checkout-core.js +74 -2
- package/dist/collection/components/checkout/checkout.js +73 -1
- package/dist/collection/components/checkout/payment-method-options.css +6 -6
- package/dist/collection/components/checkout/payment-method-options.js +42 -6
- package/dist/collection/components/checkout/{sezzel-payment-method.js → sezzle-payment-method.js} +2 -2
- package/dist/collection/components/checkout/test/checkout-core.spec.js +1 -1
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +1 -1
- package/dist/collection/components/payment-form/payment-form.js +56 -6
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payment-form/test/payment-form.spec.js +18 -35
- package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
- package/dist/collection/components/proceeds-list/proceeds-list.js +1 -1
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-details.js +2 -2
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +1 -1
- package/dist/docs.json +287 -81
- package/dist/esm/{Api-e9d568c7.js → Api-b09a2f6a.js} +7 -2
- package/dist/esm/{Payment-ef9fc1ae.js → Payment-3e94da9c.js} +2 -1
- package/dist/esm/{SubAccount-f4ae9809.js → SubAccount-80d46814.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{business-additional-questions-schema-e96b0509.js → business-additional-questions-schema-1fdc5c40.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/{index.esm-22b47398.js → index.esm-d98bc080.js} +727 -1
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +16 -13
- package/dist/esm/justifi-additional-questions_4.entry.js +4 -1
- package/dist/esm/justifi-billing-form_2.entry.js +1791 -0
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +7 -7
- package/dist/esm/justifi-business-list.entry.js +4 -4
- package/dist/esm/justifi-checkout-core.entry.js +7 -3
- package/dist/esm/justifi-checkout.entry.js +12 -6
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-new-payment-method_4.entry.js +13 -11
- package/dist/esm/justifi-owner-form.entry.js +11 -7
- package/dist/esm/justifi-payment-balance-transactions.entry.js +4 -4
- package/dist/esm/justifi-payment-details.entry.js +3 -3
- package/dist/esm/justifi-payment-form.entry.js +39 -5
- package/dist/esm/justifi-payment-method-selector.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-proceeds-list.entry.js +4 -4
- package/dist/esm/justifi-refund-form.entry.js +4 -5
- package/dist/esm/justifi-subaccount-details.entry.js +6 -6
- package/dist/esm/justifi-subaccounts-list.entry.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/payload-parsers-fd35eeca.js +88 -0
- package/dist/esm/payment-details-core.entry.js +1 -1
- package/dist/esm/{payment.service-2fdc5018.js → payment.service-c62d82d3.js} +4 -4
- package/dist/esm/payments-list-core.entry.js +2 -2
- package/dist/esm/payout-details-core.entry.js +1 -1
- package/dist/esm/{payout.service-15064bcc.js → payout.service-28b9594f.js} +4 -4
- package/dist/esm/payouts-list-core.entry.js +2 -2
- package/dist/esm/{payload-parsers-32028700.js → schema-validations-31feaa53.js} +7 -84
- package/dist/{module/select-input2.js → esm/select-input.entry.js} +7 -30
- package/dist/esm/subaccount-account-details_4.entry.js +1 -1
- package/dist/{module/text-input2.js → esm/text-input.entry.js} +7 -29
- package/dist/esm/{utils-243abdb4.js → utils-37533368.js} +1 -2
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Api.js +7 -2
- package/dist/module/Payment.js +2 -1
- package/dist/module/billing-form.js +41 -62
- package/dist/module/business-additional-questions-form-step.js +2 -2
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-core-info-form-step.js +2 -2
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-form-types.js +1 -154
- package/dist/module/business-identity-schema.js +5 -3
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-step.js +6 -3
- package/dist/module/business-representative.js +4 -1
- package/dist/module/checkout-core.js +27 -19
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/index.esm.js +727 -1
- package/dist/module/justifi-business-details.js +2 -2
- package/dist/module/justifi-business-form.js +4 -5
- package/dist/module/justifi-business-list.js +1 -1
- package/dist/module/justifi-checkout.js +34 -24
- package/dist/module/justifi-gross-payment-chart.js +2 -2
- package/dist/module/justifi-payment-balance-transactions.js +1 -1
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-form.js +50 -15
- package/dist/module/justifi-payment-provisioning.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-proceeds-list.js +1 -1
- package/dist/module/justifi-refund-form.js +2 -3
- package/dist/module/justifi-sezzle-payment-method.d.ts +11 -0
- package/dist/module/justifi-sezzle-payment-method.js +6 -0
- package/dist/module/justifi-subaccount-details.js +2 -2
- package/dist/module/justifi-subaccounts-list.js +1 -1
- package/dist/module/legal-address-form-step.js +3 -3
- package/dist/module/legal-address-form.js +1 -1
- package/dist/module/new-payment-method.js +9 -9
- package/dist/module/owner-form.js +9 -5
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payment-method-options.js +26 -22
- package/dist/module/payment.service.js +2 -2
- package/dist/module/payout.service.js +2 -2
- package/dist/module/schema-validations.js +159 -0
- package/dist/module/select-input.js +48 -1
- package/dist/module/{sezzel-payment-method.js → sezzle-payment-method.js} +6 -6
- package/dist/module/text-input.js +46 -1
- package/dist/module/utils2.js +1 -2
- package/dist/module/utils3.js +12 -21
- package/dist/module/utils4.js +21 -12
- package/dist/types/api/Api.d.ts +5 -1
- package/dist/types/api/Payment.d.ts +2 -1
- package/dist/types/components/billing-form/billing-form.d.ts +8 -15
- package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +1 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +3 -1
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +2 -0
- package/dist/types/components/checkout/checkout-core.d.ts +4 -0
- package/dist/types/components/checkout/checkout.d.ts +4 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +2 -0
- package/dist/types/components/checkout/{sezzel-payment-method.d.ts → sezzle-payment-method.d.ts} +1 -1
- package/dist/types/components/payment-form/payment-form.d.ts +7 -1
- package/dist/types/components.d.ts +38 -29
- package/dist/webcomponents/p-0603a526.entry.js +1 -0
- package/dist/webcomponents/{p-3917edbf.entry.js → p-09a6df17.entry.js} +1 -1
- package/dist/webcomponents/{p-7da249b8.entry.js → p-1367c4c7.entry.js} +1 -1
- package/dist/webcomponents/p-1b959678.entry.js +1 -0
- package/dist/webcomponents/{p-a6f170ba.entry.js → p-1f23c9d5.entry.js} +1 -1
- package/dist/webcomponents/p-21f301a0.entry.js +1 -0
- package/dist/webcomponents/p-243caf7c.entry.js +1 -0
- package/dist/webcomponents/{p-c6e207f6.entry.js → p-27ea1f3f.entry.js} +1 -1
- package/dist/webcomponents/{p-13e2f667.js → p-29c0b182.js} +1 -1
- package/dist/webcomponents/{p-28b38699.js → p-3cd675e7.js} +1 -1
- package/dist/webcomponents/p-3d70b0f1.entry.js +1 -0
- package/dist/webcomponents/{p-41bdee27.entry.js → p-55d37253.entry.js} +1 -1
- package/dist/webcomponents/{p-02b18979.entry.js → p-60ea8fd1.entry.js} +1 -1
- package/dist/webcomponents/p-624ed594.entry.js +1 -0
- package/dist/webcomponents/p-62bbcdfb.entry.js +1 -0
- package/dist/webcomponents/p-76e74f01.js +1 -0
- package/dist/webcomponents/p-7ca334d6.entry.js +1 -0
- package/dist/webcomponents/p-7d6c67bb.js +1 -0
- package/dist/webcomponents/{p-78b32fb9.entry.js → p-7ea5b11c.entry.js} +1 -1
- package/dist/webcomponents/p-83ae34bf.js +1 -0
- package/dist/webcomponents/p-84aea66c.entry.js +1 -0
- package/dist/webcomponents/p-8960e936.entry.js +1 -0
- package/dist/webcomponents/p-8d53f1de.entry.js +1 -0
- package/dist/webcomponents/p-969572f2.entry.js +1 -0
- package/dist/webcomponents/{p-fce2b224.entry.js → p-9a36fca6.entry.js} +1 -1
- package/dist/webcomponents/p-a38fdda7.entry.js +1 -0
- package/dist/webcomponents/{p-1334f776.entry.js → p-adc9ae0f.entry.js} +1 -1
- package/dist/webcomponents/p-b53d7b7f.js +1 -0
- package/dist/webcomponents/p-b8d70349.entry.js +1 -0
- package/dist/webcomponents/p-b9db1c52.entry.js +1 -0
- package/dist/webcomponents/p-ca39c89f.js +1 -0
- package/dist/webcomponents/p-d6b980a3.entry.js +1 -0
- package/dist/webcomponents/p-dd609661.js +1 -0
- package/dist/webcomponents/{p-9ba31a6a.entry.js → p-de4ffaa1.entry.js} +1 -1
- package/dist/webcomponents/{p-9f529959.entry.js → p-e1a3a670.entry.js} +1 -1
- package/dist/webcomponents/p-e4be71ee.entry.js +1 -0
- package/dist/webcomponents/p-e8706cc4.js +1 -0
- package/dist/webcomponents/{p-65510838.js → p-f4dec164.js} +1 -1
- package/dist/webcomponents/p-f942f90b.entry.js +1 -0
- package/dist/webcomponents/p-fea93cb9.entry.js +1 -0
- package/dist/webcomponents/{p-f76283a5.entry.js → p-fee64d38.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/business-additional-questions-schema-0a35f597.js +0 -57
- package/dist/cjs/form-2ad3d374.js +0 -729
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +0 -1864
- package/dist/esm/form-5279c05a.js +0 -727
- package/dist/esm/justifi-billing-form_4.entry.js +0 -1857
- package/dist/module/form.js +0 -727
- package/dist/module/justifi-sezzel-payment-method.d.ts +0 -11
- package/dist/module/justifi-sezzel-payment-method.js +0 -6
- package/dist/webcomponents/p-02fa533c.js +0 -1
- package/dist/webcomponents/p-101b2648.entry.js +0 -1
- package/dist/webcomponents/p-132ba228.js +0 -1
- package/dist/webcomponents/p-1885c478.entry.js +0 -1
- package/dist/webcomponents/p-23099f1f.entry.js +0 -1
- package/dist/webcomponents/p-230b96df.entry.js +0 -1
- package/dist/webcomponents/p-3da23f21.js +0 -1
- package/dist/webcomponents/p-4c84952f.entry.js +0 -1
- package/dist/webcomponents/p-64710363.entry.js +0 -1
- package/dist/webcomponents/p-731085e3.js +0 -1
- package/dist/webcomponents/p-7e334dce.entry.js +0 -1
- package/dist/webcomponents/p-7faacb1e.entry.js +0 -1
- package/dist/webcomponents/p-9b4b91ba.js +0 -1
- package/dist/webcomponents/p-a9af8f40.entry.js +0 -1
- package/dist/webcomponents/p-ade12f56.js +0 -1
- package/dist/webcomponents/p-b81afd51.entry.js +0 -1
- package/dist/webcomponents/p-bb58e656.entry.js +0 -1
- package/dist/webcomponents/p-bc12b8b9.js +0 -1
- package/dist/webcomponents/p-bfe7c55c.entry.js +0 -1
- package/dist/webcomponents/p-c1be3378.entry.js +0 -1
- package/dist/webcomponents/p-cb31488b.entry.js +0 -1
- package/dist/webcomponents/p-d0a8c631.entry.js +0 -1
- package/dist/webcomponents/p-d7d40d26.entry.js +0 -1
- package/dist/webcomponents/p-efbc8ffc.entry.js +0 -1
package/dist/types/api/Api.d.ts
CHANGED
|
@@ -16,7 +16,11 @@ export interface IErrorObject {
|
|
|
16
16
|
export interface IApiResponseCollection<T> extends IApiResponse<T> {
|
|
17
17
|
page_info: PagingInfo;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
interface IApiProps {
|
|
20
|
+
authToken?: string;
|
|
21
|
+
apiOrigin: string;
|
|
22
|
+
}
|
|
23
|
+
declare const Api: ({ authToken, apiOrigin }: IApiProps) => {
|
|
20
24
|
get: (endpoint: string, params?: any, signal?: AbortSignal) => Promise<any>;
|
|
21
25
|
post: (endpoint: string, body?: any, params?: any, signal?: AbortSignal) => Promise<any>;
|
|
22
26
|
put: (endpoint: string, body?: any, params?: any, signal?: AbortSignal) => Promise<any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BillingFormFields } from './billing-form-schema';
|
|
2
|
+
import { FormController } from '../form/form';
|
|
2
3
|
/**
|
|
3
4
|
* @exportedPart label: Label for inputs
|
|
4
5
|
* @exportedPart input: The input fields
|
|
@@ -9,24 +10,16 @@ export declare class BillingForm {
|
|
|
9
10
|
* (Optional) A label for the form.
|
|
10
11
|
*/
|
|
11
12
|
legend?: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
formController: FormController;
|
|
14
|
+
billingInfo: {};
|
|
15
|
+
errors: any;
|
|
16
|
+
componentWillLoad(): void;
|
|
17
|
+
componentDidLoad(): void;
|
|
18
|
+
inputHandler: (name: string, value: string) => void;
|
|
19
|
+
getValues(): Promise<BillingFormFields>;
|
|
19
20
|
fill(fields: BillingFormFields): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* Run validation on the form
|
|
22
|
-
*/
|
|
23
21
|
validate(): Promise<{
|
|
24
22
|
isValid: boolean;
|
|
25
23
|
}>;
|
|
26
|
-
/**
|
|
27
|
-
* Returns the values of the form as an object
|
|
28
|
-
* @returns {Promise<BillingFormFields>} The values of the form
|
|
29
|
-
*/
|
|
30
|
-
getValues(): Promise<BillingFormFields>;
|
|
31
24
|
render(): any;
|
|
32
25
|
}
|
|
@@ -3,6 +3,7 @@ export declare class BusinessRepresentative {
|
|
|
3
3
|
formController: FormController;
|
|
4
4
|
errors: any;
|
|
5
5
|
representative: any;
|
|
6
|
+
get identificationNumberLabel(): "Update SSN (optional)" | "SSN";
|
|
6
7
|
componentDidLoad(): void;
|
|
7
8
|
inputHandler: (name: string, value: string) => void;
|
|
8
9
|
onAddressFormUpdate: (values: any) => void;
|
|
@@ -20,6 +20,7 @@ export declare class BusinessOwnerForm {
|
|
|
20
20
|
serverError: EventEmitter<OwnerFormServerErrorEvent>;
|
|
21
21
|
private api;
|
|
22
22
|
get identityEndpoint(): string;
|
|
23
|
+
get identificationNumberLabel(): "Update SSN (optional)" | "SSN";
|
|
23
24
|
get formTitle(): "Edit Business Owner" | "Add Business Owner";
|
|
24
25
|
get submitButtonText(): "Update" | "Add";
|
|
25
26
|
get showRemoveButton(): boolean;
|
|
@@ -14,6 +14,7 @@ export declare class BusinessRepresentativeFormStep {
|
|
|
14
14
|
serverError: EventEmitter<BusinessFormServerErrorEvent>;
|
|
15
15
|
private api;
|
|
16
16
|
get businessEndpoint(): string;
|
|
17
|
+
get identificationNumberLabel(): "Update SSN (optional)" | "SSN";
|
|
17
18
|
private fetchData;
|
|
18
19
|
private sendData;
|
|
19
20
|
handleResponse(response: any, onSuccess: any): void;
|
|
@@ -17,6 +17,8 @@ export declare const businessFormSchema: import("yup").ObjectSchema<{
|
|
|
17
17
|
business_other_payment_details?: string;
|
|
18
18
|
};
|
|
19
19
|
representative: {
|
|
20
|
+
ssn_last4?: string;
|
|
21
|
+
name?: string;
|
|
20
22
|
address?: {
|
|
21
23
|
line1?: string;
|
|
22
24
|
line2?: string;
|
|
@@ -26,7 +28,6 @@ export declare const businessFormSchema: import("yup").ObjectSchema<{
|
|
|
26
28
|
country?: string;
|
|
27
29
|
};
|
|
28
30
|
title?: string;
|
|
29
|
-
name?: string;
|
|
30
31
|
email?: string;
|
|
31
32
|
phone?: string;
|
|
32
33
|
dob_full?: string;
|
|
@@ -66,6 +67,7 @@ export declare const businessFormSchema: import("yup").ObjectSchema<{
|
|
|
66
67
|
email: undefined;
|
|
67
68
|
phone: undefined;
|
|
68
69
|
dob_full: undefined;
|
|
70
|
+
ssn_last4: undefined;
|
|
69
71
|
identification_number: undefined;
|
|
70
72
|
address: {
|
|
71
73
|
line1: undefined;
|
|
@@ -4,6 +4,7 @@ export declare const identitySchema: (role: string, allowOptionalFields?: boolea
|
|
|
4
4
|
email: string;
|
|
5
5
|
phone: string;
|
|
6
6
|
dob_full: string;
|
|
7
|
+
ssn_last4: string;
|
|
7
8
|
identification_number: string;
|
|
8
9
|
address: {
|
|
9
10
|
line1?: string;
|
|
@@ -19,6 +20,7 @@ export declare const identitySchema: (role: string, allowOptionalFields?: boolea
|
|
|
19
20
|
email: undefined;
|
|
20
21
|
phone: undefined;
|
|
21
22
|
dob_full: undefined;
|
|
23
|
+
ssn_last4: undefined;
|
|
22
24
|
identification_number: undefined;
|
|
23
25
|
address: {
|
|
24
26
|
line1: undefined;
|
|
@@ -10,6 +10,10 @@ export declare class CheckoutCore {
|
|
|
10
10
|
getCheckout: Function;
|
|
11
11
|
complete: Function;
|
|
12
12
|
checkoutId: string;
|
|
13
|
+
disableCreditCard?: boolean;
|
|
14
|
+
disableBankAccount?: boolean;
|
|
15
|
+
disableBnpl?: boolean;
|
|
16
|
+
disablePaymentMethodGroup?: boolean;
|
|
13
17
|
hasLoadedFonts: boolean;
|
|
14
18
|
isLoading: boolean;
|
|
15
19
|
checkout: ICheckout;
|
|
@@ -4,6 +4,10 @@ export declare class Checkout {
|
|
|
4
4
|
iframeOrigin?: string;
|
|
5
5
|
authToken: string;
|
|
6
6
|
checkoutId: string;
|
|
7
|
+
disableCreditCard?: boolean;
|
|
8
|
+
disableBankAccount?: boolean;
|
|
9
|
+
disableBnpl?: boolean;
|
|
10
|
+
disablePaymentMethodGroup?: boolean;
|
|
7
11
|
getCheckout: Function;
|
|
8
12
|
complete: Function;
|
|
9
13
|
errorMessage: string;
|
package/dist/types/components/checkout/{sezzel-payment-method.d.ts → sezzle-payment-method.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { PaymentMethodOption } from './payment-method-option-utils';
|
|
3
3
|
import { PaymentMethodPayload } from './payment-method-payload';
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class SezzlePaymentMethod {
|
|
5
5
|
iframeOrigin?: string;
|
|
6
6
|
bnpl: any;
|
|
7
7
|
clientId: string;
|
|
@@ -7,7 +7,8 @@ export declare class PaymentForm {
|
|
|
7
7
|
bankAccount?: boolean;
|
|
8
8
|
card?: boolean;
|
|
9
9
|
email?: string;
|
|
10
|
-
clientId
|
|
10
|
+
clientId?: string;
|
|
11
|
+
authToken?: string;
|
|
11
12
|
accountId?: string;
|
|
12
13
|
submitButtonText?: string;
|
|
13
14
|
submitButtonEnabled: boolean;
|
|
@@ -17,11 +18,16 @@ export declare class PaymentForm {
|
|
|
17
18
|
errorEvent: EventEmitter<ComponentError>;
|
|
18
19
|
private paymentMethodFormRef?;
|
|
19
20
|
private billingFormRef?;
|
|
21
|
+
componentWillLoad(): void;
|
|
20
22
|
connectedCallback(): void;
|
|
21
23
|
fillBillingForm(fields: BillingFormFields): Promise<void>;
|
|
22
24
|
enableSubmitButton(): Promise<void>;
|
|
23
25
|
disableSubmitButton(): Promise<void>;
|
|
26
|
+
showPaymentMethodTypeSelector(): boolean;
|
|
27
|
+
getSelectedPaymentMethodType(): PaymentMethodTypes;
|
|
24
28
|
paymentMethodSelectedHandler(event: CustomEvent): void;
|
|
29
|
+
private validateProps;
|
|
30
|
+
private getToken;
|
|
25
31
|
submit(event: any): Promise<void>;
|
|
26
32
|
render(): any;
|
|
27
33
|
}
|
|
@@ -11,7 +11,6 @@ import { FormController } from "./components/form/form";
|
|
|
11
11
|
import { BusinessFormClickEvent, BusinessFormServerErrorEvent, BusinessFormSubmitEvent, OwnerFormClickEvent, OwnerFormServerErrorEvent, OwnerFormSubmitEvent } from "./components/business-forms/utils/business-form-types";
|
|
12
12
|
import { CreatePaymentMethodResponse } from "./components/payment-method-form/payment-method-responses";
|
|
13
13
|
import { BillingFormFields } from "./components/billing-form/billing-form-schema";
|
|
14
|
-
import { ValidationError } from "yup";
|
|
15
14
|
import { ICheckoutCompleteResponse } from "./api/Checkout";
|
|
16
15
|
import { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
|
|
17
16
|
import { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
@@ -29,7 +28,6 @@ export { FormController } from "./components/form/form";
|
|
|
29
28
|
export { BusinessFormClickEvent, BusinessFormServerErrorEvent, BusinessFormSubmitEvent, OwnerFormClickEvent, OwnerFormServerErrorEvent, OwnerFormSubmitEvent } from "./components/business-forms/utils/business-form-types";
|
|
30
29
|
export { CreatePaymentMethodResponse } from "./components/payment-method-form/payment-method-responses";
|
|
31
30
|
export { BillingFormFields } from "./components/billing-form/billing-form-schema";
|
|
32
|
-
export { ValidationError } from "yup";
|
|
33
31
|
export { ICheckoutCompleteResponse } from "./api/Checkout";
|
|
34
32
|
export { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
|
|
35
33
|
export { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
@@ -177,23 +175,12 @@ export namespace Components {
|
|
|
177
175
|
* @exportedPart input-invalid: Invalid state for inputs
|
|
178
176
|
*/
|
|
179
177
|
interface JustifiBillingForm {
|
|
180
|
-
/**
|
|
181
|
-
* Method for filling the form with provided data
|
|
182
|
-
* @argument fields - The fields to fill the form with
|
|
183
|
-
*/
|
|
184
178
|
"fill": (fields: BillingFormFields) => Promise<void>;
|
|
185
|
-
/**
|
|
186
|
-
* Returns the values of the form as an object
|
|
187
|
-
* @returns The values of the form
|
|
188
|
-
*/
|
|
189
179
|
"getValues": () => Promise<BillingFormFields>;
|
|
190
180
|
/**
|
|
191
181
|
* (Optional) A label for the form.
|
|
192
182
|
*/
|
|
193
183
|
"legend"?: string;
|
|
194
|
-
/**
|
|
195
|
-
* Run validation on the form
|
|
196
|
-
*/
|
|
197
184
|
"validate": () => Promise<{ isValid: boolean; }>;
|
|
198
185
|
}
|
|
199
186
|
/**
|
|
@@ -334,12 +321,20 @@ export namespace Components {
|
|
|
334
321
|
interface JustifiCheckout {
|
|
335
322
|
"authToken": string;
|
|
336
323
|
"checkoutId": string;
|
|
324
|
+
"disableBankAccount"?: boolean;
|
|
325
|
+
"disableBnpl"?: boolean;
|
|
326
|
+
"disableCreditCard"?: boolean;
|
|
327
|
+
"disablePaymentMethodGroup"?: boolean;
|
|
337
328
|
"iframeOrigin"?: string;
|
|
338
329
|
}
|
|
339
330
|
interface JustifiCheckoutCore {
|
|
340
331
|
"authToken": string;
|
|
341
332
|
"checkoutId": string;
|
|
342
333
|
"complete": Function;
|
|
334
|
+
"disableBankAccount"?: boolean;
|
|
335
|
+
"disableBnpl"?: boolean;
|
|
336
|
+
"disableCreditCard"?: boolean;
|
|
337
|
+
"disablePaymentMethodGroup"?: boolean;
|
|
343
338
|
"getCheckout": Function;
|
|
344
339
|
/**
|
|
345
340
|
* URL for the rendered iFrame. End-users need not use this.
|
|
@@ -431,9 +426,10 @@ export namespace Components {
|
|
|
431
426
|
}
|
|
432
427
|
interface JustifiPaymentForm {
|
|
433
428
|
"accountId"?: string;
|
|
429
|
+
"authToken"?: string;
|
|
434
430
|
"bankAccount"?: boolean;
|
|
435
431
|
"card"?: boolean;
|
|
436
|
-
"clientId"
|
|
432
|
+
"clientId"?: string;
|
|
437
433
|
"disableSubmitButton": () => Promise<void>;
|
|
438
434
|
"email"?: string;
|
|
439
435
|
"enableSubmitButton": () => Promise<void>;
|
|
@@ -462,7 +458,9 @@ export namespace Components {
|
|
|
462
458
|
"resolvePaymentMethod": () => Promise<PaymentMethodPayload>;
|
|
463
459
|
"savedPaymentMethods": any[];
|
|
464
460
|
"showAch": boolean;
|
|
461
|
+
"showBnpl": boolean;
|
|
465
462
|
"showCard": boolean;
|
|
463
|
+
"showSavedPaymentMethods": boolean;
|
|
466
464
|
}
|
|
467
465
|
interface JustifiPaymentMethodSelector {
|
|
468
466
|
"selectedPaymentMethodType": PaymentMethodTypes;
|
|
@@ -586,7 +584,7 @@ export namespace Components {
|
|
|
586
584
|
"paymentMethodOption": PaymentMethodOption;
|
|
587
585
|
"resolvePaymentMethod": () => Promise<PaymentMethodPayload>;
|
|
588
586
|
}
|
|
589
|
-
interface
|
|
587
|
+
interface JustifiSezzlePaymentMethod {
|
|
590
588
|
"accountId": string;
|
|
591
589
|
"bnpl": any;
|
|
592
590
|
"clientId": string;
|
|
@@ -824,9 +822,9 @@ export interface JustifiSavedPaymentMethodCustomEvent<T> extends CustomEvent<T>
|
|
|
824
822
|
detail: T;
|
|
825
823
|
target: HTMLJustifiSavedPaymentMethodElement;
|
|
826
824
|
}
|
|
827
|
-
export interface
|
|
825
|
+
export interface JustifiSezzlePaymentMethodCustomEvent<T> extends CustomEvent<T> {
|
|
828
826
|
detail: T;
|
|
829
|
-
target:
|
|
827
|
+
target: HTMLJustifiSezzlePaymentMethodElement;
|
|
830
828
|
}
|
|
831
829
|
export interface JustifiSubaccountsListCustomEvent<T> extends CustomEvent<T> {
|
|
832
830
|
detail: T;
|
|
@@ -1747,22 +1745,22 @@ declare global {
|
|
|
1747
1745
|
prototype: HTMLJustifiSavedPaymentMethodElement;
|
|
1748
1746
|
new (): HTMLJustifiSavedPaymentMethodElement;
|
|
1749
1747
|
};
|
|
1750
|
-
interface
|
|
1748
|
+
interface HTMLJustifiSezzlePaymentMethodElementEventMap {
|
|
1751
1749
|
"paymentMethodOptionSelected": any;
|
|
1752
1750
|
}
|
|
1753
|
-
interface
|
|
1754
|
-
addEventListener<K extends keyof
|
|
1751
|
+
interface HTMLJustifiSezzlePaymentMethodElement extends Components.JustifiSezzlePaymentMethod, HTMLStencilElement {
|
|
1752
|
+
addEventListener<K extends keyof HTMLJustifiSezzlePaymentMethodElementEventMap>(type: K, listener: (this: HTMLJustifiSezzlePaymentMethodElement, ev: JustifiSezzlePaymentMethodCustomEvent<HTMLJustifiSezzlePaymentMethodElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1755
1753
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1756
1754
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1757
1755
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1758
|
-
removeEventListener<K extends keyof
|
|
1756
|
+
removeEventListener<K extends keyof HTMLJustifiSezzlePaymentMethodElementEventMap>(type: K, listener: (this: HTMLJustifiSezzlePaymentMethodElement, ev: JustifiSezzlePaymentMethodCustomEvent<HTMLJustifiSezzlePaymentMethodElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1759
1757
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1760
1758
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1761
1759
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1762
1760
|
}
|
|
1763
|
-
var
|
|
1764
|
-
prototype:
|
|
1765
|
-
new ():
|
|
1761
|
+
var HTMLJustifiSezzlePaymentMethodElement: {
|
|
1762
|
+
prototype: HTMLJustifiSezzlePaymentMethodElement;
|
|
1763
|
+
new (): HTMLJustifiSezzlePaymentMethodElement;
|
|
1766
1764
|
};
|
|
1767
1765
|
interface HTMLJustifiSubaccountDetailsElement extends Components.JustifiSubaccountDetails, HTMLStencilElement {
|
|
1768
1766
|
}
|
|
@@ -2013,7 +2011,7 @@ declare global {
|
|
|
2013
2011
|
"justifi-proceeds-list": HTMLJustifiProceedsListElement;
|
|
2014
2012
|
"justifi-refund-form": HTMLJustifiRefundFormElement;
|
|
2015
2013
|
"justifi-saved-payment-method": HTMLJustifiSavedPaymentMethodElement;
|
|
2016
|
-
"justifi-
|
|
2014
|
+
"justifi-sezzle-payment-method": HTMLJustifiSezzlePaymentMethodElement;
|
|
2017
2015
|
"justifi-subaccount-details": HTMLJustifiSubaccountDetailsElement;
|
|
2018
2016
|
"justifi-subaccounts-list": HTMLJustifiSubaccountsListElement;
|
|
2019
2017
|
"justifi-table": HTMLJustifiTableElement;
|
|
@@ -2359,6 +2357,10 @@ declare namespace LocalJSX {
|
|
|
2359
2357
|
interface JustifiCheckout {
|
|
2360
2358
|
"authToken"?: string;
|
|
2361
2359
|
"checkoutId"?: string;
|
|
2360
|
+
"disableBankAccount"?: boolean;
|
|
2361
|
+
"disableBnpl"?: boolean;
|
|
2362
|
+
"disableCreditCard"?: boolean;
|
|
2363
|
+
"disablePaymentMethodGroup"?: boolean;
|
|
2362
2364
|
"iframeOrigin"?: string;
|
|
2363
2365
|
"onError-event"?: (event: JustifiCheckoutCustomEvent<ComponentError>) => void;
|
|
2364
2366
|
}
|
|
@@ -2366,6 +2368,10 @@ declare namespace LocalJSX {
|
|
|
2366
2368
|
"authToken"?: string;
|
|
2367
2369
|
"checkoutId"?: string;
|
|
2368
2370
|
"complete"?: Function;
|
|
2371
|
+
"disableBankAccount"?: boolean;
|
|
2372
|
+
"disableBnpl"?: boolean;
|
|
2373
|
+
"disableCreditCard"?: boolean;
|
|
2374
|
+
"disablePaymentMethodGroup"?: boolean;
|
|
2369
2375
|
"getCheckout"?: Function;
|
|
2370
2376
|
/**
|
|
2371
2377
|
* URL for the rendered iFrame. End-users need not use this.
|
|
@@ -2464,6 +2470,7 @@ declare namespace LocalJSX {
|
|
|
2464
2470
|
}
|
|
2465
2471
|
interface JustifiPaymentForm {
|
|
2466
2472
|
"accountId"?: string;
|
|
2473
|
+
"authToken"?: string;
|
|
2467
2474
|
"bankAccount"?: boolean;
|
|
2468
2475
|
"card"?: boolean;
|
|
2469
2476
|
"clientId"?: string;
|
|
@@ -2494,7 +2501,9 @@ declare namespace LocalJSX {
|
|
|
2494
2501
|
"paymentAmount"?: string;
|
|
2495
2502
|
"savedPaymentMethods"?: any[];
|
|
2496
2503
|
"showAch"?: boolean;
|
|
2504
|
+
"showBnpl"?: boolean;
|
|
2497
2505
|
"showCard"?: boolean;
|
|
2506
|
+
"showSavedPaymentMethods"?: boolean;
|
|
2498
2507
|
}
|
|
2499
2508
|
interface JustifiPaymentMethodSelector {
|
|
2500
2509
|
"onPaymentMethodSelected"?: (event: JustifiPaymentMethodSelectorCustomEvent<any>) => void;
|
|
@@ -2628,13 +2637,13 @@ declare namespace LocalJSX {
|
|
|
2628
2637
|
"onPaymentMethodOptionSelected"?: (event: JustifiSavedPaymentMethodCustomEvent<any>) => void;
|
|
2629
2638
|
"paymentMethodOption"?: PaymentMethodOption;
|
|
2630
2639
|
}
|
|
2631
|
-
interface
|
|
2640
|
+
interface JustifiSezzlePaymentMethod {
|
|
2632
2641
|
"accountId"?: string;
|
|
2633
2642
|
"bnpl"?: any;
|
|
2634
2643
|
"clientId"?: string;
|
|
2635
2644
|
"iframeOrigin"?: string;
|
|
2636
2645
|
"isSelected"?: boolean;
|
|
2637
|
-
"onPaymentMethodOptionSelected"?: (event:
|
|
2646
|
+
"onPaymentMethodOptionSelected"?: (event: JustifiSezzlePaymentMethodCustomEvent<any>) => void;
|
|
2638
2647
|
"paymentAmount"?: string;
|
|
2639
2648
|
"paymentMethodOption"?: PaymentMethodOption;
|
|
2640
2649
|
}
|
|
@@ -2779,7 +2788,7 @@ declare namespace LocalJSX {
|
|
|
2779
2788
|
"justifi-proceeds-list": JustifiProceedsList;
|
|
2780
2789
|
"justifi-refund-form": JustifiRefundForm;
|
|
2781
2790
|
"justifi-saved-payment-method": JustifiSavedPaymentMethod;
|
|
2782
|
-
"justifi-
|
|
2791
|
+
"justifi-sezzle-payment-method": JustifiSezzlePaymentMethod;
|
|
2783
2792
|
"justifi-subaccount-details": JustifiSubaccountDetails;
|
|
2784
2793
|
"justifi-subaccounts-list": JustifiSubaccountsList;
|
|
2785
2794
|
"justifi-table": JustifiTable;
|
|
@@ -3025,7 +3034,7 @@ declare module "@stencil/core" {
|
|
|
3025
3034
|
"justifi-proceeds-list": LocalJSX.JustifiProceedsList & JSXBase.HTMLAttributes<HTMLJustifiProceedsListElement>;
|
|
3026
3035
|
"justifi-refund-form": LocalJSX.JustifiRefundForm & JSXBase.HTMLAttributes<HTMLJustifiRefundFormElement>;
|
|
3027
3036
|
"justifi-saved-payment-method": LocalJSX.JustifiSavedPaymentMethod & JSXBase.HTMLAttributes<HTMLJustifiSavedPaymentMethodElement>;
|
|
3028
|
-
"justifi-
|
|
3037
|
+
"justifi-sezzle-payment-method": LocalJSX.JustifiSezzlePaymentMethod & JSXBase.HTMLAttributes<HTMLJustifiSezzlePaymentMethodElement>;
|
|
3029
3038
|
"justifi-subaccount-details": LocalJSX.JustifiSubaccountDetails & JSXBase.HTMLAttributes<HTMLJustifiSubaccountDetailsElement>;
|
|
3030
3039
|
"justifi-subaccounts-list": LocalJSX.JustifiSubaccountsList & JSXBase.HTMLAttributes<HTMLJustifiSubaccountsListElement>;
|
|
3031
3040
|
"justifi-table": LocalJSX.JustifiTable & JSXBase.HTMLAttributes<HTMLJustifiTableElement>;
|