@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.
Files changed (257) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
  5. package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
  6. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
  7. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
  8. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  9. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
  10. package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
  11. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
  12. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
  13. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
  14. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  15. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
  16. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
  17. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
  18. package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
  19. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
  20. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
  21. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
  22. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
  23. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
  24. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
  25. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
  26. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
  27. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
  28. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
  29. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
  30. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
  31. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
  32. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
  33. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
  34. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
  35. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
  36. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
  37. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
  38. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
  39. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
  40. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
  41. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
  42. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
  43. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
  44. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
  45. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
  46. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
  47. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
  48. 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
  49. package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
  50. package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
  51. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
  52. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
  53. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
  54. 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
  55. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
  56. package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
  57. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
  58. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
  59. package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
  60. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
  61. package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
  62. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
  63. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
  64. package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
  65. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
  66. 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
  67. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
  68. 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
  69. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  70. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
  71. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
  72. package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
  73. package/dist/addonQuantity-BvoYTajN.mjs +128 -0
  74. package/dist/adyen-D4em6EgU.mjs +99 -0
  75. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  76. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  77. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  78. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  79. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  80. package/dist/components/Invoice/Invoice.mjs +426 -426
  81. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  82. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  83. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  84. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  85. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  86. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  87. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  88. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  89. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  90. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  91. package/dist/core/events.types.d.ts +1 -0
  92. package/dist/core/index.mjs +51 -34
  93. package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
  94. package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
  95. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
  96. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
  97. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
  98. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
  99. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  100. package/dist/index.es-BEZ2mumY.mjs +633 -0
  101. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  102. package/dist/index.mjs +37 -33
  103. package/dist/invoices-CXvL8KQx.mjs +143 -0
  104. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
  105. package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
  106. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
  107. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
  108. package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
  109. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
  110. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
  111. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  112. package/dist/payments-Dy81gmkC.mjs +71 -0
  113. package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
  114. package/dist/pricing-CBJT8C6L.mjs +42 -0
  115. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
  116. package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
  117. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  118. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  119. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  120. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
  121. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  122. package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
  123. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  124. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  125. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  126. package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
  127. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  128. package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
  129. package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
  130. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  131. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  132. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  133. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  134. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  135. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  136. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  137. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  138. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  139. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  140. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  141. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  142. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  143. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  144. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  145. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  146. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  147. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  148. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  149. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  150. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  151. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  152. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  153. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  154. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  155. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  156. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  157. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  158. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  159. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  160. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  161. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  162. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  164. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  166. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  167. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  168. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  170. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  171. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  172. package/dist/types/index.d.ts +5 -1
  173. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  174. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  175. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  176. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  177. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  178. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  179. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  180. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  181. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  182. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  183. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  184. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  185. package/dist/types/public/core/action-request.types.d.ts +18 -24
  186. package/dist/types/public/core/events.types.d.ts +99 -0
  187. package/dist/types/public/core/index.d.ts +3 -1
  188. package/dist/types/public/core/types.d.ts +11 -2
  189. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  190. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  191. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  192. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  193. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  194. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  195. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  196. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  197. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  198. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  199. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  200. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  201. package/dist/types/types/branding.d.ts +15 -0
  202. package/dist/types/types/checkoutSession.d.ts +189 -0
  203. package/dist/types/types/errors.d.ts +2 -0
  204. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  205. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
  206. package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
  207. package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
  208. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
  209. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  210. package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
  211. package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
  212. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
  213. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
  214. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
  215. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
  216. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  217. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
  218. package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
  219. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
  220. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
  221. package/dist/usePortal--Uzbpbgr.mjs +14 -0
  222. package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
  223. package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
  224. package/dist/useSubscription-lIGMFLG1.mjs +35 -0
  225. package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
  226. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  227. package/package.json +12 -5
  228. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  229. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  230. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  231. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  232. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  233. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  234. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  235. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  236. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  237. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  238. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  239. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  240. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  241. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  242. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  243. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  244. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  245. package/dist/invoices-DdREPDXV.mjs +0 -123
  246. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  247. package/dist/payments-CKpU1K3t.mjs +0 -68
  248. package/dist/pricing-CEaZGgKe.mjs +0 -29
  249. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  250. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  251. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  252. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  253. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  254. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  255. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  256. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  257. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
package/README.md CHANGED
@@ -30,8 +30,9 @@ Every component requires at minimum:
30
30
  carries the portal token the element signs in with; there is no separate `token` property.
31
31
 
32
32
  An element renders only for a published portal of the type it accepts: `checkout` takes an
33
- `INIT_PRICING_PLAN_SUBSCRIPTION` portal, every other element a `CUSTOMER` one. Any other type logs
34
- `PORTAL_TYPE_NOT_ALLOWED`, dispatches an `error` event and renders nothing. A revoked portal logs `RESOURCE_REVOKED`; the
33
+ `INIT_PRICING_PLAN_SUBSCRIPTION` portal, `checkout-session` a `CHECKOUT_SESSION` one (also once it
34
+ is `CLOSED`, to show how the session ended), every other element a `CUSTOMER` one. Any other type logs
35
+ `PORTAL_TYPE_NOT_ALLOWED`, dispatches a `solvimon-error` event and renders nothing. A revoked portal logs `RESOURCE_REVOKED`; the
35
36
  checkout shows its "Checkout not available" notice, and the other elements say that they are no longer
36
37
  available (`sv-portal-unavailable`).
37
38
 
