@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.32
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 +152 -91
- package/dist/AddPaymentMethodModal-Cx203VXo.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs +89 -0
- package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-DHJpiSdR.mjs} +1 -1
- package/dist/{Amount.vue.es-DPqHB8Xd.mjs → Amount.vue.es-CofcgmXt.mjs} +1 -1
- package/dist/AuthProvider.handle-BpFblzFx.mjs +46 -0
- package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-CJdXXOiG.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD84aBiU.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs +340 -0
- package/dist/BillingInformationModal-Do3Fuu8A.mjs +85 -0
- package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-CW7XfMBF.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-B4ShPKLS.mjs} +46 -45
- package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-CYwWHyAT.mjs} +2 -2
- package/dist/CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs +510 -0
- package/dist/{Comparators.vue.es-DQBI3f7m.mjs → Comparators.vue.es-DYrKlE8t.mjs} +1 -1
- package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
- package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-EXTx0NEt.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-CSKG6V3T.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs +217 -0
- package/dist/CustomerShippingAddresses-Bdy4XWjE.mjs +282 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs +3124 -0
- package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-Dq0JzI8C.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-Cw7fqCg1.mjs} +2 -2
- package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-MrzQoSae.mjs} +1 -1
- package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-CpQbFw0x.mjs} +2 -2
- package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-CcOIFjbE.mjs} +3 -3
- package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-Cd55vQri.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-BUu5M_gx.mjs} +7 -7
- package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-DHh5wruk.mjs} +7 -7
- package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs} +4 -4
- package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-CB6G8Krh.mjs} +3 -3
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-BZCtO2Er.mjs +20 -0
- package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CJFTVFSZ.mjs} +138 -127
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs +789 -0
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-BSXlneqM.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CXy0XGpn.mjs} +5 -5
- package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-Diua0GGJ.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs +161 -0
- package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs} +302 -282
- package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-vFzF_sCJ.mjs} +126 -117
- package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-vs6SaZOh.mjs} +200 -150
- package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-Buhe0aRQ.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs +165 -0
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs} +7 -7
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs} +28 -26
- package/dist/PaymentMethodsModal-CnJP9UKp.mjs +192 -0
- package/dist/PlanCustomizationEditor-KHLSEUbb.mjs +864 -0
- package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-DlZAkE93.mjs} +3 -3
- package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-CKIomNrm.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-oHD-IT12.mjs} +8 -8
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs} +16 -15
- package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-DsShmkKZ.mjs} +5 -5
- package/dist/Section.vue.es-DYmEtgBj.mjs +88 -0
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs} +2 -2
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs +144 -0
- package/dist/ShippingAddressesModal-Gxv2KxaW.mjs +283 -0
- package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-sqA-VSsn.mjs} +4 -4
- package/dist/SubscriptionCancellationModal-DfAZ_uW6.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-CdWV-8WN.mjs +764 -0
- package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-BfdVn1XA.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C8q8Q6h5.mjs +5413 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs +90 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DYWjTzPV.mjs} +133 -108
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-Bt-7LHr3.mjs} +18 -18
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs} +1 -1
- package/dist/TrialChip.vue.es-VZwQX079.mjs +47 -0
- package/dist/addonQuantity-D3bGVqjL.mjs +128 -0
- package/dist/adyen-CHgq2l6n.mjs +99 -0
- package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
- package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
- package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
- package/dist/components/Invoice/Invoice.mjs +1087 -1019
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
- package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
- package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
- package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
- package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
- package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
- package/dist/core/events.types.d.ts +1 -0
- package/dist/core/index.mjs +51 -34
- package/dist/{customElements-DK4GKNJG.mjs → customElements-B8c354Nu.mjs} +802 -768
- package/dist/{customer-lf6S5DBR.mjs → customer-CP-Wz7JO.mjs} +1 -1
- package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-C9HrzHpE.mjs} +71 -5
- package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-DAQmgEy5.mjs} +82 -19
- package/dist/{formControl-BZQLHnOO.mjs → formControl-C18sw44K.mjs} +275 -275
- package/dist/{formatting.es-RclXHhKo.mjs → formatting.es-DlJEzreG.mjs} +16 -13
- package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-CHR3VWvd.mjs} +71 -5
- package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-fz51-Ubw.mjs} +79 -16
- package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
- package/dist/icon-sprite.svg.es-2S3rv8NW.mjs +4 -0
- package/dist/index.es-Bv55VtdE.mjs +633 -0
- package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.mjs +37 -33
- package/dist/invoices-I7PghcPV.mjs +143 -0
- package/dist/{it-IT-DnJP5URH.mjs → it-IT-BpCkTMZL.mjs} +73 -10
- package/dist/{it-IT-DObZEc-U.mjs → it-IT-Dzc7DmmL.mjs} +71 -5
- package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-22C8OcIM.mjs} +79 -16
- package/dist/{nl-NL-C02xHilF.mjs → nl-NL-Dut_QwsY.mjs} +71 -5
- package/dist/paymentIntegrationFormLoaders-BFMAMpcA.mjs +31 -0
- package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-aGKIi7DS.mjs} +22 -21
- package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-Cv7hTFVu.mjs} +1 -1
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-BKoKpoLN.mjs +71 -0
- package/dist/preloadPaymentIntegrationForms-Buwal_JR.mjs +9 -0
- package/dist/pricing-Y-7ELzN-.mjs +42 -0
- package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-BafitMMY.mjs} +1 -1
- package/dist/pricingPlanScheduleOverrides-CGm_-jJq.mjs +291 -0
- package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
- package/dist/screens/Checkout/Checkout.mjs +1098 -3
- package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
- package/dist/screens/CheckoutSession/CheckoutSession.mjs +1322 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
- package/dist/screens/PayInvoice/PayInvoice.mjs +283 -275
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
- package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
- package/dist/subscriptions-B7dNqi1C.mjs +99 -0
- package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
- package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +3 -1
- package/dist/types/index.d.ts +5 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
- package/dist/types/public/core/action-request.types.d.ts +18 -24
- package/dist/types/public/core/events.types.d.ts +99 -0
- package/dist/types/public/core/index.d.ts +3 -1
- package/dist/types/public/core/types.d.ts +11 -2
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
- package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
- package/dist/types/services/paymentMethods.types.d.ts +12 -1
- package/dist/types/types/EntryBaseProps.d.ts +10 -6
- package/dist/types/types/branding.d.ts +15 -0
- package/dist/types/types/checkoutSession.d.ts +199 -0
- package/dist/types/types/errors.d.ts +2 -0
- package/dist/types/types/pricingPlanGroup.d.ts +25 -0
- package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BCtk-FGU.mjs} +1 -1
- package/dist/useAddressFormats-CtE4QaVU.mjs +1998 -0
- package/dist/useCheckoutForm-BhXcmnUi.mjs +3355 -0
- package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-mQysxUwp.mjs} +2 -2
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-Bw6bBtay.mjs +6 -0
- package/dist/useHostEvent-MtRG6W2B.mjs +12 -0
- package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-CJSj1945.mjs} +2 -2
- package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-BEZIvw32.mjs} +2 -2
- package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-CrXjsmei.mjs} +140 -138
- package/dist/{sorting.es-C0pdMgX0.mjs → useIsMounted.es-BNPhTTHE.mjs} +11 -10
- package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-Bomj_1mo.mjs} +1 -1
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs} +4 -4
- package/dist/usePaymentMethodOptions-CuHoQx3K.mjs +67 -0
- package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-BDdetXts.mjs} +2 -2
- package/dist/{usePayments-hWS7fnOx.mjs → usePayments-B5Z9Kfbv.mjs} +20 -18
- package/dist/usePortal-DuLR5Mid.mjs +14 -0
- package/dist/{useService-BwzIBIRp.mjs → useService-2aOFBTxU.mjs} +1 -1
- package/dist/useShippingAddresses-BvThNpez.mjs +122 -0
- package/dist/useSubscription-Dzo-kBpQ.mjs +35 -0
- package/dist/useSubscriptionActions-CWaNRoZ7.mjs +44 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/dist/{wallets.es-eH2C2ygn.mjs → wallets.es-DRlUVd2R.mjs} +1 -1
- package/package.json +41 -11
- package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
- package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
- package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs +0 -2936
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
- package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
- package/dist/Section.vue.es-Oqn1wGPZ.mjs +0 -72
- package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
- package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs +0 -5200
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
- package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
- package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
- package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
- package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +0 -4
- package/dist/invoices-DdREPDXV.mjs +0 -123
- package/dist/paymentMethods-Goa25rTs.mjs +0 -61
- package/dist/payments-CKpU1K3t.mjs +0 -68
- package/dist/pricing-CEaZGgKe.mjs +0 -29
- package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
- package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
- package/dist/subscriptions-B5bH8hsI.mjs +0 -66
- package/dist/taxId.es-e6NEvprh.mjs +0 -243
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
- package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
- package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
- package/dist/usePortal-DUfD6hrA.mjs +0 -7
- package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Invoice, PricingPlanSubscription } from '../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { ActionRequestDetail } from './action-request.types';
|
|
3
|
+
import { ErrorCode, LogEntry } from '../../components/providers/LoggerProvider/LoggerProvider.types';
|
|
4
|
+
/**
|
|
5
|
+
* The `detail` of the `solvimon-error` event: the same facts as the `log` entry the failure is
|
|
6
|
+
* logged under, so a listener on a container can tell which element failed.
|
|
7
|
+
*/
|
|
8
|
+
export interface SolvimonErrorDetail {
|
|
9
|
+
error: Error;
|
|
10
|
+
/** The error's own code, or `UNHANDLED_ERROR` for an error without one. */
|
|
11
|
+
code: ErrorCode;
|
|
12
|
+
/** The tag name of the element that failed. */
|
|
13
|
+
componentName: string;
|
|
14
|
+
/** The session reference, which support can find the failure by. */
|
|
15
|
+
reference: string;
|
|
16
|
+
}
|
|
17
|
+
/** The event an element dispatches when it fails and cannot carry on. */
|
|
18
|
+
export type SolvimonErrorEvent = CustomEvent<SolvimonErrorDetail>;
|
|
19
|
+
/** The `detail` of `solvimon-payment-succeeded`: what the payment was for, as far as the element knows. */
|
|
20
|
+
export interface SolvimonPaymentSucceededDetail {
|
|
21
|
+
/** The tag name of the element the customer paid in. */
|
|
22
|
+
componentName: string;
|
|
23
|
+
/** The subscription the checkout sold. */
|
|
24
|
+
subscriptionId?: PricingPlanSubscription['id'];
|
|
25
|
+
/** The invoice that was paid. */
|
|
26
|
+
invoiceId?: Invoice['id'];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The event an element dispatches once a payment went through. In the checkout, `preventDefault()`
|
|
30
|
+
* keeps the customer on the page instead of sending them to the success URL set in Solvimon Desk.
|
|
31
|
+
*/
|
|
32
|
+
export type SolvimonPaymentSucceededEvent = CustomEvent<SolvimonPaymentSucceededDetail>;
|
|
33
|
+
/**
|
|
34
|
+
* The `detail` of `solvimon-invoice-created`. The order created the invoice whether or not its
|
|
35
|
+
* payment went through, so `paymentStatus` says which: `PAID` and `OVERPAID` are settled, while
|
|
36
|
+
* `UNPAID`, `PARTIALLY_PAID` and a missing status are an invoice still to be paid.
|
|
37
|
+
*/
|
|
38
|
+
export interface SolvimonInvoiceCreatedDetail {
|
|
39
|
+
invoiceId: Invoice['id'];
|
|
40
|
+
paymentStatus: Invoice['payment_status'];
|
|
41
|
+
}
|
|
42
|
+
/** The `detail` of `solvimon-payment-method-added`. */
|
|
43
|
+
export interface SolvimonPaymentMethodAddedDetail {
|
|
44
|
+
/** The tag name of the element the customer stored the method in. */
|
|
45
|
+
componentName: string;
|
|
46
|
+
}
|
|
47
|
+
/** The `detail` of `solvimon-shipping-address-saved`. */
|
|
48
|
+
export interface SolvimonShippingAddressSavedDetail {
|
|
49
|
+
/** The tag name of the element the customer saved the address in. */
|
|
50
|
+
componentName: string;
|
|
51
|
+
/**
|
|
52
|
+
* The address as stored. An edit is stored as a new address that replaces the old one, so this
|
|
53
|
+
* id differs from the one the form was opened with.
|
|
54
|
+
*/
|
|
55
|
+
shippingAddressId: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Every event an SDK element dispatches, by name. Each one bubbles and crosses the shadow root,
|
|
59
|
+
* so a listener on the document or a container hears every element inside it.
|
|
60
|
+
*/
|
|
61
|
+
export interface SolvimonEventMap {
|
|
62
|
+
/** The element failed and renders nothing; `detail` says what failed and where. */
|
|
63
|
+
'solvimon-error': SolvimonErrorEvent;
|
|
64
|
+
/** The checkout's subscription and first price have loaded. */
|
|
65
|
+
'solvimon-ready': CustomEvent<undefined>;
|
|
66
|
+
/** A log entry, as `onLog` receives it. */
|
|
67
|
+
'solvimon-log': CustomEvent<LogEntry>;
|
|
68
|
+
/** The customer asked to go somewhere the host decides on, such as an invoice. */
|
|
69
|
+
'solvimon-action-request': CustomEvent<ActionRequestDetail>;
|
|
70
|
+
/**
|
|
71
|
+
* A payment went through: in the checkout, in the checkout session once the session completed,
|
|
72
|
+
* on pay-invoice, or in `payment-method-form` in `payment` mode. The only cancelable event; see
|
|
73
|
+
* `SolvimonPaymentSucceededEvent`.
|
|
74
|
+
*/
|
|
75
|
+
'solvimon-payment-succeeded': SolvimonPaymentSucceededEvent;
|
|
76
|
+
/**
|
|
77
|
+
* An on-demand order in subscription details created an invoice, while the customer still sees
|
|
78
|
+
* its receipt. A failed order is not reported here but logged, as `ON_DEMAND_CHARGE_REFUSED` or,
|
|
79
|
+
* when its outcome is unknown, `ON_DEMAND_CHARGE_FAILED`.
|
|
80
|
+
*/
|
|
81
|
+
'solvimon-invoice-created': CustomEvent<SolvimonInvoiceCreatedDetail>;
|
|
82
|
+
/** The customer stored a new payment method. */
|
|
83
|
+
'solvimon-payment-method-added': CustomEvent<SolvimonPaymentMethodAddedDetail>;
|
|
84
|
+
/** The customer added or changed a shipping address in `shipping-address-form`. */
|
|
85
|
+
'solvimon-shipping-address-saved': CustomEvent<SolvimonShippingAddressSavedDetail>;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Listeners for the `on` option of `createScreen` and `createComponent`, by event name. They are
|
|
89
|
+
* added before the element is in the page, so they hear everything it dispatches.
|
|
90
|
+
*/
|
|
91
|
+
export type SolvimonEventListeners = {
|
|
92
|
+
[K in keyof SolvimonEventMap]?: (event: SolvimonEventMap[K]) => void;
|
|
93
|
+
};
|
|
94
|
+
declare global {
|
|
95
|
+
interface HTMLElementEventMap extends SolvimonEventMap {
|
|
96
|
+
}
|
|
97
|
+
interface DocumentEventMap extends SolvimonEventMap {
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
export { createSolvimonCore } from './configuration';
|
|
8
8
|
export { getRegisteredScreenIds, getRegisteredComponentIds } from './registry';
|
|
9
9
|
export type { CoreConfiguration, ComponentConfigurationById, ScreenConfigurationById, ComponentMountConfiguration, ScreenMountConfiguration, SolvimonMountConfig, SolvimonMountInstance, RegisteredScreenId, RegisteredComponentId, } from './types';
|
|
10
|
-
export type { ActionRequestDetail,
|
|
10
|
+
export type { ActionRequestDetail, ActionRequestDetailAddPaymentMethod, ActionRequestDetailEditBillingInformation, ActionRequestDetailManageSubscription, ActionRequestDetailPayInvoice, ActionRequestDetailViewAllPaymentMethods, ActionRequestDetailViewCustomerOverview, ActionRequestDetailViewAllSubscriptions, ActionRequestDetailViewInvoice, ActionRequestDetailViewSubscriptionDetails, ActionRequestEvent, } from './action-request.types';
|
|
11
11
|
export type { Amount, CheckoutPagePortalUrl, CheckoutPagePortalUrlPayload, CountryCode, CustomerPortalUrl, CustomerPortalUrlPayload, PlatformBranding, PortalUrl, } from '../../vendor/@solvimon/solvimon-types/index';
|
|
12
12
|
export type { IntlMessages, Environment } from '../types';
|
|
13
|
+
export type { SolvimonBranding } from '../../types/branding';
|
|
14
|
+
export type { SolvimonErrorDetail, SolvimonEventListeners, SolvimonPaymentMethodAddedDetail, SolvimonInvoiceCreatedDetail, SolvimonPaymentSucceededDetail, SolvimonPaymentSucceededEvent, SolvimonErrorEvent, SolvimonEventMap, } from './events.types';
|
|
13
15
|
export type { ExperimentalFeature } from '../../components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib';
|
|
14
16
|
export type { LogEntry, LogLevel, LogSink, ErrorCode, WarnCode, } from '../../components/providers/LoggerProvider/LoggerProvider.types';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SolvimonEventListeners } from './events.types';
|
|
2
2
|
import { PortalToken } from '../../types/portalToken';
|
|
3
|
+
import { SolvimonBranding } from '../../types/branding';
|
|
3
4
|
import { Environment, IntlMessages } from '../types';
|
|
4
5
|
import { LogLevel, LogSink } from '../../components/providers/LoggerProvider/LoggerProvider.types';
|
|
5
6
|
import { ExperimentalFeature } from '../../components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib';
|
|
@@ -11,11 +12,13 @@ import { SolvimonInvoiceHeaderEntryProps } from '../components/InvoiceHeader/Inv
|
|
|
11
12
|
import { SolvimonInvoiceDetailsEntryProps } from '../components/InvoiceDetails/InvoiceDetails.entry.types';
|
|
12
13
|
import { SolvimonInvoicesListEntryProps } from '../components/InvoicesList/InvoicesList.entry.types';
|
|
13
14
|
import { SolvimonPaymentMethodFormEntryProps } from '../components/PaymentMethodForm/PaymentMethodForm.entry.types';
|
|
15
|
+
import { SolvimonShippingAddressFormEntryProps } from '../components/ShippingAddressForm/ShippingAddressForm.entry.types';
|
|
14
16
|
import { SolvimonPaymentHistoryEntryProps } from '../components/PaymentHistory/PaymentHistory.entry.types';
|
|
15
17
|
import { SolvimonSubscriptionSchedulesEntryProps } from '../components/SubscriptionSchedules/SubscriptionSchedules.entry.types';
|
|
16
18
|
import { SolvimonSubscriptionsListEntryProps } from '../components/SubscriptionsList/SubscriptionsList.entry.types';
|
|
17
19
|
import { SolvimonWalletBalancesEntryProps } from '../components/WalletBalances/WalletBalances.entry.types';
|
|
18
20
|
import { SolvimonCheckoutEntryProps } from '../screens/Checkout/Checkout.entry.types';
|
|
21
|
+
import { SolvimonCheckoutSessionEntryProps } from '../screens/CheckoutSession/CheckoutSession.entry.types';
|
|
19
22
|
import { SolvimonCustomerOverviewEntryProps } from '../screens/CustomerOverview/CustomerOverview.entry.types';
|
|
20
23
|
import { SolvimonSubscriptionManagementEntryProps } from '../screens/SubscriptionManagement/SubscriptionManagement.entry.types';
|
|
21
24
|
import { SolvimonPayInvoiceEntryProps } from '../screens/PayInvoice/PayInvoice.entry.types';
|
|
@@ -34,7 +37,7 @@ export interface SharedSolvimonMountConfig {
|
|
|
34
37
|
experimentalFeatures?: ExperimentalFeature[];
|
|
35
38
|
logLevel?: LogLevel;
|
|
36
39
|
onLog?: LogSink;
|
|
37
|
-
branding?:
|
|
40
|
+
branding?: SolvimonBranding;
|
|
38
41
|
cssOverrides?: string | string[];
|
|
39
42
|
}
|
|
40
43
|
export type SolvimonMountConfig = SharedSolvimonMountConfig;
|
|
@@ -62,9 +65,11 @@ interface RegisteredComponentEntryPropsById {
|
|
|
62
65
|
'billing-information': SolvimonBillingInformationEntryProps;
|
|
63
66
|
'billing-information-form': SolvimonBillingInformationFormEntryProps;
|
|
64
67
|
'payment-method-form': SolvimonPaymentMethodFormEntryProps;
|
|
68
|
+
'shipping-address-form': SolvimonShippingAddressFormEntryProps;
|
|
65
69
|
}
|
|
66
70
|
interface RegisteredScreenEntryPropsById {
|
|
67
71
|
checkout: SolvimonCheckoutEntryProps;
|
|
72
|
+
'checkout-session': SolvimonCheckoutSessionEntryProps;
|
|
68
73
|
'customer-overview': SolvimonCustomerOverviewEntryProps;
|
|
69
74
|
'subscription-management': SolvimonSubscriptionManagementEntryProps;
|
|
70
75
|
'subscription-details': SolvimonSubscriptionDetailsEntryProps;
|
|
@@ -115,12 +120,16 @@ export type ComponentMountConfiguration<TId extends RegisteredComponentId> = {
|
|
|
115
120
|
portalObject: InferPortalObject<RegisteredComponentEntryPropsById[TId]>;
|
|
116
121
|
/** See `portalToken` on the element: the response of an exchange of the handle, as it is. */
|
|
117
122
|
portalToken?: PortalToken;
|
|
123
|
+
/** Listeners for the element's events, added before it is in the page. */
|
|
124
|
+
on?: SolvimonEventListeners;
|
|
118
125
|
} & ConfigurationProp<ComponentConfigurationById[TId]>;
|
|
119
126
|
export type ScreenMountConfiguration<TId extends RegisteredScreenId> = {
|
|
120
127
|
container: Element | string;
|
|
121
128
|
portalObject: InferPortalObject<RegisteredScreenEntryPropsById[TId]>;
|
|
122
129
|
/** See `portalToken` on the element: the response of an exchange of the handle, as it is. */
|
|
123
130
|
portalToken?: PortalToken;
|
|
131
|
+
/** Listeners for the element's events, added before it is in the page. */
|
|
132
|
+
on?: SolvimonEventListeners;
|
|
124
133
|
} & ConfigurationProp<ScreenConfigurationById[TId]>;
|
|
125
134
|
export interface CoreConfiguration<TConfig extends SolvimonMountConfig = SolvimonMountConfig> {
|
|
126
135
|
config: TConfig;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { CheckoutPagePortalUrl } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
-
import {
|
|
2
|
+
import { EntryBaseProps } from '../../../types/EntryBaseProps';
|
|
3
3
|
import { CheckoutProps } from './Checkout.types';
|
|
4
4
|
export interface SolvimonCheckoutEntryProps extends EntryBaseProps<CheckoutPagePortalUrl>, CheckoutProps {
|
|
5
5
|
}
|
|
6
|
-
export interface SolvimonCheckoutEmits extends EntryBaseEmits {
|
|
7
|
-
/**
|
|
8
|
-
* Emitted when the checkout is ready.
|
|
9
|
-
*/
|
|
10
|
-
(e: 'ready'): void;
|
|
11
|
-
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Amount, BillingPeriod, ConfiguredMeterValue, CountryCode, Invoice, PaymentMethodOptionsResponse, Pricing, PricingPlanScheduleInfoExpanded, PricingPlanSubscriptionExpanded, TimePeriod } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
3
|
+
import { CheckoutFormState } from '../../../components/customer/CheckoutForm/CheckoutForm.types';
|
|
4
|
+
import { CheckoutFormDisplay } from '../../../components/customer/CheckoutForm/CheckoutForm.lib';
|
|
5
|
+
import { useCheckoutForm } from '../../../components/customer/CheckoutForm/useCheckoutForm';
|
|
6
|
+
import { OrderSummaryInvoiceSection } from '../../../components/subscriptions/OrderSummaryInvoice.types';
|
|
7
|
+
import { PaymentAuthorizationContext } from '../../../components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types';
|
|
8
|
+
/** `CHANGED`: the customer changed the order while the payment waited for its price. */
|
|
9
|
+
export type PriceSettlement = 'SETTLED' | 'CHANGED' | 'FAILED';
|
|
10
|
+
/** The promotion code the order is priced with, applied and removed by the flow. */
|
|
11
|
+
export interface CheckoutPromotionCode {
|
|
12
|
+
/** Left out by a flow that always offers a code. */
|
|
13
|
+
isAllowed?: Readonly<Ref<boolean>>;
|
|
14
|
+
code: Ref<string | null>;
|
|
15
|
+
isPending: Readonly<Ref<boolean>>;
|
|
16
|
+
errorMessage: Ref<string | null>;
|
|
17
|
+
apply: (code?: string | null) => void | Promise<void>;
|
|
18
|
+
remove: () => void | Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
/** How the order is paid for. */
|
|
21
|
+
export interface CheckoutPayment {
|
|
22
|
+
paymentMethodOptions: Readonly<Ref<PaymentMethodOptionsResponse>>;
|
|
23
|
+
isPaymentMethodsPending: Readonly<Ref<boolean>>;
|
|
24
|
+
hasPaymentMethodOptionsError: Readonly<Ref<boolean>>;
|
|
25
|
+
retryPaymentMethodOptions: () => void;
|
|
26
|
+
authorizationContext: Readonly<Ref<PaymentAuthorizationContext | undefined>>;
|
|
27
|
+
/**
|
|
28
|
+
* The country the payment methods are set up for, given by a flow that knows whose it is, such
|
|
29
|
+
* as that of the customer who pays when there are several. Left out, the form's country is used.
|
|
30
|
+
*/
|
|
31
|
+
countryCode?: Readonly<Ref<string | undefined>>;
|
|
32
|
+
/**
|
|
33
|
+
* What an express payment sheet asks for when the customer picks another address. Left out by a
|
|
34
|
+
* flow that offers no express payment.
|
|
35
|
+
*/
|
|
36
|
+
updateInvoicePreviewOnBillingInformationChange?: (formState: Partial<CheckoutFormState>) => Promise<{
|
|
37
|
+
trialInvoicePreview: Invoice;
|
|
38
|
+
invoicePreview: Invoice;
|
|
39
|
+
}>;
|
|
40
|
+
/**
|
|
41
|
+
* Given by a flow that finishes the order itself once the payment is authorized: the screen
|
|
42
|
+
* keeps waiting on it rather than marking the order paid and redirecting.
|
|
43
|
+
*/
|
|
44
|
+
awaitCompletion?: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* What the flow makes of a failed payment: `PRICE_CHANGED` when it re-priced the order to be
|
|
47
|
+
* paid again.
|
|
48
|
+
*/
|
|
49
|
+
recoverPaymentFailure?: (failure: {
|
|
50
|
+
error?: unknown;
|
|
51
|
+
apiError?: unknown;
|
|
52
|
+
} | undefined) => PaymentRecovery | undefined;
|
|
53
|
+
}
|
|
54
|
+
export type PaymentRecovery = 'PRICE_CHANGED';
|
|
55
|
+
/** The form of one customer of the order. */
|
|
56
|
+
export interface CheckoutCustomerForm {
|
|
57
|
+
key: string;
|
|
58
|
+
form: ReturnType<typeof useCheckoutForm>;
|
|
59
|
+
display?: CheckoutFormDisplay;
|
|
60
|
+
isTypeLocked?: boolean;
|
|
61
|
+
/** Names the section when the order has several customers. */
|
|
62
|
+
title?: string;
|
|
63
|
+
}
|
|
64
|
+
/** The quantities of one subscription of the order, and the promotion code it takes. */
|
|
65
|
+
export interface CheckoutPlanCustomization {
|
|
66
|
+
key: string;
|
|
67
|
+
subscription: PricingPlanSubscriptionExpanded;
|
|
68
|
+
/** Names the section when the order has several subscriptions. */
|
|
69
|
+
title?: string;
|
|
70
|
+
seatsValues: Ref<ConfiguredMeterValue[]>;
|
|
71
|
+
unitsValues: Ref<ConfiguredMeterValue[]>;
|
|
72
|
+
minimums: {
|
|
73
|
+
seatsValues: ConfiguredMeterValue[];
|
|
74
|
+
unitsValues: ConfiguredMeterValue[];
|
|
75
|
+
};
|
|
76
|
+
maximums: {
|
|
77
|
+
seatsValues: ConfiguredMeterValue[];
|
|
78
|
+
unitsValues: ConfiguredMeterValue[];
|
|
79
|
+
};
|
|
80
|
+
/** The configs the customer may change; the others show at their number. */
|
|
81
|
+
editableConfigIds: string[];
|
|
82
|
+
/** Left out when the order's own `promotionCode` covers it. */
|
|
83
|
+
promotionCode?: CheckoutPromotionCode;
|
|
84
|
+
}
|
|
85
|
+
/** A schedule the order is charged on, with the add-ons and group members it charges. */
|
|
86
|
+
export interface ChargedSchedule {
|
|
87
|
+
scheduleInfo: PricingPlanScheduleInfoExpanded | undefined;
|
|
88
|
+
enabledPricingIds?: Pricing['id'][];
|
|
89
|
+
billingPeriod?: BillingPeriod;
|
|
90
|
+
}
|
|
91
|
+
/** Everything the checkout screen renders and pays from; each checkout flow supplies its own. */
|
|
92
|
+
export interface CheckoutSource {
|
|
93
|
+
/** What the host configured, once anything unusable has been dropped and reported. */
|
|
94
|
+
validatedEmail?: string;
|
|
95
|
+
validatedCountry?: CountryCode;
|
|
96
|
+
subscription: Readonly<Ref<PricingPlanSubscriptionExpanded | undefined>>;
|
|
97
|
+
hasSubscriptionLoadFailed: Readonly<Ref<boolean>>;
|
|
98
|
+
/** The order's own quantities: the editor's steppers may not go below them. */
|
|
99
|
+
orderMeterValues: Readonly<Ref<{
|
|
100
|
+
seatsValues?: ConfiguredMeterValue[];
|
|
101
|
+
unitsValues?: ConfiguredMeterValue[];
|
|
102
|
+
}>>;
|
|
103
|
+
/** The add-ons bought in a quantity of their own; left out by a flow without add-on choices. */
|
|
104
|
+
quantityAddonConfigIds?: Readonly<Ref<Set<string>>>;
|
|
105
|
+
/**
|
|
106
|
+
* A section per subscription, shown in place of the editor of `subscription` and without
|
|
107
|
+
* its pricing choices. Held shallowly, like `customerForms`.
|
|
108
|
+
*/
|
|
109
|
+
planCustomizations?: Readonly<Ref<CheckoutPlanCustomization[]>>;
|
|
110
|
+
/** What the order's usage and renewal are read from; left out, the plan the form prices. */
|
|
111
|
+
chargedSchedules?: Readonly<Ref<ChargedSchedule[]>>;
|
|
112
|
+
checkoutForm: ReturnType<typeof useCheckoutForm>;
|
|
113
|
+
/**
|
|
114
|
+
* A section per customer, shown and validated in place of `checkoutForm`'s own. Held shallowly
|
|
115
|
+
* (`computed`, `shallowRef`): a deep `ref` would unwrap the refs each form keeps.
|
|
116
|
+
*/
|
|
117
|
+
customerForms?: Readonly<Ref<CheckoutCustomerForm[]>>;
|
|
118
|
+
isShippingAddressRequired: boolean;
|
|
119
|
+
invoicePreview: Readonly<Ref<Invoice | undefined>>;
|
|
120
|
+
/** The invoice's lines per customer; left out by a flow with one customer. */
|
|
121
|
+
invoiceSections?: Readonly<Ref<OrderSummaryInvoiceSection[] | undefined>>;
|
|
122
|
+
invoicePreviewByBillingPeriod: Readonly<Ref<Record<string, Invoice>>>;
|
|
123
|
+
trialInvoicePreview: Readonly<Ref<Invoice | undefined>>;
|
|
124
|
+
trialPeriod: Readonly<Ref<TimePeriod | undefined>>;
|
|
125
|
+
isInvoicePreviewPending: Readonly<Ref<boolean>>;
|
|
126
|
+
isInvoicePreviewStale: Readonly<Ref<boolean>>;
|
|
127
|
+
isInvoicePreviewFailed: Readonly<Ref<boolean>>;
|
|
128
|
+
loadInvoicePreview: () => Promise<void>;
|
|
129
|
+
settleInvoicePreview: () => Promise<PriceSettlement>;
|
|
130
|
+
/** Left out only by a flow whose orders always have a single billing period. */
|
|
131
|
+
changeBillingPeriod?: (billingPeriod: BillingPeriod) => void;
|
|
132
|
+
amount: Readonly<Ref<Amount | undefined>>;
|
|
133
|
+
recurringAmount: Readonly<Ref<Amount | undefined>>;
|
|
134
|
+
hasOneOffCharges: Readonly<Ref<boolean>>;
|
|
135
|
+
/** The currency the order is priced in, which follows the country it is priced at. */
|
|
136
|
+
pricingCurrency: Readonly<Ref<string | undefined>>;
|
|
137
|
+
promotionCode: CheckoutPromotionCode;
|
|
138
|
+
/** Left out by a flow that cannot take a payment yet: Pay stays disabled. */
|
|
139
|
+
payment?: CheckoutPayment;
|
|
140
|
+
/** Whether the flow has all it needs to be paid; left out when only the form decides. */
|
|
141
|
+
canPay?: Readonly<Ref<boolean>>;
|
|
142
|
+
isPaid: Ref<boolean>;
|
|
143
|
+
successUrl: Readonly<Ref<string | undefined>>;
|
|
144
|
+
/** Where the customer goes back to without paying; already sanitised. */
|
|
145
|
+
cancelUrl?: Readonly<Ref<string | undefined>>;
|
|
146
|
+
/** Markdown shown with the pay button. */
|
|
147
|
+
note: Readonly<Ref<string | undefined>>;
|
|
148
|
+
/** Absent when the flow keeps its state elsewhere and has no form to restore after a redirect. */
|
|
149
|
+
saveFormStateForRedirect?: () => void;
|
|
150
|
+
clearSavedFormState?: () => void;
|
|
151
|
+
}
|
|
@@ -1,46 +1,23 @@
|
|
|
1
1
|
import { CountryCode } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
-
import { SdkError } from '../../../types/errors';
|
|
3
2
|
export interface CheckoutConfiguration {
|
|
4
3
|
/**
|
|
5
|
-
* The
|
|
6
|
-
|
|
7
|
-
avatar?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Optional two letter country code for the customer. When supplied, the correct
|
|
10
|
-
* payment method options and tax will be shown.
|
|
4
|
+
* The customer's two-letter country, which the form starts with. It decides the tax and the
|
|
5
|
+
* payment methods on offer. Defaults to none: the customer picks one.
|
|
11
6
|
*/
|
|
12
7
|
countryCode?: CountryCode;
|
|
13
|
-
/**
|
|
14
|
-
* Optional email address of the customer. This will be pre-filled in the checkout form.
|
|
15
|
-
*/
|
|
8
|
+
/** The customer's email address, which the form starts with. */
|
|
16
9
|
email?: string;
|
|
17
10
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
11
|
+
* A promotion code to apply once the subscription has loaded. Defaults to the page's
|
|
12
|
+
* `coupon_code` query parameter, if it has one.
|
|
20
13
|
*/
|
|
21
14
|
couponCode?: string;
|
|
22
15
|
/**
|
|
23
|
-
*
|
|
16
|
+
* Pricings that start switched on, such as add-ons the host preselects. A group that needs a
|
|
17
|
+
* pricing and has none of these gets its first.
|
|
24
18
|
*/
|
|
25
19
|
enabledPricingIds?: string[];
|
|
26
|
-
/**
|
|
27
|
-
* Optional callback function that is executed after a successful payment.
|
|
28
|
-
* This can be used to execute follow up functionality and/or doing a redirect.
|
|
29
|
-
* If you implement this callback, you are also responsible to manage a redirect
|
|
30
|
-
* yourself. This overrides the redirect url configured in Solvimon Desk.
|
|
31
|
-
*/
|
|
32
|
-
onPaymentSuccess?: () => void;
|
|
33
20
|
}
|
|
34
21
|
export interface CheckoutProps {
|
|
35
22
|
configuration?: CheckoutConfiguration;
|
|
36
23
|
}
|
|
37
|
-
export interface CheckoutEmits {
|
|
38
|
-
/**
|
|
39
|
-
* Emitted when an error occurs.
|
|
40
|
-
*/
|
|
41
|
-
(e: 'error', error: SdkError): void;
|
|
42
|
-
/**
|
|
43
|
-
* Emitted when the checkout is ready.
|
|
44
|
-
*/
|
|
45
|
-
(e: 'ready'): void;
|
|
46
|
-
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defineSolvimonCheckoutSession: (tagName?: string) => string;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { CustomerPaymentMethodsConfiguration } from '../../components/CustomerPaymentMethods/CustomerPaymentMethods.types';
|
|
2
|
+
export interface CustomerOverviewConfiguration {
|
|
3
|
+
/** The payment methods block, configured as the `customer-payment-methods` element is. */
|
|
4
|
+
paymentMethods?: CustomerPaymentMethodsConfiguration;
|
|
5
|
+
}
|
|
6
|
+
export interface CustomerOverviewProps {
|
|
7
|
+
configuration?: CustomerOverviewConfiguration;
|
|
8
|
+
}
|
|
@@ -5,12 +5,6 @@ export interface PayInvoiceConfiguration {
|
|
|
5
5
|
* The ID of the invoice to render.
|
|
6
6
|
*/
|
|
7
7
|
invoiceId: Invoice['id'];
|
|
8
|
-
/**
|
|
9
|
-
* An optional callback that is executed whenever a payment is successful.
|
|
10
|
-
* It can be used to execute some follow up actions and/or to do a redirect
|
|
11
|
-
* if needed.
|
|
12
|
-
*/
|
|
13
|
-
onPaymentSuccess?: () => void;
|
|
14
8
|
}
|
|
15
9
|
export interface PayInvoiceProps extends BaseScreenProps {
|
|
16
10
|
invoice?: Invoice;
|
package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts
CHANGED
|
@@ -1,27 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PricingPlanSubscription } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
export interface SubscriptionDetailsConfiguration {
|
|
3
3
|
subscriptionId: PricingPlanSubscription['id'];
|
|
4
|
-
avatar?: string;
|
|
5
4
|
/**
|
|
6
5
|
* Offers "Go to invoice" on the receipt of an on-demand order, and when the payment of a placed
|
|
7
6
|
* order was refused, which sends a `view-invoice` action request. Turn it on only when you handle that action request; otherwise the button
|
|
8
7
|
* would only close the order. Defaults to `false`.
|
|
9
8
|
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Called as soon as an on-demand order creates an invoice, while the customer still sees its
|
|
13
|
-
* receipt. The order created an invoice whether or not its payment went through, so
|
|
14
|
-
* `paymentStatus` says which: `PAID` and `OVERPAID` are settled, while `UNPAID`,
|
|
15
|
-
* `PARTIALLY_PAID` and a missing status are an invoice still to be paid. Use it to refresh an
|
|
16
|
-
* invoice list or to follow up on the order.
|
|
17
|
-
*
|
|
18
|
-
* An order that fails is not reported here, even when it may have left an invoice behind: a
|
|
19
|
-
* payment that could not be made reaches `onLog` as `ON_DEMAND_CHARGE_REFUSED`, and a failure
|
|
20
|
-
* whose outcome is unknown as `ON_DEMAND_CHARGE_FAILED`. Either way the customer is sent to
|
|
21
|
-
* their invoice list.
|
|
22
|
-
*/
|
|
23
|
-
onInvoiceCreated?: (invoice: {
|
|
24
|
-
invoiceId: Invoice['id'];
|
|
25
|
-
paymentStatus: Invoice['payment_status'];
|
|
26
|
-
}) => void;
|
|
9
|
+
showViewInvoiceButton?: boolean;
|
|
27
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Customer, CustomerWalletBalanceItem,
|
|
1
|
+
import { Customer, CustomerWalletBalanceItem, PaymentMethod, PricingPlanSchedule, PricingPlanScheduleWithPlanData, PricingPlanSubscriptionExpanded } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
import { ChargeOnDemandItem } from '@solvimon/solvimon-ui';
|
|
3
3
|
import { BaseScreenProps } from '../types';
|
|
4
4
|
export interface SubscriptionDetailsProps extends BaseScreenProps {
|
|
@@ -11,7 +11,7 @@ export interface SubscriptionDetailsProps extends BaseScreenProps {
|
|
|
11
11
|
onDemandScheduleId?: PricingPlanSchedule['id'];
|
|
12
12
|
hasWalletBalancesError?: boolean;
|
|
13
13
|
avatar?: string;
|
|
14
|
-
|
|
14
|
+
showViewInvoiceButton?: boolean;
|
|
15
15
|
}
|
|
16
16
|
export interface SubscriptionDetailsEmits {
|
|
17
17
|
(e: 'top-up-charged'): void;
|
|
@@ -19,5 +19,4 @@ export interface SubscriptionDetailsEmits {
|
|
|
19
19
|
(e: 'auto-top-up-cancelled'): void;
|
|
20
20
|
(e: 'payment-method-stored'): void;
|
|
21
21
|
(e: 'subscription-changed'): void;
|
|
22
|
-
(e: 'invoice-created', invoice: Invoice): void;
|
|
23
22
|
}
|
|
@@ -6,8 +6,9 @@ export interface SubscriptionManagementConfiguration {
|
|
|
6
6
|
* schedule. Names the screen after the group it was chosen from. Left out when the host opens
|
|
7
7
|
* the screen without a particular upgrade in mind.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
currentPricingId?: Pricing['id'];
|
|
10
10
|
}
|
|
11
11
|
export interface SubscriptionManagementProps {
|
|
12
12
|
configuration: SubscriptionManagementConfiguration;
|
|
13
|
+
avatar?: string;
|
|
13
14
|
}
|
|
@@ -15,11 +15,22 @@ export interface GetPaymentMethodOptionsByCustomerIdPayload extends GetPaymentMe
|
|
|
15
15
|
customerId: Customer['id'];
|
|
16
16
|
subscriptionId?: PricingPlanSubscription['id'];
|
|
17
17
|
invoiceId?: Invoice['id'];
|
|
18
|
+
portalUrlId?: never;
|
|
18
19
|
}
|
|
19
20
|
export interface GetPaymentMethodOptionsBySubscriptionIdPayload extends GetPaymentMethodOptionsBasePayload {
|
|
20
21
|
subscriptionId: PricingPlanSubscription['id'];
|
|
21
22
|
customerId?: never;
|
|
22
23
|
invoiceId?: never;
|
|
24
|
+
portalUrlId?: never;
|
|
23
25
|
}
|
|
24
|
-
|
|
26
|
+
/** A checkout session decides the country, the amount and the payer, and refuses them sent along. */
|
|
27
|
+
export interface GetPaymentMethodOptionsByPortalUrlIdPayload {
|
|
28
|
+
portalUrlId: string;
|
|
29
|
+
customerId?: never;
|
|
30
|
+
subscriptionId?: never;
|
|
31
|
+
invoiceId?: never;
|
|
32
|
+
amount?: never;
|
|
33
|
+
country?: never;
|
|
34
|
+
}
|
|
35
|
+
export type GetPaymentMethodOptionsPayload = GetPaymentMethodOptionsByCustomerIdPayload | GetPaymentMethodOptionsBySubscriptionIdPayload | GetPaymentMethodOptionsByPortalUrlIdPayload;
|
|
25
36
|
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { PortalObject } from './checkoutSession';
|
|
2
|
+
import { SolvimonBranding } from './branding';
|
|
3
|
+
import { ProviderProps } from '../components/providers/Provider/Provider.types';
|
|
4
|
+
/**
|
|
5
|
+
* The properties every element takes: those `EntryProvider` reads from it. Picked rather than
|
|
6
|
+
* omitted, so a prop added to the provider stack does not become element surface by accident.
|
|
7
|
+
*/
|
|
8
|
+
export type EntryBaseProps<PortalObjectType extends PortalObject> = Pick<ProviderProps, 'environment' | 'locale' | 'dateLocale' | 'messages' | 'portalToken' | 'experimentalFeatures' | 'logLevel' | 'onLog' | 'cssOverrides'> & {
|
|
4
9
|
/**
|
|
5
|
-
* The
|
|
10
|
+
* The colours every element is drawn in, and the emblem screens show as their avatar.
|
|
6
11
|
*/
|
|
7
|
-
branding?:
|
|
12
|
+
branding?: SolvimonBranding;
|
|
8
13
|
portalObject: PortalObjectType;
|
|
9
14
|
};
|
|
10
|
-
export type EntryBaseEmits = ProviderEmits;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The branding an element is shown in. The platform branding the API returns fits it as it is, so
|
|
3
|
+
* a host can pass that on without picking fields out; like the API, it takes `null` for unset.
|
|
4
|
+
*/
|
|
5
|
+
export interface SolvimonBranding {
|
|
6
|
+
/** The brand's colours, for the buttons, links and highlights of every element. */
|
|
7
|
+
colors?: {
|
|
8
|
+
primary?: string | null;
|
|
9
|
+
secondary?: string | null;
|
|
10
|
+
};
|
|
11
|
+
/** Shown as the avatar where a screen has one: the checkout's order summary, a subscription. */
|
|
12
|
+
emblem?: {
|
|
13
|
+
public_url?: string | null;
|
|
14
|
+
};
|
|
15
|
+
}
|