@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.31
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-Bs_aOOCX.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
- package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
- package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
- package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
- package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
- package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
- package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
- package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
- package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
- package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
- package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
- package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
- package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
- package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
- package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
- package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
- package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
- package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
- package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
- package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
- package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
- package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
- package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
- package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
- package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
- package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
- package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
- package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
- package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
- package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
- package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
- package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
- package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
- package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
- package/dist/addonQuantity-BvoYTajN.mjs +128 -0
- package/dist/adyen-D4em6EgU.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 +426 -426
- 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-d7Bhfqi_.mjs} +773 -746
- package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
- package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
- package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
- package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
- package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
- package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
- package/dist/index.es-BEZ2mumY.mjs +633 -0
- package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.mjs +37 -33
- package/dist/invoices-CXvL8KQx.mjs +143 -0
- package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
- package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
- package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
- package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
- package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
- package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
- package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-Dy81gmkC.mjs +71 -0
- package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
- package/dist/pricing-CBJT8C6L.mjs +42 -0
- package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
- package/dist/pricingPlanScheduleOverrides-GON_34ep.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 +1316 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
- package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
- 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/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
- package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
- package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
- package/dist/taxId.es-Zu2Ff1gL.mjs +510 -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/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 +189 -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-BWna0S6N.mjs} +1 -1
- package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
- package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
- package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
- package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
- package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
- package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
- package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
- package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
- package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
- package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
- package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
- package/dist/usePortal--Uzbpbgr.mjs +14 -0
- package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
- package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
- package/dist/useSubscription-lIGMFLG1.mjs +35 -0
- package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/package.json +12 -5
- 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/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/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
- package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
- 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/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,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
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { Address, CheckoutSessionNewCustomerType, CheckoutSessionStatus, ConfiguredMeterValue, CreatedCheckoutSessionPortalUrl, Invoice, InvoiceInfo, Name, PortalUrl, PricingPlanSubscription, TaxIdentifier } from '../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
/** A `CLOSED` link (its session COMPLETED or FAILED) can still be read. */
|
|
3
|
+
export type CheckoutSessionPortalUrlStatus = 'PUBLISHED' | 'REVOKED' | 'CLOSED';
|
|
4
|
+
/** The portal object a host passes for a checkout session link; `token` is the handle. */
|
|
5
|
+
export interface CheckoutSessionPortalUrl extends Omit<CreatedCheckoutSessionPortalUrl, 'status' | 'expires_at' | 'url'> {
|
|
6
|
+
status: CheckoutSessionPortalUrlStatus;
|
|
7
|
+
expires_at?: string;
|
|
8
|
+
url?: string;
|
|
9
|
+
}
|
|
10
|
+
export type CheckoutSessionFieldDisplay = 'EDITABLE' | 'READ_ONLY' | 'HIDDEN';
|
|
11
|
+
export interface CheckoutSessionEffectiveDisplay {
|
|
12
|
+
customer_details: CheckoutSessionFieldDisplay;
|
|
13
|
+
address: CheckoutSessionFieldDisplay;
|
|
14
|
+
tax_ids: CheckoutSessionFieldDisplay;
|
|
15
|
+
email: CheckoutSessionFieldDisplay;
|
|
16
|
+
custom_fields: CheckoutSessionFieldDisplay;
|
|
17
|
+
}
|
|
18
|
+
/** A customer the session creates when it completes. */
|
|
19
|
+
export interface CheckoutSessionNewCustomer {
|
|
20
|
+
reference: string;
|
|
21
|
+
type: CheckoutSessionNewCustomerType;
|
|
22
|
+
email?: string;
|
|
23
|
+
locale?: string;
|
|
24
|
+
timezone?: string;
|
|
25
|
+
roles?: string[];
|
|
26
|
+
custom_fields?: Record<string, unknown>[];
|
|
27
|
+
individual?: {
|
|
28
|
+
name?: Partial<Pick<Name, 'first_name' | 'last_name' | 'infix'>>;
|
|
29
|
+
residential_address?: Address;
|
|
30
|
+
};
|
|
31
|
+
organization?: {
|
|
32
|
+
legal_name?: string;
|
|
33
|
+
tax_id?: string;
|
|
34
|
+
tax_ids?: TaxIdentifier[];
|
|
35
|
+
registration_number?: string;
|
|
36
|
+
tax_exempt?: boolean;
|
|
37
|
+
tax_exempt_note?: string;
|
|
38
|
+
registered_address?: Address;
|
|
39
|
+
tax_registrations?: Record<string, unknown>[];
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export interface CheckoutSessionReadableCustomer {
|
|
43
|
+
customer_id?: string;
|
|
44
|
+
customer?: CheckoutSessionNewCustomer;
|
|
45
|
+
/** Another customer of the session by `reference`, or an existing one by `id`. */
|
|
46
|
+
parent_customer?: {
|
|
47
|
+
id?: string;
|
|
48
|
+
reference?: string;
|
|
49
|
+
};
|
|
50
|
+
display?: Partial<CheckoutSessionEffectiveDisplay>;
|
|
51
|
+
effective_display: CheckoutSessionEffectiveDisplay;
|
|
52
|
+
}
|
|
53
|
+
export interface CheckoutSessionMeterBound {
|
|
54
|
+
pricing_item_config_id: string;
|
|
55
|
+
min: {
|
|
56
|
+
number: string;
|
|
57
|
+
};
|
|
58
|
+
max: {
|
|
59
|
+
number: string;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export interface CheckoutSessionScheduleCustomization {
|
|
63
|
+
pricing_plan_schedule_id: string;
|
|
64
|
+
seats_values?: ConfiguredMeterValue[];
|
|
65
|
+
units?: ConfiguredMeterValue[];
|
|
66
|
+
coupons?: unknown[];
|
|
67
|
+
promotion_codes?: string[];
|
|
68
|
+
}
|
|
69
|
+
export interface CheckoutSessionSubscription {
|
|
70
|
+
template_pricing_plan_subscription_id: PricingPlanSubscription['id'];
|
|
71
|
+
pricing_plan_subscription: {
|
|
72
|
+
reference: string;
|
|
73
|
+
name?: string;
|
|
74
|
+
customer_id?: string;
|
|
75
|
+
customer_reference?: string;
|
|
76
|
+
variant?: string;
|
|
77
|
+
forward_customer_id?: string;
|
|
78
|
+
forward_customer_reference?: string;
|
|
79
|
+
};
|
|
80
|
+
pricing_plan_schedule_customizations?: CheckoutSessionScheduleCustomization[];
|
|
81
|
+
options?: {
|
|
82
|
+
edit_seats?: CheckoutSessionMeterBound[];
|
|
83
|
+
edit_units?: CheckoutSessionMeterBound[];
|
|
84
|
+
allow_promotion_codes?: 'NONE' | 'SINGLE';
|
|
85
|
+
};
|
|
86
|
+
starting_values?: {
|
|
87
|
+
pricing_plan_schedule_id: string;
|
|
88
|
+
seats_values?: ConfiguredMeterValue[];
|
|
89
|
+
units?: ConfiguredMeterValue[];
|
|
90
|
+
}[];
|
|
91
|
+
}
|
|
92
|
+
export interface CheckoutSession {
|
|
93
|
+
status: CheckoutSessionStatus;
|
|
94
|
+
payment_status: 'UNPAID' | 'PAID';
|
|
95
|
+
version: number;
|
|
96
|
+
completed_at?: string;
|
|
97
|
+
success_url?: string;
|
|
98
|
+
cancel_url?: string;
|
|
99
|
+
locale?: string;
|
|
100
|
+
/** Markdown. */
|
|
101
|
+
note?: string;
|
|
102
|
+
display?: Partial<CheckoutSessionEffectiveDisplay>;
|
|
103
|
+
customers: CheckoutSessionReadableCustomer[];
|
|
104
|
+
pricing_plan_subscriptions: CheckoutSessionSubscription[];
|
|
105
|
+
payment?: {
|
|
106
|
+
customer_id?: string;
|
|
107
|
+
customer_reference?: string;
|
|
108
|
+
payment_acceptor_ids?: string[];
|
|
109
|
+
store_payment_method?: boolean;
|
|
110
|
+
};
|
|
111
|
+
result?: unknown;
|
|
112
|
+
/** Paths such as `checkout_session.customers.0.customer.email`; absent when nothing is missing. */
|
|
113
|
+
missing_fields?: string[];
|
|
114
|
+
}
|
|
115
|
+
/** `GET` and `PATCH {transaction}/portal/portal-urls/{id}`. */
|
|
116
|
+
export interface CheckoutSessionPortalUrlResponse {
|
|
117
|
+
object_type: 'PORTAL_URL';
|
|
118
|
+
id: string;
|
|
119
|
+
type: 'CHECKOUT_SESSION';
|
|
120
|
+
status: CheckoutSessionPortalUrlStatus;
|
|
121
|
+
checkout_session: CheckoutSession;
|
|
122
|
+
}
|
|
123
|
+
export type CheckoutSessionAddressPatch = Partial<Address>;
|
|
124
|
+
/**
|
|
125
|
+
* The customer keys a buyer may send: the rest (`type`, `reference`, `locale`, …) is refused, and
|
|
126
|
+
* `null` only clears the lists that take it.
|
|
127
|
+
*/
|
|
128
|
+
export interface CheckoutSessionCustomerPatch {
|
|
129
|
+
email?: string;
|
|
130
|
+
custom_fields?: Record<string, unknown>[] | null;
|
|
131
|
+
individual?: {
|
|
132
|
+
name?: Partial<Pick<Name, 'first_name' | 'last_name' | 'infix'>>;
|
|
133
|
+
residential_address?: CheckoutSessionAddressPatch;
|
|
134
|
+
};
|
|
135
|
+
organization?: {
|
|
136
|
+
legal_name?: string;
|
|
137
|
+
tax_id?: string;
|
|
138
|
+
tax_ids?: Pick<TaxIdentifier, 'id' | 'type'>[] | null;
|
|
139
|
+
registration_number?: string;
|
|
140
|
+
tax_exempt?: boolean;
|
|
141
|
+
tax_exempt_note?: string;
|
|
142
|
+
registered_address?: CheckoutSessionAddressPatch;
|
|
143
|
+
tax_registrations?: Record<string, unknown>[] | null;
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
export interface CheckoutSessionCustomizationPatch {
|
|
147
|
+
pricing_plan_schedule_id: string;
|
|
148
|
+
seats_values?: ConfiguredMeterValue[];
|
|
149
|
+
units?: ConfiguredMeterValue[];
|
|
150
|
+
promotion_codes?: string[] | null;
|
|
151
|
+
}
|
|
152
|
+
/** Positional: entry i edits entry i, and `{}` leaves it alone. */
|
|
153
|
+
export interface CheckoutSessionPatchBody {
|
|
154
|
+
checkout_session: {
|
|
155
|
+
expected_version: number;
|
|
156
|
+
customers?: ({
|
|
157
|
+
customer: CheckoutSessionCustomerPatch;
|
|
158
|
+
} | Record<string, never>)[];
|
|
159
|
+
pricing_plan_subscriptions?: ({
|
|
160
|
+
pricing_plan_schedule_customizations: CheckoutSessionCustomizationPatch[];
|
|
161
|
+
} | Record<string, never>)[];
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
/** `POST {transaction}/portal/portal-urls/{id}/preview`. */
|
|
165
|
+
export interface CheckoutSessionPreview {
|
|
166
|
+
invoices?: {
|
|
167
|
+
customer_reference: string;
|
|
168
|
+
customer_id?: string;
|
|
169
|
+
invoice: Invoice;
|
|
170
|
+
pricing_plan_subscription_references: string[];
|
|
171
|
+
}[];
|
|
172
|
+
/** Decimal strings such as `"268.00"`. */
|
|
173
|
+
total?: {
|
|
174
|
+
currency: string;
|
|
175
|
+
amount_excl_tax: string;
|
|
176
|
+
tax: string;
|
|
177
|
+
amount_incl_tax: string;
|
|
178
|
+
};
|
|
179
|
+
per_subscription?: {
|
|
180
|
+
pricing_plan_subscription_reference: string;
|
|
181
|
+
invoice_infos: InvoiceInfo[];
|
|
182
|
+
}[];
|
|
183
|
+
checkout_session: {
|
|
184
|
+
version: number;
|
|
185
|
+
missing_fields?: string[];
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
/** Every portal object an element can be given; the types package lacks the checkout session. */
|
|
189
|
+
export type PortalObject = PortalUrl | CheckoutSessionPortalUrl;
|
|
@@ -4,6 +4,8 @@ export interface SdkError {
|
|
|
4
4
|
code: ErrorCode;
|
|
5
5
|
message: string;
|
|
6
6
|
error?: unknown;
|
|
7
|
+
/** The API's answer when it refused the payment, where `error` holds the gateway's own. */
|
|
8
|
+
apiError?: unknown;
|
|
7
9
|
/**
|
|
8
10
|
* The reference for this visit, shown to the customer so they can quote it when they report
|
|
9
11
|
* the failure. The same value is on every `LogEntry` the session emitted.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PricingPlan } from '../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
/** Local to this package until `@solvimon/solvimon-types` ships the pricing plan group. */
|
|
3
|
+
export type PricingPlanGroupChangeType = 'IMMEDIATE' | 'IMMEDIATE_PRO_RATA' | 'NEXT_BILLING_PERIOD' | 'NOT_ALLOWED';
|
|
4
|
+
export type PricingPlanGroupStatus = 'DRAFT' | 'ACTIVE' | 'DEPRECATED' | 'ARCHIVED';
|
|
5
|
+
export interface PricingPlanGroupMember {
|
|
6
|
+
pricing_plan_id: PricingPlan['id'];
|
|
7
|
+
/** A higher order is an upgrade of a lower one. */
|
|
8
|
+
order: number;
|
|
9
|
+
/** Only on an expanded response. */
|
|
10
|
+
pricing_plan?: PricingPlan | null;
|
|
11
|
+
}
|
|
12
|
+
export interface PricingPlanGroup {
|
|
13
|
+
object_type: 'PRICING_PLAN_GROUP';
|
|
14
|
+
id: string;
|
|
15
|
+
reference: string;
|
|
16
|
+
name?: string | null;
|
|
17
|
+
status: PricingPlanGroupStatus | null;
|
|
18
|
+
upgrade_type: PricingPlanGroupChangeType | null;
|
|
19
|
+
downgrade_type: PricingPlanGroupChangeType | null;
|
|
20
|
+
cancellation_type: PricingPlanGroupChangeType | null;
|
|
21
|
+
pricing_plans?: PricingPlanGroupMember[] | null;
|
|
22
|
+
created_at?: string;
|
|
23
|
+
updated_at?: string;
|
|
24
|
+
}
|
|
25
|
+
export type PricingPlanChangeDirection = 'UPGRADE' | 'DOWNGRADE';
|