@solvimon/solvimon-web 0.1.0-alpha.28 → 0.1.0-alpha.29
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 +26 -1
- package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
- package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
- package/dist/{Avatar.vue.es-Beg7umjO.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +8 -8
- package/dist/{Button.vue.es-rh6mITmN.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
- package/dist/{ChargeOnDemandModal-CPjPa_uq.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +35 -34
- package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
- package/dist/{Chip.vue.es-Cn2R_0mE.mjs → Chip.vue.es-D3UDSyXC.mjs} +3 -3
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/{ContextMenu.vue.es-DRxsa7bZ.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
- package/dist/{CustomerBillingInformation.vue.es-DQfL5RMR.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +21 -20
- package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs} +798 -792
- package/dist/{DividerText.vue.es-M0XqSz55.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
- package/dist/{ErrorNotification.vue.es-CKlt4hr2.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
- package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
- package/dist/{IconButton.vue.es-oe4MVBK1.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
- package/dist/{IconTitle.vue.es-BO6KBS4v.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
- package/dist/{Input.vue.es-DAlPmtE_.mjs → Input.vue.es-D8Oj8MWv.mjs} +23 -22
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs} +4 -4
- package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
- package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
- package/dist/{Modal.vue.es-CTNACAst.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +46 -88
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-BmA8jbMb.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D1Xw-xIt.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs} +68 -69
- package/dist/{PaymentIntegrationFormAdyen-CfT5aD4L.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +126 -117
- package/dist/{PaymentIntegrationFormStripe-DKXJ-mjd.mjs → PaymentIntegrationFormStripe-BYdAkvLt.mjs} +193 -179
- package/dist/{PaymentMethod.vue.es-Cauxx4Xr.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
- package/dist/{PaymentMethodForm-CypZOYUZ.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +7 -7
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs} +36 -35
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +7 -7
- package/dist/{PlanCustomizationEditor-Xtww2r9K.mjs → PlanCustomizationEditor-D29N4HUM.mjs} +9 -9
- package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
- package/dist/{PortalNotAvailable-B_59GUwN.mjs → PortalNotAvailable-DPE9y37H.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-C9LJW3b8.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +32 -32
- package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
- package/dist/{Section.vue.es-iS8hVGWA.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
- package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
- package/dist/{StepInput.vue.es-Dpan1RQd.mjs → StepInput.vue.es-DweyzpkL.mjs} +4 -4
- package/dist/{SubscriptionDetails.entry.ce-DufQX3uI.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +230 -225
- package/dist/{SubscriptionSchedules-DAahcNoI.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs} +3 -3
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +23 -22
- package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
- package/dist/{TrialChip.vue.es-B-XBSHWE.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
- package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
- package/dist/{cn.es-2bVdkiFV.mjs → cn.es-B8acFrov.mjs} +380 -476
- package/dist/components/BillingInformation/BillingInformation.mjs +9 -7
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +57 -54
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -18
- package/dist/components/Invoice/Invoice.mjs +2660 -193
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +6 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +18 -17
- package/dist/components/InvoicesList/InvoicesList.mjs +13 -11
- package/dist/components/PaymentHistory/PaymentHistory.mjs +8 -6
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +19 -17
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +19 -17
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +20 -18
- package/dist/components/WalletBalances/WalletBalances.mjs +17 -15
- package/dist/customElements-BTj4ii4f.mjs +5072 -0
- package/dist/{customer-CqddTiOr.mjs → customer-BIjC0CWJ.mjs} +1 -1
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/{de-DE-BW8dMvhW.mjs → de-DE-DBbERiFr.mjs} +38 -0
- package/dist/{de-DE-BNMj3boy.mjs → de-DE-UJ6X6jXu.mjs} +1 -1
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/{formControl-CsITfsBk.mjs → formControl-BZQLHnOO.mjs} +5 -5
- package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
- package/dist/fr-FR-IWJE-urI.mjs +431 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.es-CpmQmvOg.mjs +633 -0
- package/dist/index.mjs +2 -2
- package/dist/{invoices-Cf1qDAv4.mjs → invoices-e1sKLgxg.mjs} +3 -3
- package/dist/{it-IT-Byg06KWc.mjs → it-IT-B7ui2oxO.mjs} +38 -0
- package/dist/{it-IT-DRvuxM1F.mjs → it-IT-DnJP5URH.mjs} +1 -1
- package/dist/{nl-NL-x3zQqzZ7.mjs → nl-NL-Bafh2xoT.mjs} +38 -0
- package/dist/{nl-NL-DLUwWbMG.mjs → nl-NL-q9xfTZF0.mjs} +1 -1
- package/dist/{paymentMethods-BUuOmDq9.mjs → paymentMethods-B_82JGk_.mjs} +2 -2
- package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
- package/dist/{paymentOutcome-D17VD4MV.mjs → paymentOutcome-BXEU5-84.mjs} +5 -5
- package/dist/payments-BnxbzQUC.mjs +68 -0
- package/dist/pricing-BOhvWWMj.mjs +29 -0
- package/dist/{pricingPlanScheduleOverrides-COr9F8DO.mjs → pricingPlanScheduleOverrides-Dxv5FOBd.mjs} +2 -2
- package/dist/{pricingPlanSchedules-BK_o9p6h.mjs → pricingPlanSchedules-Dv7ZCgNp.mjs} +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +128 -83
- package/dist/screens/PayInvoice/PayInvoice.mjs +572 -218
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +21 -19
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +261 -266
- package/dist/{sorting.es-qtEN8J8T.mjs → sorting.es-CVyKw23D.mjs} +1 -1
- package/dist/subscriptions-BWXZGK0E.mjs +66 -0
- package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -0
- package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
- package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +11 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +4 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +23 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -1
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +2 -0
- package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- package/dist/types/public/core/types.d.ts +5 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +3 -1
- package/dist/types/translations/supported.d.ts +1 -1
- package/dist/types/types/portalAuthentication.d.ts +2 -0
- package/dist/types/types/portalToken.d.ts +9 -0
- package/dist/types/types/shippingAddress.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- package/dist/{useActionDispatchProvider-DC_fUykI.mjs → useActionDispatchProvider-3W2vEyIg.mjs} +1 -1
- package/dist/{useCustomer-C3kTh7wn.mjs → useCustomer-cObBvDOu.mjs} +2 -2
- package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
- package/dist/{useIncrementalLoading-C_sHmW7d.mjs → useIncrementalLoading-CATuO36d.mjs} +2 -2
- package/dist/{useInvoiceData-BIh8-h8b.mjs → useInvoiceData-DD44HTl7.mjs} +2 -2
- package/dist/{useInvoicesList-Y6p0Pqpy.mjs → useInvoicesList-CpB-41MQ.mjs} +10 -10
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
- package/dist/{usePaymentFormHold-FfNc578l.mjs → usePaymentFormHold-ByUZi3A-.mjs} +28 -36
- package/dist/{usePaymentMethodAvailability-CnYTvG15.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +4 -4
- package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
- package/dist/{usePayments-CykCZPG2.mjs → usePayments-BXABv-lF.mjs} +9 -9
- package/dist/{usePortal-CxzKGhbK.mjs → usePortal-CwR_FxTb.mjs} +1 -1
- package/dist/{useService-B0OQJmif.mjs → useService-BZcbUZHI.mjs} +3 -3
- package/dist/{useTimePeriod.es-JkXdHNWr.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
- package/package.json +7 -7
- package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +0 -50
- package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +0 -5279
- package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +0 -362
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
- package/dist/InvoiceSummary.vue.es-DbNoGfYN.mjs +0 -2596
- package/dist/RadioGroupExtended.vue.es-UtKsdmiv.mjs +0 -163
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs +0 -688
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs +0 -5221
- package/dist/TooltipParagraph.vue.es-BjCn2BF6.mjs +0 -129
- package/dist/customElements-Di3zwlEU.mjs +0 -6447
- package/dist/customer.es-B5ppZf0j.mjs +0 -20
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
- package/dist/payments-Ci8bF4C6.mjs +0 -45
- package/dist/subscriptions-CwogJODR.mjs +0 -54
- package/dist/useCustomerFormLabels-CK7K50nB.mjs +0 -1369
- package/dist/useLoadInitialData-4k_Cyqef.mjs +0 -15
- package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +0 -40
- package/dist/usePaymentMethods-gvr-rmwE.mjs +0 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, computed as f, openBlock as a, createElementBlock as o, Fragment as c, renderList as x, createCommentVNode as g, normalizeClass as m, toDisplayString as y, ref as v, onMounted as _ } from "vue";
|
|
2
2
|
import { e as b } from "./sanitization.es-C6dbuxUJ.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { i as k } from "./useService-BZcbUZHI.mjs";
|
|
4
4
|
const C = (n) => n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), E = ["innerHTML"], I = /* @__PURE__ */ d({
|
|
5
5
|
__name: "TextWithHighlights",
|
|
6
6
|
props: {
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { w as o, a as c } from "./api.es-qgvzNMU-.mjs";
|
|
2
|
+
import { u as N, c as S, b as s, E as u } from "./customElements-BTj4ii4f.mjs";
|
|
3
|
+
const e = ["portal", "pricing-plan-subscriptions"], m = {
|
|
4
|
+
CANCEL: "NEXT_BILLING_PERIOD",
|
|
5
|
+
RENEW: "UNDO"
|
|
6
|
+
};
|
|
7
|
+
function C() {
|
|
8
|
+
const n = N(), r = S();
|
|
9
|
+
async function p({
|
|
10
|
+
id: t,
|
|
11
|
+
expanded: i = !1
|
|
12
|
+
}) {
|
|
13
|
+
return r({
|
|
14
|
+
url: s(n.apiUrls.config, ...e, t),
|
|
15
|
+
query: c({ expandParams: u, expand: i })
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function l({
|
|
19
|
+
customerId: t,
|
|
20
|
+
pagination: i
|
|
21
|
+
}) {
|
|
22
|
+
const a = i ?? {}, g = c({
|
|
23
|
+
initialParams: {
|
|
24
|
+
customer_id: t,
|
|
25
|
+
statuses: ["ACTIVE"],
|
|
26
|
+
type: "BILLING"
|
|
27
|
+
},
|
|
28
|
+
expandParams: u
|
|
29
|
+
});
|
|
30
|
+
return r({
|
|
31
|
+
url: s(n.apiUrls.config, ...e),
|
|
32
|
+
query: o(g, a),
|
|
33
|
+
isCollection: !0
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function f({
|
|
37
|
+
customerId: t,
|
|
38
|
+
page: i,
|
|
39
|
+
pageSize: a
|
|
40
|
+
}) {
|
|
41
|
+
return r({
|
|
42
|
+
url: s(n.apiUrls.config, ...e),
|
|
43
|
+
query: o({ customer_id: t }, { page: i, pageSize: a }),
|
|
44
|
+
isCollection: !0
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
async function E({
|
|
48
|
+
id: t,
|
|
49
|
+
variant: i
|
|
50
|
+
}) {
|
|
51
|
+
return r({
|
|
52
|
+
url: s(n.apiUrls.config, ...e, t, "cancel"),
|
|
53
|
+
data: { type: m[i] },
|
|
54
|
+
options: { method: "POST" }
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
getSubscription: p,
|
|
59
|
+
getActiveSubscriptions: l,
|
|
60
|
+
getSubscriptionsOfEveryStatus: f,
|
|
61
|
+
setSubscriptionCancellation: E
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
C as c
|
|
66
|
+
};
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { i as $, d as E } from "./useService-BZcbUZHI.mjs";
|
|
2
|
+
import { c as T } from "./formControl-BZQLHnOO.mjs";
|
|
3
|
+
import { inject as L } from "vue";
|
|
4
|
+
import { I as R } from "./customElements-BTj4ii4f.mjs";
|
|
5
|
+
const g = (e) => $(e) && typeof e != "boolean" ? null : e, n = (e) => typeof e == "object" && e !== null, S = ({
|
|
6
|
+
from: e,
|
|
7
|
+
to: a,
|
|
8
|
+
nullifyEmptyValues: p = !1
|
|
9
|
+
}) => {
|
|
10
|
+
const x = Object.fromEntries(
|
|
11
|
+
Object.entries(a).filter(([f, l]) => !E(l, e[f]))
|
|
12
|
+
);
|
|
13
|
+
return p ? Object.entries(x).reduce(
|
|
14
|
+
(f, [l, r]) => ({ ...f, [l]: g(r) }),
|
|
15
|
+
{}
|
|
16
|
+
) : x;
|
|
17
|
+
}, A = ({
|
|
18
|
+
from: e,
|
|
19
|
+
to: a,
|
|
20
|
+
nullifyEmptyValues: p = !1
|
|
21
|
+
}) => {
|
|
22
|
+
const x = {}, f = (r, o, s) => {
|
|
23
|
+
const i = o[s];
|
|
24
|
+
return r === void 0 ? Array.isArray(i) ? x[s] = [] : n(i) && (x[s] = {}) : Array.isArray(i) ? r[s] = [] : n(i) && (r[s] = {}), [r === void 0 ? x : r, s];
|
|
25
|
+
}, l = (r, o, s) => {
|
|
26
|
+
for (const i of Object.keys(r)) {
|
|
27
|
+
const t = f(s, r, i);
|
|
28
|
+
i in o || (t[0][t[1]] = {
|
|
29
|
+
from: r[i]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
for (const [i, t] of Object.entries(o)) {
|
|
33
|
+
const c = i in r, d = f(s, r, i);
|
|
34
|
+
if (c) {
|
|
35
|
+
const m = r[i];
|
|
36
|
+
E(m, t) ? delete d[0][d[1]] : n(t) && n(m) ? l(m, t, d[0][d[1]]) : d[0][d[1]] = p && typeof t != "boolean" ? g(t) : t;
|
|
37
|
+
} else
|
|
38
|
+
d[0][d[1]] = p ? g(t) : t;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return l(e, a), x;
|
|
42
|
+
}, G = ({
|
|
43
|
+
from: e,
|
|
44
|
+
to: a,
|
|
45
|
+
mode: p = "shallow",
|
|
46
|
+
nullifyEmptyValues: x = !1
|
|
47
|
+
}) => p === "deep" ? A({ from: e, to: a, nullifyEmptyValues: x }) : S({ from: e, to: a, nullifyEmptyValues: x }), I = {
|
|
48
|
+
AT: {
|
|
49
|
+
regex: /^ATU\d{8}$/,
|
|
50
|
+
prefix: "AT",
|
|
51
|
+
example: "ATU12345678"
|
|
52
|
+
},
|
|
53
|
+
BE: {
|
|
54
|
+
regex: /^BE0?\d{9}$/,
|
|
55
|
+
prefix: "BE",
|
|
56
|
+
example: "BE0123456789"
|
|
57
|
+
},
|
|
58
|
+
BG: {
|
|
59
|
+
regex: /^BG\d{9,10}$/,
|
|
60
|
+
prefix: "BG",
|
|
61
|
+
example: "BG123456789"
|
|
62
|
+
},
|
|
63
|
+
HR: {
|
|
64
|
+
regex: /^HR\d{11}$/,
|
|
65
|
+
prefix: "HR",
|
|
66
|
+
example: "HR12345678901"
|
|
67
|
+
},
|
|
68
|
+
CY: {
|
|
69
|
+
regex: /^CY\d{8}[A-Z]$/,
|
|
70
|
+
prefix: "CY",
|
|
71
|
+
example: "CY12345678X"
|
|
72
|
+
},
|
|
73
|
+
CZ: {
|
|
74
|
+
regex: /^CZ\d{8,10}$/,
|
|
75
|
+
prefix: "CZ",
|
|
76
|
+
example: "CZ12345678"
|
|
77
|
+
},
|
|
78
|
+
DE: {
|
|
79
|
+
regex: /^DE\d{9}$/,
|
|
80
|
+
prefix: "DE",
|
|
81
|
+
example: "DE123456789"
|
|
82
|
+
},
|
|
83
|
+
DK: {
|
|
84
|
+
regex: /^DK\d{8}$/,
|
|
85
|
+
prefix: "DK",
|
|
86
|
+
example: "DK12345678"
|
|
87
|
+
},
|
|
88
|
+
EE: {
|
|
89
|
+
regex: /^EE\d{9}$/,
|
|
90
|
+
prefix: "EE",
|
|
91
|
+
example: "EE123456789"
|
|
92
|
+
},
|
|
93
|
+
GR: {
|
|
94
|
+
regex: /^(EL|GR)\d{9}$/,
|
|
95
|
+
prefix: "GR",
|
|
96
|
+
example: "GR123456789"
|
|
97
|
+
},
|
|
98
|
+
ES: {
|
|
99
|
+
regex: /^ES[A-Z0-9]\d{7}[A-Z0-9]$/,
|
|
100
|
+
prefix: "ES",
|
|
101
|
+
example: "ESX1234567X"
|
|
102
|
+
},
|
|
103
|
+
FI: {
|
|
104
|
+
regex: /^FI\d{8}$/,
|
|
105
|
+
prefix: "FI",
|
|
106
|
+
example: "FI12345678"
|
|
107
|
+
},
|
|
108
|
+
FR: {
|
|
109
|
+
regex: /^FR[0-9A-Z]{2}\d{9}$/,
|
|
110
|
+
prefix: "FR",
|
|
111
|
+
example: "FRXX123456789"
|
|
112
|
+
},
|
|
113
|
+
HU: {
|
|
114
|
+
regex: /^HU\d{8}$/,
|
|
115
|
+
prefix: "HU",
|
|
116
|
+
example: "HU12345678"
|
|
117
|
+
},
|
|
118
|
+
IE: {
|
|
119
|
+
regex: /^IE[0-9A-Z]{8,9}$/,
|
|
120
|
+
prefix: "IE",
|
|
121
|
+
example: "IE1234567A"
|
|
122
|
+
},
|
|
123
|
+
IS: {
|
|
124
|
+
regex: /^IS\d{5}$/,
|
|
125
|
+
prefix: "IS",
|
|
126
|
+
example: "IS12345"
|
|
127
|
+
},
|
|
128
|
+
IT: {
|
|
129
|
+
regex: /^IT\d{11}$/,
|
|
130
|
+
prefix: "IT",
|
|
131
|
+
example: "IT12345678901"
|
|
132
|
+
},
|
|
133
|
+
LT: {
|
|
134
|
+
regex: /^LT(\d{9}|\d{12})$/,
|
|
135
|
+
prefix: "LT",
|
|
136
|
+
example: "LT123456789 or LT123456789012"
|
|
137
|
+
},
|
|
138
|
+
LU: {
|
|
139
|
+
regex: /^LU\d{8}$/,
|
|
140
|
+
prefix: "LU",
|
|
141
|
+
example: "LU12345678"
|
|
142
|
+
},
|
|
143
|
+
LV: {
|
|
144
|
+
regex: /^LV\d{11}$/,
|
|
145
|
+
prefix: "LV",
|
|
146
|
+
example: "LV12345678901"
|
|
147
|
+
},
|
|
148
|
+
ME: {
|
|
149
|
+
regex: /^ME\d{9}$/,
|
|
150
|
+
prefix: "ME",
|
|
151
|
+
example: "ME123456789"
|
|
152
|
+
},
|
|
153
|
+
MT: {
|
|
154
|
+
regex: /^MT\d{8}$/,
|
|
155
|
+
prefix: "MT",
|
|
156
|
+
example: "MT12345678"
|
|
157
|
+
},
|
|
158
|
+
NL: {
|
|
159
|
+
regex: /^NL\d{9}B\d{2}$/,
|
|
160
|
+
prefix: "NL",
|
|
161
|
+
example: "NL123456789B01"
|
|
162
|
+
},
|
|
163
|
+
PL: {
|
|
164
|
+
regex: /^PL\d{10}$/,
|
|
165
|
+
prefix: "PL",
|
|
166
|
+
example: "PL1234567890"
|
|
167
|
+
},
|
|
168
|
+
PT: {
|
|
169
|
+
regex: /^PT\d{9}$/,
|
|
170
|
+
prefix: "PT",
|
|
171
|
+
example: "PT123456789"
|
|
172
|
+
},
|
|
173
|
+
RO: {
|
|
174
|
+
regex: /^RO\d{2,10}$/,
|
|
175
|
+
prefix: "RO",
|
|
176
|
+
example: "RO1234567890"
|
|
177
|
+
},
|
|
178
|
+
RU: {
|
|
179
|
+
regex: /^RU(\d{9}|\d{10}|\d{12})$/,
|
|
180
|
+
prefix: "RU",
|
|
181
|
+
example: "RU123456789 or RU1234567890 or RU123456789012"
|
|
182
|
+
},
|
|
183
|
+
SE: {
|
|
184
|
+
regex: /^SE\d{10}01$/,
|
|
185
|
+
prefix: "SE",
|
|
186
|
+
example: "SE123456789001"
|
|
187
|
+
},
|
|
188
|
+
SI: {
|
|
189
|
+
regex: /^SI\d{8}$/,
|
|
190
|
+
prefix: "SI",
|
|
191
|
+
example: "SI12345678"
|
|
192
|
+
},
|
|
193
|
+
SK: {
|
|
194
|
+
regex: /^SK\d{10}$/,
|
|
195
|
+
prefix: "SK",
|
|
196
|
+
example: "SK1234567890"
|
|
197
|
+
},
|
|
198
|
+
CH: {
|
|
199
|
+
regex: /^CHE\d{9}(MWST|TVA|IVA)?$/,
|
|
200
|
+
prefix: "CHE",
|
|
201
|
+
example: "CHE123456789MWST"
|
|
202
|
+
},
|
|
203
|
+
NO: {
|
|
204
|
+
regex: /^NO\d{9}MVA$/,
|
|
205
|
+
prefix: "NO",
|
|
206
|
+
example: "NO123456789MVA"
|
|
207
|
+
},
|
|
208
|
+
GB: {
|
|
209
|
+
regex: /^GB(\d{9}|\d{12}|GD\d{3}|HA\d{3})$/,
|
|
210
|
+
prefix: "GB",
|
|
211
|
+
example: "GB123456789"
|
|
212
|
+
},
|
|
213
|
+
XI: {
|
|
214
|
+
regex: /^XI(\d{9}|\d{12})$/,
|
|
215
|
+
prefix: "XI",
|
|
216
|
+
example: "XI123456789"
|
|
217
|
+
}
|
|
218
|
+
}, M = (e) => !e || typeof e != "string" || e.trim() === "" ? !0 : Object.values(I).some((a) => a.regex.test(e)), U = ({ $model: e }) => {
|
|
219
|
+
if (!e || typeof e != "string" || e.trim() === "")
|
|
220
|
+
return "";
|
|
221
|
+
const a = L(R, null);
|
|
222
|
+
if (!a)
|
|
223
|
+
return "Invalid tax ID";
|
|
224
|
+
const { formatMessage: p } = a, x = Object.values(I).find(
|
|
225
|
+
(f) => e.toUpperCase().startsWith(f.prefix.toUpperCase())
|
|
226
|
+
);
|
|
227
|
+
return x ? p(
|
|
228
|
+
{
|
|
229
|
+
defaultMessage: "Invalid tax ID format. Example: {example}",
|
|
230
|
+
id: "form_validation.tax_id.invalid_format",
|
|
231
|
+
description: "Error message when tax ID format is invalid but prefix matches"
|
|
232
|
+
},
|
|
233
|
+
{ example: x.example }
|
|
234
|
+
) : p({
|
|
235
|
+
defaultMessage: "Invalid tax ID",
|
|
236
|
+
id: "taxId.invalid",
|
|
237
|
+
description: "Error message when tax ID is invalid"
|
|
238
|
+
});
|
|
239
|
+
}, H = T.withMessage(U, M);
|
|
240
|
+
export {
|
|
241
|
+
G as o,
|
|
242
|
+
H as t
|
|
243
|
+
};
|
|
@@ -5,6 +5,8 @@ export type CheckoutAddressVariant = 'BILLING' | 'SHIPPING';
|
|
|
5
5
|
export interface CheckoutAddressFieldsProps {
|
|
6
6
|
variant: CheckoutAddressVariant;
|
|
7
7
|
withCountry?: boolean;
|
|
8
|
+
/** Puts the country below the recipient, just above the address lines, rather than first. */
|
|
9
|
+
countryBeforeAddress?: boolean;
|
|
8
10
|
countryLabel?: string;
|
|
9
11
|
format?: AddressFormat;
|
|
10
12
|
getOptionalSuffix: (field: keyof CheckoutFormState) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Customer } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { ShippingAddress } from '../../../types/shippingAddress';
|
|
3
|
+
export interface ShippingAddressFormProps {
|
|
4
|
+
/** Who the address is for. Their country, name and email start the form off. */
|
|
5
|
+
customer: Customer;
|
|
6
|
+
/** The stored address being edited, whose fields the form starts on instead of the customer's. */
|
|
7
|
+
address?: ShippingAddress;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ContextMenuOption } from '@solvimon/solvimon-ui';
|
|
2
|
+
import { ShippingAddress } from '../../../types/shippingAddress';
|
|
3
|
+
export interface ShippingAddressCardProps {
|
|
4
|
+
address: ShippingAddress;
|
|
5
|
+
/** What can be done with the address, behind the menu next to it. Left out, there is no menu. */
|
|
6
|
+
menuItems?: ContextMenuOption[];
|
|
7
|
+
/** Marks the customer's default, which only matters where there is more than one to tell apart. */
|
|
8
|
+
showDefault?: boolean;
|
|
9
|
+
/** Only the address itself, for a summary where who it is for and how to reach them can wait. */
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ContextMenuOption } from '@solvimon/solvimon-ui';
|
|
2
|
+
import { ShippingAddress } from '../../../types/shippingAddress';
|
|
3
|
+
export interface ShippingAddressListProps {
|
|
4
|
+
addresses: ShippingAddress[];
|
|
5
|
+
/** The menu next to each address. Left out, there is none. */
|
|
6
|
+
getMenuItems?: (address: ShippingAddress) => ContextMenuOption[];
|
|
7
|
+
/** Shows only the address lines; see the card. */
|
|
8
|
+
compact?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Customer } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { UseShippingAddresses } from '../../../composables/useShippingAddresses';
|
|
3
|
+
import { ShippingAddress } from '../../../types/shippingAddress';
|
|
4
|
+
/**
|
|
5
|
+
* Where the modal opens. Opened on one address's edit or delete, it closes once that is done
|
|
6
|
+
* rather than going on to the list.
|
|
7
|
+
*/
|
|
8
|
+
export type ShippingAddressesModalStart = {
|
|
9
|
+
step: 'LIST' | 'ADD';
|
|
10
|
+
} | {
|
|
11
|
+
step: 'EDIT' | 'DELETE';
|
|
12
|
+
address: ShippingAddress;
|
|
13
|
+
};
|
|
14
|
+
export interface ShippingAddressesModalProps {
|
|
15
|
+
showModal: boolean;
|
|
16
|
+
customer: Customer;
|
|
17
|
+
addresses: ShippingAddress[];
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
/** @default { step: 'LIST' } */
|
|
20
|
+
start?: ShippingAddressesModalStart;
|
|
21
|
+
/** What the modal changes the addresses with; each reloads them once it is done. */
|
|
22
|
+
actions: Pick<UseShippingAddresses, 'create' | 'replace' | 'remove'>;
|
|
23
|
+
}
|
|
24
|
+
export interface ShippingAddressesModalEmits {
|
|
25
|
+
(e: 'close'): void;
|
|
26
|
+
}
|
|
@@ -4,6 +4,8 @@ import { SelectedPaymentMethod } from '../PaymentIntegrationForm/PaymentIntegrat
|
|
|
4
4
|
export interface PayButtonProps extends ButtonProps {
|
|
5
5
|
amount?: Amount;
|
|
6
6
|
paymentMethod?: SelectedPaymentMethod;
|
|
7
|
+
/** Names a stored method, "Visa •••• 4242", in place of the type of `paymentMethod`. */
|
|
8
|
+
paymentMethodLabel?: string;
|
|
7
9
|
}
|
|
8
10
|
export interface PayButtonEmits {
|
|
9
11
|
click: [event: MouseEvent];
|
package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts
CHANGED
|
@@ -39,6 +39,13 @@ interface BasePaymentIntegrationFormProps {
|
|
|
39
39
|
variant: 'AUTHORIZE' | 'TOKENIZE';
|
|
40
40
|
amount: Amount;
|
|
41
41
|
selectedOption?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the gateway form opens on its first method, which also selects it. Off where
|
|
44
|
+
* something else on screen is already the customer's choice.
|
|
45
|
+
*
|
|
46
|
+
* @default true
|
|
47
|
+
*/
|
|
48
|
+
openFirstPaymentMethod?: boolean;
|
|
42
49
|
email?: string;
|
|
43
50
|
name?: string;
|
|
44
51
|
validateOnSubmit?: () => Promise<boolean>;
|
|
@@ -71,6 +78,8 @@ export type PaymentIntegrationFormProps = AuthorizePaymentIntegrationFormProps |
|
|
|
71
78
|
export type SelectedPaymentMethod = {
|
|
72
79
|
paymentGatewayVariant: PaymentGatewayVariant;
|
|
73
80
|
paymentMethodType: string;
|
|
81
|
+
/** Selected by the form itself while it renders, rather than by the customer. */
|
|
82
|
+
isAutomatic?: boolean;
|
|
74
83
|
};
|
|
75
84
|
export interface PaymentIntegrationFormEmits {
|
|
76
85
|
/**
|
|
@@ -121,6 +130,8 @@ export interface PaymentIntegrationVariantProps {
|
|
|
121
130
|
redirectsOnSuccess?: boolean;
|
|
122
131
|
/** Named in the SEPA mandate. See the note on the same prop in the base props. */
|
|
123
132
|
billingEntityName?: string;
|
|
133
|
+
/** Opens no method by itself, so the form selects nothing until the customer does. */
|
|
134
|
+
collapsed?: boolean;
|
|
124
135
|
}
|
|
125
136
|
export type PaymentIntegrationVariantEmits = PaymentIntegrationFormEmits;
|
|
126
137
|
export {};
|
|
@@ -52,12 +52,15 @@ export interface PaymentIntegrationFormStripeFrameProps {
|
|
|
52
52
|
countryCode?: string;
|
|
53
53
|
email?: string;
|
|
54
54
|
name?: string;
|
|
55
|
+
/** Starts the element with no method open, so it selects nothing on its own. */
|
|
56
|
+
collapsed?: boolean;
|
|
55
57
|
}
|
|
56
58
|
export type StripeLoadError = Partial<Pick<StripeError, 'message' | 'type'>>;
|
|
57
59
|
export type StripeSubmitError = Partial<Pick<StripeError, 'message' | 'type' | 'code'>>;
|
|
58
60
|
export type PaymentIntegrationFormStripeFrameEmits = {
|
|
59
61
|
ready: [];
|
|
60
|
-
|
|
62
|
+
/** `isEmpty` until the customer has entered anything; `isCollapsed` while no method is open. */
|
|
63
|
+
change: [paymentMethodType: string, isEmpty: boolean, isCollapsed: boolean];
|
|
61
64
|
loaderror: [error: StripeLoadError];
|
|
62
65
|
'submit-success': [confirmationTokenId: string];
|
|
63
66
|
'submit-error': [error: StripeSubmitError];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Token } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { AuthStatus } from './AuthProvider.lib';
|
|
3
|
+
import { Logger } from '../LoggerProvider/LoggerProvider.types';
|
|
4
|
+
/** What an exchange may do to the session it signs in. */
|
|
5
|
+
export interface ExchangeSession {
|
|
6
|
+
exchangeHandle: (handle: string) => Promise<Token>;
|
|
7
|
+
applyToken: (token: Token) => void;
|
|
8
|
+
clearToken: () => void;
|
|
9
|
+
hasToken: () => boolean;
|
|
10
|
+
setStatus: (status: AuthStatus) => void;
|
|
11
|
+
/** Every element using the session has left the page. */
|
|
12
|
+
isAbandoned: () => boolean;
|
|
13
|
+
/** The API could not verify the link for now. */
|
|
14
|
+
markUnverified: (err: unknown) => void;
|
|
15
|
+
forEachLogger: (log: (logger: Logger) => void) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function runExchange(handle: string, session: ExchangeSession): Promise<string | undefined>;
|
|
@@ -1,10 +1,32 @@
|
|
|
1
1
|
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { PortalAuthentication } from '../../../types/portalAuthentication';
|
|
3
|
+
import { PortalToken } from '../../../types/portalToken';
|
|
2
4
|
export declare const AUTH_INJECTION_KEY: InjectionKey<Auth>;
|
|
5
|
+
/** Why a portal link can no longer be used, from the exchange's 410. */
|
|
6
|
+
export type PortalLinkEnding = 'expired' | 'revoked' | 'closed';
|
|
7
|
+
export type AuthStatus = {
|
|
8
|
+
state: 'pending';
|
|
9
|
+
} | {
|
|
10
|
+
state: 'ready';
|
|
11
|
+
} | {
|
|
12
|
+
state: 'ended';
|
|
13
|
+
reason: PortalLinkEnding;
|
|
14
|
+
checkoutSessionStatus?: string;
|
|
15
|
+
}
|
|
16
|
+
/** The API could not verify the link for now; `retry` tries again. */
|
|
17
|
+
| {
|
|
18
|
+
state: 'unavailable';
|
|
19
|
+
} | {
|
|
20
|
+
state: 'invalid';
|
|
21
|
+
};
|
|
3
22
|
export interface Auth {
|
|
4
23
|
accessToken: Ref<string | undefined>;
|
|
5
24
|
/** The access token, refreshed first when it is about to expire. */
|
|
6
25
|
getFreshAccessToken: () => Promise<string | undefined>;
|
|
7
26
|
/** A replacement for a token the API rejected, or `undefined` when there is none to be had. */
|
|
8
27
|
renewAccessToken: (rejected: string | undefined) => Promise<string | undefined>;
|
|
28
|
+
status: Readonly<Ref<AuthStatus>>;
|
|
29
|
+
/** Exchanges the handle again after the API could not verify the link. */
|
|
30
|
+
retry: () => void;
|
|
9
31
|
}
|
|
10
|
-
export declare const getAuth: (token: string) => Auth;
|
|
32
|
+
export declare const getAuth: (token: string, authentication?: PortalAuthentication, portalToken?: PortalToken) => Auth;
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { getAuth } from './AuthProvider.lib';
|
|
2
|
+
import { PortalAuthentication } from '../../../types/portalAuthentication';
|
|
3
|
+
import { PortalToken } from '../../../types/portalToken';
|
|
2
4
|
export interface AuthProviderProps {
|
|
3
5
|
/**
|
|
4
6
|
* The token to be used for authentication
|
|
5
7
|
*/
|
|
6
8
|
token: string;
|
|
9
|
+
/** `SIGNED_TOKEN` when `token` is a handle to exchange rather than an identity token. */
|
|
10
|
+
authentication?: PortalAuthentication;
|
|
11
|
+
/**
|
|
12
|
+
* The response of an exchange of the handle the host already made, as it is, which the element
|
|
13
|
+
* then signs in with instead of exchanging the handle itself. When the API rejects its token, the
|
|
14
|
+
* element exchanges the handle. Only read for a `SIGNED_TOKEN` portal object, and only when the
|
|
15
|
+
* element signs in. An object, because a custom element copies a string property into an HTML
|
|
16
|
+
* attribute, where a bearer token would sit in the page for anything that reads it.
|
|
17
|
+
*/
|
|
18
|
+
portalToken?: PortalToken;
|
|
7
19
|
}
|
|
8
20
|
export type Auth = ReturnType<typeof getAuth>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AuthProviderProps } from './AuthProvider.types';
|
|
2
|
-
declare var __VLS_1: {};
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
ended?: (props: typeof __VLS_3) => any;
|
|
5
7
|
};
|
|
6
8
|
declare const __VLS_base: import('vue').DefineComponent<AuthProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AuthProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -77,5 +77,5 @@ export interface LoggerProviderProps {
|
|
|
77
77
|
}
|
|
78
78
|
export type WarnCode =
|
|
79
79
|
/** Also an `ErrorCode`: the level separates a failure the SDK absorbed from one it did not. */
|
|
80
|
-
'REQUEST_FAILED' | 'ACTIVE_SCHEDULE_NOT_FOUND' | 'MISSING_REQUIRED_PROPERTIES' | 'UI_COMPONENT_RECOVERED' | 'ADYEN_INVALID_CONFIGURATION' | 'PAYMENT_INTEGRATION_NOT_RENDERABLE' | 'APPLE_PAY_ACTION_REQUIRED' | 'APPLE_PAY_FORM_INCOMPLETE' | 'CHECKOUT_FORM_STATE_NOT_SAVED' | 'INVOICE_PREVIEW_SKIPPED' | 'RECURRING_AMOUNT_UNRESOLVED' | 'ON_DEMAND_CHARGE_REFUSED' | 'PAYMENT_OUTCOME_UNCONFIRMED' | 'PROMOTION_CODE_REJECTED' | 'TRANSLATION_LOAD_FAILED' | 'UNSUPPORTED_LOCALE';
|
|
81
|
-
export type ErrorCode = 'REQUEST_FAILED' | 'UNHANDLED_ERROR' | 'RESOURCE_REVOKED' | 'PORTAL_TYPE_NOT_ALLOWED' | 'INVALID_EMAIL' | 'INVALID_COUNTRY_CODE' | 'PAYMENT_INTEGRATION_INITIALIZATION_FAILED' | 'PAYMENT_AUTHORIZATION_FAILED' | 'TOKENIZATION_FAILED' | 'INVALID_TOKEN' | 'SESSION_EXPIRED' | 'INVALID_REDIRECT_RESULT' | 'PAYMENT_DETAILS_CALL_FAILED' | 'PAYMENT_METHOD_OPTIONS_LOAD_FAILED' | 'NO_PAYMENT_METHODS_AVAILABLE' | 'INTEGRATION_ERROR' | 'EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR' | 'EXPRESS_CHECKOUT_PAYPAL_ERROR' | 'APPLE_PAY_ERROR' | 'APPLE_PAY_AUTHORIZATION_FAILED' | 'PROMOTION_CODE_APPLY_FAILED' | 'PROMOTION_CODE_REMOVE_FAILED' | 'SUBSCRIPTION_UPDATE_FAILED' | 'SUBSCRIPTION_CANCELLATION_FAILED' | 'INITIAL_DATA_LOAD_FAILED' | 'SUBSCRIPTION_LOAD_FAILED' | 'INVOICE_PREVIEW_FAILED' | 'TOP_UP_FAILED' | 'ON_DEMAND_ITEMS_LOAD_FAILED' | 'ON_DEMAND_CHARGE_FAILED' | 'AUTO_TOP_UP_SAVE_FAILED' | 'AUTO_TOP_UP_CANCELLATION_FAILED' | 'REQUEST_PARSE_FAILED' | 'ADYEN_SUBMIT_FAILED' | 'STRIPE_SUBMIT_FAILED' | 'STRIPE_CONFIRMATION_TOKEN_FAILED' | 'STRIPE_ACTION_FAILED' | 'STRIPE_REDIRECT_RETURN_FAILED' | 'ADYEN_PAYMENT_FAILED' | 'PAYMENT_DETAILS_REJECTED' | 'PAYMENT_ACCEPTOR_MISSING';
|
|
80
|
+
'REQUEST_FAILED' | 'ACTIVE_SCHEDULE_NOT_FOUND' | 'MISSING_REQUIRED_PROPERTIES' | 'UI_COMPONENT_RECOVERED' | 'ADYEN_INVALID_CONFIGURATION' | 'PAYMENT_INTEGRATION_NOT_RENDERABLE' | 'APPLE_PAY_ACTION_REQUIRED' | 'APPLE_PAY_FORM_INCOMPLETE' | 'CHECKOUT_FORM_STATE_NOT_SAVED' | 'CHECKOUT_SESSION_CLOSED' | 'INVOICE_PREVIEW_SKIPPED' | 'RECURRING_AMOUNT_UNRESOLVED' | 'ON_DEMAND_CHARGE_REFUSED' | 'PAYMENT_OUTCOME_UNCONFIRMED' | 'PROMOTION_CODE_REJECTED' | 'TRANSLATION_LOAD_FAILED' | 'UNSUPPORTED_LOCALE';
|
|
81
|
+
export type ErrorCode = 'REQUEST_FAILED' | 'UNHANDLED_ERROR' | 'RESOURCE_REVOKED' | 'PORTAL_TYPE_NOT_ALLOWED' | 'INVALID_EMAIL' | 'INVALID_COUNTRY_CODE' | 'PAYMENT_INTEGRATION_INITIALIZATION_FAILED' | 'PAYMENT_AUTHORIZATION_FAILED' | 'TOKENIZATION_FAILED' | 'INVALID_TOKEN' | 'SESSION_EXPIRED' | 'PORTAL_URL_EXPIRED' | 'PORTAL_URL_REVOKED' | 'PORTAL_TOKEN_UNAVAILABLE' | 'INVALID_REDIRECT_RESULT' | 'PAYMENT_DETAILS_CALL_FAILED' | 'PAYMENT_METHOD_OPTIONS_LOAD_FAILED' | 'NO_PAYMENT_METHODS_AVAILABLE' | 'INTEGRATION_ERROR' | 'EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR' | 'EXPRESS_CHECKOUT_PAYPAL_ERROR' | 'APPLE_PAY_ERROR' | 'APPLE_PAY_AUTHORIZATION_FAILED' | 'PROMOTION_CODE_APPLY_FAILED' | 'PROMOTION_CODE_REMOVE_FAILED' | 'SUBSCRIPTION_UPDATE_FAILED' | 'SHIPPED_SUBSCRIPTIONS_LOAD_FAILED' | 'SHIPPING_ADDRESSES_LOAD_FAILED' | 'SHIPPING_ADDRESS_SAVE_FAILED' | 'SHIPPING_ADDRESS_DELETE_FAILED' | 'SUBSCRIPTION_CANCELLATION_FAILED' | 'INITIAL_DATA_LOAD_FAILED' | 'SUBSCRIPTION_LOAD_FAILED' | 'INVOICE_PREVIEW_FAILED' | 'TOP_UP_FAILED' | 'ON_DEMAND_ITEMS_LOAD_FAILED' | 'ON_DEMAND_CHARGE_FAILED' | 'AUTO_TOP_UP_SAVE_FAILED' | 'AUTO_TOP_UP_CANCELLATION_FAILED' | 'REQUEST_PARSE_FAILED' | 'ADYEN_SUBMIT_FAILED' | 'STRIPE_SUBMIT_FAILED' | 'STRIPE_CONFIRMATION_TOKEN_FAILED' | 'STRIPE_ACTION_FAILED' | 'STRIPE_REDIRECT_RETURN_FAILED' | 'ADYEN_PAYMENT_FAILED' | 'PAYMENT_DETAILS_REJECTED' | 'PAYMENT_ACCEPTOR_MISSING';
|
|
@@ -7,7 +7,7 @@ import { AuthProviderProps } from '../AuthProvider';
|
|
|
7
7
|
import { ConfigProviderProps } from '../ConfigProvider/ConfigProvider.types';
|
|
8
8
|
import { TranslationProviderProps } from '../TranslationProvider/TranslationProvider.types';
|
|
9
9
|
import { CssOverridesProviderProps } from '../CssOverridesProvider/CssOverridesProvider.types';
|
|
10
|
-
export interface RequiredProviderProps extends Omit<AuthProviderProps, 'token'>, ConfigProviderProps, TranslationProviderProps, BrandProviderProps, ExperimentalFeatureProviderProps, LoggerProviderProps, Pick<PortalProviderProps, 'allowedPortalTypes' | 'portalObject'>, HostElementProviderProps, CssOverridesProviderProps {
|
|
10
|
+
export interface RequiredProviderProps extends Omit<AuthProviderProps, 'token' | 'authentication'>, ConfigProviderProps, TranslationProviderProps, BrandProviderProps, ExperimentalFeatureProviderProps, LoggerProviderProps, Pick<PortalProviderProps, 'allowedPortalTypes' | 'portalObject'>, HostElementProviderProps, CssOverridesProviderProps {
|
|
11
11
|
}
|
|
12
12
|
export interface ProviderEmits {
|
|
13
13
|
(e: 'error', error: Error): void;
|
|
@@ -3,11 +3,13 @@ type __VLS_Props = ProviderProps & {
|
|
|
3
3
|
/** Required properties the entry was given no value for; nothing below renders until set. */
|
|
4
4
|
missingProperties?: string[];
|
|
5
5
|
};
|
|
6
|
-
declare var __VLS_86: {}, __VLS_89: {};
|
|
6
|
+
declare var __VLS_86: {}, __VLS_89: {}, __VLS_92: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_86) => any;
|
|
9
9
|
} & {
|
|
10
10
|
'portal-unavailable'?: (props: typeof __VLS_89) => any;
|
|
11
|
+
} & {
|
|
12
|
+
'portal-unavailable'?: (props: typeof __VLS_92) => any;
|
|
11
13
|
};
|
|
12
14
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
13
15
|
error: (error: Error) => any;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Invoice } from '../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
export interface OrderSummaryInvoiceProps {
|
|
3
|
+
invoice: Invoice;
|
|
4
|
+
/** Priced instead of `invoice` in the totals, while a trial runs. */
|
|
5
|
+
trialInvoice?: Invoice;
|
|
6
|
+
isPaid?: boolean;
|
|
7
|
+
collapsible?: 'collapsed' | 'expanded';
|
|
8
|
+
/** Before a country is known, taxes cannot be determined yet. */
|
|
9
|
+
isPreviewWithoutTaxes?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* `products-inline` lists the products inside the totals instead of above them.
|
|
12
|
+
*
|
|
13
|
+
* @default 'default'
|
|
14
|
+
*/
|
|
15
|
+
variant?: 'default' | 'products-inline';
|
|
16
|
+
}
|
|
@@ -9,6 +9,8 @@ export interface SubscriptionManagementFormProps {
|
|
|
9
9
|
* nothing can be added here.
|
|
10
10
|
*/
|
|
11
11
|
paymentMethods?: PaymentMethod[];
|
|
12
|
+
/** The subscription's own method is a card that has expired, which is why none is on offer. */
|
|
13
|
+
hasExpiredPaymentMethod?: boolean;
|
|
12
14
|
/** Drives how each pricing's amount is rendered on its option. */
|
|
13
15
|
billingPeriod: BillingPeriod;
|
|
14
16
|
currency?: Currency['currencyCode'];
|
package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Customer } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
export interface CustomerShippingAddressesProps {
|
|
3
|
+
/**
|
|
4
|
+
* Whose addresses the block loads. Known before the customer is, so both load at once; left
|
|
5
|
+
* out, the customer's own id is used once it arrives.
|
|
6
|
+
*/
|
|
7
|
+
customerId?: Customer['id'];
|
|
8
|
+
/** Who the addresses are for, which the forms start on. Without one the block is left out. */
|
|
9
|
+
customer?: Customer;
|
|
10
|
+
/** Set while the screen around it is still loading, so the block waits with it. */
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PlatformBranding } from '../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { PortalToken } from '../../types/portalToken';
|
|
2
3
|
import { Environment, IntlMessages } from '../types';
|
|
3
4
|
import { LogLevel, LogSink } from '../../components/providers/LoggerProvider/LoggerProvider.types';
|
|
4
5
|
import { ExperimentalFeature } from '../../components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib';
|
|
@@ -107,10 +108,14 @@ type ConfigurationProp<TConfiguration> = [TConfiguration] extends [undefined] ?
|
|
|
107
108
|
export type ComponentMountConfiguration<TId extends RegisteredComponentId> = {
|
|
108
109
|
container: Element | string;
|
|
109
110
|
portalObject: InferPortalObject<RegisteredComponentEntryPropsById[TId]>;
|
|
111
|
+
/** See `portalToken` on the element: the response of an exchange of the handle, as it is. */
|
|
112
|
+
portalToken?: PortalToken;
|
|
110
113
|
} & ConfigurationProp<ComponentConfigurationById[TId]>;
|
|
111
114
|
export type ScreenMountConfiguration<TId extends RegisteredScreenId> = {
|
|
112
115
|
container: Element | string;
|
|
113
116
|
portalObject: InferPortalObject<RegisteredScreenEntryPropsById[TId]>;
|
|
117
|
+
/** See `portalToken` on the element: the response of an exchange of the handle, as it is. */
|
|
118
|
+
portalToken?: PortalToken;
|
|
114
119
|
} & ConfigurationProp<ScreenConfigurationById[TId]>;
|
|
115
120
|
export interface CoreConfiguration<TConfig extends SolvimonMountConfig = SolvimonMountConfig> {
|
|
116
121
|
config: TConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Amount, Invoice, Payment, PaymentMethodOptionsResponse } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
1
|
+
import { Amount, Invoice, Payment, PaymentMethod, PaymentMethodOptionsResponse } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
import { BaseScreenProps } from '../types';
|
|
3
3
|
export interface PayInvoiceConfiguration {
|
|
4
4
|
/**
|
|
@@ -15,6 +15,8 @@ export interface PayInvoiceConfiguration {
|
|
|
15
15
|
export interface PayInvoiceProps extends BaseScreenProps {
|
|
16
16
|
invoice?: Invoice;
|
|
17
17
|
paymentMethodOptions?: PaymentMethodOptionsResponse;
|
|
18
|
+
/** The customer's stored methods; those this invoice can be charged to are offered first. */
|
|
19
|
+
paymentMethods?: PaymentMethod[];
|
|
18
20
|
paymentAttempts?: Payment[];
|
|
19
21
|
countryCode?: string;
|
|
20
22
|
amount?: Amount;
|