@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
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { CountryCode, Invoice, Pricing, PricingPlanSubscriptionExpanded } from '../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { OrderSummaryInvoiceSection } from './OrderSummaryInvoice.types';
|
|
3
|
+
import { UsagePriceGroup } from './OrderSummaryUsage.lib';
|
|
2
4
|
export interface OrderSummaryProps {
|
|
3
5
|
/**
|
|
4
6
|
* The subscription to display.
|
|
5
7
|
*/
|
|
6
8
|
subscription: PricingPlanSubscriptionExpanded;
|
|
9
|
+
/** Every subscription of an order of several, each summarised in place of `subscription`. */
|
|
10
|
+
subscriptions?: PricingPlanSubscriptionExpanded[];
|
|
7
11
|
/**
|
|
8
12
|
* The invoice to display.
|
|
9
13
|
*/
|
|
10
14
|
invoice?: Invoice;
|
|
15
|
+
/** Lists the invoice's lines in these parts, such as one per customer of the order. */
|
|
16
|
+
invoiceSections?: OrderSummaryInvoiceSection[];
|
|
11
17
|
/**
|
|
12
18
|
* The invoice previews per billing period.
|
|
13
19
|
*/
|
|
@@ -32,6 +38,10 @@ export interface OrderSummaryProps {
|
|
|
32
38
|
* Whether the invoice is usage based.
|
|
33
39
|
*/
|
|
34
40
|
isUsageBased?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The usage prices of the plan, grouped by pricing category.
|
|
43
|
+
*/
|
|
44
|
+
usagePriceGroups?: UsagePriceGroup[];
|
|
35
45
|
/**
|
|
36
46
|
* Whether the subscription is collapsible, if not provided,
|
|
37
47
|
* the subscription will be displayed in the expanded state.
|
|
@@ -53,4 +63,8 @@ export interface OrderSummaryProps {
|
|
|
53
63
|
* The variant of the order summary.
|
|
54
64
|
*/
|
|
55
65
|
variant?: 'default' | 'products-inline';
|
|
66
|
+
/**
|
|
67
|
+
* Whether a change to the order is still being priced: the invoice shown no longer applies.
|
|
68
|
+
*/
|
|
69
|
+
isUpdating?: boolean;
|
|
56
70
|
}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import { Invoice } from '../../vendor/@solvimon/solvimon-types/index';
|
|
1
|
+
import { Invoice, PricingPlanSubscriptionExpanded } from '../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
/** A part of the order with a heading of its own, such as one customer's subscriptions. */
|
|
3
|
+
export interface OrderSummaryInvoiceSection {
|
|
4
|
+
key: string;
|
|
5
|
+
title: string;
|
|
6
|
+
/** What this part comes to on its own; the totals still come from `invoice`. */
|
|
7
|
+
invoices: Invoice[];
|
|
8
|
+
/** The subscriptions this part is for, named beside its title. */
|
|
9
|
+
subscriptions?: PricingPlanSubscriptionExpanded[];
|
|
10
|
+
}
|
|
2
11
|
export interface OrderSummaryInvoiceProps {
|
|
3
12
|
invoice: Invoice;
|
|
4
13
|
/** Priced instead of `invoice` in the totals, while a trial runs. */
|
|
@@ -13,4 +22,8 @@ export interface OrderSummaryInvoiceProps {
|
|
|
13
22
|
* @default 'default'
|
|
14
23
|
*/
|
|
15
24
|
variant?: 'default' | 'products-inline';
|
|
25
|
+
/** Lists the lines in these parts instead of from `invoice`, each with its own subtotal. */
|
|
26
|
+
sections?: OrderSummaryInvoiceSection[];
|
|
27
|
+
/** Blurs the invoice while a change is priced again, so a total that no longer applies does not read as current. */
|
|
28
|
+
isUpdating?: boolean;
|
|
16
29
|
}
|
package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts
CHANGED
|
@@ -6,4 +6,13 @@ export interface PlanCustomizationEditorProps {
|
|
|
6
6
|
initialUnitsValues?: ConfiguredMeterValue[];
|
|
7
7
|
billingPeriod: BillingPeriod;
|
|
8
8
|
currency?: Currency['currencyCode'];
|
|
9
|
+
/** The highest number of each seat and unit config, by config. */
|
|
10
|
+
maxSeatsValues?: ConfiguredMeterValue[];
|
|
11
|
+
maxUnitsValues?: ConfiguredMeterValue[];
|
|
12
|
+
/** The seat and unit configs that can be changed; every config when left out. */
|
|
13
|
+
editableConfigIds?: string[];
|
|
14
|
+
/** Leaves out the pricing groups and add-ons, for an order whose pricings are fixed. */
|
|
15
|
+
hidePricingChoices?: boolean;
|
|
16
|
+
/** Replaces the default title. */
|
|
17
|
+
title?: string;
|
|
9
18
|
}
|
|
@@ -3,4 +3,8 @@ export interface SeatsEditorProps {
|
|
|
3
3
|
modelValue: ConfiguredMeterValue[];
|
|
4
4
|
initialSeatsValues?: ConfiguredMeterValue[];
|
|
5
5
|
pricings: PricingExtended[];
|
|
6
|
+
/** The highest number of each config, by config. */
|
|
7
|
+
maxValues?: ConfiguredMeterValue[];
|
|
8
|
+
/** The configs that can be changed; every config when left out. */
|
|
9
|
+
editableConfigIds?: string[];
|
|
6
10
|
}
|
|
@@ -3,4 +3,8 @@ export interface UnitsEditorProps {
|
|
|
3
3
|
modelValue: ConfiguredMeterValue[];
|
|
4
4
|
initialUnitsValues?: ConfiguredMeterValue[];
|
|
5
5
|
pricings: PricingExtended[];
|
|
6
|
+
/** The highest number of each config, by config. */
|
|
7
|
+
maxValues?: ConfiguredMeterValue[];
|
|
8
|
+
/** The configs that can be changed; every config when left out. */
|
|
9
|
+
editableConfigIds?: string[];
|
|
6
10
|
}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { BillingPeriod, Currency, PaymentMethod, PricingGroupExtended } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { SubscriptionPlanOption } from '../../../composables/useSubscriptionPlanGroup';
|
|
2
3
|
export interface SubscriptionManagementFormProps {
|
|
3
4
|
/** Lets a submit button outside the form name it with its `form` attribute. */
|
|
4
5
|
id?: string;
|
|
5
|
-
/**
|
|
6
|
-
pricingGroup
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
* nothing can be added here.
|
|
10
|
-
*/
|
|
6
|
+
/** Absent when the plan offers nothing to customise, or while another plan is picked. */
|
|
7
|
+
pricingGroup?: PricingGroupExtended;
|
|
8
|
+
/** Cheapest first. Fewer than two leaves the plan choice out. */
|
|
9
|
+
planOptions?: SubscriptionPlanOption[];
|
|
11
10
|
paymentMethods?: PaymentMethod[];
|
|
12
|
-
/** The subscription's own method is a card that has expired,
|
|
11
|
+
/** The subscription's own method is a card that has expired, so it is not on offer. */
|
|
13
12
|
hasExpiredPaymentMethod?: boolean;
|
|
14
|
-
/** Drives how each pricing's amount is rendered on its option. */
|
|
15
13
|
billingPeriod: BillingPeriod;
|
|
16
14
|
currency?: Currency['currencyCode'];
|
|
17
15
|
disabled?: boolean;
|
|
16
|
+
avatar?: string;
|
|
17
|
+
/** @default true */
|
|
18
|
+
canAddPaymentMethod?: boolean;
|
|
18
19
|
}
|
|
19
20
|
export interface SubscriptionManagementFormEmits {
|
|
20
|
-
/** The customer submitted the form, from its own fields or a button tied to it by `form`. */
|
|
21
21
|
(e: 'submit'): void;
|
|
22
|
+
(e: 'add-payment-method'): void;
|
|
22
23
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export interface SubscriptionManagementSuccessProps {
|
|
2
|
+
/**
|
|
3
|
+
* The plan the subscription was moved to, when the change was a move within its pricing plan
|
|
4
|
+
* group. Named ahead of the pricing group, since the plan is the larger of the two changes.
|
|
5
|
+
*/
|
|
6
|
+
pricingPlanName?: string;
|
|
2
7
|
/**
|
|
3
8
|
* What the subscription now runs on, named after the group it was chosen from — "Credit packs".
|
|
4
9
|
* Left out when the group is not known, in which case the confirmation stays generic.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SubscriptionPlanOption } from '../../../composables/useSubscriptionPlanGroup';
|
|
2
|
+
export interface SubscriptionPlanSelectorProps {
|
|
3
|
+
/** Cheapest first, the current plan among them. */
|
|
4
|
+
options: SubscriptionPlanOption[];
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
avatar?: string;
|
|
7
|
+
}
|
package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface SubscriptionsListItemProps {
|
|
|
4
4
|
paymentMethod?: PaymentMethod;
|
|
5
5
|
customer: Customer;
|
|
6
6
|
showViewSubscriptionDetailsButton?: boolean;
|
|
7
|
+
showManageButton?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export interface SubscriptionsListItemEmits {
|
|
9
10
|
(e: 'view-subscription-details', payload: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChargeOnDemandPricingItem, Customer, CustomerWalletBalanceItem, PaymentMethod } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
1
|
+
import { ChargeOnDemandPricingItem, Customer, CustomerWalletBalanceItem, PaymentMethod, PricingPlanSubscriptionExpanded } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
export type AutoTopUpModalStep = 'AUTO_TOP_UP' | 'ADD_PAYMENT_METHOD';
|
|
3
3
|
export declare const AUTO_TOP_UP_MODAL_STEPS: AutoTopUpModalStep[];
|
|
4
4
|
export interface AutoTopUpModalProps {
|
|
@@ -7,6 +7,8 @@ export interface AutoTopUpModalProps {
|
|
|
7
7
|
topUpItem?: ChargeOnDemandPricingItem;
|
|
8
8
|
paymentMethods?: PaymentMethod[];
|
|
9
9
|
customer?: Customer;
|
|
10
|
+
/** Where a credits wallet's top-up takes its currency from: the subscription it is charged on. */
|
|
11
|
+
subscriptions?: PricingPlanSubscriptionExpanded[];
|
|
10
12
|
}
|
|
11
13
|
export interface AutoTopUpModalEmits {
|
|
12
14
|
(e: 'saved'): void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export { createSolvimonCore, getRegisteredScreenIds, getRegisteredComponentIds, } from './public/core';
|
|
2
|
-
export type { SolvimonMountConfig, CoreConfiguration, ComponentConfigurationById, ScreenConfigurationById, ComponentMountConfiguration, ScreenMountConfiguration, SolvimonMountInstance, RegisteredScreenId, RegisteredComponentId, ActionRequestDetail,
|
|
2
|
+
export type { SolvimonMountConfig, CoreConfiguration, ComponentConfigurationById, ScreenConfigurationById, ComponentMountConfiguration, ScreenMountConfiguration, SolvimonMountInstance, RegisteredScreenId, RegisteredComponentId, ActionRequestDetail, ActionRequestEvent, } from './public/core';
|
|
3
3
|
export type { Amount, CheckoutPagePortalUrl, CheckoutPagePortalUrlPayload, CountryCode, CustomerPortalUrl, CustomerPortalUrlPayload, PlatformBranding, PortalUrl, } from './vendor/@solvimon/solvimon-types/index';
|
|
4
4
|
export type { IntlMessages, Environment } from './public/types';
|
|
5
|
+
export type { SolvimonBranding } from './types/branding';
|
|
6
|
+
export type { SolvimonErrorDetail, SolvimonEventListeners, SolvimonPaymentMethodAddedDetail, SolvimonInvoiceCreatedDetail, SolvimonPaymentSucceededDetail, SolvimonPaymentSucceededEvent, SolvimonErrorEvent, SolvimonEventMap, } from './public/core/events.types';
|
|
5
7
|
export type { ExperimentalFeature } from './components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib';
|
|
6
8
|
export { defineSolvimonCheckout } from './public/screens/Checkout/Checkout.entry.ce';
|
|
9
|
+
export { defineSolvimonCheckoutSession } from './public/screens/CheckoutSession/CheckoutSession.entry.ce';
|
|
7
10
|
export { defineSolvimonCustomerOverview } from './public/screens/CustomerOverview/CustomerOverview.entry.ce';
|
|
8
11
|
export { defineSolvimonSubscriptionManagement } from './public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce';
|
|
9
12
|
export { defineSolvimonSubscriptionDetails } from './public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce';
|
|
@@ -21,3 +24,4 @@ export { defineSolvimonPaymentHistory } from './public/components/PaymentHistory
|
|
|
21
24
|
export { defineSolvimonSubscriptionSchedules } from './public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce';
|
|
22
25
|
export { defineSolvimonSubscriptionsList } from './public/components/SubscriptionsList/SubscriptionsList.entry.ce';
|
|
23
26
|
export { defineSolvimonPaymentMethodForm } from './public/components/PaymentMethodForm/PaymentMethodForm.entry.ce';
|
|
27
|
+
export { defineSolvimonShippingAddressForm } from './public/components/ShippingAddressForm/ShippingAddressForm.entry.ce';
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Customer } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
export interface BillingInformationConfiguration {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to show the button that edits the billing information, which sends an
|
|
5
|
+
* `edit-billing-information` action request.
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
3
8
|
showEditButton?: boolean;
|
|
4
9
|
}
|
|
5
10
|
export interface BillingInformationProps {
|
package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { CustomerPortalUrl } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
-
import {
|
|
2
|
+
import { EntryBaseProps } from '../../../types/EntryBaseProps';
|
|
3
3
|
export type SolvimonBillingInformationFormEntryProps = EntryBaseProps<CustomerPortalUrl>;
|
|
4
|
-
export type SolvimonBillingInformationFormEntryEmits = EntryBaseEmits;
|
package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts
CHANGED
|
@@ -6,11 +6,15 @@ export interface CustomerPaymentMethodsConfiguration {
|
|
|
6
6
|
*/
|
|
7
7
|
maxItems?: number;
|
|
8
8
|
/**
|
|
9
|
-
* Whether to show the
|
|
9
|
+
* Whether to show the "View all" button when the customer has more payment methods than
|
|
10
|
+
* `maxItems`, which sends a `view-all-payment-methods` action request.
|
|
11
|
+
* @default true
|
|
10
12
|
*/
|
|
11
13
|
showViewAllButton?: boolean;
|
|
12
14
|
/**
|
|
13
|
-
* Whether to show the
|
|
15
|
+
* Whether to show the button that adds a payment method, which sends an `add-payment-method`
|
|
16
|
+
* action request.
|
|
17
|
+
* @default true
|
|
14
18
|
*/
|
|
15
19
|
showAddButton?: boolean;
|
|
16
20
|
}
|
|
@@ -2,20 +2,20 @@ import { Invoice, Payment } from '../../../vendor/@solvimon/solvimon-types/index
|
|
|
2
2
|
export interface InvoiceConfiguration {
|
|
3
3
|
invoiceId: Invoice['id'];
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Whether to show the button that downloads the invoice as a PDF.
|
|
6
6
|
* @default true
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
showDownloadButton?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* @default true
|
|
10
|
+
* Whether to show the customer's billing information.
|
|
11
|
+
* @default true
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
showCustomerBillingInformation?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Whether to show the invoice's payment attempts, when it has any.
|
|
16
16
|
* @default true
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
showPaymentAttempts?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export interface InvoiceProps {
|
|
21
21
|
invoice: Invoice;
|
|
@@ -2,10 +2,10 @@ import { Invoice, Payment } from '../../../vendor/@solvimon/solvimon-types/index
|
|
|
2
2
|
export interface InvoiceHeaderConfiguration {
|
|
3
3
|
invoiceId: Invoice['id'];
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Whether to show the button that downloads the invoice as a PDF.
|
|
6
6
|
* @default true
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
showDownloadButton?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export interface InvoiceHeaderProps {
|
|
11
11
|
invoice: Invoice;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { Invoice } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
export interface InvoicesListConfiguration {
|
|
3
3
|
/**
|
|
4
|
-
* Whether to show the pay button
|
|
4
|
+
* Whether to show the pay button on an invoice that can be paid, which sends a `pay-invoice`
|
|
5
|
+
* action request.
|
|
5
6
|
* @default true
|
|
6
7
|
*/
|
|
7
8
|
showPayButton?: boolean;
|
|
8
9
|
/**
|
|
9
|
-
* Whether to
|
|
10
|
+
* Whether to link each invoice to its page, which sends a `view-invoice` action request.
|
|
10
11
|
* @default true
|
|
11
12
|
*/
|
|
12
13
|
showViewButton?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Optionally configure pagination.
|
|
15
|
-
*/
|
|
14
|
+
/** How the list loads more invoices. */
|
|
16
15
|
pagination?: {
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
17
|
+
* Whether the list offers to load more invoices than the first batch.
|
|
19
18
|
* @default true
|
|
20
19
|
*/
|
|
21
20
|
enabled?: boolean;
|
|
22
21
|
/**
|
|
23
|
-
*
|
|
22
|
+
* How many invoices the list loads at a time, at most 50.
|
|
24
23
|
* @default 15
|
|
25
24
|
*/
|
|
26
25
|
batchSize?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomerPortalUrl } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
import { PaymentMethodFormProps } from './PaymentMethodForm.types';
|
|
3
3
|
import { EntryBaseProps } from '../../../types/EntryBaseProps';
|
|
4
|
-
export interface SolvimonPaymentMethodFormEntryProps extends EntryBaseProps<CustomerPortalUrl>, Pick<PaymentMethodFormProps, 'configuration'
|
|
4
|
+
export interface SolvimonPaymentMethodFormEntryProps extends EntryBaseProps<CustomerPortalUrl>, Pick<PaymentMethodFormProps, 'configuration'> {
|
|
5
5
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Amount,
|
|
2
|
-
import { PaymentIntegrationFormProps } from '../../../components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types';
|
|
1
|
+
import { Amount, CountryCode, Customer, Invoice, PaymentMethodOptionsResponse } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
3
2
|
interface PaymentMethodFormBaseConfiguration {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The customer's two-letter country, which decides the payment methods on offer. Defaults to the
|
|
5
|
+
* country of the customer's address.
|
|
6
|
+
*/
|
|
7
|
+
countryCode?: CountryCode;
|
|
7
8
|
/**
|
|
8
9
|
* Where the customer goes once the form is through. Given one, the completed form offers a
|
|
9
10
|
* button rather than leaving on its own: an instant redirect takes away the confirmation the
|
|
@@ -12,24 +13,28 @@ interface PaymentMethodFormBaseConfiguration {
|
|
|
12
13
|
successRedirectUrl?: string;
|
|
13
14
|
/** Label for that button, for a host whose own wording says where it leads. */
|
|
14
15
|
successRedirectLabel?: string;
|
|
15
|
-
validateOnSubmit?: PaymentIntegrationFormProps['validateOnSubmit'];
|
|
16
|
-
forceStorePaymentMethod?: PaymentIntegrationFormProps['forceStorePaymentMethod'];
|
|
17
16
|
}
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
/** Saves a payment method for later, without charging it. The default. */
|
|
18
|
+
export interface PaymentMethodFormSetupConfiguration extends PaymentMethodFormBaseConfiguration {
|
|
19
|
+
mode?: 'setup';
|
|
20
|
+
/** The invoice the method is saved for, so the methods on offer are the ones it can be paid with. */
|
|
21
|
+
invoiceId?: Invoice['id'];
|
|
22
|
+
/** An amount to offer the methods for, when there is no invoice. */
|
|
23
|
+
amount?: Amount;
|
|
20
24
|
}
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
/** Pays an invoice, and lets the customer save the method while doing so. */
|
|
26
|
+
export interface PaymentMethodFormPaymentConfiguration extends PaymentMethodFormBaseConfiguration {
|
|
27
|
+
mode: 'payment';
|
|
28
|
+
invoiceId: Invoice['id'];
|
|
29
|
+
/** The amount to charge, in the invoice's currency. */
|
|
23
30
|
amount: Amount;
|
|
24
|
-
context: Exclude<AuthorizePaymentPayload['context'], undefined>;
|
|
25
31
|
}
|
|
26
|
-
export type PaymentMethodFormConfiguration =
|
|
32
|
+
export type PaymentMethodFormConfiguration = PaymentMethodFormSetupConfiguration | PaymentMethodFormPaymentConfiguration;
|
|
27
33
|
export interface PaymentMethodFormProps {
|
|
28
34
|
customer: Customer;
|
|
29
35
|
paymentMethodOptions: PaymentMethodOptionsResponse;
|
|
30
36
|
configuration?: PaymentMethodFormConfiguration;
|
|
31
37
|
isLoading?: boolean;
|
|
32
|
-
countryCode?: string;
|
|
33
38
|
title?: string;
|
|
34
39
|
/**
|
|
35
40
|
* Hides the form's own submit button, for hosts that submit it from their own chrome — a modal
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defineSolvimonShippingAddressForm: (tagName?: string) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CustomerPortalUrl } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { ShippingAddressFormConfiguration } from './ShippingAddressForm.types';
|
|
3
|
+
import { EntryBaseProps } from '../../../types/EntryBaseProps';
|
|
4
|
+
export interface SolvimonShippingAddressFormEntryProps extends EntryBaseProps<CustomerPortalUrl> {
|
|
5
|
+
configuration?: ShippingAddressFormConfiguration;
|
|
6
|
+
}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { Customer, PaymentMethod, PricingPlanSubscriptionExpanded } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
export type SubscriptionsListConfiguration = {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Whether to show the "View all" button, which sends a `view-all-subscriptions` action request.
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
4
7
|
showViewAllButton?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether to show each subscription's details button, which sends a `view-subscription-details` action
|
|
10
|
+
* request.
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
5
13
|
showViewDetailsButton?: boolean;
|
|
14
|
+
showManageButton?: boolean;
|
|
6
15
|
};
|
|
7
16
|
export interface SubscriptionsListProps {
|
|
8
17
|
customer: Customer | undefined;
|
|
@@ -1,60 +1,54 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Action
|
|
2
|
+
* Action request types for the 'solvimon-action-request' event.
|
|
3
3
|
* Kept in a separate file with no internal dependencies so dist/core declarations resolve for consumers.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
action: string;
|
|
7
|
-
entity?: string;
|
|
8
|
-
data?: Record<string, unknown>;
|
|
9
|
-
href?: string;
|
|
10
|
-
meta?: Record<string, unknown>;
|
|
11
|
-
};
|
|
12
|
-
export interface ActionRequestDetailViewInvoice extends ActionRequestDetailBase {
|
|
5
|
+
export interface ActionRequestDetailViewInvoice {
|
|
13
6
|
action: 'view-invoice';
|
|
14
7
|
data: {
|
|
15
8
|
invoiceId: string;
|
|
16
9
|
};
|
|
17
10
|
}
|
|
18
|
-
export interface ActionRequestDetailPayInvoice
|
|
11
|
+
export interface ActionRequestDetailPayInvoice {
|
|
19
12
|
action: 'pay-invoice';
|
|
20
13
|
data: {
|
|
21
14
|
invoiceId: string;
|
|
22
15
|
};
|
|
23
16
|
}
|
|
24
|
-
export interface ActionRequestDetailViewSubscriptionDetails
|
|
17
|
+
export interface ActionRequestDetailViewSubscriptionDetails {
|
|
25
18
|
action: 'view-subscription-details';
|
|
26
19
|
data: {
|
|
27
20
|
subscriptionId: string;
|
|
28
21
|
};
|
|
29
22
|
}
|
|
30
|
-
export interface ActionRequestDetailViewAllSubscriptions
|
|
23
|
+
export interface ActionRequestDetailViewAllSubscriptions {
|
|
31
24
|
action: 'view-all-subscriptions';
|
|
32
25
|
}
|
|
33
|
-
export interface ActionRequestDetailManageSubscription
|
|
26
|
+
export interface ActionRequestDetailManageSubscription {
|
|
34
27
|
action: 'manage-subscription';
|
|
35
28
|
/**
|
|
36
|
-
* `
|
|
37
|
-
* it to `SubscriptionManagement` as `configuration.
|
|
29
|
+
* `currentPricingId` is the pricing the customer chose to change, when they came from one. Hand
|
|
30
|
+
* it to `SubscriptionManagement` as `configuration.currentPricingId` to open on its group.
|
|
38
31
|
*/
|
|
39
32
|
data: {
|
|
40
33
|
subscriptionId: string;
|
|
41
|
-
|
|
34
|
+
currentPricingId?: string;
|
|
42
35
|
};
|
|
43
36
|
}
|
|
44
|
-
export interface ActionRequestDetailEditBillingInformation
|
|
37
|
+
export interface ActionRequestDetailEditBillingInformation {
|
|
45
38
|
action: 'edit-billing-information';
|
|
46
39
|
}
|
|
47
|
-
export interface ActionRequestDetailViewAllPaymentMethods
|
|
40
|
+
export interface ActionRequestDetailViewAllPaymentMethods {
|
|
48
41
|
action: 'view-all-payment-methods';
|
|
49
42
|
}
|
|
50
|
-
export interface ActionRequestDetailAddPaymentMethod
|
|
43
|
+
export interface ActionRequestDetailAddPaymentMethod {
|
|
51
44
|
action: 'add-payment-method';
|
|
52
45
|
}
|
|
53
|
-
export interface
|
|
54
|
-
action: '
|
|
46
|
+
export interface ActionRequestDetailViewCustomerOverview {
|
|
47
|
+
action: 'view-customer-overview';
|
|
55
48
|
}
|
|
56
|
-
export type ActionRequestDetail = ActionRequestDetailViewInvoice | ActionRequestDetailPayInvoice | ActionRequestDetailViewSubscriptionDetails | ActionRequestDetailViewAllSubscriptions | ActionRequestDetailManageSubscription | ActionRequestDetailEditBillingInformation | ActionRequestDetailViewAllPaymentMethods | ActionRequestDetailAddPaymentMethod |
|
|
49
|
+
export type ActionRequestDetail = ActionRequestDetailViewInvoice | ActionRequestDetailPayInvoice | ActionRequestDetailViewSubscriptionDetails | ActionRequestDetailViewAllSubscriptions | ActionRequestDetailManageSubscription | ActionRequestDetailEditBillingInformation | ActionRequestDetailViewAllPaymentMethods | ActionRequestDetailAddPaymentMethod | ActionRequestDetailViewCustomerOverview;
|
|
57
50
|
/**
|
|
58
|
-
*
|
|
51
|
+
* The `solvimon-action-request` event. It bubbles and crosses the shadow root, so a listener on the
|
|
52
|
+
* document or a container hears every element.
|
|
59
53
|
*/
|
|
60
|
-
export type
|
|
54
|
+
export type ActionRequestEvent = CustomEvent<ActionRequestDetail>;
|