@justifi/webcomponents 4.8.3 → 4.9.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-42d0c522.js → Business-64dffab7.js} +6 -7
- package/dist/cjs/{BusinessFormEventTypes-863f48e9.js → BusinessFormEventTypes-62990815.js} +1 -1
- package/dist/cjs/{Payout-44b49b2d.js → Payment-89a8bc21.js} +0 -43
- package/dist/cjs/Payout-a2dd7b01.js +45 -0
- package/dist/cjs/{SubAccount-2a803b22.js → SubAccount-f8144025.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +24 -10
- package/dist/{webcomponents/p-4ee44c76.entry.js → cjs/business-details-core.cjs.entry.js} +55 -1
- package/dist/cjs/form-control-datepart_3.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-select_2.cjs.entry.js +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +11036 -0
- package/dist/cjs/{index-55950669.js → index-07ddbad2.js} +0 -3
- package/dist/cjs/justifi-additional-questions_5.cjs.entry.js +2 -2
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/{select-input_2.cjs.entry.js → justifi-billing-form_4.cjs.entry.js} +1818 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +43 -57
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +5 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-business-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +95 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +99 -0
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +39 -11008
- package/dist/cjs/justifi-new-payment-method_3.cjs.entry.js +168 -0
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-form.cjs.entry.js +5 -4
- package/dist/cjs/{justifi-billing-form_2.cjs.entry.js → justifi-payment-method-selector.cjs.entry.js} +4 -79
- package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +4 -3
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/payment-details-core.cjs.entry.js +10 -4
- package/dist/cjs/{payment.service-605896dc.js → payment.service-0b0086dc.js} +2 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +4 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{payout.service-b39f2739.js → payout.service-5cc3b4e9.js} +2 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -3
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +7 -7
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +3 -3
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +3 -3
- package/dist/cjs/{utils-d126d17c.js → utils-5c3e442d.js} +5 -5
- package/dist/cjs/{utils-29a8a91d.js → utils-84208d99.js} +11 -2
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Business.js +6 -7
- package/dist/collection/api/Checkout.js +1 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/services/business.service.js +8 -0
- package/dist/collection/api/services/checkout.service.js +12 -0
- package/dist/collection/api/services/reports.service.js +9 -0
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/billing-form/billing-form.js +1 -2
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +5 -2
- package/dist/collection/components/business-details/additional-questions-details/test/additional-questions.spec.js +16 -0
- package/dist/collection/components/business-details/business-details-core.js +86 -0
- package/dist/collection/components/business-details/business-details.js +20 -65
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +4 -2
- package/dist/collection/components/business-details/generic-info-details/test/generic-info-details.spec.js +16 -0
- package/dist/collection/components/business-details/get-business.js +17 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +5 -2
- package/dist/collection/components/business-details/legal-address-details/test/legal-address-details.spec.js +16 -0
- package/dist/collection/components/business-details/owner-details/owner-details.js +10 -12
- package/dist/collection/components/business-details/owner-details/test/owner-details.spec.js +16 -0
- package/dist/collection/components/business-details/representative-details/representative-details.js +5 -3
- package/dist/collection/components/business-details/representative-details/test/representative-details.spec.js +16 -0
- package/dist/collection/components/business-details/test/busines-details-core.spec.js +53 -0
- package/dist/collection/components/business-details/test/business-details.spec.js +40 -0
- package/dist/collection/components/business-details/test/get-business.spec.js +60 -0
- package/dist/collection/components/checkout/checkout-actions.js +33 -0
- package/dist/collection/components/checkout/checkout-core.css +2604 -0
- package/dist/collection/components/checkout/checkout-core.js +248 -0
- package/dist/collection/components/checkout/checkout.js +112 -0
- package/dist/collection/components/checkout/new-payment-method.js +188 -0
- package/dist/collection/components/checkout/payment-method-option-utils.js +19 -0
- package/dist/collection/components/checkout/payment-method-options.css +7073 -0
- package/dist/collection/components/checkout/payment-method-options.js +248 -0
- package/dist/collection/components/checkout/saved-payment-method.js +123 -0
- package/dist/collection/components/checkout/test/checkout.js +22 -0
- package/dist/collection/components/checkout/test/checkout.spec.js +166 -0
- package/dist/collection/components/checkout/test/mockCheckout.js +19 -0
- package/dist/collection/components/details/utils.js +4 -1
- package/dist/collection/components/gross-payment-chart/get-gross-payment-chart-data.js +14 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +119 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +25 -73
- package/dist/collection/components/gross-payment-chart/test/get-gross-payment-chart-data.spec.js +69 -0
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart-core.spec.js +64 -0
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +23 -8
- package/dist/collection/components/payment-details/payment-details-core.js +8 -2
- package/dist/collection/components/payment-details/payment-details.js +0 -1
- package/dist/collection/components/payment-form/payment-form.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +2 -2
- package/dist/collection/utils/utils.js +9 -3
- package/dist/docs.json +1152 -187
- package/dist/esm/{Business-e9340f6b.js → Business-9921d35f.js} +6 -7
- package/dist/esm/{BusinessFormEventTypes-989960ba.js → BusinessFormEventTypes-182e20be.js} +1 -1
- package/dist/esm/{Payout-dc5f009c.js → Payment-55886c86.js} +1 -43
- package/dist/esm/Payout-dfe15b00.js +43 -0
- package/dist/esm/{SubAccount-46b4c2b1.js → SubAccount-76f6d565.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +24 -10
- package/dist/esm/business-details-core.entry.js +51 -0
- package/dist/esm/form-control-datepart_3.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-select_2.entry.js +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +11032 -0
- package/dist/esm/{index-62b8aa8a.js → index-fb5ca346.js} +0 -3
- package/dist/esm/justifi-additional-questions_5.entry.js +2 -2
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/{select-input_2.entry.js → justifi-billing-form_4.entry.js} +1817 -2
- package/dist/esm/justifi-business-details.entry.js +42 -56
- package/dist/esm/justifi-business-form-stepped.entry.js +5 -4
- package/dist/esm/justifi-business-form.entry.js +5 -4
- package/dist/esm/justifi-business-list.entry.js +5 -4
- package/dist/esm/justifi-business-owners.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +91 -0
- package/dist/esm/justifi-checkout.entry.js +95 -0
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +39 -11008
- package/dist/esm/justifi-new-payment-method_3.entry.js +162 -0
- package/dist/esm/justifi-payment-balance-transactions.entry.js +4 -3
- package/dist/esm/justifi-payment-details.entry.js +5 -4
- package/dist/esm/justifi-payment-form.entry.js +4 -3
- package/dist/esm/{justifi-billing-form_2.entry.js → justifi-payment-method-selector.entry.js} +4 -78
- package/dist/esm/justifi-payments-list.entry.js +5 -4
- package/dist/esm/justifi-payout-details.entry.js +5 -4
- package/dist/esm/justifi-payouts-list.entry.js +5 -4
- package/dist/esm/justifi-proceeds-list.entry.js +4 -3
- package/dist/esm/justifi-refund-form.entry.js +3 -2
- package/dist/esm/justifi-subaccount-details.entry.js +6 -5
- package/dist/esm/justifi-subaccounts-list.entry.js +5 -4
- package/dist/esm/justifi-table_2.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/payment-details-core.entry.js +10 -4
- package/dist/esm/{payment.service-bea02ccf.js → payment.service-f274ef98.js} +2 -1
- package/dist/esm/payments-list-core.entry.js +4 -3
- package/dist/esm/payout-details-core.entry.js +4 -4
- package/dist/esm/{payout.service-92e56814.js → payout.service-af293f61.js} +2 -1
- package/dist/esm/payouts-list-core.entry.js +4 -3
- package/dist/esm/subaccount-account-details_4.entry.js +7 -7
- package/dist/esm/subaccount-bank-details.entry.js +3 -3
- package/dist/esm/subaccount-terms-details.entry.js +3 -3
- package/dist/esm/{utils-76a93600.js → utils-5193fcd7.js} +10 -3
- package/dist/esm/{utils-576874df.js → utils-a3e96d9f.js} +5 -5
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Business.js +6 -7
- package/dist/module/Payment.js +138 -0
- package/dist/module/Payout.js +1 -138
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/additional-questions-details2.js +5 -2
- package/dist/module/billing-form.js +1 -2
- package/dist/module/business-details-core.d.ts +11 -0
- package/dist/module/business-details-core.js +6 -0
- package/dist/module/business-details-core2.js +101 -0
- package/dist/module/checkout-core.js +163 -0
- package/dist/module/generic-info-details2.js +4 -2
- package/dist/module/gross-payment-chart-core.d.ts +11 -0
- package/dist/module/gross-payment-chart-core.js +6 -0
- package/dist/module/gross-payment-chart-core2.js +11055 -0
- package/dist/module/justifi-business-details.js +51 -60
- package/dist/module/justifi-business-form-stepped.js +1 -0
- package/dist/module/justifi-business-form.js +1 -0
- package/dist/module/justifi-business-list.js +2 -1
- package/dist/module/justifi-checkout-core.d.ts +11 -0
- package/dist/module/justifi-checkout-core.js +6 -0
- package/dist/module/justifi-checkout.d.ts +11 -0
- package/dist/module/justifi-checkout.js +172 -0
- package/dist/module/justifi-gross-payment-chart.js +49 -11016
- package/dist/module/justifi-new-payment-method.d.ts +11 -0
- package/dist/module/justifi-new-payment-method.js +6 -0
- package/dist/module/justifi-payment-balance-transactions.js +3 -2
- package/dist/module/justifi-payment-details.js +2 -1
- package/dist/module/justifi-payment-form.js +2 -1
- package/dist/module/justifi-payment-method-options.d.ts +11 -0
- package/dist/module/justifi-payment-method-options.js +6 -0
- package/dist/module/justifi-payments-list.js +2 -1
- package/dist/module/justifi-payout-details.js +2 -1
- package/dist/module/justifi-payouts-list.js +2 -1
- package/dist/module/justifi-proceeds-list.js +2 -1
- package/dist/module/justifi-refund-form.js +1 -0
- package/dist/module/justifi-saved-payment-method.d.ts +11 -0
- package/dist/module/justifi-saved-payment-method.js +6 -0
- package/dist/module/justifi-subaccount-details.js +2 -1
- package/dist/module/justifi-subaccounts-list.js +2 -1
- package/dist/module/legal-address-details2.js +5 -2
- package/dist/module/new-payment-method.js +105 -0
- package/dist/module/owner-details2.js +10 -4
- package/dist/module/payment-details-core2.js +9 -3
- package/dist/module/payment-method-form.js +3 -2
- package/dist/module/payment-method-options.js +128 -0
- package/dist/module/payment-method-selector.js +2 -1
- package/dist/module/payment.service.js +1 -0
- package/dist/module/payments-list-core2.js +2 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +1 -0
- package/dist/module/payouts-list-core2.js +3 -2
- package/dist/module/representative-details2.js +5 -3
- package/dist/module/saved-payment-method.js +66 -0
- package/dist/module/subaccount-account-details2.js +2 -2
- package/dist/module/subaccount-bank-details.js +2 -2
- package/dist/module/subaccount-merchant-details2.js +3 -3
- package/dist/module/subaccount-owners-details2.js +2 -2
- package/dist/module/subaccount-representative-details2.js +2 -2
- package/dist/module/subaccount-terms-details.js +2 -2
- package/dist/module/utils.js +4 -4
- package/dist/module/utils2.js +10 -3
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/Checkout.d.ts +14 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/services/business.service.d.ts +8 -0
- package/dist/types/api/services/checkout.service.d.ts +9 -0
- package/dist/types/api/services/reports.service.d.ts +5 -0
- package/dist/types/components/billing-form/billing-form.d.ts +0 -1
- package/dist/types/components/business-details/business-details-core.d.ts +16 -0
- package/dist/types/components/business-details/business-details.d.ts +3 -13
- package/dist/types/components/business-details/get-business.d.ts +8 -0
- package/dist/types/components/business-details/owner-details/owner-details.d.ts +0 -8
- package/dist/types/components/checkout/checkout-actions.d.ts +17 -0
- package/dist/types/components/checkout/checkout-core.d.ts +28 -0
- package/dist/types/components/checkout/checkout.d.ts +12 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +17 -0
- package/dist/types/components/checkout/payment-method-option-utils.d.ts +16 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +18 -0
- package/dist/types/components/checkout/saved-payment-method.d.ts +11 -0
- package/dist/types/components/checkout/test/checkout.d.ts +1 -0
- package/dist/types/components/checkout/test/mockCheckout.d.ts +19 -0
- package/dist/types/components/details/utils.d.ts +1 -1
- package/dist/types/components/gross-payment-chart/get-gross-payment-chart-data.d.ts +11 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +18 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +4 -14
- package/dist/types/components/payment-details/payment-details.d.ts +0 -1
- package/dist/types/components/payment-method-form/payment-method-responses.d.ts +3 -9
- package/dist/types/components.d.ts +217 -32
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/p-018b71f5.entry.js +1 -0
- package/dist/webcomponents/p-0923e39c.js +1 -0
- package/dist/webcomponents/{p-7a1a06c0.entry.js → p-09b94d22.entry.js} +1 -1
- package/dist/webcomponents/p-1b04d091.entry.js +1 -0
- package/dist/webcomponents/{p-0a0cf2e6.entry.js → p-1bac1674.entry.js} +1 -1
- package/dist/webcomponents/p-1cbdca15.entry.js +1 -0
- package/dist/webcomponents/p-3134ab82.entry.js +1 -0
- package/dist/webcomponents/{p-22c1acd6.js → p-34f9fe6b.js} +1 -1
- package/dist/webcomponents/p-3bae0ed3.entry.js +1 -0
- package/dist/webcomponents/p-41031759.entry.js +1 -0
- package/dist/webcomponents/p-41490d96.entry.js +1 -0
- package/dist/webcomponents/p-44b88365.entry.js +1 -0
- package/dist/webcomponents/{p-081cf5f6.entry.js → p-4ed3a9f5.entry.js} +1 -1
- package/dist/webcomponents/{p-6478f3ca.js → p-4edd9721.js} +1 -1
- package/dist/webcomponents/p-51b0bf2a.entry.js +1 -0
- package/dist/webcomponents/p-531844f6.entry.js +1 -0
- package/dist/webcomponents/{p-4fa27a28.entry.js → p-591e29bf.entry.js} +1 -1
- package/dist/webcomponents/p-5d5d7550.entry.js +1 -0
- package/dist/webcomponents/{p-810b72b5.js → p-5ea274b8.js} +1 -1
- package/dist/webcomponents/{p-4ba2c711.entry.js → p-5f785ede.entry.js} +1 -1
- package/dist/webcomponents/p-63296409.js +1 -0
- package/dist/webcomponents/{p-4f14df36.js → p-6d05174c.js} +1 -1
- package/dist/webcomponents/p-72d1ad98.entry.js +1 -0
- package/dist/webcomponents/{p-40349ffc.entry.js → p-796cf44f.entry.js} +1 -1
- package/dist/webcomponents/p-79f99d62.entry.js +1 -0
- package/dist/webcomponents/p-7b2cddc7.js +1 -0
- package/dist/webcomponents/{p-7c0f91fa.entry.js → p-7cd06ada.entry.js} +1 -1
- package/dist/webcomponents/p-8f895ec3.entry.js +1 -0
- package/dist/webcomponents/p-92a55427.entry.js +1 -0
- package/dist/webcomponents/p-97c42345.entry.js +1 -0
- package/dist/webcomponents/p-99a8b7d0.entry.js +1 -0
- package/dist/webcomponents/p-9a63eec9.entry.js +1 -0
- package/dist/webcomponents/p-9c310f5c.entry.js +1 -0
- package/dist/webcomponents/p-9e3771b7.entry.js +19 -0
- package/dist/webcomponents/{p-6d0725ef.entry.js → p-a81229a5.entry.js} +1 -1
- package/dist/webcomponents/{p-234bc840.entry.js → p-adc96df1.entry.js} +1 -1
- package/dist/webcomponents/p-baafa7f5.js +1 -0
- package/dist/webcomponents/p-babd292f.entry.js +1 -0
- package/dist/webcomponents/{p-5c0310ee.js → p-bb037696.js} +1 -1
- package/dist/webcomponents/p-bb7f6095.entry.js +1 -0
- package/dist/webcomponents/p-c032b216.entry.js +1 -0
- package/dist/webcomponents/{p-08833966.entry.js → p-c2c3d5d1.entry.js} +1 -1
- package/dist/webcomponents/p-c8d51336.entry.js +1 -0
- package/dist/webcomponents/{p-4c01df65.entry.js → p-dc05b5c5.entry.js} +1 -1
- package/dist/webcomponents/p-e3fab0e2.js +1 -0
- package/dist/webcomponents/p-e536a4c1.entry.js +1 -0
- package/dist/webcomponents/p-ec358d69.entry.js +1 -0
- package/dist/webcomponents/p-f55ac955.entry.js +1 -0
- package/dist/webcomponents/p-f64a85cf.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +3 -2
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +0 -1747
- package/dist/esm/justifi-payment-method-form.entry.js +0 -1743
- package/dist/webcomponents/p-0bc8b02e.entry.js +0 -1
- package/dist/webcomponents/p-112acd3c.entry.js +0 -1
- package/dist/webcomponents/p-1555e6b1.js +0 -1
- package/dist/webcomponents/p-16f41fd0.entry.js +0 -1
- package/dist/webcomponents/p-17715325.js +0 -1
- package/dist/webcomponents/p-3a4d4869.entry.js +0 -1
- package/dist/webcomponents/p-3cb0b96d.js +0 -1
- package/dist/webcomponents/p-5422a24b.entry.js +0 -1
- package/dist/webcomponents/p-578e0a05.entry.js +0 -1
- package/dist/webcomponents/p-640d90dc.entry.js +0 -1
- package/dist/webcomponents/p-663bfe87.js +0 -1
- package/dist/webcomponents/p-696396c7.entry.js +0 -1
- package/dist/webcomponents/p-6ab67031.entry.js +0 -1
- package/dist/webcomponents/p-8516d602.entry.js +0 -1
- package/dist/webcomponents/p-894a7475.entry.js +0 -19
- package/dist/webcomponents/p-94ebfafb.entry.js +0 -1
- package/dist/webcomponents/p-9cb3ff78.entry.js +0 -1
- package/dist/webcomponents/p-9e81808f.entry.js +0 -1
- package/dist/webcomponents/p-a432110c.entry.js +0 -1
- package/dist/webcomponents/p-b1881723.entry.js +0 -1
- package/dist/webcomponents/p-b5aba473.entry.js +0 -1
- package/dist/webcomponents/p-bd099662.entry.js +0 -1
- package/dist/webcomponents/p-bfd917b8.entry.js +0 -1
- package/dist/webcomponents/p-c90fa055.entry.js +0 -1
- package/dist/webcomponents/p-ebb91944.entry.js +0 -1
- package/dist/webcomponents/p-ec4f27e7.entry.js +0 -1
- package/dist/webcomponents/p-fa495a43.entry.js +0 -1
package/dist/module/utils2.js
CHANGED
|
@@ -3887,7 +3887,9 @@ function formatMediumDate(input) {
|
|
|
3887
3887
|
}
|
|
3888
3888
|
function formatDisplayDate(value, endDate) {
|
|
3889
3889
|
const isEndingDate = value === endDate;
|
|
3890
|
-
return
|
|
3890
|
+
return isEndingDate
|
|
3891
|
+
? 'Today'
|
|
3892
|
+
: format(new Date(value.replace(/-/g, '/')), 'MMM d');
|
|
3891
3893
|
}
|
|
3892
3894
|
function formatTime(dateString) {
|
|
3893
3895
|
if (!dateString)
|
|
@@ -3972,9 +3974,11 @@ const MapSubAccountStatusToBadge = (status) => {
|
|
|
3972
3974
|
* console.log(readable); // Outputs: "Sole Proprietorship"
|
|
3973
3975
|
*/
|
|
3974
3976
|
function snakeCaseToHumanReadable(snakeCaseStr) {
|
|
3977
|
+
if (!snakeCaseStr)
|
|
3978
|
+
return '';
|
|
3975
3979
|
return snakeCaseStr
|
|
3976
3980
|
.split('_')
|
|
3977
|
-
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
|
|
3981
|
+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
3978
3982
|
.join(' ');
|
|
3979
3983
|
}
|
|
3980
3984
|
function composeQueryParams(values) {
|
|
@@ -4008,5 +4012,8 @@ async function loadFontsOnParent() {
|
|
|
4008
4012
|
fonts.href = fontHref;
|
|
4009
4013
|
parent.append(fonts);
|
|
4010
4014
|
}
|
|
4015
|
+
function isEmptyObject(obj) {
|
|
4016
|
+
return Object.keys(obj).length === 0 && obj.constructor === Object;
|
|
4017
|
+
}
|
|
4011
4018
|
|
|
4012
|
-
export { MapPaymentStatusToBadge as M,
|
|
4019
|
+
export { MapPaymentStatusToBadge as M, formatCurrency as a, formatDisplayDate as b, composeQueryParams as c, formatDate as d, extractComputedFontsToLoad as e, formatMediumDate as f, formatTime as g, MapPayoutStatusToBadge as h, isEmptyObject as i, MapSubAccountStatusToBadge as j, formatPercentage as k, loadFontsOnParent as l, formatLegalAddress as m, snakeCaseToHumanReadable as s };
|
package/dist/types/api/Api.d.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ICheckout {
|
|
2
|
+
payment_intent_id: string;
|
|
3
|
+
account_id: string;
|
|
4
|
+
platform_account_id: string;
|
|
5
|
+
payment_amount: string;
|
|
6
|
+
payment_client_id: string;
|
|
7
|
+
payment_description: string;
|
|
8
|
+
payment_methods: string[];
|
|
9
|
+
payment_method_group_id: string | null;
|
|
10
|
+
payment_settings: {
|
|
11
|
+
credit_card_payments: boolean;
|
|
12
|
+
ach_payments: boolean;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IApiResponse } from '../Api';
|
|
2
|
+
import { IBusiness } from '../Business';
|
|
3
|
+
export interface IBusinessService {
|
|
4
|
+
fetchBusiness(businessId: string, authToken: string): Promise<IApiResponse<IBusiness>>;
|
|
5
|
+
}
|
|
6
|
+
export declare class BusinessService implements IBusinessService {
|
|
7
|
+
fetchBusiness(businessId: string, authToken: string): Promise<IApiResponse<IBusiness>>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IApiResponse, ICheckout } from '..';
|
|
2
|
+
export interface ICheckoutService {
|
|
3
|
+
fetchCheckout(authToken: string, checkoutId: string): Promise<IApiResponse<ICheckout>>;
|
|
4
|
+
pay(authToken: string, checkoutId: string, tokenizedPaymentMethod: string): Promise<IApiResponse<ICheckout>>;
|
|
5
|
+
}
|
|
6
|
+
export declare class CheckoutService implements ICheckoutService {
|
|
7
|
+
fetchCheckout(authToken: string, checkoutId: string): Promise<IApiResponse<ICheckout>>;
|
|
8
|
+
pay(authToken: string, checkoutId: string, paymentMethodToken: string): Promise<IApiResponse<ICheckout>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Business } from '../../api/Business';
|
|
2
|
+
declare enum RENDER_STATES {
|
|
3
|
+
LOADING = "loading",
|
|
4
|
+
READY = "ready",
|
|
5
|
+
ERROR = "error"
|
|
6
|
+
}
|
|
7
|
+
export declare class BusinessDetailsCore {
|
|
8
|
+
getBusiness: Function;
|
|
9
|
+
business: Business;
|
|
10
|
+
renderState: RENDER_STATES;
|
|
11
|
+
errorMessage: string;
|
|
12
|
+
componentWillLoad(): Promise<void>;
|
|
13
|
+
fetchData(): void;
|
|
14
|
+
render(): any;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { Business } from '../../api/Business';
|
|
2
|
-
declare enum RENDER_STATES {
|
|
3
|
-
LOADING = "loading",
|
|
4
|
-
READY = "ready",
|
|
5
|
-
ERROR = "error"
|
|
6
|
-
}
|
|
7
1
|
/**
|
|
8
2
|
*
|
|
9
3
|
* @exportedPart detail-section
|
|
@@ -15,13 +9,9 @@ declare enum RENDER_STATES {
|
|
|
15
9
|
export declare class BusinessDetails {
|
|
16
10
|
businessId: string;
|
|
17
11
|
authToken: string;
|
|
18
|
-
business: Business;
|
|
19
|
-
renderState: RENDER_STATES;
|
|
20
12
|
errorMessage: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
fetchBusiness(businessId: any): Promise<void>;
|
|
13
|
+
getBusiness: Function;
|
|
14
|
+
componentWillLoad(): void;
|
|
15
|
+
private initializeGetBusiness;
|
|
25
16
|
render(): any;
|
|
26
17
|
}
|
|
27
|
-
export {};
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { Identity } from '../../../api/Business';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @exportedPart detail-section
|
|
5
|
-
* @exportedPart detail-section-title
|
|
6
|
-
* @exportedPart detail-section-item-title
|
|
7
|
-
* @exportedPart detail-section-item-data
|
|
8
|
-
* @exportedPart detail-empty-state
|
|
9
|
-
*/
|
|
10
2
|
export declare class OwnerDetails {
|
|
11
3
|
owners: Identity[];
|
|
12
4
|
render(): any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const makeGetCheckout: ({ authToken, checkoutId, service }: {
|
|
2
|
+
authToken: any;
|
|
3
|
+
checkoutId: any;
|
|
4
|
+
service: any;
|
|
5
|
+
}) => ({ onSuccess, onError }: {
|
|
6
|
+
onSuccess: any;
|
|
7
|
+
onError: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
export declare const makePay: ({ authToken, checkoutId, service }: {
|
|
10
|
+
authToken: any;
|
|
11
|
+
checkoutId: any;
|
|
12
|
+
service: any;
|
|
13
|
+
}) => ({ paymentMethodToken, onSuccess, onError }: {
|
|
14
|
+
paymentMethodToken: any;
|
|
15
|
+
onSuccess: any;
|
|
16
|
+
onError: any;
|
|
17
|
+
}) => Promise<any>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { CreatePaymentMethodResponse } from '../payment-method-form/payment-method-responses';
|
|
3
|
+
export declare class CheckoutCore {
|
|
4
|
+
/**
|
|
5
|
+
* URL for the rendered iFrame. End-users need not use this.
|
|
6
|
+
*/
|
|
7
|
+
iframeOrigin?: string;
|
|
8
|
+
authToken: string;
|
|
9
|
+
getCheckout: Function;
|
|
10
|
+
pay: Function;
|
|
11
|
+
checkoutId: string;
|
|
12
|
+
hasLoadedFonts: boolean;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
checkout: any;
|
|
15
|
+
serverError: boolean;
|
|
16
|
+
errorMessage: string;
|
|
17
|
+
creatingNewPaymentMethod: boolean;
|
|
18
|
+
selectedPaymentMethodToken: string;
|
|
19
|
+
submitted: EventEmitter<CreatePaymentMethodResponse>;
|
|
20
|
+
private paymentMethodOptionsRef?;
|
|
21
|
+
componentWillLoad(): void;
|
|
22
|
+
connectedCallback(): void;
|
|
23
|
+
fetchData(): void;
|
|
24
|
+
loadFontsOnParent(): Promise<any>;
|
|
25
|
+
submit(event: any): Promise<void>;
|
|
26
|
+
private loadingSpinner;
|
|
27
|
+
render(): any;
|
|
28
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class Checkout {
|
|
2
|
+
iframeOrigin?: string;
|
|
3
|
+
authToken: string;
|
|
4
|
+
checkoutId: string;
|
|
5
|
+
getCheckout: Function;
|
|
6
|
+
pay: Function;
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
componentWillLoad(): void;
|
|
9
|
+
private initializeGetCheckout;
|
|
10
|
+
propChanged(): void;
|
|
11
|
+
render(): any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { PaymentMethodOption } from './payment-method-option-utils';
|
|
3
|
+
export declare class NewPaymentMethod {
|
|
4
|
+
iframeOrigin?: string;
|
|
5
|
+
clientId: string;
|
|
6
|
+
accountId: string;
|
|
7
|
+
paymentMethodOption: PaymentMethodOption;
|
|
8
|
+
isSelected: boolean;
|
|
9
|
+
paymentMethodOptionSelected: EventEmitter;
|
|
10
|
+
private billingFormRef?;
|
|
11
|
+
private paymentMethodFormRef?;
|
|
12
|
+
getPaymentMethodToken(): Promise<string>;
|
|
13
|
+
tokenize(): Promise<any>;
|
|
14
|
+
onPaymentMethodOptionClick: () => void;
|
|
15
|
+
showNewPaymentMethodForm(): any;
|
|
16
|
+
render(): any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class PaymentMethodOption {
|
|
2
|
+
id: string;
|
|
3
|
+
brand?: string;
|
|
4
|
+
acct_last_four?: string;
|
|
5
|
+
constructor(paymentMethod: any);
|
|
6
|
+
}
|
|
7
|
+
export declare enum CardBrandLabels {
|
|
8
|
+
'american_express' = "American Express",
|
|
9
|
+
'diners_club' = "Diners Club",
|
|
10
|
+
'discover' = "Discover",
|
|
11
|
+
'jcb' = "JCB",
|
|
12
|
+
'mastercard' = "Mastercard",
|
|
13
|
+
'china_unionpay' = "UnionPay",
|
|
14
|
+
'visa' = "Visa",
|
|
15
|
+
'unknown' = "Unknown"
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { PaymentMethodOption } from './payment-method-option-utils';
|
|
3
|
+
export declare class PaymentMethodOptions {
|
|
4
|
+
showCard: boolean;
|
|
5
|
+
showAch: boolean;
|
|
6
|
+
clientId: string;
|
|
7
|
+
accountId: string;
|
|
8
|
+
iframeOrigin?: string;
|
|
9
|
+
savedPaymentMethods: any[];
|
|
10
|
+
selectedPaymentMethodId: string;
|
|
11
|
+
paymentMethodOptions: PaymentMethodOption[];
|
|
12
|
+
toggleCreatingNewPaymentMethod: EventEmitter;
|
|
13
|
+
private selectedPaymentMethodOptionRef?;
|
|
14
|
+
paymentMethodsChanged(): void;
|
|
15
|
+
paymentMethodOptionSelected(event: CustomEvent<PaymentMethodOption>): void;
|
|
16
|
+
getPaymentMethodToken(): Promise<string>;
|
|
17
|
+
render(): any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { PaymentMethodOption } from './payment-method-option-utils';
|
|
3
|
+
export declare class SavedPaymentMethod {
|
|
4
|
+
iframeOrigin?: string;
|
|
5
|
+
paymentMethodOption: PaymentMethodOption;
|
|
6
|
+
isSelected: boolean;
|
|
7
|
+
paymentMethodOptionSelected: EventEmitter;
|
|
8
|
+
getPaymentMethodToken(): Promise<string>;
|
|
9
|
+
onPaymentMethodOptionClick: () => void;
|
|
10
|
+
render(): any;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const mockCheckout: {
|
|
2
|
+
id: string;
|
|
3
|
+
type: string;
|
|
4
|
+
page_info: any;
|
|
5
|
+
data: {
|
|
6
|
+
payment_intent_id: string;
|
|
7
|
+
account_id: string;
|
|
8
|
+
platform_account_id: string;
|
|
9
|
+
payment_amount: string;
|
|
10
|
+
payment_client_id: string;
|
|
11
|
+
payment_description: string;
|
|
12
|
+
payment_methods: any[];
|
|
13
|
+
payment_method_group_id: any;
|
|
14
|
+
payment_settings: {
|
|
15
|
+
credit_card_payments: boolean;
|
|
16
|
+
ach_payments: boolean;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
2
|
export declare const LoadingState: () => any;
|
|
3
3
|
export declare const ErrorState: (errorMessage: string) => any;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const DetailSectionTitle: FunctionalComponent<{
|
|
5
5
|
sectionTitle: string;
|
|
6
6
|
}>;
|
|
7
7
|
export declare const DetailItem: ({ title, value, }: {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReportsService } from '../../api/services/reports.service';
|
|
2
|
+
interface MakeGetGrossPaymentChartDataProps {
|
|
3
|
+
id: string;
|
|
4
|
+
authToken: string;
|
|
5
|
+
service: ReportsService;
|
|
6
|
+
}
|
|
7
|
+
export declare const makeGetGrossPaymentChartData: ({ id, authToken, service }: MakeGetGrossPaymentChartDataProps) => ({ onSuccess, onError }: {
|
|
8
|
+
onSuccess: any;
|
|
9
|
+
onError: any;
|
|
10
|
+
}) => Promise<void>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Chart } from 'chart.js';
|
|
2
|
+
import { GrossVolumeReport } from '../../api/GrossVolume';
|
|
3
|
+
export declare class GrossPaymentChartCore {
|
|
4
|
+
chart: Chart;
|
|
5
|
+
chartRef: HTMLCanvasElement;
|
|
6
|
+
getGrossPayment: Function;
|
|
7
|
+
grossVolumeReport: GrossVolumeReport;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
errorMessage: string;
|
|
10
|
+
componentDidLoad(): void;
|
|
11
|
+
propChanged(): void;
|
|
12
|
+
grossVolumeReportChanged(grossVolumeReport: GrossVolumeReport): void;
|
|
13
|
+
fetchData(): Promise<void>;
|
|
14
|
+
initChart(grossVolumeReport: GrossVolumeReport): void;
|
|
15
|
+
updateChartData(grossVolumeReport: GrossVolumeReport): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
17
|
+
render(): any;
|
|
18
|
+
}
|
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
import { Chart } from 'chart.js';
|
|
2
|
-
import { GrossVolumeReport, GrossVolumeReportDate } from '../../api/GrossVolume';
|
|
3
1
|
export declare class GrossPaymentChart {
|
|
4
|
-
chart: Chart;
|
|
5
|
-
chartRef: HTMLCanvasElement;
|
|
6
2
|
accountId: string;
|
|
7
3
|
authToken: string;
|
|
8
|
-
|
|
9
|
-
total: number;
|
|
10
|
-
dates: GrossVolumeReportDate[];
|
|
11
|
-
endDate: string;
|
|
12
|
-
loading: boolean;
|
|
4
|
+
getGrossPayment: Function;
|
|
13
5
|
errorMessage: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
fetchData(): Promise<void>;
|
|
18
|
-
renderChart(): void;
|
|
6
|
+
componentWillLoad(): void;
|
|
7
|
+
propChanged(): void;
|
|
8
|
+
private initializeGetGrossPayment;
|
|
19
9
|
render(): any;
|
|
20
10
|
}
|
|
@@ -14,7 +14,6 @@ import { PaymentService } from '../../api/services/payment.service';
|
|
|
14
14
|
* @exportedPart detail-metadata-title
|
|
15
15
|
* @exportedPart detail-method-title
|
|
16
16
|
* @exportedPart detail-method-data
|
|
17
|
-
* @exportedPart detail-section
|
|
18
17
|
* @exportedPart detail-section-title
|
|
19
18
|
* @exportedPart detail-section-item-title
|
|
20
19
|
* @exportedPart detail-section-item-data
|
|
@@ -7,7 +7,7 @@ interface PaymentMethodCreateResponseWrapper {
|
|
|
7
7
|
};
|
|
8
8
|
page_info: string;
|
|
9
9
|
}
|
|
10
|
-
interface CardCreateResponse extends PaymentMethodCreateResponseWrapper {
|
|
10
|
+
export interface CardCreateResponse extends PaymentMethodCreateResponseWrapper {
|
|
11
11
|
data?: {
|
|
12
12
|
signature: string;
|
|
13
13
|
customer_id: string;
|
|
@@ -34,7 +34,7 @@ interface CardCreateResponse extends PaymentMethodCreateResponseWrapper {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
interface BankAccountCreateResponse extends PaymentMethodCreateResponseWrapper {
|
|
37
|
+
export interface BankAccountCreateResponse extends PaymentMethodCreateResponseWrapper {
|
|
38
38
|
data?: {
|
|
39
39
|
signature: string;
|
|
40
40
|
customer_id: string;
|
|
@@ -50,11 +50,5 @@ interface BankAccountCreateResponse extends PaymentMethodCreateResponseWrapper {
|
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
error: {
|
|
55
|
-
code: string;
|
|
56
|
-
message: string;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
export type CreatePaymentMethodResponse = CardCreateResponse | BankAccountCreateResponse | PaymentMethodErrorResponse;
|
|
53
|
+
export type CreatePaymentMethodResponse = CardCreateResponse | BankAccountCreateResponse;
|
|
60
54
|
export {};
|