@@ -52,6 +53,12 @@ is read only when the element signs in, and only for a `SIGNED_TOKEN` portal obj
52
53
  JavaScript property, like `portalObject`: it is an object so that the token never becomes an HTML
53
54
  attribute, which a string property of a custom element does.
54
55
 
56
+ Use `SIGNED_TOKEN` portal objects on a page outside `solvimon.com`. Any other portal object signs
57
+ in through Solvimon identity, which keeps the session with a cookie on `identity.solvimon.com`. On
58
+ another site that cookie is a third-party cookie, which Safari blocks, so in Safari the session
59
+ cannot be renewed and ends, with `SESSION_EXPIRED`, once its first token expires. A handle needs no
60
+ cookie.
61
+
55
62
  ## Usage
56
63
 
57
64
  The SDK ships web components (Custom Elements), and there are two ways to put one on a page.
@@ -98,6 +105,10 @@ const solvimon = createSolvimonCore({ environment: 'TEST' });
98
105
  const checkout = solvimon.createScreen('checkout', {
99
106
  container: '#checkout',
100
107
  portalObject,
108
+ // Optional: listeners for the element's events, added before it is in the page.
109
+ on: {
110
+ 'solvimon-payment-succeeded': (event) => console.log('paid', event.detail),
111
+ },
101
112
  });
102
113
 
103
114
  // Later, to remove it:
@@ -112,20 +123,67 @@ yet; `const { unmount } = solvimon.createScreen(…)` works too.
112
123
  ### When an element fails
113
124
 
114
125
  An error the element cannot carry on from — an unknown `environment`, a portal object meant for
