@justifi/webcomponents 4.2.1-rc.4 → 4.4.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/LICENSE +21 -0
- package/dist/cjs/{Api-11362403.js → Api-7303478d.js} +3 -2
- package/dist/cjs/Api-7303478d.js.map +1 -0
- package/dist/cjs/business-form-schema-63b311b2.js +132 -0
- package/dist/cjs/business-form-schema-63b311b2.js.map +1 -0
- package/dist/cjs/form-control-select_2.cjs.entry.js +61 -0
- package/dist/cjs/form-control-select_2.cjs.entry.js.map +1 -0
- package/dist/cjs/{index-34312a38.js → index-83b2ec02.js} +136 -20
- package/dist/cjs/index-83b2ec02.js.map +1 -0
- package/dist/cjs/{index.esm-bcf90c56.js → index.esm-7e12ce07.js} +301 -14
- package/dist/cjs/index.esm-7e12ce07.js.map +1 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -3
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +5 -5
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-business-address-form.cjs.entry.js +37 -0
- package/dist/cjs/justifi-business-address-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-form.cjs.entry.js +751 -0
- package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-generic-info_3.cjs.entry.js +148 -0
- package/dist/cjs/justifi-business-generic-info_3.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +8 -3
- package/dist/cjs/justifi-card-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-form.cjs.entry.js +24 -7
- package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +22 -17
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +75 -4038
- package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +113 -0
- package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/select-input_2.cjs.entry.js +6 -6
- package/dist/cjs/select-input_2.cjs.entry.js.map +1 -1
- package/dist/cjs/{state-options-efeaa587.js → state-options-83b52cd1.js} +1 -1
- package/dist/{esm/state-options-188acc34.js.map → cjs/state-options-83b52cd1.js.map} +1 -1
- package/dist/cjs/utils-4ee7e080.js +3979 -0
- package/dist/cjs/utils-4ee7e080.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +3 -6
- package/dist/cjs/webcomponents.cjs.js.map +1 -1
- package/dist/collection/api/Api.js +3 -2
- package/dist/collection/api/Api.js.map +1 -1
- package/dist/collection/api/Payout.js +33 -0
- package/dist/collection/api/Payout.js.map +1 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/index.js.map +1 -1
- package/dist/collection/api/mockData/MockPayments.js +1 -1
- package/dist/collection/collection-manifest.json +18 -12
- package/dist/collection/components/bank-account-form/bank-account-form.js +38 -10
- package/dist/collection/components/bank-account-form/bank-account-form.js.map +1 -1
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js +2 -0
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
- package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +1 -1
- package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +3 -3
- package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
- package/dist/collection/components/billing-form/billing-form.css +212 -39
- package/dist/collection/components/billing-form/billing-form.js +16 -10
- package/dist/collection/components/billing-form/billing-form.js.map +1 -1
- package/dist/collection/components/billing-form/test/billing-form.spec.js +51 -24
- package/dist/collection/components/billing-form/test/billing-form.spec.js.map +1 -1
- package/dist/collection/components/{business-address/business-address-schema.js → business-form/business-address/business-address-form-schema.js} +2 -2
- package/dist/collection/components/business-form/business-address/business-address-form-schema.js.map +1 -0
- package/dist/collection/components/business-form/business-address/business-address-form.css +2532 -0
- package/dist/collection/components/business-form/business-address/business-address-form.js +98 -0
- package/dist/collection/components/business-form/business-address/business-address-form.js.map +1 -0
- package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +10 -0
- package/dist/collection/components/business-form/business-address/test/business-address.e2e.js.map +1 -0
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js +72 -0
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map +1 -0
- package/dist/collection/components/business-form/business-form-schema.js +149 -0
- package/dist/collection/components/business-form/business-form-schema.js.map +1 -0
- package/dist/collection/components/business-form/business-form.css +2532 -0
- package/dist/collection/components/business-form/business-form.js +76 -0
- package/dist/collection/components/business-form/business-form.js.map +1 -0
- package/dist/collection/components/{business-info/business-info.css → business-form/business-generic-info/business-generic-info.css} +745 -530
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +79 -0
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -0
- package/dist/collection/components/business-form/business-owners/business-owners.css +2489 -0
- package/dist/collection/components/business-form/business-owners/business-owners.js +120 -0
- package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -0
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js +2 -0
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -0
- package/dist/collection/components/business-form/business-representative/business-representative.css +2489 -0
- package/dist/collection/components/business-form/business-representative/business-representative.js +76 -0
- package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -0
- package/dist/collection/components/business-form/businessForm.stories.js +115 -0
- package/dist/collection/components/business-form/businessForm.stories.js.map +1 -0
- package/dist/collection/components/card-form/card-form.js +38 -10
- package/dist/collection/components/card-form/card-form.js.map +1 -1
- package/dist/collection/components/card-form/card-form.stories.js +5 -2
- package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
- package/dist/collection/components/card-form/test/card-form.e2e.js +1 -1
- package/dist/collection/components/card-form/test/card-form.spec.js +3 -3
- package/dist/collection/components/{business-address/business-address.css → form/form-control-select.css} +344 -1212
- package/dist/collection/components/form/form-control-select.js +168 -0
- package/dist/collection/components/form/form-control-select.js.map +1 -0
- package/dist/collection/components/form/form-control-text.css +1794 -0
- package/dist/collection/components/form/form-control-text.js +152 -0
- package/dist/collection/components/form/form-control-text.js.map +1 -0
- package/dist/collection/components/form/form.js +85 -0
- package/dist/collection/components/form/form.js.map +1 -0
- package/dist/collection/components/payment-form/payment-form.css +220 -45
- package/dist/collection/components/payment-form/payment-form.js +47 -7
- package/dist/collection/components/payment-form/payment-form.js.map +1 -1
- package/dist/collection/components/payment-form/payment-form.stories.js +3 -2
- package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
- package/dist/collection/components/payment-form/payment-method-selector.css +348 -145
- package/dist/collection/components/payment-form/payment-method-selector.js +5 -3
- package/dist/collection/components/payment-form/payment-method-selector.js.map +1 -1
- package/dist/collection/components/payment-form/test/payment-form.e2e.js +1 -1
- package/dist/collection/components/payment-form/test/payment-form.spec.js +4 -3
- package/dist/collection/components/payment-form/test/payment-form.spec.js.map +1 -1
- package/dist/collection/components/payment-method-form/get-computed-theme.js +2 -0
- package/dist/collection/components/payment-method-form/get-computed-theme.js.map +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +19 -11
- package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +1 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +3 -3
- package/dist/collection/components/payment-method-form/theme.js.map +1 -1
- package/dist/collection/components/payments-list/example.js +12 -0
- package/dist/collection/components/payments-list/payments-list.css +7954 -1
- package/dist/collection/components/payments-list/payments-list.js +104 -27
- package/dist/collection/components/payments-list/payments-list.js.map +1 -1
- package/dist/collection/components/payments-list/payments-list.stories.js +78 -0
- package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -0
- package/dist/collection/components/payments-list/test/payments-list.spec.js +82 -18
- package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -1
- package/dist/collection/components/payouts-list/payouts-list.css +7983 -0
- package/dist/collection/components/payouts-list/payouts-list.js +181 -0
- package/dist/collection/components/payouts-list/payouts-list.js.map +1 -0
- package/dist/collection/components/payouts-list/payouts-list.stories.js +69 -0
- package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -0
- package/dist/collection/components/select-input/select-input.css +344 -141
- package/dist/collection/components/select-input/select-input.js +5 -4
- package/dist/collection/components/select-input/select-input.js.map +1 -1
- package/dist/collection/components/select-input/test/select-input.spec.js +72 -28
- package/dist/collection/components/select-input/test/select-input.spec.js.map +1 -1
- package/dist/collection/components/text-input/test/text-input.spec.js +47 -5
- package/dist/collection/components/text-input/test/text-input.spec.js.map +1 -1
- package/dist/collection/components/text-input/text-input.css +344 -141
- package/dist/collection/components/text-input/text-input.js +2 -2
- package/dist/collection/components/text-input/text-input.js.map +1 -1
- package/dist/collection/utils/utils.js +7 -2
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/Api.js +2 -1
- package/dist/components/Api.js.map +1 -1
- package/dist/components/billing-form.js +2 -2
- package/dist/components/billing-form.js.map +1 -1
- package/dist/components/business-address-form.js +65 -0
- package/dist/components/business-address-form.js.map +1 -0
- package/dist/components/business-generic-info.js +190 -0
- package/dist/components/business-generic-info.js.map +1 -0
- package/dist/components/business-owners.js +102 -0
- package/dist/components/business-owners.js.map +1 -0
- package/dist/components/business-representative.js +75 -0
- package/dist/components/business-representative.js.map +1 -0
- package/dist/components/{justifi-business-info.d.ts → form-control-select.d.ts} +4 -4
- package/dist/components/form-control-select.js +8 -0
- package/dist/components/form-control-select.js.map +1 -0
- package/dist/components/form-control-select2.js +53 -0
- package/dist/components/form-control-select2.js.map +1 -0
- package/dist/components/form-control-text.d.ts +11 -0
- package/dist/components/form-control-text.js +8 -0
- package/dist/components/form-control-text.js.map +1 -0
- package/dist/components/form-control-text2.js +51 -0
- package/dist/components/form-control-text2.js.map +1 -0
- package/dist/components/index.esm.js +298 -14
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/justifi-bank-account-form.js +7 -2
- package/dist/components/justifi-bank-account-form.js.map +1 -1
- package/dist/components/justifi-business-address-form.d.ts +11 -0
- package/dist/components/justifi-business-address-form.js +8 -0
- package/dist/components/justifi-business-address-form.js.map +1 -0
- package/dist/components/justifi-business-form.d.ts +11 -0
- package/dist/components/justifi-business-form.js +802 -0
- package/dist/components/justifi-business-form.js.map +1 -0
- package/dist/components/justifi-business-generic-info.d.ts +11 -0
- package/dist/components/justifi-business-generic-info.js +8 -0
- package/dist/components/justifi-business-generic-info.js.map +1 -0
- package/dist/components/justifi-business-owners.d.ts +11 -0
- package/dist/components/justifi-business-owners.js +8 -0
- package/dist/components/justifi-business-owners.js.map +1 -0
- package/dist/components/justifi-business-representative.d.ts +11 -0
- package/dist/components/justifi-business-representative.js +8 -0
- package/dist/components/justifi-business-representative.js.map +1 -0
- package/dist/components/justifi-card-form.js +7 -2
- package/dist/components/justifi-card-form.js.map +1 -1
- package/dist/components/justifi-payment-form.js +23 -4
- package/dist/components/justifi-payment-form.js.map +1 -1
- package/dist/components/justifi-payments-list.js +78 -4038
- package/dist/components/justifi-payments-list.js.map +1 -1
- package/dist/components/justifi-payouts-list.d.ts +11 -0
- package/dist/components/justifi-payouts-list.js +134 -0
- package/dist/components/justifi-payouts-list.js.map +1 -0
- package/dist/components/payment-method-form.js +21 -16
- package/dist/components/payment-method-form.js.map +1 -1
- package/dist/components/payment-method-selector.js +1 -1
- package/dist/components/payment-method-selector.js.map +1 -1
- package/dist/components/select-input2.js +3 -3
- package/dist/components/select-input2.js.map +1 -1
- package/dist/components/state-options.js.map +1 -1
- package/dist/components/text-input2.js +2 -2
- package/dist/components/text-input2.js.map +1 -1
- package/dist/components/utils.js +3972 -0
- package/dist/components/utils.js.map +1 -0
- package/dist/esm/{Api-a07f0057.js → Api-436dfa09.js} +3 -2
- package/dist/esm/Api-436dfa09.js.map +1 -0
- package/dist/esm/business-form-schema-30c48693.js +128 -0
- package/dist/esm/business-form-schema-30c48693.js.map +1 -0
- package/dist/esm/form-control-select_2.entry.js +56 -0
- package/dist/esm/form-control-select_2.entry.js.map +1 -0
- package/dist/esm/{index-044f93fc.js → index-c8f391de.js} +136 -20
- package/dist/esm/index-c8f391de.js.map +1 -0
- package/dist/esm/{index.esm-5624a5ed.js → index.esm-be2cd327.js} +299 -15
- package/dist/esm/index.esm-be2cd327.js.map +1 -0
- package/dist/esm/justifi-bank-account-form.entry.js +8 -3
- package/dist/esm/justifi-bank-account-form.entry.js.map +1 -1
- package/dist/esm/justifi-billing-form_2.entry.js +5 -5
- package/dist/esm/justifi-billing-form_2.entry.js.map +1 -1
- package/dist/esm/justifi-business-address-form.entry.js +33 -0
- package/dist/esm/justifi-business-address-form.entry.js.map +1 -0
- package/dist/esm/justifi-business-form.entry.js +747 -0
- package/dist/esm/justifi-business-form.entry.js.map +1 -0
- package/dist/esm/justifi-business-generic-info_3.entry.js +142 -0
- package/dist/esm/justifi-business-generic-info_3.entry.js.map +1 -0
- package/dist/esm/justifi-card-form.entry.js +8 -3
- package/dist/esm/justifi-card-form.entry.js.map +1 -1
- package/dist/esm/justifi-payment-form.entry.js +21 -4
- package/dist/esm/justifi-payment-form.entry.js.map +1 -1
- package/dist/esm/justifi-payment-method-form.entry.js +22 -17
- package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
- package/dist/esm/justifi-payments-list.entry.js +75 -4038
- package/dist/esm/justifi-payments-list.entry.js.map +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +109 -0
- package/dist/esm/justifi-payouts-list.entry.js.map +1 -0
- package/dist/esm/loader.js +4 -13
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/select-input_2.entry.js +6 -6
- package/dist/esm/select-input_2.entry.js.map +1 -1
- package/dist/esm/{state-options-188acc34.js → state-options-ece00aa2.js} +1 -1
- package/dist/esm/state-options-ece00aa2.js.map +1 -0
- package/dist/esm/utils-e7782126.js +3972 -0
- package/dist/esm/utils-e7782126.js.map +1 -0
- package/dist/esm/webcomponents.js +4 -7
- package/dist/esm/webcomponents.js.map +1 -1
- package/dist/types/api/Payout.d.ts +62 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/components/business-form/business-address/business-address-form.d.ts +9 -0
- package/dist/types/components/{business-info/business-info-schema.d.ts → business-form/business-form-schema.d.ts} +55 -4
- package/dist/types/components/business-form/business-form.d.ts +14 -0
- package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +16 -0
- package/dist/types/components/business-form/business-owners/business-owners.d.ts +32 -0
- package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +15 -0
- package/dist/types/components/business-form/business-representative/business-representative.d.ts +12 -0
- package/dist/types/components/business-form/businessForm.stories.d.ts +21 -0
- package/dist/types/components/form/form-control-select.d.ts +16 -0
- package/dist/types/components/form/form-control-text.d.ts +12 -0
- package/dist/types/components/form/form.d.ts +21 -0
- package/dist/types/components/payment-form/payment-form.d.ts +2 -0
- package/dist/types/components/payment-method-form/theme.d.ts +2 -0
- package/dist/types/components/payments-list/payments-list.d.ts +38 -5
- package/dist/types/components/payments-list/payments-list.stories.d.ts +17 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +45 -0
- package/dist/types/components/payouts-list/payouts-list.stories.d.ts +16 -0
- package/dist/types/components.d.ts +339 -26
- package/dist/types/stencil-public-runtime.d.ts +14 -2
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/p-0fd4aae2.js +2 -0
- package/dist/webcomponents/p-0fd4aae2.js.map +1 -0
- package/dist/webcomponents/p-1953797f.entry.js +2 -0
- package/dist/webcomponents/p-1953797f.entry.js.map +1 -0
- package/dist/webcomponents/p-1a1f2196.js +2 -0
- package/dist/webcomponents/p-1a1f2196.js.map +1 -0
- package/dist/webcomponents/p-23e9c7d4.entry.js +2 -0
- package/dist/webcomponents/p-23e9c7d4.entry.js.map +1 -0
- package/dist/webcomponents/p-309a886f.entry.js +2 -0
- package/dist/webcomponents/p-309a886f.entry.js.map +1 -0
- package/dist/webcomponents/p-33d69eb5.entry.js +2 -0
- package/dist/webcomponents/p-33d69eb5.entry.js.map +1 -0
- package/dist/webcomponents/p-3a80a2ec.entry.js +2 -0
- package/dist/webcomponents/p-3a80a2ec.entry.js.map +1 -0
- package/dist/webcomponents/p-45fea6a8.entry.js +2 -0
- package/dist/webcomponents/p-45fea6a8.entry.js.map +1 -0
- package/dist/webcomponents/{p-0ea23153.js → p-47bc59b5.js} +1 -1
- package/dist/webcomponents/p-47bc59b5.js.map +1 -0
- package/dist/webcomponents/p-7041a637.entry.js +2 -0
- package/dist/webcomponents/p-7041a637.entry.js.map +1 -0
- package/dist/webcomponents/p-79456add.js +2 -0
- package/dist/webcomponents/p-79456add.js.map +1 -0
- package/dist/webcomponents/{p-1f151d49.js → p-af080b21.js} +2 -2
- package/dist/webcomponents/p-af080b21.js.map +1 -0
- package/dist/webcomponents/p-bc969904.js +3 -0
- package/dist/webcomponents/p-bc969904.js.map +1 -0
- package/dist/webcomponents/p-cd097ce9.entry.js +2 -0
- package/dist/webcomponents/p-cd097ce9.entry.js.map +1 -0
- package/dist/webcomponents/p-d5bc9f22.entry.js +2 -0
- package/dist/webcomponents/p-d5bc9f22.entry.js.map +1 -0
- package/dist/webcomponents/p-d5cadc78.entry.js +2 -0
- package/dist/webcomponents/p-d5cadc78.entry.js.map +1 -0
- package/dist/webcomponents/p-dd1ebc0b.entry.js +2 -0
- package/dist/webcomponents/p-dd1ebc0b.entry.js.map +1 -0
- package/dist/webcomponents/p-e05e0c6b.entry.js +2 -0
- package/dist/webcomponents/p-e05e0c6b.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/loader/index.d.ts +1 -1
- package/package.json +12 -14
- package/CHANGELOG.md +0 -196
- package/changelog-template.hbs +0 -10
- package/dist/cjs/Api-11362403.js.map +0 -1
- package/dist/cjs/Payment-ac4dea02.js +0 -73
- package/dist/cjs/Payment-ac4dea02.js.map +0 -1
- package/dist/cjs/index-34312a38.js.map +0 -1
- package/dist/cjs/index.esm-bcf90c56.js.map +0 -1
- package/dist/cjs/justifi-business-address.cjs.entry.js +0 -69
- package/dist/cjs/justifi-business-address.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-business-info.cjs.entry.js +0 -174
- package/dist/cjs/justifi-business-info.cjs.entry.js.map +0 -1
- package/dist/cjs/state-options-efeaa587.js.map +0 -1
- package/dist/collection/components/business-address/business-address-schema.js.map +0 -1
- package/dist/collection/components/business-address/business-address.js +0 -100
- package/dist/collection/components/business-address/business-address.js.map +0 -1
- package/dist/collection/components/business-address/test/business-address.e2e.js +0 -10
- package/dist/collection/components/business-address/test/business-address.e2e.js.map +0 -1
- package/dist/collection/components/business-address/test/business-address.spec.js +0 -18
- package/dist/collection/components/business-address/test/business-address.spec.js.map +0 -1
- package/dist/collection/components/business-info/business-info-schema.js +0 -94
- package/dist/collection/components/business-info/business-info-schema.js.map +0 -1
- package/dist/collection/components/business-info/business-info.js +0 -168
- package/dist/collection/components/business-info/business-info.js.map +0 -1
- package/dist/components/Payment.js +0 -71
- package/dist/components/Payment.js.map +0 -1
- package/dist/components/justifi-business-address.d.ts +0 -11
- package/dist/components/justifi-business-address.js +0 -99
- package/dist/components/justifi-business-address.js.map +0 -1
- package/dist/components/justifi-business-info.js +0 -207
- package/dist/components/justifi-business-info.js.map +0 -1
- package/dist/esm/Api-a07f0057.js.map +0 -1
- package/dist/esm/Payment-c86e1e84.js +0 -71
- package/dist/esm/Payment-c86e1e84.js.map +0 -1
- package/dist/esm/index-044f93fc.js.map +0 -1
- package/dist/esm/index.esm-5624a5ed.js.map +0 -1
- package/dist/esm/justifi-business-address.entry.js +0 -65
- package/dist/esm/justifi-business-address.entry.js.map +0 -1
- package/dist/esm/justifi-business-info.entry.js +0 -170
- package/dist/esm/justifi-business-info.entry.js.map +0 -1
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -56
- package/dist/types/components/business-address/business-address.d.ts +0 -11
- package/dist/types/components/business-info/business-info.d.ts +0 -20
- package/dist/types/components/card-form/card-form.d.ts +0 -62
- package/dist/webcomponents/p-0969db8f.entry.js +0 -2
- package/dist/webcomponents/p-0969db8f.entry.js.map +0 -1
- package/dist/webcomponents/p-0ea23153.js.map +0 -1
- package/dist/webcomponents/p-1ca0646b.js +0 -2
- package/dist/webcomponents/p-1ca0646b.js.map +0 -1
- package/dist/webcomponents/p-1f151d49.js.map +0 -1
- package/dist/webcomponents/p-255b1284.entry.js +0 -2
- package/dist/webcomponents/p-255b1284.entry.js.map +0 -1
- package/dist/webcomponents/p-2b8c281e.entry.js +0 -2
- package/dist/webcomponents/p-2b8c281e.entry.js.map +0 -1
- package/dist/webcomponents/p-3aa91155.js +0 -3
- package/dist/webcomponents/p-3aa91155.js.map +0 -1
- package/dist/webcomponents/p-90c0d9e1.entry.js +0 -2
- package/dist/webcomponents/p-90c0d9e1.entry.js.map +0 -1
- package/dist/webcomponents/p-bd5352d6.entry.js +0 -2
- package/dist/webcomponents/p-bd5352d6.entry.js.map +0 -1
- package/dist/webcomponents/p-c903cc5a.entry.js +0 -2
- package/dist/webcomponents/p-c903cc5a.entry.js.map +0 -1
- package/dist/webcomponents/p-d87b0711.entry.js +0 -2
- package/dist/webcomponents/p-d87b0711.entry.js.map +0 -1
- package/dist/webcomponents/p-dbf7100f.entry.js +0 -2
- package/dist/webcomponents/p-dbf7100f.entry.js.map +0 -1
- package/dist/webcomponents/p-e0054bc3.js +0 -2
- package/dist/webcomponents/p-e0054bc3.js.map +0 -1
- package/dist/webcomponents/p-f30d1567.entry.js +0 -2
- package/dist/webcomponents/p-f30d1567.entry.js.map +0 -1
- /package/dist/types/components/{business-address/business-address-schema.d.ts → business-form/business-address/business-address-form-schema.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","bankAccount","card","email","iframeOrigin","clientId","accountId","submitButtonText","submitButtonEnabled","isLoading","selectedPaymentMethodType","allowedPaymentMethodTypes","fillBillingForm","enableSubmitButton","businessAddress","businessAddressErrors","submit","authToken","businessId","businessInfoPrefillData","businessInfo","businessInfoFieldsErrors","paymentMethodFormType","paymentMethodFormValidationMode","singleLine","height","tokenize","validate","resize","validationMode","internalStyleOverrides","auth","payments","name","label","defaultValue","error","internalValue","legend","billingFields","billingFieldsErrors","fill","getValues","paymentMethodTypes"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.3.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAmBA,MAAMA,EAAe,KAkCjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAiB3E,GAAuBF,IAAe,GAAI,CACtCE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IAGrD,CAcI,OAAOC,EAAeJ,EAAK,ECrF/BH,IAAeQ,MAAKC,GAEXC,EAAc,0CAAuC,CAAAC,YAAA,mBAAAC,KAAA,IAAAC,MAAA,IAAAC,aAAA,oBAAAC,SAAA,gBAAAC,UAAA,iBAAAC,iBAAA,yBAAAC,oBAAA,KAAAC,UAAA,KAAAC,0BAAA,KAAAC,0BAAA,KAAAC,gBAAA,KAAAC,mBAAA,oHAAAC,gBAAA,KAAAC,sBAAA,KAAAC,OAAA,8FAAAC,UAAA,iBAAAC,WAAA,kBAAAC,wBAAA,KAAAC,aAAA,KAAAC,yBAAA,KAAAL,OAAA,oGAAAM,sBAAA,+BAAAC,gCAAA,6CAAAnB,aAAA,oBAAAoB,WAAA,kBAAAC,OAAA,KAAAC,SAAA,KAAAC,SAAA,KAAAC,OAAA,wDAAAC,eAAA,yBAAAzB,aAAA,uBAAA0B,uBAAA,KAAAJ,SAAA,KAAAC,SAAA,KAAAC,OAAA,kMAAAC,eAAA,yBAAAzB,aAAA,uBAAAoB,WAAA,kBAAAM,uBAAA,KAAAJ,SAAA,KAAAC,SAAA,KAAAC,OAAA,sMAAAtB,UAAA,iBAAAyB,KAAA,KAAAC,SAAA,2CAAAC,KAAA,IAAAC,MAAA,IAAAC,aAAA,oBAAAC,MAAA,IAAArC,QAAA,KAAAsC,cAAA,wBAAAJ,KAAA,IAAAC,MAAA,IAAAC,aAAA,oBAAAC,MAAA,IAAAC,cAAA,mDAAAC,OAAA,IAAAC,cAAA,KAAAC,oBAAA,KAAAC,KAAA,KAAAd,SAAA,KAAAe,UAAA,uFAAAC,mBAAA,KAAAjC,0BAAA,wCAAAX"}
|
|
1
|
+
{"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","authToken","businessId","bankAccount","card","email","iframeOrigin","clientId","accountId","submitButtonText","submitButtonEnabled","hasLoadedFonts","isLoading","selectedPaymentMethodType","allowedPaymentMethodTypes","fillBillingForm","enableSubmitButton","loadFontsOnParent","validationMode","internalStyleOverrides","tokenize","validate","resize","singleLine","payments","loading","errorMessage","paging","payouts","legend","billingFields","billingFieldsErrors","fill","getValues","paymentMethodTypes","label","name","error","defaultValue","inputHandler","onFormUpdate","errors","defaultValues","address","formController","representative","business","owners","paymentMethodFormType","paymentMethodFormValidationMode","height","internalValue"],"sources":["../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.0.5 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAKA,MAAMA,EAAe,KAyBjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACnBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACrD,CACI,OAAOC,EAAeJ,EAAK,EC/B/BH,IAAeQ,MAAKC,GAEXC,EAAc,2CAAuC,CAAAC,UAAA,iBAAAC,WAAA,gEAAAC,YAAA,mBAAAC,KAAA,IAAAC,MAAA,IAAAC,aAAA,oBAAAC,SAAA,gBAAAC,UAAA,iBAAAC,iBAAA,yBAAAC,oBAAA,KAAAC,eAAA,KAAAC,UAAA,KAAAC,0BAAA,KAAAC,0BAAA,KAAAC,gBAAA,KAAAC,mBAAA,KAAAC,kBAAA,qHAAAC,eAAA,yBAAAZ,aAAA,uBAAAa,uBAAA,KAAAC,SAAA,KAAAC,SAAA,KAAAC,OAAA,kMAAAJ,eAAA,yBAAAZ,aAAA,uBAAAiB,WAAA,kBAAAJ,uBAAA,KAAAC,SAAA,KAAAC,SAAA,KAAAC,OAAA,sMAAAd,UAAA,iBAAAP,UAAA,iBAAAuB,SAAA,KAAAC,QAAA,KAAAC,aAAA,KAAAC,OAAA,mDAAAnB,UAAA,iBAAAP,UAAA,iBAAA2B,QAAA,KAAAH,QAAA,KAAAC,aAAA,KAAAC,OAAA,mDAAAE,OAAA,OAAAC,cAAA,KAAAC,oBAAA,KAAAC,KAAA,KAAAX,SAAA,KAAAY,UAAA,uFAAAC,mBAAA,KAAArB,0BAAA,gFAAAsB,MAAA,IAAAC,KAAA,IAAAC,MAAA,IAAAC,aAAA,oBAAAC,aAAA,KAAAxC,QAAA,+BAAAoC,MAAA,IAAAC,KAAA,IAAAC,MAAA,IAAAC,aAAA,oBAAAC,aAAA,4DAAAC,aAAA,KAAAC,OAAA,IAAAC,cAAA,qBAAAC,QAAA,8DAAAC,eAAA,KAAAH,OAAA,KAAAC,cAAA,KAAAG,eAAA,2CAAAD,eAAA,KAAAH,OAAA,KAAAC,cAAA,KAAAI,SAAA,qCAAAF,eAAA,KAAAF,cAAA,KAAAD,OAAA,KAAAM,OAAA,0DAAAC,sBAAA,+BAAAC,gCAAA,6CAAA3C,aAAA,oBAAAiB,WAAA,kBAAA2B,OAAA,KAAA9B,SAAA,KAAAC,SAAA,KAAAC,OAAA,2CAAAc,KAAA,IAAAD,MAAA,IAAAG,aAAA,oBAAAD,MAAA,IAAAtC,QAAA,KAAAoD,cAAA,wBAAAf,KAAA,IAAAD,MAAA,IAAAG,aAAA,oBAAAD,MAAA,IAAAc,cAAA,UAAApD"}
|
package/loader/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface CustomElementsDefineOptions {
|
|
|
8
8
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
9
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions):
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
12
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
13
|
|
|
14
14
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justifi/webcomponents",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "JustiFi Web Components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/components/index.js",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"loader/"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"
|
|
24
|
+
"build": "npm run build:prod",
|
|
25
25
|
"build:dev": "NODE_ENV=dev stencil build --docs",
|
|
26
26
|
"build:staging": "NODE_ENV=staging stencil build --docs",
|
|
27
27
|
"build:prod": "NODE_ENV=prod stencil build --docs",
|
|
28
|
-
"start": "NODE_ENV=dev concurrently -c \"bgBlue.bold,bgMagenta.bold,bgGreen.bold\" \"
|
|
28
|
+
"start": "NODE_ENV=dev concurrently --restart-tries 3 -c \"bgBlue.bold,bgMagenta.bold,bgGreen.bold\" \"npm run start-stencil\" \"npm run storybook\"",
|
|
29
29
|
"start-stencil": "stencil build --watch --serve --no-open",
|
|
30
30
|
"test": "stencil test --spec",
|
|
31
31
|
"test:watch": "stencil test --spec --watchAll",
|
|
@@ -34,17 +34,12 @@
|
|
|
34
34
|
"storybook": "storybook dev -p 6006 --quiet",
|
|
35
35
|
"build-storybook": "storybook build -o ../docs"
|
|
36
36
|
},
|
|
37
|
-
"auto-changelog": {
|
|
38
|
-
"output": "../CHANGELOG.md",
|
|
39
|
-
"hideCredtis": "true",
|
|
40
|
-
"commitLimit": "true"
|
|
41
|
-
},
|
|
42
37
|
"dependencies": {
|
|
43
|
-
"@stencil/core": "^
|
|
44
|
-
"@stencil/react-output-target": "^0.3.1",
|
|
38
|
+
"@stencil/core": "^4.0.5",
|
|
45
39
|
"bootstrap": "^5.2.3",
|
|
46
40
|
"date-fns": "^2.29.3",
|
|
47
41
|
"dinero.js": "^1.9.1",
|
|
42
|
+
"rxjs": "^7.8.1",
|
|
48
43
|
"ts-dedent": "^2.2.0",
|
|
49
44
|
"uuid": "^9.0.0",
|
|
50
45
|
"yup": "^1.0.0"
|
|
@@ -54,7 +49,10 @@
|
|
|
54
49
|
"@babel/preset-react": "^7.18.6",
|
|
55
50
|
"@babel/preset-typescript": "^7.21.5",
|
|
56
51
|
"@pxtrn/storybook-addon-docs-stencil": "^6.4.1",
|
|
52
|
+
"@stencil/angular-output-target": "^0.7.1",
|
|
53
|
+
"@stencil/react-output-target": "^0.5.3",
|
|
57
54
|
"@stencil/sass": "^3.0.1",
|
|
55
|
+
"@stencil/store": "^2.0.8",
|
|
58
56
|
"@storybook/addon-actions": "^7.0.4",
|
|
59
57
|
"@storybook/addon-essentials": "^7.0.4",
|
|
60
58
|
"@storybook/addon-interactions": "^7.0.4",
|
|
@@ -67,16 +65,16 @@
|
|
|
67
65
|
"@types/node": "^20.1.4",
|
|
68
66
|
"@types/react": "^18.0.37",
|
|
69
67
|
"@types/react-dom": "^18.0.11",
|
|
70
|
-
"auto-changelog": "^2.4.0",
|
|
71
68
|
"concurrently": "^7.6.0",
|
|
69
|
+
"dotenv": "^16.3.1",
|
|
72
70
|
"jest": "^27.4.5",
|
|
73
71
|
"jest-cli": "^27.4.5",
|
|
74
72
|
"puppeteer": "^10.0.0",
|
|
75
73
|
"react": "^18.2.0",
|
|
76
74
|
"react-dom": "^18.2.0",
|
|
77
|
-
"release-it": "^15.6.0",
|
|
78
75
|
"rollup-plugin-replace": "^2.2.0",
|
|
79
76
|
"storybook": "^7.0.4"
|
|
80
77
|
},
|
|
81
|
-
"license": "MIT"
|
|
82
|
-
|
|
78
|
+
"license": "MIT",
|
|
79
|
+
"gitHead": "b4a27ae97f388055de75c78f0e1d8924b90d6754"
|
|
80
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
### Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
|
4
|
-
|
|
5
|
-
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
|
-
|
|
7
|
-
#### 4.2.0
|
|
8
|
-
|
|
9
|
-
> 27 June 2023
|
|
10
|
-
|
|
11
|
-
- Add `resize` method to `CardForm` and `BankAccount` form
|
|
12
|
-
|
|
13
|
-
#### 4.1.6
|
|
14
|
-
|
|
15
|
-
> 23 June 2023
|
|
16
|
-
|
|
17
|
-
- Add spinner indicator when `PaymmentForm` is submitting.
|
|
18
|
-
- Add `--jfi-submit-button-color-loading`, `--jfi-submit-button-background-color-loading` and `--jfi-submit-button-border-color-loading` variables to style the new loading state.
|
|
19
|
-
|
|
20
|
-
#### 4.0.0
|
|
21
|
-
|
|
22
|
-
> 08 May 2023
|
|
23
|
-
|
|
24
|
-
- Changed: `CardForm.tokenize`, `BankAccountForm.tokenize` and `PaymentForm.submitted` will now return the full response from the `payment_methods` endpoint instead of just `errors` or `token`. See the API documentation to see payment method CREATE sample responses: https://developer.justifi.ai/tag/Payment-Methods#operation/CreatePaymentMethod
|
|
25
|
-
|
|
26
|
-
Migration notes:
|
|
27
|
-
|
|
28
|
-
- Errors - instead of getting errors via `data.errors[0]`, which was an error code, you will now need to use `data.error.code`. There is also now a human readable message (`data.error.message`)
|
|
29
|
-
- Success/created payment method - instead of getting the token via `data.token`, it is nested within a full payment method response. In order to get the token you will need to use `data.card.token` or `data.bank_account.token` depending on what payment method type is being tokenized
|
|
30
|
-
|
|
31
|
-
#### 3.3.5
|
|
32
|
-
|
|
33
|
-
> 11 May 2023
|
|
34
|
-
|
|
35
|
-
- Add `:active` state to Submit button for `PaymentForm`
|
|
36
|
-
|
|
37
|
-
#### 3.2.5
|
|
38
|
-
|
|
39
|
-
> 11 May 2023
|
|
40
|
-
|
|
41
|
-
- Add styling and variables for radio buttons and submit button in `PaymentForm`
|
|
42
|
-
|
|
43
|
-
#### 3.1.5
|
|
44
|
-
|
|
45
|
-
> 04 May 2023
|
|
46
|
-
|
|
47
|
-
- Add missing dependencies.
|
|
48
|
-
|
|
49
|
-
#### 3.1.4
|
|
50
|
-
|
|
51
|
-
> 04 May 2023
|
|
52
|
-
|
|
53
|
-
- Fix missing url to show recently added introduction page.
|
|
54
|
-
|
|
55
|
-
#### 3.0.4
|
|
56
|
-
|
|
57
|
-
> 08 May 2023
|
|
58
|
-
|
|
59
|
-
- Add Storybook landing page with general info
|
|
60
|
-
|
|
61
|
-
#### 3.0.3
|
|
62
|
-
|
|
63
|
-
> 04 May 2023
|
|
64
|
-
|
|
65
|
-
- Fix unscoped reset styles issue, where bootstrap \_reboot.scss was being included in webcomponents.css
|
|
66
|
-
|
|
67
|
-
#### 3.0.2
|
|
68
|
-
|
|
69
|
-
> 04 May 2023
|
|
70
|
-
|
|
71
|
-
- Fix output pointing to empty file for stencil dist.
|
|
72
|
-
|
|
73
|
-
#### 3.0.1
|
|
74
|
-
|
|
75
|
-
> 3 May 2023
|
|
76
|
-
|
|
77
|
-
- Fix type error where `contentWindow` is `undefined`
|
|
78
|
-
|
|
79
|
-
#### 3.0.0
|
|
80
|
-
|
|
81
|
-
> 27 April 2023
|
|
82
|
-
|
|
83
|
-
- Remove `submit` method
|
|
84
|
-
- Add internal submit button with disabled state
|
|
85
|
-
- Add `submitted` event and emit when form is submitted and a response comes back from payment methods endpoint
|
|
86
|
-
|
|
87
|
-
#### 2.0.2
|
|
88
|
-
|
|
89
|
-
> 25 April 2023
|
|
90
|
-
|
|
91
|
-
- Improved documentation for `BankAccountForm`
|
|
92
|
-
- Improved documentation for `CardForm`
|
|
93
|
-
- Fix how controls and props are displayed and work for `CardForm`
|
|
94
|
-
|
|
95
|
-
#### 2.0.1
|
|
96
|
-
|
|
97
|
-
> 24 April 2023
|
|
98
|
-
|
|
99
|
-
- Fix: PaymentForm submit action in storybook
|
|
100
|
-
- Fix: include input-invalid css parts, and export them
|
|
101
|
-
|
|
102
|
-
#### 2.0.0
|
|
103
|
-
|
|
104
|
-
> 24 April 2023
|
|
105
|
-
|
|
106
|
-
- Remove prop `styleOverrides` from `CardForm`, `BankAccountForm` and `PaymentMethodForm` components
|
|
107
|
-
- Add CSS variable theming for `CardForm`, `BankAccountForm`, `PaymentMethodForm` and `PaymentForm`
|
|
108
|
-
- Add CSS `part` and `exportparts` to `TextInput` and `SelectInput`
|
|
109
|
-
- Add `exportparts` to `BillingForm` so that `TextInput` and `SelectInput` CSS `exportparts` are forwarded
|
|
110
|
-
|
|
111
|
-
#### 1.0.0
|
|
112
|
-
|
|
113
|
-
> 24 April 2023
|
|
114
|
-
|
|
115
|
-
- Fix broken prop controller in Storybook UI for card-form component
|
|
116
|
-
- rename variable `validationStrategy` and prop `validation-strategy` to `validationMode` and `validation-mode` respectively
|
|
117
|
-
|
|
118
|
-
#### 0.6.1
|
|
119
|
-
|
|
120
|
-
> 24 April 2023
|
|
121
|
-
|
|
122
|
-
- Remove hardcoded `iframeOrigin` from `PaymentForm` story
|
|
123
|
-
|
|
124
|
-
#### 0.6.0
|
|
125
|
-
|
|
126
|
-
> 21 April 2023
|
|
127
|
-
|
|
128
|
-
- Add `@stencil/sass` plugin `stencil-library`
|
|
129
|
-
- Add Twitter Bootstrap to `stencil-library`
|
|
130
|
-
- Add Bootstrap styling to `TextInput`, `SelectInput`, `BillingForm`, `PaymentForm`, and `PaymentMethodSelector`
|
|
131
|
-
|
|
132
|
-
#### 0.5.0
|
|
133
|
-
|
|
134
|
-
> 21 April 2023
|
|
135
|
-
|
|
136
|
-
- Allow `singleLine` to be passed to `CardForm` to render a single-line variant of `CardForm`
|
|
137
|
-
|
|
138
|
-
#### 0.4.0
|
|
139
|
-
|
|
140
|
-
> 18 April 2023
|
|
141
|
-
|
|
142
|
-
- Allow `legend` to be passed and conditionally rendered for `BillingForm`
|
|
143
|
-
|
|
144
|
-
#### 0.3.2
|
|
145
|
-
|
|
146
|
-
> 12 April 2023
|
|
147
|
-
|
|
148
|
-
- Add `PaymentForm` component
|
|
149
|
-
- Allow `iframeOrigin` to be passed to `PaymentForm`, `CardForm`, `BankAccountForm`, and `PaymentMethodForm`
|
|
150
|
-
|
|
151
|
-
#### 0.2.2
|
|
152
|
-
|
|
153
|
-
> 6 April 2023
|
|
154
|
-
|
|
155
|
-
- Update documentation and documentation examples to use cdn.jsdelivr instead of unpkg
|
|
156
|
-
|
|
157
|
-
#### 0.2.1
|
|
158
|
-
|
|
159
|
-
> 28 March 2023
|
|
160
|
-
|
|
161
|
-
- Pass component version along to tokenize calls so that it can be used in error reporting
|
|
162
|
-
|
|
163
|
-
#### 0.2.0
|
|
164
|
-
|
|
165
|
-
> 13 March 2023
|
|
166
|
-
|
|
167
|
-
- Add BillingForm component poc
|
|
168
|
-
- Add TextInput component
|
|
169
|
-
- Add SelectInput component
|
|
170
|
-
|
|
171
|
-
#### 0.1.15
|
|
172
|
-
|
|
173
|
-
> 14 February 2023
|
|
174
|
-
|
|
175
|
-
- FE-48 Add the LICENSE [`#26`](https://github.com/justifi-tech/web-component-library/pull/26)
|
|
176
|
-
- update PR templates main README, and add changelogs [`#23`](https://github.com/justifi-tech/web-component-library/pull/23)
|
|
177
|
-
- Yarn upgrade [`#22`](https://github.com/justifi-tech/web-component-library/pull/22)
|
|
178
|
-
- Add missing properties to theme [`#21`](https://github.com/justifi-tech/web-component-library/pull/21)
|
|
179
|
-
- Bump decode-uri-component from 0.2.0 to 0.2.2 in /react-library [`#6`](https://github.com/justifi-tech/web-component-library/pull/6)
|
|
180
|
-
- Update examples to include payment method metadata and code comments [`#19`](https://github.com/justifi-tech/web-component-library/pull/19)
|
|
181
|
-
- Check for styleOverrides before attempting to parse [`#18`](https://github.com/justifi-tech/web-component-library/pull/18)
|
|
182
|
-
- Update README files [`#17`](https://github.com/justifi-tech/web-component-library/pull/17)
|
|
183
|
-
- Update READMEs and release new react-library version [`#16`](https://github.com/justifi-tech/web-component-library/pull/16)
|
|
184
|
-
- Allow styleOverrides to be passed into cardForm and bankAccountForm [`#15`](https://github.com/justifi-tech/web-component-library/pull/15)
|
|
185
|
-
- FE-18: Iframe content height reporting [`#14`](https://github.com/justifi-tech/web-component-library/pull/14)
|
|
186
|
-
- Update web component props for `v2` payments-js [`#13`](https://github.com/justifi-tech/web-component-library/pull/13)
|
|
187
|
-
- Fix react components [`#11`](https://github.com/justifi-tech/web-component-library/pull/11)
|
|
188
|
-
- Fix card form component events [`#10`](https://github.com/justifi-tech/web-component-library/pull/10)
|
|
189
|
-
- Eng-2080: Add bank account web component [`#7`](https://github.com/justifi-tech/web-component-library/pull/7)
|
|
190
|
-
- ENG-1960 publish libraries to npmjs.org [`#4`](https://github.com/justifi-tech/web-component-library/pull/4)
|
|
191
|
-
- Package & Publish libraries [`#3`](https://github.com/justifi-tech/web-component-library/pull/3)
|
|
192
|
-
- Restructure project and link react and stencil libraries [`#2`](https://github.com/justifi-tech/web-component-library/pull/2)
|
|
193
|
-
- Terraform and GitHub Actions [`#1`](https://github.com/justifi-tech/web-component-library/pull/1)
|
|
194
|
-
- init [`27806f7`](https://github.com/justifi-tech/web-component-library/commit/27806f7bff97247033800c7743570ebeec4080d7)
|
|
195
|
-
- add: release-it package [`e0b3711`](https://github.com/justifi-tech/web-component-library/commit/e0b371184774dd7dead0243cd645640175d6b87f)
|
|
196
|
-
- initial commit [`c147b58`](https://github.com/justifi-tech/web-component-library/commit/c147b580aaf95eb22ffe6ad9b0217954890dd1d4)
|
package/changelog-template.hbs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"Api-11362403.js","mappings":";;AAAA;AACA;AACA;AACA,IAAI,eAAe,CAAC;AACpB,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;AAClB,SAAS,GAAG,GAAG;AAC9B;AACA,EAAE,IAAI,CAAC,eAAe,EAAE;AACxB;AACA,IAAI,eAAe,GAAG,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,eAAe,IAAI,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACrH;AACA,IAAI,IAAI,CAAC,eAAe,EAAE;AAC1B,MAAM,MAAM,IAAI,KAAK,CAAC,0GAA0G,CAAC,CAAC;AAClI,KAAK;AACL,GAAG;AACH;AACA,EAAE,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;AAChC;;AChBA;AACA;AACA;AACA;AACA;AACA,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB;AACA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,EAAE;AAC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AAO,CAAC,QAAgB,EAAE,MAAY,EAAE,MAAoB;IACzE,OAAO,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;GAC9D;EAED,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AACvC,EAAE;AAEF,SAAS,WAAW,CAAC,UAAkB;EACrC,OAAO,CAAC,KAAK,CAAC,uBAAuB,UAAU,EAAE,CAAC,CAAC;AACrD;;;;","names":["uuidv4"],"sources":["./node_modules/uuid/dist/esm-browser/rng.js","./node_modules/uuid/dist/esm-browser/stringify.js","./node_modules/uuid/dist/esm-browser/native.js","./node_modules/uuid/dist/esm-browser/v4.js","./src/api/Api.ts"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;","import { v4 as uuidv4 } from 'uuid';\nimport { IPagination } from './Pagination';\n\nexport interface IApiResponse<T> {\n data: T;\n error?: IErrorObject | IServerError;\n page_info?: IPagination;\n errors?: string[];\n id: number;\n type: string;\n}\n\nexport type IServerError = string;\n\nexport interface IErrorObject {\n message: string;\n code: string;\n param?: string;\n}\n\nexport interface IApiResponseCollection<T> extends IApiResponse<T> {\n page_info: IPagination;\n}\n\nconst Api = (authToken: string) => {\n const apiOrigin = 'https://justifi.ai';\n\n async function getAuthorizationHeader() {\n return {\n 'Authorization': `Bearer ${authToken}`,\n 'Idempotency-Key': uuidv4(),\n 'Content-Type': 'application/json',\n };\n }\n\n async function makeRequest(endpoint: string, method: string, params?: any, body?: any, signal?: AbortSignal) {\n const url = `${apiOrigin}/v1/${endpoint}`;\n const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;\n const response = await fetch(requestUrl, {\n method: method,\n headers: await getAuthorizationHeader(),\n body: body,\n signal: signal,\n });\n\n if (response) {\n return response.status === 204 ? {} : response.json();\n }\n handleError(requestUrl);\n }\n\n async function get(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'GET', params, null, signal);\n }\n\n async function post(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'POST', params, body, signal);\n }\n\n async function patch(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'PATCH', params, body, signal);\n }\n\n async function destroy(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'DELETE', params, null, signal);\n }\n\n return { get, post, patch, destroy };\n};\n\nfunction handleError(requestUrl: string): void {\n console.error(`Error fetching from ${requestUrl}`);\n}\n\nexport default Api;\n"],"version":3}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var CaptureStrategy;
|
|
4
|
-
(function (CaptureStrategy) {
|
|
5
|
-
CaptureStrategy["automatic"] = "automatic";
|
|
6
|
-
CaptureStrategy["manual"] = "manual";
|
|
7
|
-
})(CaptureStrategy || (CaptureStrategy = {}));
|
|
8
|
-
exports.PaymentMethodTypes = void 0;
|
|
9
|
-
(function (PaymentMethodTypes) {
|
|
10
|
-
PaymentMethodTypes["card"] = "card";
|
|
11
|
-
PaymentMethodTypes["bankAccount"] = "bankAccount";
|
|
12
|
-
})(exports.PaymentMethodTypes || (exports.PaymentMethodTypes = {}));
|
|
13
|
-
var PaymentStatuses;
|
|
14
|
-
(function (PaymentStatuses) {
|
|
15
|
-
PaymentStatuses["pending"] = "pending";
|
|
16
|
-
PaymentStatuses["authorized"] = "authorized";
|
|
17
|
-
PaymentStatuses["succeeded"] = "succeeded";
|
|
18
|
-
PaymentStatuses["failed"] = "failed";
|
|
19
|
-
PaymentStatuses["disputed"] = "disputed";
|
|
20
|
-
PaymentStatuses["fully_refunded"] = "fully_refunded";
|
|
21
|
-
PaymentStatuses["partially_refunded"] = "partially_refunded";
|
|
22
|
-
})(PaymentStatuses || (PaymentStatuses = {}));
|
|
23
|
-
var PaymentDisputedStatuses;
|
|
24
|
-
(function (PaymentDisputedStatuses) {
|
|
25
|
-
// if a dispute is 'won', we don't show a dispute status, just general status
|
|
26
|
-
PaymentDisputedStatuses["lost"] = "lost";
|
|
27
|
-
PaymentDisputedStatuses["open"] = "open";
|
|
28
|
-
})(PaymentDisputedStatuses || (PaymentDisputedStatuses = {}));
|
|
29
|
-
class Payment {
|
|
30
|
-
constructor(payment) {
|
|
31
|
-
this.id = payment.id;
|
|
32
|
-
this.account_id = payment.account_id;
|
|
33
|
-
this.amount = payment.amount;
|
|
34
|
-
this.amount_disputed = payment.amount_disputed;
|
|
35
|
-
this.amount_refundable = payment.amount_refundable;
|
|
36
|
-
this.amount_refunded = payment.amount_refunded;
|
|
37
|
-
this.balance = payment.balance;
|
|
38
|
-
this.captured = payment.captured;
|
|
39
|
-
this.capture_strategy = payment.capture_strategy;
|
|
40
|
-
this.currency = payment.currency;
|
|
41
|
-
this.description = payment.description;
|
|
42
|
-
this.disputed = payment.disputed;
|
|
43
|
-
this.disputes = payment.disputes;
|
|
44
|
-
this.error_code = payment.error_code;
|
|
45
|
-
this.error_description = payment.error_description;
|
|
46
|
-
this.fee_amount = payment.fee_amount;
|
|
47
|
-
this.is_test = payment.is_test;
|
|
48
|
-
this.metadata = payment.metadata;
|
|
49
|
-
this.payment_method = payment.payment_method;
|
|
50
|
-
this.payment_intent_id = payment.payment_intent_id;
|
|
51
|
-
this.refunded = payment.refunded;
|
|
52
|
-
this.status = payment.status;
|
|
53
|
-
this.created_at = payment.created_at;
|
|
54
|
-
this.updated_at = payment.updated_at;
|
|
55
|
-
}
|
|
56
|
-
get disputedStatus() {
|
|
57
|
-
const lost = this.disputes.some(dispute => dispute.status === PaymentDisputedStatuses.lost);
|
|
58
|
-
// if a dispute is 'won', we don't show a dispute status, just general status
|
|
59
|
-
if (!this.disputed) {
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
else if (lost) {
|
|
63
|
-
return PaymentDisputedStatuses.lost;
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return PaymentDisputedStatuses.open;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
exports.Payment = Payment;
|
|
72
|
-
|
|
73
|
-
//# sourceMappingURL=Payment-ac4dea02.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"Payment-ac4dea02.js","mappings":";;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;EACzB,0CAAuB,CAAA;EACvB,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAEWA;AAAZ,WAAY,kBAAkB;EAC5B,mCAAa,CAAA;EACb,iDAA2B,CAAA;AAC7B,CAAC,EAHWA,0BAAkB,KAAlBA,0BAAkB,QAG7B;AAED,IAAY,eAQX;AARD,WAAY,eAAe;EACzB,sCAAmB,CAAA;EACnB,4CAAyB,CAAA;EACzB,0CAAuB,CAAA;EACvB,oCAAiB,CAAA;EACjB,wCAAqB,CAAA;EACrB,oDAAiC,CAAA;EACjC,4DAAyC,CAAA;AAC3C,CAAC,EARW,eAAe,KAAf,eAAe,QAQ1B;AAED,IAAY,uBAIX;AAJD,WAAY,uBAAuB;;EAEjC,wCAAa,CAAA;EACb,wCA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,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IACjC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC7B,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACrC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;GACtC;EAED,IAAI,cAAc;IAChB,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,uBAAuB,CAAC,IAAI,CAAC,CAAC;;IAE5F,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAClB,OAAO,IAAI,CAAC;KACb;SAAM,IAAI,IAAI,EAAE;MACf,OAAO,uBAAuB,CAAC,IAAI,CAAC;KACrC;SAAM;MACL,OAAO,uBAAuB,CAAC,IAAI,CAAC;KACrC;GACF;;;;;","names":["PaymentMethodTypes"],"sources":["./src/api/Payment.ts"],"sourcesContent":["export enum CaptureStrategy {\n automatic = 'automatic',\n manual = 'manual',\n}\n\nexport enum PaymentMethodTypes {\n card = 'card',\n bankAccount = 'bankAccount',\n}\n\nexport enum PaymentStatuses {\n pending = 'pending',\n authorized = 'authorized',\n succeeded = 'succeeded',\n failed = 'failed',\n disputed = 'disputed',\n fully_refunded = 'fully_refunded',\n partially_refunded = 'partially_refunded',\n}\n\nexport enum PaymentDisputedStatuses {\n // if a dispute is 'won', we don't show a dispute status, just general status\n lost = 'lost',\n open = 'open',\n}\n\nexport interface IPaymentMethod {\n card?: ICard;\n}\n\nexport type CardBrand = 'american_express' | 'diners_club' | 'discover' | 'jcb' | 'mastercard' | 'china_unionpay' | 'visa' | 'unknown';\n\nexport interface ICard {\n id: string;\n acct_last_four: string;\n name: string;\n brand: CardBrand;\n token: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface IDispute {\n amount_cents: number;\n created_at: string;\n currency: string;\n gateway_ref_id: string;\n id: string;\n payment_id: string;\n reason: null;\n status: string;\n updated_at: string;\n}\n\nexport interface IPayment {\n id: string;\n account_id: string;\n amount: number;\n amount_disputed: number;\n amount_refundable: number;\n amount_refunded: number;\n balance: number;\n captured: boolean;\n capture_strategy: CaptureStrategy;\n currency: 'usd';\n description: string;\n disputed: boolean;\n disputes: IDispute[];\n error_code: string | null;\n error_description: string | null;\n fee_amount: number;\n is_test: boolean;\n metadata: Object | null;\n payment_method: IPaymentMethod;\n payment_intent_id: string | null;\n refunded: boolean;\n status: PaymentStatuses;\n created_at: string;\n updated_at: string;\n}\n\nexport class Payment implements IPayment {\n public id: string;\n public account_id: string;\n public amount: number;\n public amount_disputed: number;\n public amount_refundable: number;\n public amount_refunded: number;\n public balance: number;\n public captured: boolean;\n public capture_strategy: CaptureStrategy;\n public currency: 'usd';\n public description: string;\n public disputed: boolean;\n public disputes: IDispute[];\n public error_code: string | null;\n public error_description: string | null;\n public fee_amount: number;\n public is_test: boolean;\n public metadata: Object | null;\n public payment_method: IPaymentMethod;\n public payment_intent_id: string | null;\n public refunded: boolean;\n public status: PaymentStatuses;\n public created_at: string;\n public updated_at: string;\n\n constructor(payment: IPayment) {\n this.id = payment.id;\n this.account_id = payment.account_id;\n this.amount = payment.amount;\n this.amount_disputed = payment.amount_disputed;\n this.amount_refundable = payment.amount_refundable;\n this.amount_refunded = payment.amount_refunded;\n this.balance = payment.balance;\n this.captured = payment.captured;\n this.capture_strategy = payment.capture_strategy;\n this.currency = payment.currency;\n this.description = payment.description;\n this.disputed = payment.disputed;\n this.disputes = payment.disputes;\n this.error_code = payment.error_code;\n this.error_description = payment.error_description;\n this.fee_amount = payment.fee_amount;\n this.is_test = payment.is_test;\n this.metadata = payment.metadata;\n this.payment_method = payment.payment_method;\n this.payment_intent_id = payment.payment_intent_id;\n this.refunded = payment.refunded;\n this.status = payment.status;\n this.created_at = payment.created_at;\n this.updated_at = payment.updated_at;\n }\n\n get disputedStatus(): PaymentDisputedStatuses | null {\n const lost = this.disputes.some(dispute => dispute.status === PaymentDisputedStatuses.lost);\n // if a dispute is 'won', we don't show a dispute status, just general status\n if (!this.disputed) {\n return null;\n } else if (lost) {\n return PaymentDisputedStatuses.lost;\n } else {\n return PaymentDisputedStatuses.open;\n }\n }\n}\n"],"version":3}
|