@justifi/webcomponents 6.13.3 → 6.13.4
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/{Analytics-DusgFP9U.js → Analytics-Bnqim3De.js} +2 -2
- package/dist/cjs/{Api-BioDE5he.js → Api-DiVnyVMc.js} +19 -3
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +4 -4
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business.service-DOGeb2O6.js → business.service-xyk3nSbS.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-DD7fjCqn.js → check-pkg-version-DdEYSubN.js} +1 -1
- package/dist/cjs/{checkout.service-Bdr5qUHj.js → checkout.service-BvQmucoL.js} +1 -1
- package/dist/cjs/dispute-notification_2.cjs.entry.js +5 -5
- package/dist/cjs/{event-types-DWDQKDv4.js → event-types-Dzra0qB3.js} +1 -1
- package/dist/cjs/{get-subaccounts-Dgl7ECtg.js → get-subaccounts-h69ubhBi.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +6 -6
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +4 -4
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-card-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +15 -6
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +5 -5
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +5 -5
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +6 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DeCbZvnG.js → package-CuQyxWw2.js} +1 -1
- package/dist/cjs/{payment-provisioning-actions-B4x7lnyF.js → payment-provisioning-actions-DwgI9weK.js} +5 -4
- package/dist/cjs/{payment.service-a5EL3s2d.js → payment.service-BdK_wsu2.js} +1 -1
- package/dist/cjs/{payout.service-BJtGBHsQ.js → payout.service-CVSqMmCW.js} +1 -1
- package/dist/cjs/{plaid.service-DpiLY-5D.js → plaid.service-Dj-AZOjk.js} +1 -1
- package/dist/cjs/{terminal.service-DN2A-bNx.js → terminal.service-Dzukw0o7.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +19 -3
- package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +7 -0
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +5 -4
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-submission-failed.js +6 -0
- package/dist/docs.json +1 -1
- package/dist/esm/{Analytics-CtVZmAya.js → Analytics-CkhiYS1_.js} +3 -3
- package/dist/esm/{Api-DjAL73GZ.js → Api-CTkszAxp.js} +20 -4
- package/dist/esm/{Plaid-C8qoMZLV.js → Plaid-XJ1Wi_Qy.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/additional-questions-form-step_15.entry.js +7 -7
- package/dist/esm/bank-account-document-form-inputs.entry.js +2 -2
- package/dist/esm/bank-account-form.entry.js +3 -3
- package/dist/esm/{business.service-BGXqAyxu.js → business.service-CJrHGJHW.js} +2 -2
- package/dist/esm/card-form.entry.js +3 -3
- package/dist/esm/{check-pkg-version-DcFIDA70.js → check-pkg-version-CoKEouKg.js} +1 -1
- package/dist/esm/{checkout-actions-D8JS2l5e.js → checkout-actions-CheVrS18.js} +2 -2
- package/dist/esm/{checkout.service-sHKaW-M0.js → checkout.service-fPRUtr9H.js} +2 -2
- package/dist/esm/dispute-notification_2.entry.js +8 -8
- package/dist/esm/{event-types-ynZLear3.js → event-types-BtWMbtaC.js} +2 -2
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/{get-business-DAv_b3vf.js → get-business-DTNQJoh_.js} +2 -2
- package/dist/esm/{get-payment-details-Bipad3jX.js → get-payment-details-CSX5fwOG.js} +2 -2
- package/dist/esm/{get-subaccounts-FqCT2s3S.js → get-subaccounts-Cy2mYsaE.js} +3 -3
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-apple-pay_11.entry.js +10 -10
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
- package/dist/esm/justifi-bank-account-form.entry.js +6 -6
- package/dist/esm/justifi-business-details.entry.js +9 -9
- package/dist/esm/justifi-business-form.entry.js +9 -9
- package/dist/esm/justifi-card-form.entry.js +6 -6
- package/dist/esm/justifi-checkout-qr-code.entry.js +6 -6
- package/dist/esm/justifi-checkout.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +9 -9
- package/dist/esm/justifi-dispute-management.entry.js +8 -8
- package/dist/esm/justifi-gross-payment-chart.entry.js +7 -7
- package/dist/esm/justifi-order-terminals.entry.js +10 -10
- package/dist/esm/justifi-payment-details.entry.js +9 -9
- package/dist/esm/justifi-payment-provisioning.entry.js +18 -9
- package/dist/esm/justifi-payment-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +8 -8
- package/dist/esm/justifi-payout-details.entry.js +9 -9
- package/dist/esm/justifi-payout-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +10 -10
- package/dist/esm/justifi-qr-terminal.entry.js +9 -9
- package/dist/esm/justifi-refund-payment.entry.js +9 -9
- package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -7
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -7
- package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-Bx2_PW91.js → package-BP7jEC_K.js} +1 -1
- package/dist/esm/{payment-provisioning-actions-DI3QUsjh.js → payment-provisioning-actions-DjjVhIsC.js} +7 -6
- package/dist/esm/{payment.service-wSNYSRyl.js → payment.service-DqqhXGIA.js} +2 -2
- package/dist/esm/{payout.service-CTAksNmD.js → payout.service-pXbxWGPO.js} +2 -2
- package/dist/esm/{payouts-status-CeZoirpf.js → payouts-status-Ch05ZKVP.js} +2 -2
- package/dist/esm/{plaid.service-5EpJEdwX.js → plaid.service-Bb_mVHR9.js} +2 -2
- package/dist/esm/{terminal.service-xjfU0mJT.js → terminal.service-AK9uBpcb.js} +2 -2
- package/dist/esm/{utils-myniydlM.js → utils-ByihSvdD.js} +1 -1
- package/dist/esm/{utils-CcA8Y5hs.js → utils-UkIEdf2x.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Api.js +19 -3
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +11 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-provisioning-actions.js +5 -4
- package/dist/module/utils2.js +1 -1
- package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-submission-failed.d.ts +1 -0
- package/dist/webcomponents/p-0ef51b2d.entry.js +1 -0
- package/dist/webcomponents/p-1f88e411.entry.js +1 -0
- package/dist/webcomponents/p-28f92f1f.entry.js +1 -0
- package/dist/webcomponents/{p-3918fb44.entry.js → p-2cd01fae.entry.js} +1 -1
- package/dist/webcomponents/{p-b89a5053.entry.js → p-2dee737f.entry.js} +1 -1
- package/dist/webcomponents/p-36638161.entry.js +1 -0
- package/dist/webcomponents/{p-7b6cf400.entry.js → p-36b16db2.entry.js} +1 -1
- package/dist/webcomponents/{p-2c798125.entry.js → p-37e7429c.entry.js} +1 -1
- package/dist/webcomponents/{p-9d11aaf2.entry.js → p-483dc944.entry.js} +1 -1
- package/dist/webcomponents/{p-c6eea99e.entry.js → p-529c5c9f.entry.js} +1 -1
- package/dist/webcomponents/{p-708aee06.entry.js → p-625830fe.entry.js} +1 -1
- package/dist/webcomponents/{p-8771e52a.entry.js → p-64d72b86.entry.js} +1 -1
- package/dist/webcomponents/{p-c8bcc54f.entry.js → p-67da2742.entry.js} +1 -1
- package/dist/webcomponents/{p-f6d49f21.entry.js → p-68034a17.entry.js} +1 -1
- package/dist/webcomponents/{p-4fab9314.entry.js → p-6d52cdd4.entry.js} +1 -1
- package/dist/webcomponents/{p-f4baf684.entry.js → p-727e9ddd.entry.js} +1 -1
- package/dist/webcomponents/{p-1fced37f.entry.js → p-76709384.entry.js} +1 -1
- package/dist/webcomponents/{p-4a30693b.entry.js → p-7776b52e.entry.js} +1 -1
- package/dist/webcomponents/{p-98bbdf10.entry.js → p-880e3388.entry.js} +1 -1
- package/dist/webcomponents/p-90fdadf7.entry.js +1 -0
- package/dist/webcomponents/{p-ebee139f.entry.js → p-938e41c9.entry.js} +1 -1
- package/dist/webcomponents/{p-C7hX61pS.js → p-B7wfdVBf.js} +1 -1
- package/dist/webcomponents/{p-BSs-2JKu.js → p-BM88Upl5.js} +1 -1
- package/dist/webcomponents/p-BP7jEC_K.js +1 -0
- package/dist/webcomponents/p-BaZTheg9.js +1 -0
- package/dist/webcomponents/{p-CfIGO7TJ.js → p-Bo36V7ni.js} +1 -1
- package/dist/webcomponents/p-CI-XifDo.js +1 -0
- package/dist/webcomponents/p-CP0Y19co.js +1 -0
- package/dist/webcomponents/p-CWook735.js +1 -0
- package/dist/webcomponents/{p-DXTa04jn.js → p-Cl5FLD11.js} +1 -1
- package/dist/webcomponents/{p-CqOzVXGL.js → p-CxNdigHC.js} +1 -1
- package/dist/webcomponents/{p-zZn1OXja.js → p-CykiDks3.js} +1 -1
- package/dist/webcomponents/p-DGsgQXco.js +1 -0
- package/dist/webcomponents/{p-CO8ZGkfN.js → p-DItiYtAy.js} +1 -1
- package/dist/webcomponents/p-DWdj6UhE.js +1 -0
- package/dist/webcomponents/{p-CxBrydeX.js → p-D_MQLfzf.js} +1 -1
- package/dist/webcomponents/{p-R_0S69Pr.js → p-D_ULdupf.js} +1 -1
- package/dist/webcomponents/{p-CdwzNfP1.js → p-IFhZFB4v.js} +1 -1
- package/dist/webcomponents/p-UEdJ7AYc.js +1 -0
- package/dist/webcomponents/{p-f01fd4ff.entry.js → p-a30af70b.entry.js} +1 -1
- package/dist/webcomponents/{p-65908b5f.entry.js → p-a5443425.entry.js} +1 -1
- package/dist/webcomponents/{p-7495aa96.entry.js → p-b6c15db5.entry.js} +1 -1
- package/dist/webcomponents/{p-e3f8541c.entry.js → p-b73bbc07.entry.js} +1 -1
- package/dist/webcomponents/p-bfd73ef0.entry.js +1 -0
- package/dist/webcomponents/{p-4383dfdc.entry.js → p-c9be0d54.entry.js} +1 -1
- package/dist/webcomponents/{p-2a0ab07f.entry.js → p-cc0cfbed.entry.js} +1 -1
- package/dist/webcomponents/{p-dde22375.entry.js → p-ce7c1141.entry.js} +4 -4
- package/dist/webcomponents/{p-dfe66300.entry.js → p-df340d99.entry.js} +1 -1
- package/dist/webcomponents/{p-67364f1d.entry.js → p-e033ced2.entry.js} +1 -1
- package/dist/webcomponents/{p-291b9a48.entry.js → p-e47d21e5.entry.js} +1 -1
- package/dist/webcomponents/p-ee900ccf.entry.js +1 -0
- package/dist/webcomponents/{p-a62ef857.entry.js → p-f266fafb.entry.js} +1 -1
- package/dist/webcomponents/{p-9c0760b9.entry.js → p-f805c9ac.entry.js} +1 -1
- package/dist/webcomponents/{p-84b643f7.entry.js → p-fb86e6f0.entry.js} +1 -1
- package/dist/webcomponents/{p-8fce7a9c.entry.js → p-fb8c8999.entry.js} +1 -1
- package/dist/webcomponents/{p-Cn7z5L7J.js → p-ph646MSj.js} +1 -1
- package/dist/webcomponents/{p-B62JX_Dh.js → p-rhS9V7qg.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-0b9263f3.entry.js +0 -1
- package/dist/webcomponents/p-17f8c3e7.entry.js +0 -1
- package/dist/webcomponents/p-2b64659a.entry.js +0 -1
- package/dist/webcomponents/p-5ea486b6.entry.js +0 -1
- package/dist/webcomponents/p-6f71bf5f.entry.js +0 -1
- package/dist/webcomponents/p-BB8Ce9rp.js +0 -1
- package/dist/webcomponents/p-BUHsyQpA.js +0 -1
- package/dist/webcomponents/p-Bx2_PW91.js +0 -1
- package/dist/webcomponents/p-CPJC6tlj.js +0 -1
- package/dist/webcomponents/p-DP9ysr2K.js +0 -1
- package/dist/webcomponents/p-Da3fPDxu.js +0 -1
- package/dist/webcomponents/p-De4Pig-y.js +0 -1
- package/dist/webcomponents/p-NzPaWKbY.js +0 -1
- package/dist/webcomponents/p-db17a828.entry.js +0 -1
- package/dist/webcomponents/p-e9494d8f.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import{c as s}from"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{l as i,C as o,b as r}from"./p-DXTa04jn.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{J as c}from"./p-CfIGO7TJ.js";import{c as d}from"./p-CqOzVXGL.js";import{g as p,a as h}from"./p-CdwzNfP1.js";import{P as l}from"./p-CO8ZGkfN.js";import{T as f,a as u,b as m,c as b,d as y,e as _,f as w,g,h as T,i as j,j as v,k,l as C}from"./p-BICxxa69.js";import{S as P}from"./p-DzEdYT8R.js";import{T as D}from"./p-CZfYo5-1.js";import{a as I}from"./p-BSs-2JKu.js";import{a6 as S,a7 as O}from"./p-CPKMvyV_.js";import"./p-D8GTwl9v.js";import"./p-Bx2_PW91.js";import"./p-De4Pig-y.js";import"./p-CqiVXthx.js";const F={id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:S,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:S,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:S,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:S,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:S,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:S,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},q={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit",processing_fee:"Processing Fee",refund_processing_fee:"Refund Processing Fee",fee_rounding_adjustment:"Fee Rounding Adjustment",platform_fee:"Platform Fee",processing_fee_return:"Processing Fee Return",platform_fee_return:"Platform Fee Return"},x={id:e=>t("td",{part:O(e.id)},e.id),account_id:e=>t("td",{part:O(e.account_id)},e.account_id),payout_id:e=>t("td",{part:O(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:O(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:O(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:O(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:O(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:O(e.currency)},e.currency),description:e=>t("td",{part:O(e.description)},e.description),source_id:e=>t("td",{part:O(e.source_id)},e.source_id),txn_type:e=>t("td",{part:O(e.txn_type)},q[e.txn_type]),created_at:e=>t("td",{part:O(e.created_at)},t("div",{class:"fw-bold"},I(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:O(e.available_on)},t("div",{class:"fw-bold"},I(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:O(e.updated_at)},t("div",{class:"fw-bold"},I(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.updated_at,{showTime:!0})))},E=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event",7),this.errorEvent=a(this,"error-event",7),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,F,x),d(),this.analytics=new c(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:s,onSuccess:r,onError:n,final:c})=>{var d;try{const c=await a.fetchPayoutTransactions(t,e,s);c.error?n({error:h(c.error),code:p(null===(d=c.error)||void 0===d?void 0:d.code),severity:o.ERROR}):r({balanceTransactions:c.data.map((t=>new i(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=p(null==t?void 0:t.code);n({error:h(t),code:e,severity:o.ERROR})}finally{c()}})({accountId:s.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,o.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(P,{key:"e7b5b219c34d1c8610fb4113fedd503f0512db2d"},t(u,{key:"97bbe678c90ba115a091db4fac42560c17f557f2"},t(m,{key:"ef90c77cd8f19a80e2b3e2b514aa1bc735a1b783"},t(b,{key:"f5f0a00594f099931f1ac1cd4e359bb8fab11ec8"},t(y,{key:"559648add19e0426d756f71ecb7bbd5cbcf1349e"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"49f8da0be5dba34ffbb92805d7b5b0fb3eeb6bf7"},t(w,{key:"1d61dc2157608f38eb34e64452d7089857e6c67d",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(g,{key:"d1f735fdb009740a186a16ea7e15d0320965a286",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(T,{key:"f50ecc151be5c9143fb69d575a1ef14b3aa17b61",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(j,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(v,{key:"560536e623b2437d613169af2980aec13ebb4531"},t(k,{key:"42b82920fdd6056bb654db92acf3741aafb13d99"},t(C,{key:"e2545104fdac51e0ada942138a08714f213bce63",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"6a74b19f3fa02f0e86e00783a06b0dfba2bc0ed8",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{E as justifi_payout_transactions_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{J as e}from"./p-CfIGO7TJ.js";import{C as r,b as o}from"./p-DXTa04jn.js";import{m as n,b as h}from"./p-Da3fPDxu.js";import{B as a}from"./p-R_0S69Pr.js";import{A as p}from"./p-De4Pig-y.js";import"./p-CLHwhyvu.js";import{C as m,B as l,c as d}from"./p-BcNb9bVO.js";import{c as u}from"./p-CqOzVXGL.js";import{i as c}from"./p-BSs-2JKu.js";import{t as v}from"./p-CPKMvyV_.js";import{S as f}from"./p-DzEdYT8R.js";import{H as g}from"./p-jIDKmNHy.js";import"./p-CZfYo5-1.js";import{B as y}from"./p-XYgDHrVL.js";import{P as j}from"./p-DSclFZ32.js";import"./p-Bx2_PW91.js";import"./p-CdwzNfP1.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";import"./p-uZ5KAseb.js";const b=p();class C{async postProvisioning(s,t,i){return b.post({endpoint:"entities/provisioning",body:{business_id:t,product_category:i},authToken:s})}}const w=()=>s("div",{class:"row gap-3 p-5"},s("div",{class:"col-12"},s(g,{text:"Business Already Provisioned"})),s("div",{class:"col-12",part:v},s("p",null,"We have already received the onboarding information for this business."))),S=()=>s("div",{class:"row gap-3 p5"},s("div",{class:"col-12"},s(g,{text:"You're all set for now"})),s("div",{class:"col-12",part:v},s("p",null,"We're reviewing your information and working on your approval. We'll be in touch to let you know once you've been approved (or if we find anything that needs fixing). Have a good one!"))),k=class{constructor(s){t(this,s),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.submitEvent=i(this,"submit-event",7),this.loading=!1,this.businessLoading=!0,this.businessProvisioned=!1,this.formSubmitted=!1,this.currentStep=0,this.country=m.USA,this.allowOptionalFields=!1,this.formTitle="Business Information",this.refs=[],this.setBusinessProvisioned=()=>new Promise((s=>{this.getBusiness({onSuccess:t=>{const i=new l(t.data);this.businessProvisioned=d(i),this.country=i.country_of_establishment,this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:o.PROVISIONING_REQUESTED,severity:r.INFO}),this.businessLoading=!1,s()},onError:({error:t,code:i,severity:e})=>{this.errorEvent.emit({message:t,errorCode:i,severity:e}),this.businessLoading=!1,s()}})})),this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.formSubmitted=!0,this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:i})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>{this.currentStep>0&&(this.currentStep-=1)},this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:y.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}propChanged(){this.initializeApi()}handleFormCompleted(){this.postProvisioningData()}handleFormLoading(s){this.loading=s.detail}async componentWillLoad(){u(),this.analytics=new e(this),this.initializeApi(),this.getBusiness?await this.setBusinessProvisioned():this.businessLoading=!1,this.refs=new Array(8)}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?c(this.authToken)?this.errorEvent.emit({message:"auth-token is expired",errorCode:o.NOT_AUTHENTICATED,severity:r.ERROR}):(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new a}),this.postProvisioning=h({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new C})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`Step ${this.currentStep+1} of ${this.totalSteps+1}`}render(){return s(f,null,this.businessLoading?s(j,null):this.businessProvisioned?s(w,null):this.formSubmitted?s(S,null):s("div",{class:"row gap-3"},s(g,{text:this.formTitle}),s("payment-provisioning-form-steps",{businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,country:this.country,handleFormLoading:this.handleFormLoading}),s("div",{class:"d-flex justify-content-between align-items-center"},s("div",{class:"d-flex align-items-center",part:v},this.stepCounter),s("payment-provisioning-form-buttons",{currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{k as justifi_payment_provisioning}
|