115
- another element, or a bug in the SDK — is logged once and dispatched as an `error` event on the
116
- element. It is logged as `UNHANDLED_ERROR` unless it has a code of its own, such as
117
- `PORTAL_TYPE_NOT_ALLOWED` for a portal object meant for another element. Its context names the
118
- element in `componentName`, so a page with several can tell which one failed. The event does not bubble, and its `detail` is an array whose first item is the `Error`:
126
+ another element, or a bug in the SDK — is logged once and dispatched as a `solvimon-error` event
127
+ on the element. It is logged as `UNHANDLED_ERROR` unless it has a code of its own, such as
128
+ `PORTAL_TYPE_NOT_ALLOWED` for a portal object meant for another element. The event's `detail` holds
129
+ what that log entry does: the `error`, its `code`, the `componentName` of the element that failed and
130
+ the session `reference`. Like every event the SDK dispatches — see [Events](#events) — it bubbles and crosses the shadow root, so one
131
+ listener on a container hears every element in it, and `componentName` says which one failed:
119
132
 
120
133
  ```ts
121
- element.addEventListener('error', (event) => {
122
- const [error] = (event as CustomEvent<[Error]>).detail;
134
+ container.addEventListener('solvimon-error', (event) => {
135
+ const { error, code, componentName, reference } = event.detail;
136
+ });
137
+ ```
138
+
139
+ Importing anything from `@solvimon/solvimon-web/core`, a type included, adds the SDK's events to
140
+ TypeScript's element and document event maps, so a listener knows its `detail` without a cast;
141
+ `SolvimonEventMap` lists them. Every event carries the `solvimon-` prefix, so none collides with
142
+ the platform's own, such as `error`, which `window.onerror` and error monitoring tools listen for,
143
+ or with another library's on the same page.
144
+
145
+ ### Events
146
+
147
+ | Event | Sent by | `detail` |
148
+ | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
149
+ | `solvimon-error` | any element that fails | `{ error, code, componentName, reference }` |
150
+ | `solvimon-log` | any element, for each log entry | the `LogEntry`, as `onLog` receives it |
151
+ | `solvimon-action-request` | any element, when the customer asks to go somewhere the host decides on | `{ action, data }` |
152
+ | `solvimon-ready` | the checkout, once its subscription and first price have loaded | none |
153
+ | `solvimon-payment-succeeded` | the checkout, pay-invoice, and `payment-method-form` in `payment` mode | `{ componentName, subscriptionId?, invoiceId? }` |
154
+ | `solvimon-invoice-created` | subscription details, when an on-demand order creates an invoice | `{ invoiceId, paymentStatus }` |
155
+ | `solvimon-payment-method-added` | `payment-method-form`, `payment-methods-management`, and the add-method step of an on-demand order, a top-up or an auto top-up (in subscription details, customer overview and `wallet-balances`) | `{ componentName }` |
156
+ | `solvimon-shipping-address-saved` | `shipping-address-form`, once the address is stored | `{ componentName, shippingAddressId }` |
157
+
158
+ `componentName` is the tag name of the element the event came from. A nested element's event reaches
159
+ a listener as if the outer element sent it, so `detail.componentName` is the way to tell them apart.
160
+
161
+ Add listeners before the element is in the page — on the element before it is appended, on a
162
+ container or `document`, or through the core's `on` option — or an event dispatched as the element
163
+ starts can be missed. A checkout that comes back from a 3-D Secure or bank redirect, for one, may
164
+ send `solvimon-payment-succeeded` soon after it loads.
165
+
166
+ `solvimon-ready` is sent whether the customer can pay yet, has paid already or has nothing to pay
167
+ with, and not again when the price or the payment form reloads.
168
+
169
+ `solvimon-invoice-created` is sent whether or not the order's payment went through, so
170
+ `paymentStatus` says which: `PAID` and `OVERPAID` are settled, `UNPAID`, `PARTIALLY_PAID` and a
171
+ missing status are an invoice still to be paid. A failed order is logged instead, as
172
+ `ON_DEMAND_CHARGE_REFUSED`, or `ON_DEMAND_CHARGE_FAILED` when its outcome is unknown.
173
+
174
+ `solvimon-payment-succeeded` is the only cancelable event. After a paid checkout the customer is
175
+ sent to the success URL set in Solvimon Desk; a host that takes over from there cancels the event:
176
+
177
+ ```ts
178
+ checkout.addEventListener('solvimon-payment-succeeded', (event) => {
179
+ event.preventDefault();
180
+ router.push(`/welcome?subscription=${event.detail.subscriptionId}`);
123
181
  });
124
182
  ```
125
183
 
126
184
  A failure the element handles — a refused payment, a subscription the checkout cannot load, a date
127
- it can only format in the browser's own time zone — reaches `onLog` and the `log` event under its
128
- own code, and is never reported again as `UNHANDLED_ERROR` or an `error` event.
185
+ it can only format in the browser's own time zone — reaches `onLog` and the `solvimon-log` event under its
186
+ own code, and is never reported again as `UNHANDLED_ERROR` or a `solvimon-error` event.
129
187
  An element missing `environment`, `portalObject` or the id in its `configuration` renders
130
188
  nothing until they are set, and logs `MISSING_REQUIRED_PROPERTIES` if they are still missing just
131
189
  after it mounts.
@@ -179,9 +237,9 @@ loads, as the values its form starts with, and applies `couponCode` once the sub
179
237
  A few more are read once, when the element loads, and a later change does not reach it; to change
180
238
  one, mount a new element:
181
239
 
182
- - the payment method form's `countryCode` and `configuration.invoiceId`, which it sets up the
183
- payment methods it offers with;
184
- - the subscription management screen's `configuration.enabledPricingId`, which picks the pricing
240
+ - the payment method form's `configuration.countryCode` and `configuration.invoiceId`, which it
241
+ sets up the payment methods it offers with;
242
+ - the subscription management screen's `configuration.currentPricingId`, which picks the pricing
185
243
  it opens on.
186
244
 
187
245
  The supported locales are `en-US`, `nl-NL`, `de-DE`, `it-IT` and `fr-FR`. Any other — `nl` or `en-GB`, say
@@ -190,16 +248,12 @@ The supported locales are `en-US`, `nl-NL`, `de-DE`, `it-IT` and `fr-FR`. Any ot
190
248
  ### Navigation requests
191
249
 
192
250
  The SDK does not navigate for you. Where a customer asks to go somewhere — open an invoice, manage a
193
- subscription — the element dispatches an `action-request` event, and your page decides what that
251
+ subscription — the element dispatches a `solvimon-action-request` event, and your page decides what that
194
252
  means. The event bubbles and crosses the shadow root, so one listener on a container catches every
195
253
  element in it:
196
254
 
197
255
  ```ts
198
- import type { RequestActionEvent } from '@solvimon/solvimon-web/core';
199
-
200
- container.addEventListener('action-request', (event) => {
201
- const { detail } = event as RequestActionEvent;
202
-
256
+ container.addEventListener('solvimon-action-request', ({ detail }) => {
203
257
  if (detail.action === 'view-invoice') {
204
258
  router.push(`/invoices/${detail.data.invoiceId}`);
205
259
  }
@@ -208,9 +262,8 @@ container.addEventListener('action-request', (event) => {
208
262
 
209
263
  `detail.action` is one of `view-invoice`, `pay-invoice`, `view-subscription-details`,
210
264
  `view-all-subscriptions`, `manage-subscription`, `edit-billing-information`,
211
- `view-all-payment-methods`, `add-payment-method` and `navigate-to-customer-overview`. None of them
212
- does anything unless you handle it. The event is cancelable so that an action the SDK gives a
213
- default later can be taken over with `preventDefault()`; today that call has no effect.
265
+ `view-all-payment-methods`, `add-payment-method` and `view-customer-overview`. None of them
266
+ does anything unless you handle it.
214
267
 
215
268
  ## CSS overrides
216
269
 
@@ -251,6 +304,7 @@ Full-page experiences.
251
304
  | Export path | Custom element |
252
305
  | ----------------------------------------------------------- | --------------------------------------- |
253
306
  | `@solvimon/solvimon-web/screens/checkout` | `<solvimon-checkout>` |
307
+ | `@solvimon/solvimon-web/screens/checkout-session` | `<solvimon-checkout-session>` |
254
308
  | `@solvimon/solvimon-web/screens/customer-overview` | `<solvimon-customer-overview>` |
255
309
  | `@solvimon/solvimon-web/screens/pay-invoice` | `<solvimon-pay-invoice>` |
256
310
  | `@solvimon/solvimon-web/screens/payment-methods-management` | `<solvimon-payment-methods-management>` |
@@ -272,6 +326,7 @@ Embeddable building blocks.
272
326
  | `@solvimon/solvimon-web/components/invoices-list` | `<solvimon-invoices-list>` |
273
327
  | `@solvimon/solvimon-web/components/payment-history` | `<solvimon-payment-history>` |
274
328
  | `@solvimon/solvimon-web/components/payment-method-form` | `<solvimon-payment-method-form>` |
329
+ | `@solvimon/solvimon-web/components/shipping-address-form` | `<solvimon-shipping-address-form>` |
275
330
  | `@solvimon/solvimon-web/components/subscription-schedules` | `<solvimon-subscription-schedules>` |
276
331
  | `@solvimon/solvimon-web/components/subscriptions-list` | `<solvimon-subscriptions-list>` |
277
332
  | `@solvimon/solvimon-web/components/wallet-balances` | `<solvimon-wallet-balances>` |
@@ -392,77 +447,83 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
392
447
 
393
448
  ### Error codes
394
449
 
395
- | Code | Description |
396
- | :------------------------------------------ | :----------------------------------------------------------------- |
397
- | `ADYEN_PAYMENT_FAILED` | Adyen reported the payment as failed |
398
- | `ADYEN_SUBMIT_FAILED` | Failed to submit Adyen drop-in |
399
- | `APPLE_PAY_AUTHORIZATION_FAILED` | Payment authorization failed |
400
- | `APPLE_PAY_ERROR` | Apple Pay error |
401
- | `AUTO_TOP_UP_CANCELLATION_FAILED` | Failed to turn off a wallet |
402
- | `AUTO_TOP_UP_SAVE_FAILED` | Failed to save the automatic top-up rule |
403
- | `EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR` | The Google Pay button reference is not found and cannot be mounted |
404
- | `EXPRESS_CHECKOUT_PAYPAL_ERROR` | The PayPal button reference is not found and cannot be mounted |
405
- | `INITIAL_DATA_LOAD_FAILED` | Failed to load initial data |
406
- | `INTEGRATION_ERROR` | Unhandled error in payment submission flow |
407
- | `INVALID_COUNTRY_CODE` | invalid country code provided:… |
408
- | `INVALID_EMAIL` | invalid email provided |
409
- | `INVALID_REDIRECT_RESULT` | Redirect result is set but payment acceptor id is missing |
410
- | `INVALID_TOKEN` | Failed to fetch access token |
411
- | `INVOICE_PREVIEW_FAILED` | Failed to load the invoice preview |
412
- | `NO_PAYMENT_METHODS_AVAILABLE` | No payment method can be offered to the customer |
413
- | `ON_DEMAND_CHARGE_FAILED` | Failed to charge the on-demand order |
414
- | `ON_DEMAND_ITEMS_LOAD_FAILED` | Failed to load the on-demand items of the subscription |
415
- | `PAYMENT_ACCEPTOR_MISSING` | Additional details arrived without a payment acceptor id |
416
- | `PAYMENT_AUTHORIZATION_FAILED` | Failed payment authorization for payment acceptor with id… |
417
- | `PAYMENT_DETAILS_CALL_FAILED` | Failed fetching payment details |
418
- | `PAYMENT_DETAILS_REJECTED` | Payment details returned a failed payment |
419
- | `PAYMENT_INTEGRATION_INITIALIZATION_FAILED` | Failed to mount Adyen web drop-in |
420
- | `PAYMENT_METHOD_OPTIONS_LOAD_FAILED` | Failed to load the payment methods that can be offered |
421
- | `PORTAL_TOKEN_UNAVAILABLE` | Could not exchange the portal link handle for a token |
422
- | `PORTAL_TYPE_NOT_ALLOWED` | Reserved — not currently emitted |
423
- | `PORTAL_URL_EXPIRED` | The portal link has expired |
424
- | `PORTAL_URL_REVOKED` | The portal link is revoked |
425
- | `PROMOTION_CODE_APPLY_FAILED` | Failed to apply promotion code |
426
- | `PROMOTION_CODE_REMOVE_FAILED` | Failed to remove promotion code |
427
- | `REQUEST_FAILED` | Request failed |
428
- | `REQUEST_PARSE_FAILED` | Failed to parse JSON response |
429
- | `RESOURCE_REVOKED` | The portal object is not published |
430
- | `SESSION_EXPIRED` | Stopped refreshing the access token after repeated 401 responses |
431
- | `SHIPPED_SUBSCRIPTIONS_LOAD_FAILED` | Failed to find out whether the customer has shipped subscriptions |
432
- | `SHIPPING_ADDRESSES_LOAD_FAILED` | Failed to load the shipping addresses |
433
- | `SHIPPING_ADDRESS_DELETE_FAILED` | Failed to delete the shipping address |
434
- | `SHIPPING_ADDRESS_SAVE_FAILED` | Failed to save the shipping address |
435
- | `STRIPE_ACTION_FAILED` | Missing client_secret in Stripe ACTION_REQUIRED response |
436
- | `STRIPE_CONFIRMATION_TOKEN_FAILED` | Stripe submission failed |
437
- | `STRIPE_REDIRECT_RETURN_FAILED` | Could not retrieve the payment the Stripe redirect returned from |
438
- | `STRIPE_SUBMIT_FAILED` | Unexpected error during Stripe submission |
439
- | `SUBSCRIPTION_CANCELLATION_FAILED` | Failed to change the cancellation state of a subscription |
440
- | `SUBSCRIPTION_LOAD_FAILED` | Failed to load the subscription the checkout prices |
441
- | `SUBSCRIPTION_UPDATE_FAILED` | Failed to start a new pricing plan schedule |
442
- | `TOKENIZATION_FAILED` | Missing customer id for payment acceptor with id… |
443
- | `TOP_UP_FAILED` | Failed to charge the wallet top-up |
444
- | `UNHANDLED_ERROR` | An error that reached the SDK with no more specific code |
450
+ | Code | Description |
451
+ | :------------------------------------------ | :---------------------------------------------------------------- |
452
+ | `ADYEN_PAYMENT_FAILED` | Adyen reported the payment as failed |
453
+ | `ADYEN_SUBMIT_FAILED` | Failed to submit Adyen drop-in |
454
+ | `APPLE_PAY_AUTHORIZATION_FAILED` | Payment authorization failed |
455
+ | `APPLE_PAY_ERROR` | Apple Pay error |
456
+ | `AUTO_TOP_UP_CANCELLATION_FAILED` | Failed to turn off a wallet |
457
+ | `AUTO_TOP_UP_SAVE_FAILED` | Failed to save the automatic top-up rule |
458
+ | `CHECKOUT_SESSION_LOAD_FAILED` | Failed to load the checkout session |
459
+ | `CHECKOUT_SESSION_UPDATE_FAILED` | Failed to save the checkout session |
460
+ | `INITIAL_DATA_LOAD_FAILED` | Failed to load initial data |
461
+ | `INTEGRATION_ERROR` | Unhandled error in payment submission flow |
462
+ | `INVALID_COUNTRY_CODE` | invalid country code provided:… |
463
+ | `INVALID_EMAIL` | invalid email provided |
464
+ | `INVALID_REDIRECT_RESULT` | Redirect result is set but payment acceptor id is missing |
465
+ | `INVALID_TOKEN` | Failed to fetch access token |
466
+ | `INVOICE_PREVIEW_FAILED` | Failed to load the invoice preview |
467
+ | `NO_PAYMENT_METHODS_AVAILABLE` | No payment method can be offered to the customer |
468
+ | `ON_DEMAND_CHARGE_FAILED` | Failed to charge the on-demand order |
469
+ | `ON_DEMAND_ITEMS_LOAD_FAILED` | Failed to load the on-demand items of the subscription |
470
+ | `PAYMENT_ACCEPTOR_MISSING` | Additional details arrived without a payment acceptor id |
471
+ | `PAYMENT_AUTHORIZATION_FAILED` | Failed payment authorization for payment acceptor with id… |
472
+ | `PAYMENT_DETAILS_CALL_FAILED` | Failed fetching payment details |
473
+ | `PAYMENT_DETAILS_REJECTED` | Payment details returned a failed payment |
474
+ | `PAYMENT_INTEGRATION_INITIALIZATION_FAILED` | Failed to mount Adyen web drop-in |
475
+ | `PAYMENT_METHOD_OPTIONS_LOAD_FAILED` | Failed to load the payment methods that can be offered |
476
+ | `PORTAL_TOKEN_UNAVAILABLE` | Could not exchange the portal link handle for a token |
477
+ | `PORTAL_TYPE_NOT_ALLOWED` | This element does not accept a portal object of type… |
478
+ | `PORTAL_URL_EXPIRED` | The portal link has expired |
479
+ | `PORTAL_URL_REVOKED` | The portal link is revoked |
480
+ | `PRICING_PLAN_GROUP_LOAD_FAILED` | Failed to load the pricing plan group of the subscription |
481
+ | `PROMOTION_CODE_APPLY_FAILED` | Failed to apply promotion code |
482
+ | `PROMOTION_CODE_REMOVE_FAILED` | Failed to remove promotion code |
483
+ | `REQUEST_FAILED` | Request failed |
484
+ | `REQUEST_PARSE_FAILED` | Failed to parse JSON response |
485
+ | `RESOURCE_REVOKED` | The portal object is not published |
486
+ | `SESSION_EXPIRED` | Stopped refreshing the access token after repeated 401 responses |
487
+ | `SHIPPED_SUBSCRIPTIONS_LOAD_FAILED` | Failed to find out whether the customer has shipped subscriptions |
488
+ | `SHIPPING_ADDRESSES_LOAD_FAILED` | Failed to load the shipping addresses |
489
+ | `SHIPPING_ADDRESS_DELETE_FAILED` | Failed to delete the shipping address |
490
+ | `SHIPPING_ADDRESS_SAVE_FAILED` | Failed to save the shipping address |
491
+ | `STRIPE_ACTION_FAILED` | Missing client_secret in Stripe ACTION_REQUIRED response |
492
+ | `STRIPE_CONFIRMATION_TOKEN_FAILED` | Stripe submission failed |
493
+ | `STRIPE_REDIRECT_RETURN_FAILED` | Could not retrieve the payment the Stripe redirect returned from |
494
+ | `STRIPE_SUBMIT_FAILED` | Unexpected error during Stripe submission |
495
+ | `SUBSCRIPTION_CANCELLATION_FAILED` | Failed to change the cancellation state of a subscription |
496
+ | `SUBSCRIPTION_LOAD_FAILED` | Failed to load the subscription the checkout prices |
497
+ | `SUBSCRIPTION_PAYMENT_METHOD_UPDATE_FAILED` | Failed to link the payment method to the subscription |
498
+ | `SUBSCRIPTION_PLAN_CHANGE_FAILED` | Failed to move the subscription to another plan in its group |
499
+ | `SUBSCRIPTION_UPDATE_FAILED` | Failed to start a new pricing plan schedule |
500
+ | `TOKENIZATION_FAILED` | Missing customer id for payment acceptor with id… |
501
+ | `TOP_UP_FAILED` | Failed to charge the wallet top-up |
502
+ | `UNHANDLED_ERROR` | An error that reached the SDK with no more specific code |
445
503
 
446
504
  ### Warning codes
447
505
 
448
- | Code | Description |
449
- | :----------------------------------- | :----------------------------------------------------------------------------------------------------------- |
450
- | `ACTIVE_SCHEDULE_NOT_FOUND` | No schedule is currently being billed |
451
- | `ADYEN_INVALID_CONFIGURATION` | No environment set for adyen advanced flow, defaulted to live |
452
- | `APPLE_PAY_ACTION_REQUIRED` | Reserved — not currently emitted |
453
- | `APPLE_PAY_FORM_INCOMPLETE` | Apple Pay authorization stopped: the checkout form is incomplete |
454
- | `CHECKOUT_FORM_STATE_NOT_SAVED` | Could not keep the checkout form for a redirect return |
455
- | `CHECKOUT_SESSION_CLOSED` | The checkout session of the portal link is closed |
456
- | `INVOICE_PREVIEW_SKIPPED` | Skipped the on-demand charge invoice preview: no schedule to charge it on |
457
- | `MISSING_REQUIRED_PROPERTIES` | Not rendering until these properties are set:… |
458
- | `ON_DEMAND_CHARGE_REFUSED` | The on-demand order was refused or its payment did not go through |
459
- | `PAYMENT_INTEGRATION_NOT_RENDERABLE` | No Adyen payment methods to offer |
460
- | `PAYMENT_OUTCOME_UNCONFIRMED` | The payment outcome could not be confirmed yet |
461
- | `PROMOTION_CODE_REJECTED` | The promotion code was not accepted |
462
- | `RECURRING_AMOUNT_UNRESOLVED` | Could not tell the recurring part of the invoice from the one-off part; the mandate states the invoice total |
463
- | `REQUEST_FAILED` | Request failed with an expected status |
464
- | `TRANSLATION_LOAD_FAILED` | Failed to load translations for locale… |
465
- | `UI_COMPONENT_RECOVERED` | A UI component recovered from an error and carried on |
466
- | `UNSUPPORTED_LOCALE` | The locale is not supported, showing en-US instead |
506
+ | Code | Description |
507
+ | :----------------------------------------- | :----------------------------------------------------------------------------------------------------------- |
508
+ | `ACTIVE_SCHEDULE_NOT_FOUND` | No schedule is currently being billed |
509
+ | `ADYEN_INVALID_CONFIGURATION` | No environment set for adyen advanced flow, defaulted to live |
510
+ | `APPLE_PAY_FORM_INCOMPLETE` | Apple Pay authorization stopped: the checkout form is incomplete |
511
+ | `CHECKOUT_FORM_STATE_NOT_SAVED` | Could not keep the checkout form for a redirect return |
512
+ | `CHECKOUT_SESSION_CLOSED` | The checkout session of the portal link is closed |
513
+ | `CHECKOUT_SESSION_COMPLETION_CHECK_FAILED` | Failed to read the checkout session while waiting for it to complete |
514
+ | `CHECKOUT_SESSION_EDIT_NOT_APPLIED` | The checkout session was saved but kept a value the customer changed |
515
+ | `CHECKOUT_SESSION_SEVERAL_INVOICES` | The checkout session previewed several invoices; only the first is shown |
516
+ | `CHECKOUT_SESSION_UPDATE_REFUSED` | The API refused a change to the checkout session |
517
+ | `INVOICE_PREVIEW_SKIPPED` | Skipped the on-demand charge invoice preview: no schedule to charge it on |
518
+ | `MISSING_REQUIRED_PROPERTIES` | Not rendering until these properties are set:… |
519
+ | `ON_DEMAND_CHARGE_REFUSED` | The on-demand order was refused or its payment did not go through |
520
+ | `PAYMENT_INTEGRATION_NOT_RENDERABLE` | No Adyen payment methods to offer |
521
+ | `PAYMENT_OUTCOME_UNCONFIRMED` | The payment outcome could not be confirmed yet |
522
+ | `PROMOTION_CODE_REJECTED` | The promotion code was not accepted |
523
+ | `RECURRING_AMOUNT_UNRESOLVED` | Could not tell the recurring part of the invoice from the one-off part; the mandate states the invoice total |
524
+ | `REQUEST_FAILED` | Request failed with an expected status |
525
+ | `TRANSLATION_LOAD_FAILED` | Failed to load translations for locale… |
526
+ | `UI_COMPONENT_RECOVERED` | A UI component recovered from an error and carried on |
527
+ | `UNSUPPORTED_LOCALE` | The locale is not supported, showing en-US instead |
467
528
 
468
529
  <!-- log-codes:end — DO NOT EDIT: auto-generated by `npm run logs:list` -->
@@ -0,0 +1,97 @@
1
+ import { defineComponent as g, ref as f, computed as n, openBlock as c, createBlock as u, unref as e, withCtx as M, createElementVNode as x } from "vue";
2
+ import { _ as C } from "./ErrorNotification.vue.es-CWIVt5q9.mjs";
3
+ import { M as O } from "./Modal.vue.es-CDjfZDDx.mjs";
4
+ import { a as k } from "./customElements-d7Bhfqi_.mjs";
5
+ import { u as S, _ as $ } from "./AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs";
6
+ const P = { class: "sv-add-payment-method-modal grid grid-cols-1 gap-4 pb-4" }, T = /* @__PURE__ */ g({
7
+ __name: "AddPaymentMethodModal",
8
+ props: {
9
+ showModal: { type: Boolean },
10
+ customer: { type: Object },
11
+ subscription: { type: Object },
12
+ subTitle: { type: String }
13
+ },
14
+ emits: ["stored", "close"],
15
+ setup(a, { emit: b }) {
16
+ const d = a, p = b, { $t: s } = k(), m = f(), h = n(() => {
17
+ var t;
18
+ return !!((t = m.value) != null && t.isSaving);
19
+ }), r = f(!1), { settledOptions: y, isPending: _ } = S({
20
+ isOpen: n(() => d.showModal),
21
+ customer: n(() => d.customer),
22
+ subscriptionId: n(() => {
23
+ var t;
24
+ return (t = d.subscription) == null ? void 0 : t.id;
25
+ }),
26
+ onError: () => {
27
+ r.value = !0;
28
+ }
29
+ }), v = n(() => {
30
+ var o, i;
31
+ const t = (o = d.subscription) == null ? void 0 : o.payment_acceptor_ids;
32
+ return t ? (i = y.value) == null ? void 0 : i.filter(
33
+ ({ payment_acceptor: l }) => t.includes(l.id)
34
+ ) : y.value;
35
+ }), w = () => {
36
+ h.value || (r.value = !1, p("close"));
37
+ };
38
+ return (t, o) => (c(), u(e(O), {
39
+ "no-click-away": "",
40
+ "show-modal": a.showModal,
41
+ size: "lg",
42
+ title: e(s)({
43
+ defaultMessage: "Add payment method",
44
+ id: "add_payment_method_modal.title",
45
+ description: "Title of the modal that stores a new payment method"
46
+ }),
47
+ "sub-title": a.subTitle ?? e(s)({
48
+ defaultMessage: "Add a new payment method.",
49
+ id: "add_payment_method_modal.subtitle",
50
+ description: "Shown under the title of the modal that stores a new payment method, when the host says nothing about what it is for"
51
+ }),
52
+ "confirm-button-text": e(s)({
53
+ defaultMessage: "Save payment method",
54
+ id: "add_payment_method_modal.save_button.label",
55
+ description: "Label of the button that stores the new payment method"
56
+ }),
57
+ "cancel-button-text": e(s)({
58
+ defaultMessage: "Cancel",
59
+ id: "add_payment_method_modal.cancel_button.label",
60
+ description: "Label of the button that closes the modal without storing a method"
61
+ }),
62
+ "is-loading": h.value,
63
+ onConfirm: o[1] || (o[1] = (i) => {
64
+ var l;
65
+ return (l = m.value) == null ? void 0 : l.submit();
66
+ }),
67
+ onClose: w
68
+ }, {
69
+ body: M(() => [
70
+ x("div", P, [
71
+ r.value ? (c(), u(e(C), {
72
+ key: 0,
73
+ class: "sv-add-payment-method-modal__options-error sv-error",
74
+ title: e(s)({
75
+ defaultMessage: "We couldn't load the ways to add a payment method. Please try again.",
76
+ id: "add_payment_method_modal.options_error",
77
+ description: "Error shown in the modal that stores a new payment method when the ways to pay cannot be loaded"
78
+ })
79
+ }, null, 8, ["title"])) : (c(), u($, {
80
+ key: 1,
81
+ ref_key: "paneRef",
82
+ ref: m,
83
+ customer: a.customer,
84
+ "payment-method-options": v.value,
85
+ "is-loading": e(_),
86
+ "is-active": a.showModal,
87
+ onSuccess: o[0] || (o[0] = (i) => p("stored"))
88
+ }, null, 8, ["customer", "payment-method-options", "is-loading", "is-active"]))
89
+ ])
90
+ ]),
91
+ _: 1
92
+ }, 8, ["show-modal", "title", "sub-title", "confirm-button-text", "cancel-button-text", "is-loading"]));
93
+ }
94
+ });
95
+ export {
96
+ T as default
97
+ };
@@ -0,0 +1,89 @@
1
+ import { A as p } from "./ApiStatus-CSFKl_ra.mjs";
2
+ import { watch as d, computed as r, defineComponent as g, defineAsyncComponent as h, ref as v, openBlock as A, createBlock as P, unref as C, createCommentVNode as M } from "vue";
3
+ import { g as O } from "./customer.es-DQKl6wFt.mjs";
4
+ import { u as B } from "./usePaymentMethodOptions-DDRjVvDJ.mjs";
5
+ function F({
6
+ isOpen: o,
7
+ customer: i,
8
+ subscriptionId: t,
9
+ onError: n
10
+ }) {
11
+ const { paymentMethodOptions: u, get: s, isPending: m, apiStatus: e } = B(), a = async () => {
12
+ const c = i.value;
13
+ if (!(!o.value || !c))
14
+ try {
15
+ await s({
16
+ customerId: c.id,
17
+ ...t != null && t.value ? { subscriptionId: t.value } : {},
18
+ country: O(c)
19
+ });
20
+ } catch (y) {
21
+ n == null || n(y);
22
+ }
23
+ };
24
+ d(
25
+ () => [o.value, i.value, t == null ? void 0 : t.value],
26
+ () => void a(),
27
+ { immediate: !0 }
28
+ );
29
+ const l = r(
30
+ () => m.value ? void 0 : u.value
31
+ ), f = r(
32
+ () => e.value === p.Done && u.value.length === 0
33
+ );
34
+ return { paymentMethodOptions: u, settledOptions: l, isPending: m, apiStatus: e, hasNoOptions: f, load: a };
35
+ }
36
+ const L = /* @__PURE__ */ g({
37
+ __name: "AddPaymentMethodPane",
38
+ props: {
39
+ customer: { type: Object },
40
+ paymentMethodOptions: { type: Array },
41
+ isLoading: { type: Boolean },
42
+ isActive: { type: Boolean }
43
+ },
44
+ emits: ["success", "failure"],
45
+ setup(o, { expose: i }) {
46
+ const t = h(
47
+ () => import("./PaymentMethodForm-MmCUSJLE.mjs").then((e) => e.default)
48
+ ), n = o, u = r(() => ({ mode: "setup" })), s = v(!1);
49
+ d(
50
+ () => n.isActive,
51
+ (e) => {
52
+ s.value = s.value || !!e;
53
+ },
54
+ { immediate: !0 }
55
+ );
56
+ const m = v();
57
+ return i({
58
+ /** Submits the form, for a host whose own chrome owns the button — a modal footer, say. */
59
+ submit: () => {
60
+ var e;
61
+ return (e = m.value) == null ? void 0 : e.submit();
62
+ },
63
+ /**
64
+ * Whether the gateway is working on it, so the host can show it and hold everything else. Read
65
+ * through the pane being on screen: a form left behind on another pane is not what is pending.
66
+ */
67
+ isSaving: r(() => {
68
+ var e;
69
+ return !!n.isActive && !!((e = m.value) != null && e.isPaymentPending);
70
+ })
71
+ }), (e, a) => o.customer && s.value ? (A(), P(C(t), {
72
+ key: 0,
73
+ ref_key: "formRef",
74
+ ref: m,
75
+ class: "sv-add-payment-method-pane",
76
+ "hide-submit-button": "",
77
+ customer: o.customer,
78
+ "payment-method-options": o.paymentMethodOptions ?? [],
79
+ "is-loading": o.isLoading,
80
+ configuration: u.value,
81
+ onSuccess: a[0] || (a[0] = (l) => e.$emit("success")),
82
+ onFailure: a[1] || (a[1] = (l) => e.$emit("failure", l))
83
+ }, null, 8, ["customer", "payment-method-options", "is-loading", "configuration"])) : M("", !0);
84
+ }
85
+ });
86
+ export {
87
+ L as _,
88
+ F as u
89
+ };
@@ -1,5 +1,5 @@
1
1
  import { computed as i, defineComponent as C, toRefs as x, ref as k, openBlock as n, createElementBlock as u, normalizeClass as t, unref as a, createElementVNode as l, createCommentVNode as r, createBlock as h, withCtx as B, createTextVNode as L, toDisplayString as z, renderSlot as w } from "vue";
2
- import { d as M } from "./customElements-DK4GKNJG.mjs";
2
+ import { d as M } from "./customElements-d7Bhfqi_.mjs";
3
3
  const $ = "py-2 px-4 text-sm", A = {
4
4
  danger: "text-feedback-danger",
5
5
  neutral: "text-secondary",
@@ -0,0 +1,46 @@
1
+ import { f as c, L as r } from "./customElements-d7Bhfqi_.mjs";
2
+ const d = [1e3, 2e3, 4e3], i = (e) => !c(e) || e.statusCode >= 500 || e.statusCode === 429, s = (e) => new Promise((t) => setTimeout(t, e));
3
+ function u(e, t) {
4
+ if (c(t) && t.statusCode === 410) {
5
+ e.clearToken();
6
+ const o = r[t.errorCode ?? ""] ?? "expired", { checkoutSessionStatus: a } = t;
7
+ e.setStatus({
8
+ state: "ended",
9
+ reason: o,
10
+ ...a ? { checkoutSessionStatus: a } : {}
11
+ }), e.forEachLogger((n) => {
12
+ o === "closed" ? n.warn(
13
+ "CHECKOUT_SESSION_CLOSED",
14
+ "The checkout session of the portal link is closed",
15
+ { status: a },
16
+ t
17
+ ) : o === "revoked" ? n.error("PORTAL_URL_REVOKED", "The portal link is revoked", {}, t) : n.error("PORTAL_URL_EXPIRED", "The portal link has expired", {}, t);
18
+ });
19
+ return;
20
+ }
21
+ if (i(t)) {
22
+ e.markUnverified(t);
23
+ return;
24
+ }
25
+ e.hasToken() || e.setStatus({ state: "invalid" }), e.forEachLogger(
26
+ (o) => o.error("INVALID_TOKEN", "Failed to fetch access token", {}, t)
27
+ );
28
+ }
29
+ async function E(e, t) {
30
+ for (let o = 0; ; o++)
31
+ try {
32
+ const a = await t.exchangeHandle(e);
33
+ return t.applyToken(a), a.access_token;
34
+ } catch (a) {
35
+ const n = d[o];
36
+ if (i(a) && n !== void 0) {
37
+ if (await s(n), t.isAbandoned()) return;
38
+ continue;
39
+ }
40
+ u(t, a);
41
+ return;
42
+ }
43
+ }
44
+ export {
45
+ E as runExchange
46
+ };
@@ -1,5 +1,5 @@
1
1
  import { ref as f, watch as g, defineComponent as h, computed as x, openBlock as i, createElementBlock as s, normalizeStyle as u, normalizeClass as d, toDisplayString as v, createBlock as b, unref as m, createCommentVNode as k, createElementVNode as y } from "vue";
2
- import { a as w } from "./Button.vue.es-j7iYlqtJ.mjs";
2
+ import { a as w } from "./Button.vue.es-BHbanjR0.mjs";
3
3
  const z = (e) => {
4
4
  const t = f(), l = (n) => {
5
5
  let a = 0;