@justifi/webcomponents 4.12.1 → 4.12.2
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-c928bf29.js → Business-21cef37d.js} +18 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{business-additional-questions-schema-3813615c.js → business-additional-questions-schema-f5f303fb.js} +3 -1
- package/dist/cjs/{business-form-types-4b138bf2.js → business-form-types-a3cc374d.js} +60 -1
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +5 -5
- package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-owner-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/{payload-parsers-58d3798e.js → payload-parsers-74693a97.js} +5 -1
- package/dist/collection/api/Business.js +18 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -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/business-core-info/business-core-info-form-step.js +2 -2
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +3 -1
- package/dist/collection/components/business-forms/schemas/schema-validations.js +4 -1
- package/dist/collection/components/business-forms/utils/business-form-types.js +59 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
- package/dist/docs.json +2 -2
- package/dist/esm/{Business-6cb1b9c8.js → Business-0e8a9a3a.js} +19 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{business-additional-questions-schema-228d86e0.js → business-additional-questions-schema-a84dd641.js} +3 -1
- package/dist/esm/{business-form-types-5ba52d61.js → business-form-types-7420dc96.js} +60 -2
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +5 -5
- package/dist/esm/justifi-additional-questions_4.entry.js +3 -3
- package/dist/esm/justifi-billing-form_4.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +1 -1
- package/dist/esm/justifi-business-form.entry.js +4 -4
- package/dist/esm/justifi-business-list.entry.js +1 -1
- package/dist/esm/justifi-owner-form.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/{payload-parsers-3e817fe9.js → payload-parsers-0c4fc2b1.js} +5 -2
- package/dist/module/Business.js +19 -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 +3 -1
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-form-types.js +60 -2
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/generic-info-details2.js +2 -2
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +3 -3
- package/dist/module/justifi-business-list.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/legal-address-form-step.js +2 -2
- package/dist/module/owner-form.js +2 -2
- package/dist/module/payload-parsers.js +5 -2
- package/dist/module/payment-method-form.js +2 -2
- package/dist/types/api/Business.d.ts +19 -0
- 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 +2 -0
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +1 -0
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +5 -1
- package/dist/webcomponents/{p-31e70d65.entry.js → p-18cf5a16.entry.js} +1 -1
- package/dist/webcomponents/{p-edab5f2b.entry.js → p-51ee396f.entry.js} +1 -1
- package/dist/webcomponents/p-52e4cc27.js +1 -0
- package/dist/webcomponents/p-602a1588.entry.js +1 -0
- package/dist/webcomponents/p-6ec77980.entry.js +1 -0
- package/dist/webcomponents/{p-07080c01.entry.js → p-81c43ba5.entry.js} +1 -1
- package/dist/webcomponents/{p-31ccb5f0.entry.js → p-9e35b0f6.entry.js} +1 -1
- package/dist/webcomponents/p-9ec89299.entry.js +1 -0
- package/dist/webcomponents/{p-71b8e2da.entry.js → p-b38baa84.entry.js} +1 -1
- package/dist/webcomponents/p-bfc634c6.entry.js +1 -0
- package/dist/webcomponents/p-cb86b2fd.js +1 -0
- package/dist/webcomponents/p-d2b7beac.js +1 -0
- package/dist/webcomponents/p-e3946c2b.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-0d371ff5.entry.js +0 -1
- package/dist/webcomponents/p-26fe62d6.entry.js +0 -1
- package/dist/webcomponents/p-4c705f56.js +0 -1
- package/dist/webcomponents/p-737473d8.js +0 -1
- package/dist/webcomponents/p-787d8f52.js +0 -1
- package/dist/webcomponents/p-889a83d2.js +0 -1
- package/dist/webcomponents/p-9b0e5c25.entry.js +0 -1
- package/dist/webcomponents/p-c865cda8.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as t}from"./p-6078a370.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 r(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 o{constructor(t){this.address=Object.assign({},new r(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 c;!function(t){t.individual="individual",t.for_profit="for_profit",t.non_profit="non_profit",t.government_entity="government_entity"}(c||(c={}));class r{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_dispute_volume=t.business_dispute_volume,this.business_receivable_volume=t.business_receivable_volume}}class e{constructor(t){this.business_type=t.business_type,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}}class u{constructor(t){this.additional_questions=t.additional_questions||{},this.bank_accounts=t.bank_accounts,this.business_type=t.business_type,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 r(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 o(t.representative||{})),this.tax_id=t.tax_id,this.updated_at=t.updated_at,this.website_url=t.website_url}}export{a as A,u as B,e as C,n as O,o as R,c as a,r as b,h as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,a as s}from"./p-ade12f56.js";import{b as n,w as u,e as i,c as a,d as t,f as r,g as b,t as l}from"./p-889a83d2.js";const _=s=>{const _=e({legal_name:n.required("Enter legal name"),website_url:u.required("Enter business website url"),email:i.required("Enter business email"),phone:a.required("Enter phone number"),doing_business_as:t.required("Enter doing business as"),business_type:r.required("Select business type"),industry:b.required("Enter a business industry"),tax_id:l.required("Enter tax id")}),m=e({legal_name:n.required("Enter legal name"),website_url:u.nullable(),email:i.nullable(),phone:a.nullable(),doing_business_as:t.nullable(),business_type:r.nullable(),industry:b.nullable(),tax_id:l.nullable()});return s?m:_},m=n=>{const u=e({business_revenue:s().required("Enter business revenue"),business_payment_volume:s().required("Enter business payment volume"),business_dispute_volume:s().required("Enter business dispute volume"),business_receivable_volume:s().required("Enter business receivable volume")}),i=e({business_revenue:s().nullable(),business_payment_volume:s().nullable(),business_dispute_volume:s().nullable(),business_receivable_volume:s().nullable()});return n?i:u};export{m as a,_ as b}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./p-4c705f56.js";var a,e,n,t;!function(r){r.fetchData="Error retrieving business data",r.patchData="Error updating business data"}(a||(a={})),function(r){r.nextStep="nextStep",r.previousStep="previousStep",r.submit="submit"}(e||(e={})),function(r){r.fetchData="Error retrieving owner data",r.patchData="Error updating owner data",r.postData="Error adding owner data"}(n||(n={})),function(r){r.removeOwner="removeOwner",r.addOwner="addOwner",r.addOwnerForm="addOwnerForm",r.updateOwner="updateOwner"}(t||(t={}));const o=[{label:"Choose business type",value:""},{label:"Individual",value:r.individual},{label:"For Profit",value:r.for_profit},{label:"Non Profit",value:r.non_profit},{label:"Government Entity",value:r.government_entity}];export{a as B,t as O,e as a,o as b,n as c}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t}from"./p-ade12f56.js";import{b as a}from"./p-787d8f52.js";import{S as s}from"./p-6078a370.js";const r=e=>""===e?null:e,l=/^(?!^\s+$)[a-zA-Z0-9\s,&.-]*$/,n=/^(?!^\s+$)[a-zA-Z\s]*$/,d=e().email("Enter valid email").transform(r),i=e().matches(/^\d{10}$/,"Enter valid phone number").transform(r),c=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").matches(l,"Enter valid business name").transform(r),m=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").matches(l,"Enter valid doing business as").transform(r),u=e().matches(/^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/,"Enter valid website url").transform(r),o=e().oneOf(a.map((e=>e.value)),"Select business type").transform(r),b=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").matches(n,"Enter valid industry").transform(r),h=e().matches(/^\d{9}$/,"Enter valid tax id").transform(r),E=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").matches(n,"Enter valid name").transform(r),$=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").matches(n,"Enter valid title").transform(r),v=t=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${t} must be at least 18 years old`,(e=>{const t=new Date(e),a=new Date;return a.setFullYear(a.getFullYear()-18),t<=a})).transform(r),p=e().matches(/^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/,"Enter valid SSN").test("not-repeat","Enter valid SSN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SSN",(e=>"123456789"!==e)).transform(r),y=e().min(5,"Address must be at least 5 characters").max(100,"Address must be less than 100 characters").matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/,"Enter valid address line 1").transform(r),S=e().max(100,"Address must be less than 100 characters").matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/,"Enter valid address line 2").transform(r),f=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").matches(/^(?!^\s+$)[a-zA-Z\s]*$/,"Enter valid city").transform(r),A=e().oneOf(s.map((e=>e.value)),"Select state").transform(r),N=e().matches(/^[0-9]{5}$/,"Enter valid postal code").transform(r),w=a=>{const s=t({line1:y.required("Enter street address"),line2:S.nullable(),city:f.required("Enter city"),state:A.required("Select state"),postal_code:N.required("Enter postal code"),country:e().required("Select country")}),r=t({line1:y.nullable(),line2:S.nullable(),city:f.nullable(),state:A.nullable(),postal_code:N.nullable(),country:e().required("Select country")});return a?r:s},z=(e,a)=>{const s=t({name:E.required(`Enter ${e} name`),title:$.required(`Enter ${e} title`),email:d.required(`Enter ${e} email`),phone:i.required("Enter phone number"),dob_full:v(e).required("Enter date of birth"),identification_number:p.required("Enter SSN"),address:w(a)}),r=t({name:E.required(`Enter ${e} name`),title:$.nullable(),email:d.nullable(),phone:i.nullable(),dob_full:v(e).nullable(),identification_number:p.nullable(),address:w(a)});return a?r:s},_=(e,t)=>{var a;return Z(e),j(e.legal_address),D(e.representative),(null===(a=t.owners)||void 0===a?void 0:a.length)&&delete e.owners,e},Z=e=>(delete e.id,delete e.documents,delete e.bank_accounts,delete e.product_categories,delete e.created_at,delete e.updated_at,e),j=e=>(delete e.id,delete e.created_at,delete e.updated_at,e),D=e=>(delete e.id,delete e.documents,delete e.created_at,delete e.updated_at,delete e.address.id,delete e.address.created_at,delete e.address.updated_at,delete e.business_id,delete e.dob_full,delete e.ssn_last4,e);export{w as a,c as b,i as c,m as d,d as e,o as f,b as g,Z as h,z as i,D as j,j as k,_ as p,h as t,u as w}
|