@solvimon/solvimon-web 0.1.0-alpha.17 → 0.1.0-alpha.19
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/README.md +91 -50
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js +1 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs +241 -0
- package/dist/Amount.vue.es-CRG-6dps.mjs +23 -0
- package/dist/Amount.vue.es-CeW8S7kT.js +1 -0
- package/dist/Avatar.vue.es-ClUBm_l5.js +1 -0
- package/dist/Avatar.vue.es-DJp6NEU_.mjs +91 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BrPsTuoW.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BUMK11Dw.mjs} +15 -7
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DzrInCPA.js +1 -0
- package/dist/Button.vue.es-BrWHdiEA.mjs +453 -0
- package/dist/Button.vue.es-aLcIdATK.js +1 -0
- package/dist/Chip.vue.es-DPGTweAr.mjs +164 -0
- package/dist/Chip.vue.es-q4c-DXXl.js +1 -0
- package/dist/Comparators.vue.es-CU32AC4n.mjs +120 -0
- package/dist/Comparators.vue.es-CfVGYJ_x.js +1 -0
- package/dist/ContextMenu.vue.es-BBPFQfqY.mjs +681 -0
- package/dist/ContextMenu.vue.es-C_TL7-kg.js +1 -0
- package/dist/CustomerBillingInformation.vue.es-CLmXk5B9.mjs +175 -0
- package/dist/CustomerBillingInformation.vue.es-s-LYXA4T.js +1 -0
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +1 -0
- package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +4 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CuWrBcoK.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs} +17 -10
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs +3261 -0
- package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
- package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
- package/dist/DividerText.vue.es-D5ieOE1e.js +1 -0
- package/dist/DividerText.vue.es-DMg-DNgi.mjs +72 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js +1 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs +562 -0
- package/dist/ErrorNotification.vue.es-BX3khKFc.js +1 -0
- package/dist/ErrorNotification.vue.es-C22Kt8Qn.mjs +30 -0
- package/dist/Expand.vue.es-C-lnbA1v.js +1 -0
- package/dist/Expand.vue.es-C4_XmqbR.mjs +50 -0
- package/dist/FormMessage.vue.es-DFQXxiSC.mjs +46 -0
- package/dist/FormMessage.vue.es-LeWoj774.js +1 -0
- package/dist/IconButton.vue.es-CVFn0Ntj.js +1 -0
- package/dist/IconButton.vue.es-DcC4f5EQ.mjs +231 -0
- package/dist/IconTitle.vue.es-DoN4GVde.js +1 -0
- package/dist/IconTitle.vue.es-mQCMxc64.mjs +105 -0
- package/dist/Input.vue.es-C8VhMKuI.js +1 -0
- package/dist/Input.vue.es-Dp_RH03h.mjs +239 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-wxP5IaGt.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-56fy6uY6.mjs} +2 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CLUcV3qa.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-flgEyaoj.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-ztaMeHQc.mjs +49 -0
- package/dist/InvoiceSummary.vue.es-emE-mCFh.js +1 -0
- package/dist/InvoiceSummary.vue.es-nCYeQ4tj.mjs +2558 -0
- package/dist/Modal.vue.es-5EpA4Q0t.mjs +367 -0
- package/dist/Modal.vue.es-CX5geho3.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B_IIOBjg.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs +155 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs +54 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js +1 -0
- package/dist/{PaymentHistoryBlock-BitwS9Re.mjs → PaymentHistoryBlock-Dejtgyos.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-ZtmPXXwI.js → PaymentHistoryBlock-RBxlC5xt.js} +1 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BdfWchcQ.js +1 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3ZUDUdw.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs} +5 -1
- package/dist/{PaymentIntegrationForm-BZTzCUiu.js → PaymentIntegrationForm-BWr7iyU6.js} +1 -1
- package/dist/{PaymentIntegrationForm-BK2aLPCo.mjs → PaymentIntegrationForm-CbqfAdkc.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs +149 -0
- package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +1 -0
- package/dist/PaymentIntegrationFormAdyen-CuRwe9_9.mjs +691 -0
- package/dist/PaymentIntegrationFormStripe-51KZc27R.js +1 -0
- package/dist/PaymentIntegrationFormStripe-JZw2m1kJ.mjs +545 -0
- package/dist/PaymentMethod.vue.es-CH__kPw4.mjs +636 -0
- package/dist/PaymentMethod.vue.es-uVZO0Zju.js +1 -0
- package/dist/PaymentMethodForm-C5WqTDow.mjs +4 -0
- package/dist/PaymentMethodForm-CBjHdZT7.js +1 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-CIQ0vsko.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs} +5 -2
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DVeB_mqK.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs} +80 -30
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js +1 -0
- package/dist/PricingGroupRangeInput.vue.es-A6eW-u2k.mjs +636 -0
- package/dist/PricingGroupRangeInput.vue.es-BuQeJCEX.js +1 -0
- package/dist/Section.vue.es-MEFUWCxU.mjs +79 -0
- package/dist/Section.vue.es-tLYXp-tF.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs +1050 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs +6105 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js +1 -0
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3cqlbGY.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs} +17 -63
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CTnTWaB8.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BDqX6OaE.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs} +8 -5
- package/dist/TooltipParagraph.vue.es-B5aHQv9O.mjs +136 -0
- package/dist/TooltipParagraph.vue.es-fSwKGXKg.js +1 -0
- package/dist/TrialChip.vue.es-0nrqSZeY.js +1 -0
- package/dist/TrialChip.vue.es-Fp7Lqo-b.mjs +56 -0
- package/dist/adyen-BMDZQBUG.js +1 -0
- package/dist/{url-BjZ1Pg0l.mjs → adyen-Ba-mF3Jy.mjs} +31 -73
- package/dist/api.es-C5pe8LUl.mjs +62 -0
- package/dist/api.es-Czekkp_X.js +1 -0
- package/dist/cn.es-BLHlMR4Y.js +1 -0
- package/dist/cn.es-DB5pDpxS.mjs +3298 -0
- package/dist/comparators.es-9VsCB-JI.mjs +175 -0
- package/dist/comparators.es-wrKHduVq.js +1 -0
- package/dist/component-BG6DmXcy.mjs +9 -0
- package/dist/component-hDuDTBt5.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -0
- package/dist/components/BillingInformation/{BillingInformation.es.js → BillingInformation.mjs} +15 -26
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -0
- package/dist/components/BillingInformationForm/{BillingInformationForm.es.js → BillingInformationForm.mjs} +42 -128
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -0
- package/dist/components/CustomerPaymentMethods/{CustomerPaymentMethods.es.js → CustomerPaymentMethods.mjs} +18 -51
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
- package/dist/components/Invoice/Invoice.cjs +1 -0
- package/dist/components/Invoice/{Invoice.es.js → Invoice.mjs} +73 -79
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -0
- package/dist/components/InvoiceDetails/{InvoiceDetails.es.js → InvoiceDetails.mjs} +12 -24
- package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +73 -0
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -0
- package/dist/components/InvoicesList/{InvoicesList.es.js → InvoicesList.mjs} +12 -24
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -0
- package/dist/components/PaymentHistory/{PaymentHistory.es.js → PaymentHistory.mjs} +12 -24
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -0
- package/dist/components/PaymentMethodForm/{PaymentMethodForm.es.js → PaymentMethodForm.mjs} +15 -27
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -0
- package/dist/components/SubscriptionSchedules/{SubscriptionSchedules.es.js → SubscriptionSchedules.mjs} +13 -25
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -0
- package/dist/components/SubscriptionsList/{SubscriptionsList.es.js → SubscriptionsList.mjs} +22 -53
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -0
- package/dist/components/WalletBalances/{WalletBalances.es.js → WalletBalances.mjs} +31 -29
- package/dist/configuration-BjYwV4_B.js +1 -0
- package/dist/configuration-CD8cOXAJ.mjs +15 -0
- package/dist/core/action-request.types.d.ts +1 -67
- package/dist/core/configuration.d.ts +1 -3
- package/dist/core/index.cjs +1 -0
- package/dist/core/index.d.ts +1 -11
- package/dist/core/index.mjs +197 -0
- package/dist/core/registry.ce.d.ts +1 -2
- package/dist/core/registry.d.ts +1 -6
- package/dist/core/types.d.ts +1 -121
- package/dist/countryData.es--zJAd6LA.mjs +252 -0
- package/dist/countryData.es-D3MFzU92.js +1 -0
- package/dist/customElements-BTJzBHMy.js +1 -0
- package/dist/customElements-DdFA__me.mjs +6729 -0
- package/dist/{customer-DAgdegIW.mjs → customer-B0AMetq6.mjs} +1 -1
- package/dist/customer-D7HUfF3j.js +1 -0
- package/dist/customer.es-C_vSWcVA.mjs +30 -0
- package/dist/customer.es-D42Md24r.js +1 -0
- package/dist/en-US-BSrbFk5W.js +1 -0
- package/dist/en-US-D0P7NNNZ.mjs +228 -0
- package/dist/{en-US-DSzSbgL5.mjs → en-US-Daw3v6GD.mjs} +60 -30
- package/dist/en-US-scSQQXK8.js +1 -0
- package/dist/error-Cg-i7gGl.js +1 -0
- package/dist/error-DY_I2hPx.mjs +13 -0
- package/dist/floating-ui.vue.es-Bv94BfDm.js +1 -0
- package/dist/floating-ui.vue.es-DWY7pdz8.mjs +1573 -0
- package/dist/formatting.es-9hM8aHSg.js +1 -0
- package/dist/formatting.es-D-oVnc8H.mjs +68 -0
- package/dist/getComposedString.es-CELkn0I7.mjs +14 -0
- package/dist/getComposedString.es-DvSNX-_z.js +1 -0
- package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
- package/dist/index-BJ3dHkSK.js +1 -0
- package/dist/index-C5bKRt7l.mjs +1069 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -17
- package/dist/index.es-0cystq8F.mjs +542 -0
- package/dist/index.es-2JWHHSgP.js +1 -0
- package/dist/index.mjs +42 -0
- package/dist/{invoices-BXDgW8ch.mjs → invoices-BSd-nKeE.mjs} +17 -16
- package/dist/invoices-BiqM6xN6.js +1 -0
- package/dist/{nl-NL-Li7RW89R.mjs → nl-NL-B4zEBFTw.mjs} +60 -52
- package/dist/nl-NL-B5tuyIOM.mjs +88 -0
- package/dist/nl-NL-Bs3d8q6T.js +1 -0
- package/dist/nl-NL-DIAZWDF9.js +1 -0
- package/dist/object.es-DFXiU9p3.js +1 -0
- package/dist/object.es-jvvnR8Kr.mjs +12 -0
- package/dist/{paymentMethods-xzFD2L30.mjs → paymentMethods-BsrkEbKT.mjs} +23 -19
- package/dist/paymentMethods-Cu2RzLgm.js +1 -0
- package/dist/{payments-DV6csRej.mjs → payments-B6Nfd6Al.mjs} +1 -1
- package/dist/payments-Bbm1HMQj.js +1 -0
- package/dist/pricing-3W7XLwL6.js +1 -0
- package/dist/pricing-CJxS2hr2.mjs +17 -0
- package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +107 -0
- package/dist/pricingItemConfigs.es-C73cQlxQ.js +1 -0
- package/dist/{pricingPlanSchedule-C_cqUyTk.mjs → pricingPlanSchedule-CXG3CQ61.mjs} +3 -1
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
- package/dist/screens/Checkout/Checkout.cjs +1 -0
- package/dist/screens/Checkout/{Checkout.es.js → Checkout.mjs} +1271 -630
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -0
- package/dist/screens/CustomerOverview/{CustomerOverview.es.js → CustomerOverview.mjs} +54 -81
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -3
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -0
- package/dist/screens/PayInvoice/{PayInvoice.es.js → PayInvoice.mjs} +41 -32
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -3
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -0
- package/dist/screens/PaymentMethodsManagement/{PaymentMethodsManagement.es.js → PaymentMethodsManagement.mjs} +35 -37
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -3
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +885 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -3
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -0
- package/dist/screens/SubscriptionManagement/{SubscriptionManagement.es.js → SubscriptionManagement.mjs} +45 -63
- package/dist/slots.es-BpwYO3A3.mjs +18 -0
- package/dist/slots.es-Dq1PTUOv.js +1 -0
- package/dist/sorting.es-CjTrRfSW.mjs +105 -0
- package/dist/sorting.es-RyvcgbSL.js +1 -0
- package/dist/{subscription-B4dBAY9C.mjs → subscription-C41lG-rH.mjs} +1 -1
- package/dist/subscriptions-B4BOzLxR.js +1 -0
- package/dist/subscriptions-C2C4WTuI.mjs +58 -0
- package/dist/typeGuards.es-C4nR5FkL.js +1 -0
- package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +19 -0
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
- package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +8 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +24 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +32 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +12 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +14 -0
- package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +74 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +9 -0
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +3 -0
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +21 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +10 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +5 -0
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +72 -0
- package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +61 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +53 -0
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +8 -0
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +17 -0
- package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +8 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +10 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +22 -0
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +17 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +12 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +24 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +40 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
- package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +3 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +15 -0
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +21 -0
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +18 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +9 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/index.d.ts +9 -0
- package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
- package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
- package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
- package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +7 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +65 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +12 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +47 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +28 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +33 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
- package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +56 -0
- package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
- package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
- package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +23 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +11 -0
- package/dist/types/components/wallets/WalletModalShell.types.d.ts +24 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +9 -0
- package/dist/types/config/config.beta.d.ts +2 -0
- package/dist/types/config/config.dev.d.ts +2 -0
- package/dist/types/config/config.live.d.ts +2 -0
- package/dist/types/config/internalEnvironments.d.ts +11 -0
- package/dist/types/config/internalEnvironments.published.d.ts +7 -0
- package/dist/types/config/lib.d.ts +6 -0
- package/dist/types/config/types.d.ts +13 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +12 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +22 -0
- package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +26 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +9 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +16 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +37 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +10 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +38 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +9 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +5 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
- package/dist/types/public/core/action-request.types.d.ts +55 -0
- package/dist/types/public/core/configuration.d.ts +3 -0
- package/dist/types/public/core/index.d.ts +14 -0
- package/dist/types/public/core/registry.ce.d.ts +8 -0
- package/dist/types/public/core/registry.d.ts +6 -0
- package/dist/types/public/core/types.d.ts +120 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +18 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +46 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +2 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +23 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +23 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +13 -0
- package/dist/types/public/screens/types.d.ts +4 -0
- package/dist/types/public/types/index.d.ts +23 -0
- package/dist/types/services/invoices.types.d.ts +26 -0
- package/dist/types/services/paymentMethods.types.d.ts +31 -0
- package/dist/types/services/portals.types.d.ts +68 -0
- package/dist/types/services/requests.types.d.ts +24 -0
- package/dist/types/translations/supported.d.ts +1 -0
- package/dist/types/types/EntryBaseProps.d.ts +10 -0
- package/dist/types/types/errors.d.ts +7 -0
- package/dist/types/types/subscription.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +111 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +77 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +39 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +367 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +349 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +120 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +118 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +58 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +130 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +103 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +80 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +44 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +60 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +43 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +93 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +65 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +44 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +95 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
- package/dist/useActionDispatchProvider-Cz8xLLYA.js +1 -0
- package/dist/{useActionDispatchProvider-zB_GKeUR.mjs → useActionDispatchProvider-D55t_7LY.mjs} +1 -1
- package/dist/{useCustomer-VfeQ6rG2.mjs → useCustomer-BNhHz9RJ.mjs} +2 -2
- package/dist/{useCustomer-bO4D6e4Z.js → useCustomer-DYCpgA-3.js} +1 -1
- package/dist/useCustomerFormLabels-Cw6QpEJY.js +1 -0
- package/dist/useCustomerFormLabels-mX5QpApD.mjs +1142 -0
- package/dist/{useIncrementalLoading-C59FXHzp.mjs → useIncrementalLoading-BK9pRYAU.mjs} +6 -5
- package/dist/useIncrementalLoading-CdtGJm_Y.js +1 -0
- package/dist/{useInvoiceData-CxxkBTGY.js → useInvoiceData-BczeMpuk.js} +1 -1
- package/dist/{useInvoiceData-Dhg-hx8C.mjs → useInvoiceData-D-EvEioP.mjs} +2 -2
- package/dist/{useInvoicesList-DBz7T7sM.mjs → useInvoicesList-BJJYwkIA.mjs} +277 -31
- package/dist/useInvoicesList-rMg-8LbH.js +1 -0
- package/dist/{useLoadInitialData-BhpIg7OF.mjs → useLoadInitialData-BoGjdUu-.mjs} +1 -1
- package/dist/useLoadInitialData-CiJldX50.js +1 -0
- package/dist/{usePaymentMethodOptions-PcMjtMSF.mjs → usePaymentMethodOptions-d49aOdLB.mjs} +13 -3
- package/dist/usePaymentMethodOptions-fBvWYynV.js +1 -0
- package/dist/{usePaymentMethods-B5AbGWsn.mjs → usePaymentMethods-Bkouz8aQ.mjs} +2 -2
- package/dist/{usePaymentMethods-Bb1Xbads.js → usePaymentMethods-CFL3hFW_.js} +1 -1
- package/dist/usePayments-BKTNn_RN.js +1 -0
- package/dist/usePayments-BlliAt1E.mjs +262 -0
- package/dist/{usePortal-DWLtNqBB.mjs → usePortal-eyA4OqjU.mjs} +1 -1
- package/dist/usePortal-fhri8neB.js +1 -0
- package/dist/useService-D73FNBjT.js +1 -0
- package/dist/{useService-BZqFkz7p.mjs → useService-W3Kxems4.mjs} +24 -5
- package/dist/useSubscription--IGLmLS6.mjs +250 -0
- package/dist/useSubscription-V3KSuhOY.js +1 -0
- package/package.json +66 -49
- package/dist/ApiStatus-CyNDp_op.mjs +0 -9
- package/dist/ApiStatus-oqvUEWJx.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BuQ8bzar.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-1Op9GjGZ.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C66beqgf.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D2BhuXsh.mjs +0 -77
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BbuEBiY3.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-dwIv_xxf.js +0 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-05NKI2A0.js +0 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-17v07F58.mjs +0 -27
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CMGK71zZ.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B_yDNGK8.mjs +0 -1537
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-GN3WAr10.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-zRr8iihy.js +0 -1
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-BQIN3zuf.mjs +0 -156
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DyL2-vV0.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-OvGGejpX.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BxqIfmkK.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-D1TcP9PR.mjs +0 -217
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BKz2QQn9.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BMXr26gF.mjs +0 -37
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CyAFjCh7.js +0 -1
- package/dist/component-CUJ_G2Nw.mjs +0 -962
- package/dist/component-CiKxWtdx.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
- package/dist/components/Invoice/Invoice.cjs.js +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.es.js +0 -123
- package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
- package/dist/core/index.cjs.js +0 -1
- package/dist/core/index.es.js +0 -6
- package/dist/customer-AfRcAZ5P.js +0 -1
- package/dist/en-US-QzQnGXP1.js +0 -1
- package/dist/index-CzL1ZcGi.mjs +0 -85
- package/dist/index-DRdBmZ2-.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -51
- package/dist/invoices-BHgajZHq.js +0 -1
- package/dist/nl-NL-C4rr-1tr.js +0 -1
- package/dist/paymentMethods-BMcc-eTl.js +0 -1
- package/dist/payments-DMvmB5vg.js +0 -1
- package/dist/pricing-B1uImUm4.mjs +0 -19
- package/dist/pricing-BEjY_5wb.js +0 -1
- package/dist/registry-CeMxLjwU.js +0 -1
- package/dist/registry-CyENvS6l.mjs +0 -153
- package/dist/screens/Checkout/Checkout.cjs.js +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.es.js +0 -542
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +0 -1
- package/dist/solvimon-web.css +0 -1
- package/dist/subscriptions-CrNDM9qa.mjs +0 -79
- package/dist/subscriptions-DC-mxa17.js +0 -1
- package/dist/url-D8GJi5rF.js +0 -1
- package/dist/useActionDispatchProvider-bqR_FeM4.js +0 -1
- package/dist/useIncrementalLoading-BgWuwoMo.js +0 -1
- package/dist/useInvoicesList-BXZ9uV9i.js +0 -1
- package/dist/useLoadInitialData-BqiAFNFi.js +0 -1
- package/dist/usePaymentMethodOptions-DszFvgKX.js +0 -1
- package/dist/usePayments-DgoZoBZh.mjs +0 -36
- package/dist/usePayments-is5c66Z6.js +0 -1
- package/dist/usePortal-C4qWsJeq.js +0 -1
- package/dist/useService-DKm3QtT4.js +0 -1
- package/dist/useSubscription-CEZJw6wZ.mjs +0 -23
- package/dist/useSubscription-DuUNc1_l.js +0 -1
- package/dist/useTopUpModal-DNyWrHDv.mjs +0 -1012
- package/dist/useTopUpModal-DeF-cfCK.js +0 -1
- package/dist/vendor-ui-BoGKOJ36.mjs +0 -29826
- package/dist/vendor-ui-BuRqLx74.js +0 -1
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const COMPONENT_NAME: string;
|
|
3
|
-
export declare const defineSolvimonSubscriptionManagement: () => void;
|
|
1
|
+
export * from '../../types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../Button.vue.es-aLcIdATK.js"),n=require("../../ErrorNotification.vue.es-BX3khKFc.js"),i=require("../../customElements-BTJzBHMy.js"),a=require("../../ContentWithAsideLayout-DHpnJfGA.js"),o=require("../../useActionDispatchProvider-Cz8xLLYA.js"),s=require("../../usePortal-fhri8neB.js"),r=require("../../useSubscription-V3KSuhOY.js"),c=require("../../useCustomer-DYCpgA-3.js"),l=require("../../usePaymentMethods-CFL3hFW_.js"),u=require("../../usePaymentMethodOptions-fBvWYynV.js"),d=require("../../useLoadInitialData-CiJldX50.js"),p=require("../../invoices-BiqM6xN6.js"),m=require("../../pricingPlanSchedule-B9HFiXy-.js"),g=require("../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js"),v=require("../../Divider.vue.es-ClFG8QtG.js"),_=require("../../AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js"),h=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js"),f=require("../../Section.vue.es-tLYXp-tF.js"),b=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),y=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js"),w=require("../../Modal.vue.es-CX5geho3.js"),S=require("../../component-hDuDTBt5.js");const M={class:"sv-subscription-management-form__body grid grid-cols-1 gap-4"},P=e.defineComponent({__name:"SubscriptionManagementForm",props:e.mergeModels({pricingGroup:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},billingPeriod:{type:Object},currency:{type:String},disabled:{type:Boolean}},{enabledPricingIds:{required:!0},enabledPricingIdsModifiers:{},paymentMethodId:{},paymentMethodIdModifiers:{}}),emits:e.mergeModels(["add-payment-method"],["update:enabledPricingIds","update:paymentMethodId"]),setup(t,{emit:n}){const a=t,o=n,s=e.useModel(t,"enabledPricingIds"),r=e.useModel(t,"paymentMethodId"),{$t:c}=i.useIntl(),l=e=>{const t=e?Date.parse(e):NaN;return Number.isFinite(t)?t:0},u=e.computed(()=>[...a.paymentMethods??[]].sort((e,t)=>l(t.created_at)-l(e.created_at)));return e.watch(()=>a.paymentMethods,(e,t)=>{var n;const i=null==e?void 0:e.find(({id:e})=>!(null==t?void 0:t.some(t=>t.id===e)));i&&(null==t?void 0:t.length)?r.value=i.id:(null==e?void 0:e.some(({id:e})=>e===r.value))||(r.value=null==(n=(null==e?void 0:e.find(({is_default:e})=>e))??u.value[0])?void 0:n.id)},{immediate:!0}),(n,i)=>(e.openBlock(),e.createElementBlock("form",{class:"sv-subscription-management-form",onSubmit:i[3]||(i[3]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",M,[e.createVNode(g._sfc_main,{modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=e=>s.value=e),class:"sv-subscription-management-form__pricing-group","group-name":t.pricingGroup.name,pricings:t.pricingGroup.pricings,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","group-name","pricings","billing-period","currency"]),e.createElementVNode("div",null,[e.createVNode(e.unref(v._sfc_main),{spacing:"xs"})]),e.createVNode(_._sfc_main,{modelValue:r.value,"onUpdate:modelValue":i[1]||(i[1]=e=>r.value=e),class:"sv-subscription-management-form__payment-methods","payment-methods":u.value,"payment-method-options":t.paymentMethodOptions,required:"",disabled:t.disabled,label:e.unref(c)({defaultMessage:"Payment method",id:"subscription_management.payment_method_selector.label",description:"Label above the payment method that pays for the subscription change"}),onAddPaymentMethod:i[2]||(i[2]=e=>o("add-payment-method"))},null,8,["modelValue","payment-methods","payment-method-options","disabled","label"])])],32))}}),k=e.defineComponent({__name:"TranslationOverride",props:{messages:{type:Object}},setup(t){const n=t,a=e.inject(i.TRANSLATION_SETTINGS_KEY,void 0),o=e.computed(()=>({...null==a?void 0:a.messages.value,...n.messages}));return(t,n)=>{var s,r;return e.openBlock(),e.createBlock(e.unref(i._sfc_main$2),{locale:null==(s=e.unref(a))?void 0:s.locale.value,"date-locale":null==(r=e.unref(a))?void 0:r.dateLocale.value,messages:o.value,"show-timezones":!1},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["locale","date-locale","messages"])}}}),I=e.defineComponent({__name:"SubscriptionManagementSummary",props:{invoice:{type:Object},isPending:{type:Boolean},hasError:{type:Boolean}},setup(t){const{$t:a}=i.useIntl(),o=e.computed(()=>({"invoice_preview.total_due_today_heading":a({defaultMessage:"Total due",id:"subscription_management.summary.total_due_heading",description:'Heading above the total of the invoice previewing a subscription change, replacing the shared preview’s "Total due today"'})}));return(s,r)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{class:"sv-subscription-management-summary",title:e.unref(a)({defaultMessage:"Order summary",id:"subscription_management.summary.title",description:"Title of the block previewing what a subscription change is invoiced for"})},{default:e.withCtx(()=>[t.hasError?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,class:"sv-subscription-management-summary__error sv-error",title:e.unref(a)({defaultMessage:"Unable to calculate the total. Please try again.",id:"subscription_management.summary.error",description:"Error shown when the invoice preview for a subscription change cannot be loaded"})},null,8,["title"])):t.isPending||!t.invoice?(e.openBlock(),e.createBlock(b._sfc_main,{key:1,variant:"section",class:"sv-subscription-management-summary__skeleton min-h-[120px]"},{default:e.withCtx(()=>[t.isPending?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:0,variant:"body-sm",shade:"lighter",tag:"div",class:"sv-subscription-management-summary__empty-state"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Select your plan to see what it costs.",id:"subscription_management.summary.empty_state",description:"Shown in the order summary before a plan has been picked to preview"})),1)]),_:1}))]),_:1})):(e.openBlock(),e.createBlock(k,{key:2,messages:o.value},{default:e.withCtx(()=>[e.createVNode(e.unref(h._sfc_main$2),{class:"sv-subscription-management-summary__invoice",invoice:t.invoice,"is-customer-facing":""},null,8,["invoice"])]),_:1},8,["messages"]))]),_:1},8,["title"]))}}),B={class:"sv-subscription-management-success grid grid-cols-1 gap-4"},C={class:"sv-subscription-management-success__message"},j=e.defineComponent({__name:"SubscriptionManagementSuccess",props:{pricingGroupName:{type:String}},setup(t){const n=t,{$t:a}=i.useIntl(),o=e.computed(()=>a({defaultMessage:"Subscription updated",description:"Title shown on the manage subscription screen once the change is committed",id:"subscription_management.success.title"})),s=e.computed(()=>n.pricingGroupName?a({defaultMessage:"Your {subject} has been changed. Please be aware that it can take some time to reflect this change in your subscription.",description:"Confirmation of the pricing group a committed subscription change applied to",id:"subscription_management.success.message"},{subject:n.pricingGroupName}):a({defaultMessage:"Your subscription has been changed. Please be aware that it can take some time to reflect this change in your subscription.",description:"Confirmation of a committed subscription change when the pricing group is not known",id:"subscription_management.success.message_generic"}));return(t,n)=>(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(y._sfc_main,{status:"success",title:o.value},{default:e.withCtx(()=>[e.createElementVNode("span",C,e.toDisplayString(s.value),1)]),_:1},8,["title"])]))}}),N=e.defineComponent({__name:"AddPaymentMethodModal",props:{showModal:{type:Boolean},customer:{type:Object},paymentMethodOptions:{type:Array},isLoading:{type:Boolean}},emits:["success","failure","close"],setup(t,{emit:n}){const a=n,{$t:o}=i.useIntl(),s=e.ref(),r=e.computed(()=>{var e;return!!(null==(e=s.value)?void 0:e.isSaving)}),c=()=>{var e;null==(e=s.value)||e.submit()};return(n,i)=>(e.openBlock(),e.createBlock(e.unref(w.Modal),{"no-click-away":"",size:"lg","show-modal":t.showModal,"is-loading":r.value,title:e.unref(o)({defaultMessage:"Add payment method",id:"add_payment_method_modal.title",description:"Title of the modal for adding a payment method"}),"sub-title":e.unref(o)({defaultMessage:"Add a new payment method to pay with.",id:"add_payment_method_modal.subtitle",description:"Subtitle of the modal for adding a payment method"}),"confirm-button-text":e.unref(o)({defaultMessage:"Save payment method",id:"add_payment_method_modal.confirm_button.label",description:"Label of the button that stores the payment method being added"}),"cancel-button-text":e.unref(o)({defaultMessage:"Cancel",id:"add_payment_method_modal.cancel_button.label",description:"Label of the button that abandons adding a payment method"}),onConfirm:c,onClose:i[2]||(i[2]=e=>a("close"))},{body:e.withCtx(()=>[e.createVNode(_._sfc_main$1,{ref_key:"addPaymentMethodRef",ref:s,class:"sv-add-payment-method-modal sv-add-payment-method-modal__form",customer:t.customer,"payment-method-options":t.paymentMethodOptions,"is-loading":t.isLoading,"is-active":t.showModal,onSuccess:i[0]||(i[0]=e=>a("success")),onFailure:i[1]||(i[1]=e=>a("failure",e))},null,8,["customer","payment-method-options","is-loading","is-active"])]),_:1},8,["show-modal","is-loading","title","sub-title","confirm-button-text","cancel-button-text"]))}}),x={class:"sv-subscription-management__header"},V={class:"flex flex-col gap-2"},O=e.defineComponent({__name:"SubscriptionManagement",props:{configuration:{type:Object}},setup(v){const _=v,{$t:h}=i.useIntl(),f=s.usePortal(),y=i.useLogger(),{dispatchAction:w}=o.useActionDispatchProvider(),{createPricingPlanSchedule:S}=function(){const e=i.createRequestService(),t=i.useConfig();return{getOnDemandPricingItems:function({scheduleId:n}){return e({url:`${t.apiUrls.config}/portal/pricing-plan-schedules/${n}/on-demand-pricing-items`})},createPricingPlanSchedule:function({pricingPlanSubscriptionId:n,enabledPricings:i}){return e({url:`${t.apiUrls.config}/portal/pricing-plan-schedules`,options:{method:"POST"},data:{pricing_plan_subscription_id:n,enabled_pricings:i,start_at:(new Date).toJSON()}})}}}(),{subscription:M,get:k}=r.useSubscription({subscriptionId:_.configuration.subscriptionId}),{items:B,fetchAll:C}=l.usePaymentMethods({customerId:f.value.customer_id}),{customer:O,get:E}=c.useCustomer({customerId:f.value.customer_id}),{paymentMethodOptions:q,get:A}=u.usePaymentMethodOptions(),{isLoading:L}=d.useLoadInitialData(k(),C(),E.execute(),A({customerId:f.value.customer_id})),T=e.ref(!1),D=async()=>{await C(),T.value=!1},$=e.computed(()=>{var e;return m.getActiveDefaultScheduleInfo((null==(e=M.value)?void 0:e.pricing_plan_schedule_infos)??[])}),F=e.computed(()=>{var e;const t=$.value;if(!t)return;const{enabledPricingId:n}=_.configuration;return(n?[n]:((null==(e=t.pricing_plan_schedule)?void 0:e.enabled_pricings)??[]).map(({pricing_id:e})=>e)).map(e=>m.getPricingGroupByPricingId({pricingPlanScheduleInfo:t,pricingId:e})).find(e=>Boolean(e))}),U=e.computed(()=>{var e;return h({defaultMessage:"Manage {subject}",id:"subscription_management.title",description:"Title for the manage subscription page, naming the pricing group being changed"},{subject:(null==(e=F.value)?void 0:e.name)||h({defaultMessage:"subscription",id:"subscription_management.title.default_subject",description:'Stands in for the pricing group name in the manage subscription title when no group is known, e.g. "Manage subscription"'})})}),G=e.ref([]),z=e.ref();e.watch([$,F],([e,t])=>{var n;const i=((null==(n=null==e?void 0:e.pricing_plan_schedule)?void 0:n.enabled_pricings)??[]).map(({pricing_id:e})=>e),{enabledPricingId:a}=_.configuration,o=((null==t?void 0:t.pricings)??[]).map(({id:e})=>e);G.value=a&&o.includes(a)?[...i.filter(e=>!o.includes(e)),a]:i},{immediate:!0});const{invoice:R,isPending:Y,error:W,load:K}=function(){const{getInvoicePreview:t}=p.createInvoicesService(),n=i.useLogger(),a=e.ref(),o=e.ref(!1),s=e.ref(),r=i.createLatestGuard();return{invoice:a,isPending:o,error:s,load:async({subscription:e,enabledPricingIds:i})=>{const c=m.getScheduleCustomizations({enabledPricings:i.map(e=>({pricing_id:e})),pricingPlanScheduleInfos:e.pricing_plan_schedule_infos});if(!c)return void(a.value=void 0);const l=r();o.value=!0,s.value=void 0;try{const n=await t({forExistingSubscription:!0,pricingPlanSubscriptionId:e.id,customizations:c});if(!l())return;a.value=n.invoice}catch(W){if(!l())return;n.error("INVOICE_PREVIEW_FAILED","Failed to preview the subscription upgrade",{},W),s.value=W,a.value=void 0}finally{l()&&(o.value=!1)}}}}();e.watch([G,M],([e,t])=>{t&&0!==e.length&&K({subscription:t,enabledPricingIds:e})},{immediate:!0});const H=e.ref(!1),J=e.ref(),Z=e.ref(!1),Q=e.computed(()=>!L.value&&!H.value&&G.value.length>0&&Boolean(M.value)&&Boolean(z.value)),X=async()=>{if(Q.value&&M.value){H.value=!0,J.value=void 0;try{await S({pricingPlanSubscriptionId:M.value.id,enabledPricings:G.value.map(e=>({pricing_id:e}))}),Z.value=!0}catch(e){y.error("SUBSCRIPTION_UPDATE_FAILED","Failed to start a new pricing plan schedule",{},e),J.value=h({defaultMessage:"Something went wrong. Please try again.",id:"subscription_management.update_error",description:"Error shown when committing a subscription change fails"})}finally{H.value=!1}}},ee=e.computed(()=>{var e,t,n;return(null==(t=null==(e=$.value)?void 0:e.pricing_plan_schedule)?void 0:t.billing_period)??(null==(n=M.value)?void 0:n.billing_period)});return(o,s)=>(e.openBlock(),e.createBlock(e.unref(a.ContentWithAsideLayout),{class:"sv-subscription-management sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",x,[e.createVNode(e.unref(i._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-management__title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U.value),1)]),_:1})])]),content:e.withCtx(()=>{var t,n;return[Z.value?(e.openBlock(),e.createBlock(j,{key:0,class:"sv-subscription-management__success","pricing-group-name":null==(t=F.value)?void 0:t.name},null,8,["pricing-group-name"])):e.unref(L)?(e.openBlock(),e.createBlock(b._sfc_main,{key:1,variant:"section",class:"min-h-[220px]"})):F.value&&ee.value?(e.openBlock(),e.createBlock(P,{key:2,"enabled-pricing-ids":G.value,"onUpdate:enabledPricingIds":s[0]||(s[0]=e=>G.value=e),"payment-method-id":z.value,"onUpdate:paymentMethodId":s[1]||(s[1]=e=>z.value=e),class:"sv-subscription-management__form","pricing-group":F.value,"payment-methods":e.unref(B),"payment-method-options":e.unref(q),"billing-period":ee.value,currency:null==(n=e.unref(M))?void 0:n.billing_currency,onAddPaymentMethod:s[2]||(s[2]=e=>T.value=!0)},null,8,["enabled-pricing-ids","payment-method-id","pricing-group","payment-methods","payment-method-options","billing-period","currency"])):e.createCommentVNode("",!0),e.createVNode(N,{"show-modal":T.value,customer:e.unref(O),"payment-method-options":e.unref(q),onSuccess:D,onClose:s[3]||(s[3]=e=>T.value=!1)},null,8,["show-modal","customer","payment-method-options"])]}),aside:e.withCtx(()=>[Z.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:0,size:"lg",class:"sv-action sv-action--primary sv-action--full-width sv-subscription-management__done w-full",type:"button",onClick:s[4]||(s[4]=t=>e.unref(w)({action:"navigate-to-customer-overview"}))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)({defaultMessage:"Done",id:"subscription_management.done_button.label",description:"Label of the button that leaves the manage subscription screen once the change is committed"})),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(I,{class:"sv-subscription-management__summary",invoice:e.unref(R),"is-pending":e.unref(L)||e.unref(Y),"has-error":Boolean(e.unref(W))},null,8,["invoice","is-pending","has-error"]),J.value?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,class:"sv-subscription-management__update-error sv-error",title:J.value},null,8,["title"])):e.createCommentVNode("",!0),e.createElementVNode("div",V,[e.createVNode(e.unref(t._sfc_main$1),{size:"lg",class:"sv-action sv-action--primary sv-action--full-width sv-subscription-management__update w-full",type:"button",disabled:!Q.value,loading:H.value,onClick:X},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)({defaultMessage:"Update subscription",id:"subscription_management.update_button.label",description:"Label of the button that commits the subscription change"})),1)]),_:1},8,["disabled","loading"]),e.createVNode(g._sfc_main$1,{class:"sv-subscription-management__kpi","payment-method-options":e.unref(q)},null,8,["payment-method-options"])])],64))]),_:1}))}}),E=e.defineComponent({__name:"SubscriptionManagement.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=S.getComponentName("subscription-management");return(a,o)=>(e.openBlock(),e.createBlock(e.unref(i._sfc_main$1),{entry:a.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:o[0]||(o[0]=e=>a.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(O,{configuration:t.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:q}=i.createSolvimonElement(E,"subscription-management");exports.defineSolvimonSubscriptionManagement=q;
|
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
import { ref, defineComponent, useModel, computed, watch, openBlock, createElementBlock, withModifiers, createElementVNode, createVNode, unref, mergeModels, inject, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, Fragment } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a as _sfc_main$i } from "../../Button.vue.es-BrWHdiEA.mjs";
|
|
3
|
+
import { _ as _sfc_main$c } from "../../ErrorNotification.vue.es-C22Kt8Qn.mjs";
|
|
4
|
+
import { b as useLogger, g as createLatestGuard, c as createRequestService, a as useConfig, u as useIntl, h as TRANSLATION_SETTINGS_KEY, i as _sfc_main$a, _ as _sfc_main$e, d as _sfc_main$k, e as createSolvimonElement } from "../../customElements-DdFA__me.mjs";
|
|
3
5
|
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
12
|
-
import { c as
|
|
13
|
-
import {
|
|
14
|
-
import { _ as _sfc_main$
|
|
15
|
-
import { _ as _sfc_main$9 } from "../../
|
|
6
|
+
import { u as useActionDispatchProvider } from "../../useActionDispatchProvider-D55t_7LY.mjs";
|
|
7
|
+
import { u as usePortal } from "../../usePortal-eyA4OqjU.mjs";
|
|
8
|
+
import { u as useSubscription } from "../../useSubscription--IGLmLS6.mjs";
|
|
9
|
+
import { u as useCustomer } from "../../useCustomer-BNhHz9RJ.mjs";
|
|
10
|
+
import { u as usePaymentMethods } from "../../usePaymentMethods-Bkouz8aQ.mjs";
|
|
11
|
+
import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-d49aOdLB.mjs";
|
|
12
|
+
import { u as useLoadInitialData } from "../../useLoadInitialData-BoGjdUu-.mjs";
|
|
13
|
+
import { c as createInvoicesService } from "../../invoices-BSd-nKeE.mjs";
|
|
14
|
+
import { b as getScheduleCustomizations, c as getActiveDefaultScheduleInfo, d as getPricingGroupByPricingId } from "../../pricingPlanSchedule-CXG3CQ61.mjs";
|
|
15
|
+
import { _ as _sfc_main$7, a as _sfc_main$j } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs";
|
|
16
|
+
import { _ as _sfc_main$8 } from "../../Divider.vue.es-wKkIVBgb.mjs";
|
|
17
|
+
import { _ as _sfc_main$9, a as _sfc_main$h } from "../../AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs";
|
|
18
|
+
import { b as _sfc_main$f } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs";
|
|
19
|
+
import { _ as _sfc_main$b } from "../../Section.vue.es-MEFUWCxU.mjs";
|
|
16
20
|
import { _ as _sfc_main$d } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
17
|
-
import { _ as _sfc_main$g } from "../../
|
|
18
|
-
import {
|
|
21
|
+
import { _ as _sfc_main$g } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs";
|
|
22
|
+
import { M as Modal } from "../../Modal.vue.es-5EpA4Q0t.mjs";
|
|
23
|
+
import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
|
|
19
24
|
function useSubscriptionUpgradePreview() {
|
|
20
25
|
const { getInvoicePreview } = createInvoicesService();
|
|
21
26
|
const logger = useLogger();
|
|
22
27
|
const invoice = ref();
|
|
23
28
|
const isPending = ref(false);
|
|
24
29
|
const error = ref();
|
|
25
|
-
|
|
30
|
+
const latestGuard = createLatestGuard();
|
|
26
31
|
const load = async ({
|
|
27
32
|
subscription,
|
|
28
33
|
enabledPricingIds
|
|
@@ -35,7 +40,7 @@ function useSubscriptionUpgradePreview() {
|
|
|
35
40
|
invoice.value = void 0;
|
|
36
41
|
return;
|
|
37
42
|
}
|
|
38
|
-
const
|
|
43
|
+
const isLatest = latestGuard();
|
|
39
44
|
isPending.value = true;
|
|
40
45
|
error.value = void 0;
|
|
41
46
|
try {
|
|
@@ -46,10 +51,10 @@ function useSubscriptionUpgradePreview() {
|
|
|
46
51
|
pricingPlanSubscriptionId: subscription.id,
|
|
47
52
|
customizations
|
|
48
53
|
});
|
|
49
|
-
if (
|
|
54
|
+
if (!isLatest()) return;
|
|
50
55
|
invoice.value = response.invoice;
|
|
51
56
|
} catch (previewError) {
|
|
52
|
-
if (
|
|
57
|
+
if (!isLatest()) return;
|
|
53
58
|
logger.error(
|
|
54
59
|
"INVOICE_PREVIEW_FAILED",
|
|
55
60
|
"Failed to preview the subscription upgrade",
|
|
@@ -59,7 +64,7 @@ function useSubscriptionUpgradePreview() {
|
|
|
59
64
|
error.value = previewError;
|
|
60
65
|
invoice.value = void 0;
|
|
61
66
|
} finally {
|
|
62
|
-
if (
|
|
67
|
+
if (isLatest()) {
|
|
63
68
|
isPending.value = false;
|
|
64
69
|
}
|
|
65
70
|
}
|
|
@@ -85,7 +90,8 @@ function createPricingPlanSchedulesService() {
|
|
|
85
90
|
options: { method: "POST" },
|
|
86
91
|
data: {
|
|
87
92
|
pricing_plan_subscription_id: pricingPlanSubscriptionId,
|
|
88
|
-
enabled_pricings: enabledPricings
|
|
93
|
+
enabled_pricings: enabledPricings,
|
|
94
|
+
start_at: (/* @__PURE__ */ new Date()).toJSON()
|
|
89
95
|
}
|
|
90
96
|
});
|
|
91
97
|
}
|
|
@@ -342,30 +348,20 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
342
348
|
},
|
|
343
349
|
emits: ["success", "failure", "close"],
|
|
344
350
|
setup(__props, { emit: __emit }) {
|
|
345
|
-
const props = __props;
|
|
346
351
|
const emit = __emit;
|
|
347
352
|
const { $t } = useIntl();
|
|
348
|
-
const
|
|
353
|
+
const addPaymentMethodRef = ref();
|
|
349
354
|
const isSaving = computed(() => {
|
|
350
355
|
var _a;
|
|
351
|
-
return
|
|
356
|
+
return !!((_a = addPaymentMethodRef.value) == null ? void 0 : _a.isSaving);
|
|
352
357
|
});
|
|
353
|
-
const hasEverOpened = ref(false);
|
|
354
|
-
watch(
|
|
355
|
-
() => props.showModal,
|
|
356
|
-
(showModal) => {
|
|
357
|
-
hasEverOpened.value = hasEverOpened.value || showModal;
|
|
358
|
-
},
|
|
359
|
-
{ immediate: true }
|
|
360
|
-
);
|
|
361
358
|
const handleConfirm = () => {
|
|
362
359
|
var _a;
|
|
363
|
-
(_a =
|
|
360
|
+
(_a = addPaymentMethodRef.value) == null ? void 0 : _a.submit();
|
|
364
361
|
};
|
|
365
362
|
return (_ctx, _cache) => {
|
|
366
363
|
return openBlock(), createBlock(unref(Modal), {
|
|
367
364
|
"no-click-away": "",
|
|
368
|
-
class: "sv-add-payment-method-modal",
|
|
369
365
|
size: "lg",
|
|
370
366
|
"show-modal": __props.showModal,
|
|
371
367
|
"is-loading": isSaving.value,
|
|
@@ -393,18 +389,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
393
389
|
onClose: _cache[2] || (_cache[2] = ($event) => emit("close"))
|
|
394
390
|
}, {
|
|
395
391
|
body: withCtx(() => [
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
"hide-submit-button": "",
|
|
401
|
-
class: "sv-add-payment-method-modal__form",
|
|
392
|
+
createVNode(_sfc_main$h, {
|
|
393
|
+
ref_key: "addPaymentMethodRef",
|
|
394
|
+
ref: addPaymentMethodRef,
|
|
395
|
+
class: "sv-add-payment-method-modal sv-add-payment-method-modal__form",
|
|
402
396
|
customer: __props.customer,
|
|
403
397
|
"payment-method-options": __props.paymentMethodOptions,
|
|
404
398
|
"is-loading": __props.isLoading,
|
|
399
|
+
"is-active": __props.showModal,
|
|
405
400
|
onSuccess: _cache[0] || (_cache[0] = ($event) => emit("success")),
|
|
406
401
|
onFailure: _cache[1] || (_cache[1] = (error) => emit("failure", error))
|
|
407
|
-
}, null, 8, ["customer", "payment-method-options", "is-loading"
|
|
402
|
+
}, null, 8, ["customer", "payment-method-options", "is-loading", "is-active"])
|
|
408
403
|
]),
|
|
409
404
|
_: 1
|
|
410
405
|
}, 8, ["show-modal", "is-loading", "title", "sub-title", "confirm-button-text", "cancel-button-text"]);
|
|
@@ -687,39 +682,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
687
682
|
configuration: { type: Object }
|
|
688
683
|
},
|
|
689
684
|
setup(__props) {
|
|
685
|
+
const componentName = getComponentName("subscription-management");
|
|
690
686
|
return (_ctx, _cache) => {
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
"
|
|
694
|
-
environment: __props.environment,
|
|
695
|
-
locale: __props.locale,
|
|
696
|
-
"portal-object": __props.portalObject,
|
|
687
|
+
return openBlock(), createBlock(unref(_sfc_main$k), {
|
|
688
|
+
entry: _ctx.$props,
|
|
689
|
+
"component-name": unref(componentName),
|
|
697
690
|
"allowed-portal-types": ["CUSTOMER"],
|
|
698
|
-
"primary-color": (_b = (_a = __props.branding) == null ? void 0 : _a.colors) == null ? void 0 : _b.primary,
|
|
699
|
-
"secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
|
|
700
|
-
"experimental-features": __props.experimentalFeatures,
|
|
701
|
-
"log-level": __props.logLevel,
|
|
702
|
-
"on-log": __props.onLog,
|
|
703
|
-
"css-overrides": __props.cssOverrides,
|
|
704
691
|
onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
|
|
705
692
|
}, {
|
|
706
693
|
default: withCtx(() => [
|
|
707
694
|
createVNode(_sfc_main$1, { configuration: __props.configuration }, null, 8, ["configuration"])
|
|
708
695
|
]),
|
|
709
696
|
_: 1
|
|
710
|
-
}, 8, ["
|
|
697
|
+
}, 8, ["entry", "component-name"]);
|
|
711
698
|
};
|
|
712
699
|
}
|
|
713
700
|
});
|
|
714
|
-
const
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
customElements.define(COMPONENT_NAME, SolvimonSubscriptionManagement);
|
|
719
|
-
}
|
|
720
|
-
};
|
|
701
|
+
const { define: defineSolvimonSubscriptionManagement } = createSolvimonElement(
|
|
702
|
+
_sfc_main,
|
|
703
|
+
"subscription-management"
|
|
704
|
+
);
|
|
721
705
|
export {
|
|
722
|
-
COMPONENT_NAME,
|
|
723
|
-
SolvimonSubscriptionManagement,
|
|
724
706
|
defineSolvimonSubscriptionManagement
|
|
725
707
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Comment, Text, Fragment } from "vue";
|
|
2
|
+
const isVnodeEmpty = (vnodes) => {
|
|
3
|
+
return vnodes.every((node) => {
|
|
4
|
+
if (node.type === Comment) {
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
if (node.type === Text && typeof node.children === "string" && !node.children.trim()) {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
if (node.type === Fragment && isVnodeEmpty(node.children)) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
return false;
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
isVnodeEmpty as i
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=r=>r.every(r=>r.type===e.Comment||(r.type===e.Text&&"string"==typeof r.children&&!r.children.trim()||!(r.type!==e.Fragment||!t(r.children))));exports.isVnodeEmpty=t;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, createCommentVNode, normalizeClass, toDisplayString, ref, onMounted } from "vue";
|
|
2
|
+
import { i as isEmpty } from "./useService-W3Kxems4.mjs";
|
|
3
|
+
const escapeRegExp = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4
|
+
const escapeUserInput = (str) => str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
5
|
+
const _hoisted_1 = ["innerHTML"];
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "TextWithHighlights",
|
|
8
|
+
props: {
|
|
9
|
+
text: {},
|
|
10
|
+
search: { default: "" },
|
|
11
|
+
highlighClasses: { default: "text-primary-600 font-bold underline" }
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const parts = computed(() => {
|
|
16
|
+
const escapedInput = escapeUserInput(props.text);
|
|
17
|
+
const unmatchedParts = [
|
|
18
|
+
{
|
|
19
|
+
type: "text",
|
|
20
|
+
value: escapedInput
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
if (props.search === "") {
|
|
24
|
+
return unmatchedParts;
|
|
25
|
+
}
|
|
26
|
+
const regex = new RegExp(escapeRegExp(props.search), "gi");
|
|
27
|
+
const matches = [...escapedInput.matchAll(regex)];
|
|
28
|
+
if (isEmpty(matches)) {
|
|
29
|
+
return unmatchedParts;
|
|
30
|
+
}
|
|
31
|
+
const parts2 = [];
|
|
32
|
+
matches.forEach((match, index) => {
|
|
33
|
+
if (match.index === void 0) return;
|
|
34
|
+
if (index === 0) {
|
|
35
|
+
parts2.push({ type: "text", value: escapedInput.substring(0, match.index) });
|
|
36
|
+
parts2.push({
|
|
37
|
+
type: "highlight",
|
|
38
|
+
value: escapedInput.substring(match.index, match.index + props.search.length)
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
if (index > 0 && index < matches.length - 1 && matches[index - 1].index) {
|
|
42
|
+
parts2.push({
|
|
43
|
+
type: "text",
|
|
44
|
+
value: escapedInput.substring(
|
|
45
|
+
matches[index - 1].index ?? 0 + props.search.length,
|
|
46
|
+
match.index
|
|
47
|
+
)
|
|
48
|
+
});
|
|
49
|
+
parts2.push({
|
|
50
|
+
type: "highlight",
|
|
51
|
+
value: escapedInput.substring(match.index, match.index + props.search.length)
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
if (index === matches.length - 1 && match.index + props.search.length < escapedInput.length) {
|
|
55
|
+
parts2.push({
|
|
56
|
+
type: "text",
|
|
57
|
+
value: escapedInput.substring(
|
|
58
|
+
match.index + props.search.length,
|
|
59
|
+
escapedInput.length
|
|
60
|
+
)
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
return parts2;
|
|
65
|
+
});
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
return openBlock(), createElementBlock("span", null, [
|
|
68
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(parts.value, ({ type, value }, index) => {
|
|
69
|
+
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
70
|
+
type === "text" ? (openBlock(), createElementBlock("span", {
|
|
71
|
+
key: 0,
|
|
72
|
+
innerHTML: value
|
|
73
|
+
}, null, 8, _hoisted_1)) : createCommentVNode("", true),
|
|
74
|
+
type === "highlight" ? (openBlock(), createElementBlock("span", {
|
|
75
|
+
key: 1,
|
|
76
|
+
class: normalizeClass(__props.highlighClasses)
|
|
77
|
+
}, toDisplayString(value), 3)) : createCommentVNode("", true)
|
|
78
|
+
], 64);
|
|
79
|
+
}), 128))
|
|
80
|
+
]);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
const useIsMounted = () => {
|
|
85
|
+
const isMounted = ref(false);
|
|
86
|
+
onMounted(() => {
|
|
87
|
+
isMounted.value = true;
|
|
88
|
+
});
|
|
89
|
+
return isMounted;
|
|
90
|
+
};
|
|
91
|
+
function sortedUniqBy(collection, key) {
|
|
92
|
+
const seen = /* @__PURE__ */ new Set();
|
|
93
|
+
return collection.filter((item) => {
|
|
94
|
+
const k = item[key];
|
|
95
|
+
if (seen.has(k)) return false;
|
|
96
|
+
seen.add(k);
|
|
97
|
+
return true;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
export {
|
|
101
|
+
_sfc_main as _,
|
|
102
|
+
escapeUserInput as e,
|
|
103
|
+
sortedUniqBy as s,
|
|
104
|
+
useIsMounted as u
|
|
105
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./useService-D73FNBjT.js"),n=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),r=["innerHTML"],l=e.defineComponent({__name:"TextWithHighlights",props:{text:{},search:{default:""},highlighClasses:{default:"text-primary-600 font-bold underline"}},setup(l){const s=l,a=e.computed(()=>{const e=n(s.text),r=[{type:"text",value:e}];if(""===s.search)return r;const l=new RegExp(s.search.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");const a=[...e.matchAll(l)];if(t.isEmpty(a))return r;const i=[];return a.forEach((t,n)=>{void 0!==t.index&&(0===n&&(i.push({type:"text",value:e.substring(0,t.index)}),i.push({type:"highlight",value:e.substring(t.index,t.index+s.search.length)})),n>0&&n<a.length-1&&a[n-1].index&&(i.push({type:"text",value:e.substring(a[n-1].index??0+s.search.length,t.index)}),i.push({type:"highlight",value:e.substring(t.index,t.index+s.search.length)})),n===a.length-1&&t.index+s.search.length<e.length&&i.push({type:"text",value:e.substring(t.index+s.search.length,e.length)}))}),i});return(t,n)=>(e.openBlock(),e.createElementBlock("span",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,({type:t,value:n},s)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s},["text"===t?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:n},null,8,r)):e.createCommentVNode("",!0),"highlight"===t?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(l.highlighClasses)},e.toDisplayString(n),3)):e.createCommentVNode("",!0)],64))),128))]))}});exports._sfc_main=l,exports.escapeUserInput=n,exports.sortedUniqBy=function(e,t){const n=new Set;return e.filter(e=>{const r=e[t];return!n.has(r)&&(n.add(r),!0)})},exports.useIsMounted=()=>{const t=e.ref(!1);return e.onMounted(()=>{t.value=!0}),t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getFirstPricingPlanScheduleOfType } from "./pricingPlanSchedule-
|
|
1
|
+
import { g as getFirstPricingPlanScheduleOfType } from "./pricingPlanSchedule-CXG3CQ61.mjs";
|
|
2
2
|
function getMostRecentScheduleInfo(subscription) {
|
|
3
3
|
var _a;
|
|
4
4
|
return (_a = subscription == null ? void 0 : subscription.pricing_plan_schedule_infos) == null ? void 0 : _a.at(-1);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=require("./api.es-Czekkp_X.js"),e=require("./customElements-BTJzBHMy.js"),n=require("./component-hDuDTBt5.js"),t="/portal/pricing-plan-subscriptions",r={CANCEL:"NEXT_BILLING_PERIOD",RENEW:"UNDO"};exports.createSubscriptionsService=function(){const s=e.useConfig(),a=e.createRequestService();return{getSubscription:function({id:e,expanded:r=!1}){return a({url:`${s.apiUrls.config}${t}/${e}`,query:i.withExpand({expandParams:n.EXPAND_ALL,expand:r})})},getActiveSubscriptions:function({customerId:e,pagination:r}){const o=r??{},c=i.withExpand({initialParams:{customer_id:e,statuses:["ACTIVE"],type:"BILLING"},expandParams:n.EXPAND_ALL});return a({url:`${s.apiUrls.config}${t}`,query:i.withPagination(c,o),isCollection:!0})},setSubscriptionCancellation:function({id:i,variant:e}){return a({url:`${s.apiUrls.config}${t}/${i}/cancel`,data:{type:r[e]},options:{method:"POST"}})}}};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { w as withExpand, a as withPagination } from "./api.es-C5pe8LUl.mjs";
|
|
2
|
+
import { a as useConfig, c as createRequestService } from "./customElements-DdFA__me.mjs";
|
|
3
|
+
import { E as EXPAND_ALL } from "./component-BG6DmXcy.mjs";
|
|
4
|
+
const ENDPOINT = "/portal/pricing-plan-subscriptions";
|
|
5
|
+
const SUBSCRIPTION_CANCELLATION_TYPES = {
|
|
6
|
+
CANCEL: "NEXT_BILLING_PERIOD",
|
|
7
|
+
RENEW: "UNDO"
|
|
8
|
+
};
|
|
9
|
+
function createSubscriptionsService() {
|
|
10
|
+
const config = useConfig();
|
|
11
|
+
const request = createRequestService();
|
|
12
|
+
function getSubscription({
|
|
13
|
+
id,
|
|
14
|
+
expanded = false
|
|
15
|
+
}) {
|
|
16
|
+
return request({
|
|
17
|
+
url: `${config.apiUrls.config}${ENDPOINT}/${id}`,
|
|
18
|
+
query: withExpand({ expandParams: EXPAND_ALL, expand: expanded })
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function getActiveSubscriptions({
|
|
22
|
+
customerId,
|
|
23
|
+
pagination
|
|
24
|
+
}) {
|
|
25
|
+
const paginationParams = pagination ?? {};
|
|
26
|
+
const queryWithExpand = withExpand({
|
|
27
|
+
initialParams: {
|
|
28
|
+
customer_id: customerId,
|
|
29
|
+
statuses: ["ACTIVE"],
|
|
30
|
+
type: "BILLING"
|
|
31
|
+
},
|
|
32
|
+
expandParams: EXPAND_ALL
|
|
33
|
+
});
|
|
34
|
+
return request({
|
|
35
|
+
url: `${config.apiUrls.config}${ENDPOINT}`,
|
|
36
|
+
query: withPagination(queryWithExpand, paginationParams),
|
|
37
|
+
isCollection: true
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function setSubscriptionCancellation({
|
|
41
|
+
id,
|
|
42
|
+
variant
|
|
43
|
+
}) {
|
|
44
|
+
return request({
|
|
45
|
+
url: `${config.apiUrls.config}${ENDPOINT}/${id}/cancel`,
|
|
46
|
+
data: { type: SUBSCRIPTION_CANCELLATION_TYPES[variant] },
|
|
47
|
+
options: { method: "POST" }
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
getSubscription,
|
|
52
|
+
getActiveSubscriptions,
|
|
53
|
+
setSubscriptionCancellation
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
createSubscriptionsService as c
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports.isBandAmount=n=>!!n&&"amount"in n,exports.isBandCount=n=>!!n&&"count"in n,exports.isBandNumber=n=>!!n&&"number"in n,exports.isIndividual=n=>"INDIVIDUAL"===n.type,exports.isOrganization=n=>"ORGANIZATION"===n.type;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const isBandNumber = (data) => data ? "number" in data : false;
|
|
2
|
+
const isBandCount = (data) => data ? "count" in data : false;
|
|
3
|
+
const isBandAmount = (data) => data ? "amount" in data : false;
|
|
4
|
+
const isOrganization = (data) => data.type === "ORGANIZATION";
|
|
5
|
+
const isIndividual = (data) => data.type === "INDIVIDUAL";
|
|
6
|
+
export {
|
|
7
|
+
isOrganization as a,
|
|
8
|
+
isBandNumber as b,
|
|
9
|
+
isBandCount as c,
|
|
10
|
+
isBandAmount as d,
|
|
11
|
+
isIndividual as i
|
|
12
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Invoice } from '../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
export interface InvoiceTableProps {
|
|
3
|
+
invoices: Invoice[];
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
hasMoreItems?: boolean;
|
|
6
|
+
configuration: {
|
|
7
|
+
showPayButton: boolean;
|
|
8
|
+
showViewButton: boolean;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface InvoiceTableEmits {
|
|
12
|
+
(e: 'view-invoice', payload: {
|
|
13
|
+
invoiceId: Invoice['id'];
|
|
14
|
+
}): void;
|
|
15
|
+
(e: 'pay-invoice', payload: {
|
|
16
|
+
invoiceId: Invoice['id'];
|
|
17
|
+
}): void;
|
|
18
|
+
(e: 'load-more'): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Amount, BillingPeriod, CountryCode, TimePeriod } from '../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
export interface CheckoutTitleProps {
|
|
3
|
+
trialPeriod?: TimePeriod;
|
|
4
|
+
subscriptionName: string;
|
|
5
|
+
amount: Amount;
|
|
6
|
+
billingPeriod: BillingPeriod;
|
|
7
|
+
countryCode: CountryCode | undefined;
|
|
8
|
+
trialStartDate?: Date;
|
|
9
|
+
subscriptionStartDate: Date;
|
|
10
|
+
}
|
package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Customer, FormFieldError } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
export type BillingInformationFormState = {
|
|
3
|
+
type: 'INDIVIDUAL' | 'ORGANIZATION';
|
|
4
|
+
email: string;
|
|
5
|
+
country: string;
|
|
6
|
+
companyLegalName?: string;
|
|
7
|
+
companyVatNumber?: string;
|
|
8
|
+
firstName?: string;
|
|
9
|
+
lastName?: string;
|
|
10
|
+
addressLine1: string;
|
|
11
|
+
addressLine2?: string;
|
|
12
|
+
postalCode: string;
|
|
13
|
+
city: string;
|
|
14
|
+
state?: string;
|
|
15
|
+
};
|
|
16
|
+
export interface BillingInformationFormProps {
|
|
17
|
+
customer?: Customer;
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
apiError?: FormFieldError;
|
|
20
|
+
updateCustomer: ({ customerId, payload, }: {
|
|
21
|
+
customerId: Customer['id'];
|
|
22
|
+
payload: Partial<Customer>;
|
|
23
|
+
}) => Promise<Customer>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ConfiguredMeterValue, CountryCode, Pricing } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { useCheckoutForm } from './useCheckoutForm';
|
|
3
|
+
export interface CheckoutFormProps {
|
|
4
|
+
validation: ReturnType<typeof useCheckoutForm>['validation'];
|
|
5
|
+
initialState?: Partial<CheckoutFormState>;
|
|
6
|
+
readOnlyEmail?: string;
|
|
7
|
+
showCustomerInfoOnTop?: boolean;
|
|
8
|
+
isBillingInformationMandatory?: boolean;
|
|
9
|
+
getIsFieldRequired: (field: keyof CheckoutFormState) => boolean;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface CheckoutFormEmits {
|
|
13
|
+
(e: 'submit', state: CheckoutFormState): void;
|
|
14
|
+
}
|
|
15
|
+
export interface CheckoutFormState {
|
|
16
|
+
email: string | undefined;
|
|
17
|
+
country: CountryCode | undefined;
|
|
18
|
+
type: 'INDIVIDUAL' | 'ORGANIZATION';
|
|
19
|
+
companyLegalName: string | undefined;
|
|
20
|
+
firstName: string | undefined;
|
|
21
|
+
infix: string | undefined;
|
|
22
|
+
lastName: string | undefined;
|
|
23
|
+
addressLine1: string | undefined;
|
|
24
|
+
addressLine2: string | undefined;
|
|
25
|
+
postalCode: string | undefined;
|
|
26
|
+
city: string | undefined;
|
|
27
|
+
state: string | undefined;
|
|
28
|
+
companyVatNumber: string | undefined;
|
|
29
|
+
seatsValues: ConfiguredMeterValue[] | undefined;
|
|
30
|
+
promotionCode?: string;
|
|
31
|
+
enabledPricingIds: Pricing['id'][] | undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PaymentMethod } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
export interface CustomerPaymentMethodsBlockProps {
|
|
3
|
+
paymentMethods: PaymentMethod[];
|
|
4
|
+
limit?: number;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
showViewAllButton?: boolean;
|
|
7
|
+
showAddButton?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface CustomerPaymentMethodsBlockEmits {
|
|
10
|
+
(e: 'view-all-payment-methods'): void;
|
|
11
|
+
(e: 'add-payment-method'): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Customer, PaymentMethodOptionsResponse } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
export interface AddPaymentMethodModalProps {
|
|
3
|
+
showModal: boolean;
|
|
4
|
+
/** The customer the method is stored against. The form needs their country, name and email. */
|
|
5
|
+
customer?: Customer;
|
|
6
|
+
paymentMethodOptions: PaymentMethodOptionsResponse;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface AddPaymentMethodModalEmits {
|
|
10
|
+
/** A payment method was tokenized and stored. */
|
|
11
|
+
(e: 'success'): void;
|
|
12
|
+
(e: 'failure', error: unknown): void;
|
|
13
|
+
(e: 'close'): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Customer, PaymentMethodOptionsResponse } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
export interface AddPaymentMethodPaneProps {
|
|
3
|
+
/** Who the method is stored for. The form needs their country, name and email. */
|
|
4
|
+
customer?: Customer;
|
|
5
|
+
/** The ways this customer could pay, as the gateway offers them. */
|
|
6
|
+
paymentMethodOptions?: PaymentMethodOptionsResponse;
|
|
7
|
+
/** Set while the options are still being fetched, so the form waits rather than offering none. */
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Whether this pane is the one on screen. Drives when the form is first built and whether a
|
|
11
|
+
* request of its own counts as this pane's — a host that keeps every pane mounted has to say.
|
|
12
|
+
*/
|
|
13
|
+
isActive?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface AddPaymentMethodPaneEmits {
|
|
16
|
+
/** The method was tokenized and stored, so the host can step back to what it was doing. */
|
|
17
|
+
(e: 'success'): void;
|
|
18
|
+
(e: 'failure', error: unknown): void;
|
|
19
|
+
}
|