@justifi/webcomponents 4.13.0 → 4.14.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/justifi-additional-questions-form-step_5.cjs.entry.js +6 -6
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -4
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-owner-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-form.cjs.entry.js +36 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{payment.service-336189d3.js → payment.service-019157e9.js} +3 -3
- package/dist/cjs/{payout.service-6012d576.js → payout.service-7203762f.js} +3 -3
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +7 -2
- 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/components/business-forms/business-form/business-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
- 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 +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-list/business-list.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 +54 -3
- package/dist/collection/components/payment-form/test/payment-form.spec.js +17 -34
- 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 +23 -2
- package/dist/esm/{Api-e9d568c7.js → Api-b09a2f6a.js} +7 -2
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +6 -6
- package/dist/esm/justifi-billing-form_4.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-business-list.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +6 -4
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-owner-form.entry.js +2 -2
- package/dist/esm/justifi-payment-balance-transactions.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-form.entry.js +36 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-proceeds-list.entry.js +2 -2
- package/dist/esm/justifi-refund-form.entry.js +2 -2
- package/dist/esm/justifi-subaccount-details.entry.js +3 -3
- package/dist/esm/justifi-subaccounts-list.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{payment.service-2fdc5018.js → payment.service-03e274d7.js} +3 -3
- package/dist/esm/{payout.service-15064bcc.js → payout.service-9823d66d.js} +3 -3
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Api.js +7 -2
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-business-list.js +1 -1
- package/dist/module/justifi-checkout.js +5 -3
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-payment-balance-transactions.js +1 -1
- package/dist/module/justifi-payment-form.js +37 -2
- package/dist/module/justifi-proceeds-list.js +1 -1
- package/dist/module/justifi-refund-form.js +1 -1
- 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 +1 -1
- package/dist/module/owner-form.js +1 -1
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payment.service.js +2 -2
- package/dist/module/payout.service.js +2 -2
- package/dist/types/api/Api.d.ts +5 -1
- package/dist/types/components/payment-form/payment-form.d.ts +7 -1
- package/dist/types/components.d.ts +3 -1
- package/dist/webcomponents/p-02993072.entry.js +1 -0
- package/dist/webcomponents/{p-02b18979.entry.js → p-0b8c1ffc.entry.js} +1 -1
- package/dist/webcomponents/p-1b959678.entry.js +1 -0
- package/dist/webcomponents/p-28181471.entry.js +1 -0
- package/dist/webcomponents/{p-13e2f667.js → p-29c0b182.js} +1 -1
- package/dist/webcomponents/{p-d7d40d26.entry.js → p-3d2f2937.entry.js} +1 -1
- package/dist/webcomponents/p-3d70b0f1.entry.js +1 -0
- package/dist/webcomponents/p-4824018b.entry.js +1 -0
- package/dist/webcomponents/p-598bb67c.entry.js +1 -0
- package/dist/webcomponents/{p-78b32fb9.entry.js → p-5dac370e.entry.js} +1 -1
- package/dist/webcomponents/p-617caf03.entry.js +1 -0
- package/dist/webcomponents/p-70d43109.entry.js +1 -0
- package/dist/webcomponents/{p-9ba31a6a.entry.js → p-7c5f15f8.entry.js} +1 -1
- package/dist/webcomponents/p-96a86f04.entry.js +1 -0
- package/dist/webcomponents/p-c211d068.js +1 -0
- package/dist/webcomponents/p-c3d5f7de.entry.js +1 -0
- package/dist/webcomponents/p-c48a99b9.entry.js +1 -0
- package/dist/webcomponents/p-d2fcc58b.entry.js +1 -0
- package/dist/webcomponents/p-d57f5f01.entry.js +1 -0
- package/dist/webcomponents/p-edb66ae0.js +1 -0
- package/dist/webcomponents/p-f5ae07c4.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-101b2648.entry.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-41bdee27.entry.js +0 -1
- package/dist/webcomponents/p-4c84952f.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-a9af8f40.entry.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-cb31488b.entry.js +0 -1
- package/dist/webcomponents/p-d0a8c631.entry.js +0 -1
- package/dist/webcomponents/p-efbc8ffc.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as i,h as t,H as e}from"./p-9ee8ad4d.js";import{E as r}from"./p-3302bc76.js";import{c as o}from"./p-ae263544.js";import{A as a}from"./p-29c0b182.js";import{B as n}from"./p-9ada56da.js";import{C as c,a as d}from"./p-0d80748f.js";import{g as h,a as u}from"./p-00ca94d1.js";import"./p-6078a370.js";class p{async fetchBusiness(s,i){const t=`entities/business/${s}`;return a({authToken:i,apiOrigin:o.proxyApiOrigin}).get(t)}}const m=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.businessId=void 0,this.authToken=void 0,this.errorMessage=void 0,this.getBusiness=void 0}componentWillLoad(){this.initializeGetBusiness()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:d.MISSING_PROPS,message:this.errorMessage,severity:c.ERROR});this.getBusiness=(({id:s,authToken:i,service:t})=>async({onSuccess:e,onError:r})=>{var o;try{const a=await t.fetchBusiness(s,i);if(a.error)return r({error:h(a.error),code:u(null===(o=a.error)||void 0===o?void 0:o.code),severity:c.ERROR});e({business:new n(a.data)})}catch(s){const i=u(null==s?void 0:s.code);return r({error:s.message||s,code:i,severity:c.ERROR})}})({id:this.businessId,authToken:this.authToken,service:new p})}render(){return t(e,null,this.errorMessage?r(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{m as justifi_business_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as s,H as a}from"./p-9ee8ad4d.js";import{S as i}from"./p-65510838.js";import{M as c}from"./p-28b38699.js";import{A as h}from"./p-29c0b182.js";import{p as o}from"./p-56f6ce4c.js";import"./p-02fa533c.js";import"./p-e3fab0e2.js";import{c as n}from"./p-ae263544.js";const r=class{constructor(s){t(this,s),this.rowClicked=e(this,"subaccount-row-clicked",7),this.handleClickPrevious=t=>{const e=Object.assign({},this.params);delete e.after_cursor,this.params=Object.assign(Object.assign({},e),{before_cursor:t})},this.handleClickNext=t=>{const e=Object.assign({},this.params);delete e.before_cursor,this.params=Object.assign(Object.assign({},e),{after_cursor:t})},this.accountId=void 0,this.authToken=void 0,this.subaccounts=[],this.loading=!0,this.errorMessage=void 0,this.paging=o,this.params=void 0}updateOnPropChange(){this.fetchData()}connectedCallback(){this.fetchData()}async fetchData(){if(!this.accountId||!this.authToken)return this.errorMessage="Can not fetch any data without an AccountID and an AuthToken",void(this.loading=!1);this.loading=!0;const t=h({authToken:this.authToken,apiOrigin:n.privateApiOrigin}),e=`account/${this.accountId}/seller_accounts`,s=await t.get(e,this.params);if(s.error)this.errorMessage="string"==typeof s.error?s.error:s.error.message;else{this.paging=Object.assign(Object.assign({},this.paging),s.page_info);const t=null==s?void 0:s.data.map((t=>new i(t)));this.subaccounts=t}this.loading=!1}render(){return s(a,null,s("justifi-table",{rowClickHandler:t=>{const e=t.target.closest("tr").dataset.rowEntityId;e&&this.rowClicked.emit(this.subaccounts.find((t=>t.id===e)))},entityId:this.subaccounts.map((t=>t.id)),columnData:[["Created On","The date and time each sub account was created"],["Name","The name provided for each sub account"],["Account\t","The unique live or test account ID for each sub account"],["Card Rate\t","The rate that determines the fees charged per payment, when paid by card"],["ACH Rate\t","The rate that determines the fees charged per payment, when paid by eCheck"],["Status","The onboarding status of each sub account"]],rowData:this.subaccounts.map((t=>[{type:"head",value:`\n <div class='fw-bold'>${t.dateString}</div>\n <div class='fw-bold'>${t.timeString}</div>\n `},t.name,t.id,t.cardRate,t.achRate,{type:"inner",value:c(t.status)}])),loading:this.loading,"error-message":this.errorMessage,params:this.params,paging:Object.assign(Object.assign({},this.paging),{handleClickNext:this.handleClickNext,handleClickPrevious:this.handleClickPrevious})}))}static get watchers(){return{accountId:["updateOnPropChange"],authToken:["updateOnPropChange"],params:["updateOnPropChange"]}}};r.style=":host{display:block}";export{r as justifi_subaccounts_list}
|