@justifi/webcomponents 4.7.1 → 4.7.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/{Payout-68a99ee3.js → Payout-f8240e9c.js} +49 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +9 -6
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +17 -13
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +23 -11
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-details.cjs.entry.js +21 -12
- package/dist/cjs/justifi-payment-form.cjs.entry.js +16 -6
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +3 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +22 -23
- package/dist/cjs/justifi-payout-details.cjs.entry.js +20 -12
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +21 -11
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +4 -6
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-table_2.cjs.entry.js +4 -4
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +1 -1
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +1 -1
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +1 -1
- package/dist/cjs/{utils-4622829d.js → utils-a47b2e73.js} +4 -4
- package/dist/collection/api/Payment.js +49 -1
- package/dist/collection/api/mockData/MockPayments.js +21 -21
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +2 -2
- package/dist/collection/components/business-details/business-details.js +16 -12
- package/dist/collection/components/business-details/owner-details/owner-details.js +4 -1
- package/dist/collection/components/business-details/representative-details/representative-details.js +2 -2
- package/dist/collection/components/business-form/business-form-example.js +12 -0
- package/dist/collection/components/business-form/business-form-stepped-example.js +12 -0
- package/dist/collection/components/business-form/business-form-stepped.stories.js +1 -1
- package/dist/collection/components/details/utils.js +2 -2
- package/dist/collection/components/form/form-control-datepart.js +1 -1
- package/dist/collection/components/gross-payment-chart/example.js +12 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +20 -8
- package/dist/collection/components/payment-details/payment-details.js +21 -12
- package/dist/collection/components/payment-form/payment-form.js +16 -6
- package/dist/collection/components/payments-list/payments-list.js +21 -22
- package/dist/collection/components/payout-details/payout-details.js +19 -11
- package/dist/collection/components/payouts-list/payouts-list.js +20 -10
- package/dist/collection/components/subaccount-details/subaccount-details.js +2 -4
- package/dist/collection/components/table/table.css +5 -0
- package/dist/collection/components/table/table.js +2 -2
- package/dist/components/Payout.js +50 -2
- package/dist/components/additional-questions-details2.js +2 -2
- package/dist/components/form-control-datepart2.js +1 -1
- package/dist/components/justifi-business-details.js +15 -11
- package/dist/components/justifi-gross-payment-chart.js +21 -9
- package/dist/components/justifi-payment-details.js +21 -12
- package/dist/components/justifi-payment-form.js +16 -6
- package/dist/components/justifi-payments-list.js +22 -23
- package/dist/components/justifi-payout-details.js +19 -11
- package/dist/components/justifi-payouts-list.js +21 -11
- package/dist/components/justifi-subaccount-details.js +2 -4
- package/dist/components/owner-details2.js +4 -1
- package/dist/components/pagination-menu2.js +1 -1
- package/dist/components/payment-method-form.js +3 -1
- package/dist/components/representative-details2.js +2 -2
- package/dist/components/table.js +3 -3
- package/dist/components/utils.js +4 -4
- package/dist/esm/{Payout-fcf16887.js → Payout-586f06a3.js} +50 -2
- package/dist/esm/additional-questions-details_5.entry.js +9 -6
- package/dist/esm/form-control-datepart_2.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +17 -13
- package/dist/esm/justifi-business-form-stepped.entry.js +1 -1
- package/dist/esm/justifi-business-form.entry.js +1 -1
- package/dist/esm/justifi-business-list.entry.js +1 -1
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +23 -11
- package/dist/esm/justifi-payment-balance-transactions.entry.js +1 -1
- package/dist/esm/justifi-payment-details.entry.js +22 -13
- package/dist/esm/justifi-payment-form.entry.js +16 -6
- package/dist/esm/justifi-payment-method-form.entry.js +3 -1
- package/dist/esm/justifi-payments-list.entry.js +22 -23
- package/dist/esm/justifi-payout-details.entry.js +20 -12
- package/dist/esm/justifi-payouts-list.entry.js +21 -11
- package/dist/esm/justifi-proceeds-list.entry.js +1 -1
- package/dist/esm/justifi-refund-form.entry.js +1 -1
- package/dist/esm/justifi-subaccount-details.entry.js +4 -6
- package/dist/esm/justifi-subaccounts-list.entry.js +1 -1
- package/dist/esm/justifi-table_2.entry.js +4 -4
- package/dist/esm/subaccount-account-details_4.entry.js +1 -1
- package/dist/esm/subaccount-bank-details.entry.js +1 -1
- package/dist/esm/subaccount-terms-details.entry.js +1 -1
- package/dist/esm/{utils-6352c002.js → utils-d19c2778.js} +4 -4
- package/dist/types/api/Payment.d.ts +32 -5
- package/dist/types/api/Payout.d.ts +2 -2
- package/dist/types/components/business-details/business-details.d.ts +0 -1
- package/dist/types/components/payment-method-form/payment-method-responses.d.ts +7 -1
- package/dist/types/components/payments-list/payments-list.d.ts +1 -3
- package/dist/webcomponents/p-2140e9ba.entry.js +1 -0
- package/dist/webcomponents/{p-914d2284.entry.js → p-311250e2.entry.js} +1 -1
- package/dist/webcomponents/{p-2306d7aa.entry.js → p-3501b0e8.entry.js} +1 -1
- package/dist/webcomponents/{p-5e78d370.entry.js → p-3ed43465.entry.js} +1 -1
- package/dist/webcomponents/{p-29528eca.entry.js → p-3ee831ac.entry.js} +1 -1
- package/dist/webcomponents/{p-6075122d.entry.js → p-4214dbb8.entry.js} +1 -1
- package/dist/webcomponents/p-4852ce94.entry.js +1 -0
- package/dist/webcomponents/p-4ec00b55.entry.js +1 -0
- package/dist/webcomponents/p-5e6726a8.entry.js +1 -0
- package/dist/webcomponents/p-77a8bcea.entry.js +1 -0
- package/dist/webcomponents/p-86c23e1e.js +1 -0
- package/dist/webcomponents/{p-3fd6ff27.entry.js → p-91757d9f.entry.js} +1 -1
- package/dist/webcomponents/{p-984ff1aa.entry.js → p-98e4eae3.entry.js} +1 -1
- package/dist/webcomponents/p-9e012e33.entry.js +1 -0
- package/dist/webcomponents/p-a1ef6b4c.entry.js +1 -0
- package/dist/webcomponents/p-ac8ee442.entry.js +1 -0
- package/dist/webcomponents/{p-21998fea.entry.js → p-af771964.entry.js} +1 -1
- package/dist/webcomponents/{p-742188d9.entry.js → p-b60a58f4.entry.js} +1 -1
- package/dist/webcomponents/p-bc91044c.entry.js +1 -0
- package/dist/webcomponents/{p-ce2e68df.entry.js → p-c0f9f6a8.entry.js} +3 -3
- package/dist/webcomponents/{p-98bb3c6a.entry.js → p-c29c587f.entry.js} +1 -1
- package/dist/webcomponents/p-e12ab547.js +1 -0
- package/dist/webcomponents/{p-6444d443.entry.js → p-e7ef2455.entry.js} +1 -1
- package/dist/webcomponents/{p-5cf9128c.entry.js → p-ed8c9b88.entry.js} +1 -1
- package/dist/webcomponents/p-f2f0aa6e.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +3 -2
- package/readme.md +38 -10
- package/dist/webcomponents/p-0e51a185.entry.js +0 -1
- package/dist/webcomponents/p-10210702.entry.js +0 -1
- package/dist/webcomponents/p-3b80dc4a.entry.js +0 -1
- package/dist/webcomponents/p-44271b0c.entry.js +0 -1
- package/dist/webcomponents/p-52643813.entry.js +0 -1
- package/dist/webcomponents/p-656a6bc8.entry.js +0 -1
- package/dist/webcomponents/p-76983a7e.js +0 -1
- package/dist/webcomponents/p-76dffeec.js +0 -1
- package/dist/webcomponents/p-884b8cf4.entry.js +0 -1
- package/dist/webcomponents/p-a82e7fcd.entry.js +0 -1
- package/dist/webcomponents/p-b0fbddb2.entry.js +0 -1
- package/dist/webcomponents/p-d89b1a78.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,H as i}from"./p-cbb60191.js";import{A as a}from"./p-b157f6ae.js";import{p as e}from"./p-0d5d02d7.js";import{P as o}from"./p-
|
|
1
|
+
import{r as t,h as s,H as i}from"./p-cbb60191.js";import{A as a}from"./p-b157f6ae.js";import{p as e}from"./p-0d5d02d7.js";import{P as o}from"./p-e12ab547.js";import{f as n,c as r,s as h,a as c}from"./p-d6b5793d.js";import{c as d}from"./p-9b6dcac5.js";const p=class{constructor(s){t(this,s),this.handleClickPrevious=t=>{const s=Object.assign({},this.params);delete s.after_cursor,this.params=Object.assign(Object.assign({},s),{before_cursor:t})},this.handleClickNext=t=>{const s=Object.assign({},this.params);delete s.before_cursor,this.params=Object.assign(Object.assign({},s),{after_cursor:t})},this.accountId=void 0,this.authToken=void 0,this.paymentId=void 0,this.balanceTransactions=[],this.loading=!0,this.errorMessage=void 0,this.paging=e,this.params=void 0}updateOnPropChange(){this.fetchData()}connectedCallback(){this.fetchData()}async fetchData(){if(this.loading=!0,!this.accountId||!this.paymentId)return this.errorMessage="Missing required props: accountId or paymentId",void(this.loading=!1);const t=`account/${this.accountId}/payments/${this.paymentId}/payment_balance_transactions`,s=await a(this.authToken,d.proxyApiOrigin).get(t,this.params);s.error?this.errorMessage="string"==typeof s.error?s.error:s.error.message:(this.paging=Object.assign(Object.assign({},this.paging),s.page_info),this.balanceTransactions=s.data.map((t=>new o(t)))),this.loading=!1}render(){return s(i,null,s("justifi-table",{columnData:[["Processed On","The date each transaction occurred"],["Type","The type of each transaction"],["ID","The unique identifier of each transaction"],["Amout","The dollar amount of each transaction"],["Balance","The running total amount of this payment that belongs to you"]],entityId:this.balanceTransactions.map((t=>t.id)),rowData:this.balanceTransactions.map((t=>[s("div",null,s("div",null,n(t.created_at)),s("div",null,r(t.created_at))),h(t.payment_balance_txn_type),t.payment_id,c(t.amount),c(t.balance)])),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{params:["updateOnPropChange"]}}};p.style="";export{p as justifi_payment_balance_transactions}
|