@justifi/webcomponents 4.12.2 → 4.13.0-rc.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/{Business-21cef37d.js → Business-98686045.js} +9 -4
- 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-f8086f7a.js} +17 -9
- package/dist/cjs/{business-form-types-a3cc374d.js → business-form-options-fd1c0032.js} +50 -33
- package/dist/cjs/business-form-types-29b2bad9.js +26 -0
- package/dist/cjs/form-control-date_3.cjs.entry.js +2 -2
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +1 -1
- 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 +7 -7
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- 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 +9 -4
- package/dist/cjs/justifi-checkout.cjs.entry.js +26 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +1 -1
- package/dist/cjs/justifi-owner-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +1 -3
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{payload-parsers-74693a97.js → payload-parsers-fe27be37.js} +62 -7
- package/dist/cjs/{state-options-4fbcb48a.js → state-options-4145f9b4.js} +0 -4
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Business.js +8 -3
- 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 +28 -5
- package/dist/collection/components/checkout/checkout-core.js +30 -6
- package/dist/collection/components/checkout/payment-method-options.js +2 -18
- package/dist/collection/components/checkout/test/checkout-actions.spec.js +126 -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-monetary.css +1812 -0
- package/dist/collection/components/form/form-control-monetary.js +24 -11
- 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/collection/utils/state-options.js +0 -4
- package/dist/docs.json +93 -30
- package/dist/esm/{Business-0e8a9a3a.js → Business-6e0efa26.js} +9 -4
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{business-additional-questions-schema-a84dd641.js → business-additional-questions-schema-8e742129.js} +18 -10
- package/dist/esm/{business-form-types-7420dc96.js → business-form-options-75c0a7ec.js} +46 -32
- package/dist/esm/business-form-types-0d76133c.js +26 -0
- package/dist/esm/form-control-date_3.entry.js +2 -2
- package/dist/esm/form-control-datepart_2.entry.js +1 -1
- 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 +7 -7
- package/dist/esm/justifi-billing-form_4.entry.js +3 -3
- package/dist/esm/justifi-business-details.entry.js +2 -2
- 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 +9 -4
- package/dist/esm/justifi-checkout.entry.js +27 -5
- package/dist/esm/justifi-new-payment-method_4.entry.js +1 -1
- package/dist/esm/justifi-owner-form.entry.js +6 -5
- package/dist/esm/justifi-payment-provisioning.entry.js +1 -3
- package/dist/esm/justifi-refund-form.entry.js +2 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{payload-parsers-0c4fc2b1.js → payload-parsers-73c12fa2.js} +55 -8
- package/dist/esm/{state-options-a356fb11.js → state-options-c0b757ad.js} +0 -4
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Business.js +8 -3
- 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 +9 -5
- 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-form.js +2 -2
- package/dist/module/justifi-checkout.js +27 -5
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-refund-form.js +2 -1
- package/dist/module/legal-address-form-step.js +1 -1
- 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/state-options.js +0 -4
- 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 +3 -2
- package/dist/types/components/checkout/payment-method-options.d.ts +1 -1
- package/dist/types/components/form/form-control-monetary.d.ts +1 -0
- package/dist/types/components.d.ts +4 -2
- package/dist/types/utils/form-input-masks.d.ts +15 -0
- package/dist/webcomponents/{p-18cf5a16.entry.js → p-19885f77.entry.js} +1 -1
- package/dist/webcomponents/p-2c4c5f0d.entry.js +1 -0
- package/dist/webcomponents/p-30b6ea06.entry.js +1 -0
- package/dist/webcomponents/p-31e8f29c.entry.js +1 -0
- package/dist/webcomponents/p-31fe7232.entry.js +1 -0
- package/dist/webcomponents/p-3496e37f.js +1 -0
- package/dist/webcomponents/{p-2fbe8823.entry.js → p-35e59bb5.entry.js} +1 -1
- package/dist/webcomponents/p-3917edbf.entry.js +1 -0
- package/dist/webcomponents/p-3934a3a8.entry.js +1 -0
- package/dist/webcomponents/p-3ffe6784.js +1 -0
- package/dist/webcomponents/{p-e3946c2b.js → p-49c349e7.js} +1 -1
- package/dist/webcomponents/p-4d335a3d.entry.js +1 -0
- package/dist/webcomponents/p-4ff52695.entry.js +1 -0
- package/dist/webcomponents/p-525db3e8.js +1 -0
- package/dist/webcomponents/p-57fbd98d.js +1 -0
- package/dist/webcomponents/p-5a789239.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-2bee72bd.entry.js → p-8da13f40.entry.js} +1 -1
- package/dist/webcomponents/p-935d6f55.js +1 -0
- package/dist/webcomponents/{p-b38baa84.entry.js → p-ba454cd7.entry.js} +1 -1
- package/dist/webcomponents/p-ed6ca114.js +1 -0
- package/dist/webcomponents/p-ee68566f.entry.js +1 -0
- package/dist/webcomponents/{p-b9f04fb0.entry.js → p-f152d6b8.entry.js} +1 -1
- package/dist/webcomponents/p-f3cf3513.entry.js +1 -0
- 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-2319abaf.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-6078a370.js +0 -1
- package/dist/webcomponents/p-6ec77980.entry.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-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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e}from"./p-9ee8ad4d.js";import{C as o,g as c,a as r}from"./p-6f294d5d.js";import{A as s}from"./p-04c7f8f8.js";import"./p-56f6ce4c.js";import"./p-02fa533c.js";import"./p-e3fab0e2.js";import{c as i}from"./p-ae263544.js";class h{async fetchCheckout(t,e){const o=`checkouts/${e}`;return s(t,i.proxyApiOrigin).get(o)}async complete(t,e,o){const c=`checkouts/${e}/complete`,r={payment_mode:o.payment_mode};return o.payment_token&&(r.payment_token=o.payment_token),s(t,i.proxyApiOrigin).post(c,JSON.stringify(r))}}const n=class{constructor(e){t(this,e),this.iframeOrigin=void 0,this.authToken=void 0,this.checkoutId=void 0,this.getCheckout=void 0,this.complete=void 0,this.errorMessage=""}componentWillLoad(){this.initializeGetCheckout()}initializeGetCheckout(){this.authToken&&this.checkoutId?(this.getCheckout=(({authToken:t,checkoutId:e,service:s})=>async({onSuccess:i,onError:h})=>{var n;try{const a=await s.fetchCheckout(t,e);if(a.error)return h({error:c(a.error),code:r(null===(n=a.error)||void 0===n?void 0:n.code),severity:o.ERROR});i({checkout:a.data})}catch(t){const e=r(null==t?void 0:t.code);return h({error:t.message||t,code:e,severity:o.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new h}),this.complete=(({authToken:t,checkoutId:e,service:s})=>async({payment:i,onSuccess:h,onError:n})=>{var a;try{const u=await s.complete(t,e,i);if(u.error)return n({error:c(u.error),code:r(null===(a=u.error)||void 0===a?void 0:a.code),severity:o.ERROR});h({checkout:u.data})}catch(t){const e=r(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:o.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new h})):this.errorMessage="auth-token and checkout-id are required"}propChanged(){this.initializeGetCheckout()}render(){return e("justifi-checkout-core",{getCheckout:this.getCheckout,complete:this.complete})}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{n as justifi_checkout}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as a}from"./p-49c349e7.js";const l=[{label:"Individual",value:e.individual},{label:"For Profit",value:e.for_profit},{label:"Non Profit",value:e.non_profit},{label:"Government Entity",value:e.government_entity}],t=[{label:"Choose business structure",value:""},{label:"Sole Proprietorship",value:a.sole_proprietorship},{label:"LLC (Single)",value:a.single_llc},{label:"LLC (Multiple)",value:a.multi_llc},{label:"Private Partnership",value:a.private_partnership},{label:"Private Corporation",value:a.private_corporation},{label:"Unincorporated Association",value:a.unincorporated_association},{label:"Public Partnership",value:a.public_partnership},{label:"Public Corporation",value:a.public_corporation},{label:"Incorporated",value:a.incorporated},{label:"Unincorporated",value:a.unincorporated},{label:"Government Unit",value:a.government_unit},{label:"Government Instrumentality",value:a.government_instrumentality},{label:"Tax Exempt Government Instrumentality",value:a.tax_exempt_government_instrumentality}],i=[{label:"Within 7 days",value:"Within 7 days"},{label:"Within 30 days",value:"Within 30 days"},{label:"Within 90 days",value:"Within 90 days"},{label:"Within 120 days",value:"Within 120 days"},{label:"More than 120 days",value:"More than 120 days"}],n=[{label:"Yes",value:"Yes"},{label:"No",value:"No"}],s=[{label:"Yes. The majority of the business revenue is generated in 3-6 months.",value:"Yes"},{label:"No. The business revenue is generated evenly throughout the year.",value:"No"}];export{t as a,l as b,i as c,n as r,s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as t}from"./p-
|
|
1
|
+
import{S as t}from"./p-3496e37f.js";function s(t){return/^\d$/.test(t)?"0"+t:t}function i(t,i,h){if(t&&i&&h)return`${t}-${s(i)}-${s(h)}`}function h(t){const[s,i,h]=t.split("-");return{dob_year:s,dob_month:i,dob_day:h}}class n{constructor(t){this.address=Object.assign({},new e(t.address||{})),this.created_at=t.created_at,this.dob_day=s(t.dob_day),this.dob_month=s(t.dob_month),this.dob_year=t.dob_year,this.dob_full=i(this.dob_year,this.dob_month,this.dob_day)||"",this.documents=t.documents,this.email=t.email,this.id=t.id,this.business_id=t.business_id,this.is_owner=t.is_owner,this.metadata=t.metadata,this.name=t.name,this.phone=t.phone,this.platform_account_id=t.platform_account_id,this.identification_number=t.identification_number,this.ssn_last4=t.ssn_last4,this.title=t.title,this.updated_at=t.updated_at}}class r{constructor(t){this.address=Object.assign({},new e(t.address||{})),this.created_at=t.created_at,this.dob_day=s(t.dob_day),this.dob_month=s(t.dob_month),this.dob_year=t.dob_year,this.dob_full=i(this.dob_year,this.dob_month,this.dob_day)||"",this.documents=t.documents,this.email=t.email,this.id=t.id,this.business_id=t.business_id,this.is_owner=t.is_owner,this.metadata=t.metadata,this.name=t.name,this.phone=t.phone,this.platform_account_id=t.platform_account_id,this.identification_number=t.identification_number,this.ssn_last4=t.ssn_last4,this.title=t.title,this.updated_at=t.updated_at}}var o,c;!function(t){t.individual="individual",t.for_profit="for_profit",t.non_profit="non_profit",t.government_entity="government_entity"}(o||(o={})),function(t){t.sole_proprietorship="sole_proprietorship",t.single_llc="single_llc",t.multi_llc="multi_llc",t.private_partnership="private_partnership",t.private_corporation="private_corporation",t.unincorporated_association="unincorporated_association",t.public_partnership="public_partnership",t.public_corporation="public_corporation",t.incorporated="incorporated",t.unincorporated="unincorporated",t.government_unit="government_unit",t.government_instrumentality="government_instrumentality",t.tax_exempt_government_instrumentality="tax_exempt_government_instrumentality"}(c||(c={}));class e{constructor(s){this.id=s.id,this.platform_account_id=s.platform_account_id,this.line1=s.line1,this.line2=s.line2,this.postal_code=s.postal_code,this.city=s.city,this.state=function(s){const i=t.find((t=>t.label===s));return i?i.value:s}(s.state),this.country=s.country||"USA",this.created_at=s.created_at,this.updated_at=s.updated_at}}class a{constructor(t){this.business_revenue=t.business_revenue,this.business_payment_volume=t.business_payment_volume,this.business_when_service_received=t.business_when_service_received,this.business_recurring_payments=t.business_recurring_payments,this.business_recurring_payments_percentage=t.business_recurring_payments_percentage,this.business_seasonal=t.business_seasonal,this.business_other_payment_details=t.business_other_payment_details}}class u{constructor(t){this.business_type=t.business_type,this.business_structure=t.business_structure,this.legal_name=t.legal_name,this.doing_business_as=t.doing_business_as,this.industry=t.industry,this.tax_id=t.tax_id,this.website_url=t.website_url,this.email=t.email,this.phone=t.phone,this.date_of_incorporation=t.date_of_incorporation}}class p{constructor(t){this.additional_questions=Object.assign({},new a(t.additional_questions||{})),this.bank_accounts=t.bank_accounts,this.business_type=t.business_type,this.business_structure=t.business_structure,this.created_at=t.created_at,this.documents=t.documents,this.doing_business_as=t.doing_business_as,this.email=t.email,this.id=t.id,this.industry=t.industry,this.legal_address=Object.assign({},new e(t.legal_address||{})),this.legal_name=t.legal_name,this.metadata=t.metadata,this.owners=t.owners,this.phone=t.phone,this.platform_account_id=t.platform_account_id,this.product_categories=t.product_categories,this.representative=Object.assign({},new r(t.representative||{})),this.tax_id=t.tax_id,this.updated_at=t.updated_at,this.website_url=t.website_url,this.date_of_incorporation=t.date_of_incorporation}}export{a as A,p as B,u as C,n as O,r as R,o as a,c as b,e as c,h as d}
|