@solvimon/solvimon-web 0.1.0-alpha.13 → 0.1.0-alpha.15
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/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CX8vlY2Z.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-ugPPvTKf.mjs} +2 -2
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DGisvmez.js → BillingInformation.vue_vue_type_script_setup_true_lang-xuCWAVgf.js} +1 -1
- package/dist/ContentWithAsideLayout-DHpnJfGA.js +1 -0
- package/dist/{ContentWithAsideLayout-DhfUkZZg.mjs → ContentWithAsideLayout-Dy9xgxuF.mjs} +6 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BpN9nSMC.js +1 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bus-5gC3.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-D_PE2UbX.mjs} +8 -23
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DU6X3zxr.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Bc2hkpTb.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-ryvFEQMV.mjs} +1 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-DdpPrYxi.js +1 -0
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-bAiAbtMi.mjs +27 -0
- package/dist/{PaymentHistoryBlock-BiiFJkpT.js → PaymentHistoryBlock-BGbTy4Se.js} +1 -1
- package/dist/{PaymentHistoryBlock-D_B099M7.mjs → PaymentHistoryBlock-BKMttUyk.mjs} +1 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CixdxEGm.js +1 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CaMDtHrL.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-tM7f_fQS.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-CkXYj9xs.mjs → PaymentIntegrationForm-BGxjGJGz.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-bfGmfwQT.js → PaymentIntegrationForm-liOVNKEG.js} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BxdcIX-Z.js +1 -0
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BnMmcoAu.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-aP-gCq7V.mjs} +736 -162
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DfdaWRO0.js +1 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-h-JUw1DV.mjs +145 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-DxndhDxR.js +1 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-j5VNsyu7.mjs +139 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVoS3ZXS.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cqk-vonA.mjs +170 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BkzLj8n2.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-Cv6lz35J.mjs} +48 -23
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D6hHXndB.js +1 -0
- package/dist/component-B53Df2Rt.js +1 -0
- package/dist/component-BSnccqm1.mjs +933 -0
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +3 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +4 -4
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +14 -13
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +3 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +1 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.es.js +123 -0
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +11 -110
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +5 -5
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +5 -5
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +3 -3
- package/dist/core/action-request.types.d.ts +10 -1
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +4 -0
- package/dist/{customer-hDxW1Dbp.js → customer-B5b2tLhw.js} +1 -1
- package/dist/{customer-B31QzznT.mjs → customer-CANPEYH9.mjs} +1 -1
- package/dist/en-US-C0gIE4Q1.js +1 -0
- package/dist/{en-US-N3CUCsVy.mjs → en-US-DAgOSlgv.mjs} +33 -18
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/invoices-BCmE_nnb.js +1 -0
- package/dist/{invoices-DIYPN2j_.mjs → invoices-DBv0qkgm.mjs} +22 -3
- package/dist/nl-NL-Br7muSHK.js +1 -0
- package/dist/{nl-NL-B8U9b85I.mjs → nl-NL-DCsmrA8A.mjs} +33 -14
- package/dist/{paymentMethods-67b3UlTZ.mjs → paymentMethods-D-5FNN8W.mjs} +11 -3
- package/dist/paymentMethods-u5y9B5ng.js +1 -0
- package/dist/{payments-Dq6R37Fz.mjs → payments-BK8yzqJ5.mjs} +1 -1
- package/dist/{payments-DkHhTHto.js → payments-BTTtcfyI.js} +1 -1
- package/dist/{registry-Df_26rJy.mjs → registry-CMo7X2FD.mjs} +9 -3
- package/dist/registry-Cx7p19-6.js +1 -0
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +330 -414
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +13 -13
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -1
- package/dist/screens/PayInvoice/PayInvoice.es.js +45 -34
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +3 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +1 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.es.js +231 -0
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +756 -720
- package/dist/solvimon-web.css +1 -1
- package/dist/{subscriptions-jelITJcX.js → subscriptions-AMC4DirD.js} +1 -1
- package/dist/{subscriptions-ClGIr_aS.mjs → subscriptions-DHjXDyH1.mjs} +2 -2
- package/dist/{adyen-Bwewy3HC.mjs → url-1Lbg5Yni.mjs} +35 -35
- package/dist/url-B6-3PkW2.js +1 -0
- package/dist/{useActionDispatchProvider-rw9kWeE0.js → useActionDispatchProvider-CizNgRwv.js} +1 -1
- package/dist/{useActionDispatchProvider-BC57-Ufn.mjs → useActionDispatchProvider-DmhD9mYX.mjs} +1 -1
- package/dist/{useCustomer-Ba9WRtuT.mjs → useCustomer-DCPq7eHM.mjs} +2 -2
- package/dist/{useCustomer-CUcaeQn_.js → useCustomer-DYc54GVD.js} +1 -1
- package/dist/useIncrementalLoading-CuSndpP2.js +1 -0
- package/dist/{useIncrementalLoading-Cnzh2mAz.mjs → useIncrementalLoading-DmOT2MXH.mjs} +4 -4
- package/dist/{useInvoiceData-lIMEwwMy.js → useInvoiceData-BajCyf-x.js} +1 -1
- package/dist/{useInvoiceData-D7YN2SAd.mjs → useInvoiceData-BgtUKbHY.mjs} +2 -2
- package/dist/{useInvoicesList-CFzAxyae.mjs → useInvoicesList-DRD5yix0.mjs} +4 -4
- package/dist/useInvoicesList-wnvjyB_H.js +1 -0
- package/dist/{useLoadInitialData-DjwRHcAH.js → useLoadInitialData-BObRB7Vo.js} +1 -1
- package/dist/{useLoadInitialData-5sgImpzc.mjs → useLoadInitialData-IlbmC6p0.mjs} +1 -1
- package/dist/{usePaymentMethodOptions-DYO6xr3-.js → usePaymentMethodOptions-CzqsebhN.js} +1 -1
- package/dist/{usePaymentMethodOptions-C2k4npCQ.mjs → usePaymentMethodOptions-DRkWBjv6.mjs} +2 -2
- package/dist/{usePaymentMethods-CRWbH48K.mjs → usePaymentMethods-DFkRNreh.mjs} +2 -2
- package/dist/{usePaymentMethods-ryN_YohI.js → usePaymentMethods-ZPxKg5Y3.js} +1 -1
- package/dist/{usePayments-DWXPGFvp.js → usePayments-DwiGafZj.js} +1 -1
- package/dist/{usePayments-Cw5PPEJa.mjs → usePayments-E_Jsqo98.mjs} +3 -3
- package/dist/{usePortal-CxX4nrE4.js → usePortal-CxTS2TQh.js} +1 -1
- package/dist/{usePortal-cmE08vYs.mjs → usePortal-DcOz9FEL.mjs} +1 -1
- package/dist/{useService-Bb9r_sOQ.js → useService-CHrkefKd.js} +1 -1
- package/dist/{useService-BsSEI8DZ.mjs → useService-DF57xuDd.mjs} +1 -1
- package/dist/{useWalletBalanceItems-CpZ1NWPr.js → useWalletBalanceItems-BQEXDCBg.js} +1 -1
- package/dist/{useWalletBalanceItems-CkDqmk36.mjs → useWalletBalanceItems-MlHgedWR.mjs} +3 -3
- package/dist/{vendor-ui-C0K3osvz.mjs → vendor-ui-B8IlviSs.mjs} +6482 -5866
- package/dist/vendor-ui-C3Tq-qY_.js +1 -0
- package/package.json +5 -4
- package/dist/ContentWithAsideLayout-B5B8Kwaw.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CkRsyMlJ.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0vVUHuY.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DWTEfLrE.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CiyyUp4z.js +0 -1
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-BChVMzCj.mjs +0 -50
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Br3bEUlP.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-AHw3iTfi.js +0 -1
- package/dist/adyen-R6aSZ0Yf.js +0 -1
- package/dist/component-BOqPDAVk.js +0 -1
- package/dist/component-Djrf1L-Z.mjs +0 -889
- package/dist/en-US-CgPY97Vq.js +0 -1
- package/dist/invoices-DzkA1jDc.js +0 -1
- package/dist/nl-NL-qMRaTRrM.js +0 -1
- package/dist/paymentMethods-C_sdTkSF.js +0 -1
- package/dist/registry-BkViv4tv.js +0 -1
- package/dist/useIncrementalLoading-DoTTXM2Y.js +0 -1
- package/dist/useInvoicesList-CaBCGs4h.js +0 -1
- package/dist/vendor-ui-5pJF5KBP.js +0 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { defineComponent, renderSlot, unref,
|
|
2
|
-
import { _ as _sfc_main$
|
|
3
|
-
import {
|
|
4
|
-
import { u as useLoadInitialData } from "../../useLoadInitialData-
|
|
5
|
-
import { u as useCustomer } from "../../useCustomer-
|
|
6
|
-
import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-
|
|
7
|
-
import { _ as _sfc_main$3 } from "../../
|
|
8
|
-
|
|
9
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1
|
+
import { defineComponent, renderSlot, unref, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
|
|
2
|
+
import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-BSnccqm1.mjs";
|
|
3
|
+
import { g as getCustomerCountry } from "../../vendor-ui-B8IlviSs.mjs";
|
|
4
|
+
import { u as useLoadInitialData } from "../../useLoadInitialData-IlbmC6p0.mjs";
|
|
5
|
+
import { u as useCustomer } from "../../useCustomer-DCPq7eHM.mjs";
|
|
6
|
+
import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-DRkWBjv6.mjs";
|
|
7
|
+
import { _ as _sfc_main$3 } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-h-JUw1DV.mjs";
|
|
8
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
10
9
|
__name: "PaymentMethodForm.entry.view",
|
|
11
10
|
props: {
|
|
12
11
|
environment: { type: String },
|
|
@@ -50,104 +49,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
50
49
|
};
|
|
51
50
|
}
|
|
52
51
|
});
|
|
53
|
-
const FALLBACK_COUNTRY_CODE = "NL";
|
|
54
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
55
|
-
__name: "PaymentMethodForm",
|
|
56
|
-
props: {
|
|
57
|
-
customer: { type: Object },
|
|
58
|
-
paymentMethodOptions: { type: Array },
|
|
59
|
-
configuration: { type: Object },
|
|
60
|
-
isLoading: { type: Boolean, default: false },
|
|
61
|
-
countryCode: { type: String }
|
|
62
|
-
},
|
|
63
|
-
setup(__props) {
|
|
64
|
-
const DEFAULT_AMOUNT = {
|
|
65
|
-
currency: "EUR",
|
|
66
|
-
quantity: "0"
|
|
67
|
-
};
|
|
68
|
-
const props = __props;
|
|
69
|
-
const { $t } = useIntl();
|
|
70
|
-
const resolveConfiguration = (configuration2) => {
|
|
71
|
-
if ((configuration2 == null ? void 0 : configuration2.variant) === "AUTHORIZE") {
|
|
72
|
-
return configuration2;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
...configuration2,
|
|
76
|
-
variant: "TOKENIZE"
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
const configuration = computed(
|
|
80
|
-
() => resolveConfiguration(props.configuration)
|
|
81
|
-
);
|
|
82
|
-
const countryCode = computed(() => {
|
|
83
|
-
let result = FALLBACK_COUNTRY_CODE;
|
|
84
|
-
if (props.countryCode) {
|
|
85
|
-
result = props.countryCode;
|
|
86
|
-
return result;
|
|
87
|
-
}
|
|
88
|
-
if (props.customer) {
|
|
89
|
-
const country = getCustomerCountry(props.customer);
|
|
90
|
-
if (country) {
|
|
91
|
-
result = country;
|
|
92
|
-
return result;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return FALLBACK_COUNTRY_CODE;
|
|
96
|
-
});
|
|
97
|
-
const paymentIntegrationProps = computed(() => {
|
|
98
|
-
if (configuration.value.variant === "AUTHORIZE") {
|
|
99
|
-
return {
|
|
100
|
-
paymentMethodOptions: props.paymentMethodOptions,
|
|
101
|
-
countryCode: countryCode.value,
|
|
102
|
-
variant: "AUTHORIZE",
|
|
103
|
-
amount: configuration.value.amount,
|
|
104
|
-
context: configuration.value.context,
|
|
105
|
-
invoiceId: configuration.value.invoiceId,
|
|
106
|
-
successRedirectUrl: configuration.value.successRedirectUrl,
|
|
107
|
-
selectedOption: configuration.value.selectedOption,
|
|
108
|
-
validateOnSubmit: configuration.value.validateOnSubmit,
|
|
109
|
-
forceStorePaymentMethod: configuration.value.forceStorePaymentMethod
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
return {
|
|
113
|
-
paymentMethodOptions: props.paymentMethodOptions,
|
|
114
|
-
customerId: props.customer.id,
|
|
115
|
-
countryCode: countryCode.value,
|
|
116
|
-
variant: "TOKENIZE",
|
|
117
|
-
amount: configuration.value.amount ?? DEFAULT_AMOUNT,
|
|
118
|
-
invoiceId: configuration.value.invoiceId,
|
|
119
|
-
successRedirectUrl: configuration.value.successRedirectUrl,
|
|
120
|
-
selectedOption: configuration.value.selectedOption,
|
|
121
|
-
validateOnSubmit: configuration.value.validateOnSubmit,
|
|
122
|
-
forceStorePaymentMethod: configuration.value.forceStorePaymentMethod
|
|
123
|
-
};
|
|
124
|
-
});
|
|
125
|
-
return (_ctx, _cache) => {
|
|
126
|
-
return __props.isLoading ? (openBlock(), createBlock(_sfc_main$3, {
|
|
127
|
-
key: 0,
|
|
128
|
-
variant: "section",
|
|
129
|
-
class: "sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]",
|
|
130
|
-
"data-testid": "payment-method-form-skeleton"
|
|
131
|
-
})) : (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
132
|
-
key: 1,
|
|
133
|
-
class: "sv-payment-method-form sv-root sv-component",
|
|
134
|
-
"no-border": "",
|
|
135
|
-
"no-spacing": "",
|
|
136
|
-
"content-background": "none",
|
|
137
|
-
title: unref($t)({
|
|
138
|
-
defaultMessage: "Available payment methods",
|
|
139
|
-
description: "Title of the available payment methods form",
|
|
140
|
-
id: "components.payment_method_form.section_title"
|
|
141
|
-
})
|
|
142
|
-
}, {
|
|
143
|
-
default: withCtx(() => [
|
|
144
|
-
createVNode(_sfc_main$5, mergeProps({ class: "sv-payment-method-form__integration" }, paymentIntegrationProps.value), null, 16)
|
|
145
|
-
]),
|
|
146
|
-
_: 1
|
|
147
|
-
}, 8, ["title"]));
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
52
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
152
53
|
__name: "PaymentMethodForm.entry",
|
|
153
54
|
props: {
|
|
@@ -172,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
172
73
|
const props = __props;
|
|
173
74
|
return (_ctx, _cache) => {
|
|
174
75
|
var _a, _b, _c, _d;
|
|
175
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
76
|
+
return openBlock(), createBlock(unref(_sfc_main$2), {
|
|
176
77
|
"custom-element-name": unref(COMPONENT_NAME),
|
|
177
78
|
environment: __props.environment,
|
|
178
79
|
locale: __props.locale,
|
|
@@ -187,9 +88,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
187
88
|
onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
|
|
188
89
|
}, {
|
|
189
90
|
default: withCtx(() => [
|
|
190
|
-
createVNode(_sfc_main$
|
|
91
|
+
createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(props)), {
|
|
191
92
|
default: withCtx(({ customer, paymentMethodOptions, isLoading }) => [
|
|
192
|
-
customer ? (openBlock(), createBlock(_sfc_main$
|
|
93
|
+
customer ? (openBlock(), createBlock(_sfc_main$3, {
|
|
193
94
|
key: 0,
|
|
194
95
|
customer,
|
|
195
96
|
"payment-method-options": paymentMethodOptions.paymentMethodOptions.value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-B53Df2Rt.js"),n=require("../../vendor-ui-C3Tq-qY_.js"),r=require("../../useService-CHrkefKd.js"),o=require("../../subscriptions-AMC4DirD.js"),i=require("../../useLoadInitialData-BObRB7Vo.js"),s=e.defineComponent({__name:"SubscriptionSchedules",props:{schedulesData:{type:Array},configuration:{type:Object},isLoading:{type:Boolean}},setup(t){const{$t:r}=n.useIntl();return(o,i)=>(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{class:"sv-subscription-schedules sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:e.unref(r)({defaultMessage:"Schedules",description:"Invoices list title",id:"invoices_list.title"})},{default:e.withCtx(()=>[e.createVNode(e.unref(n.PricingPlanSchedules),{class:"sv-subscription-schedules__list",schedules:t.schedulesData},null,8,["schedules"])]),_:1},8,["title"]))}});const a=e.defineComponent({__name:"SubscriptionSchedules.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=t,{subscription:s,withPlanData:a,get:l}=function({subscriptionId:e}){const{getSubscription:t}=o.createSubscriptionsService(),{data:n,execute:i,apiStatus:s,error:a,isPending:l}=r.useService({service:()=>t({id:e,expanded:!0})});return{subscription:n,withPlanData:e=>e.pricing_plan_schedule_infos.map(e=>({schedule:e.pricing_plan_schedule,selectedPricingPlan:e.pricing_plan_version.pricing_plan,selectedPricingPlanVersion:e.pricing_plan_version})),apiStatus:s,error:a,get:i,isPending:l}}({subscriptionId:n.configuration.subscriptionId}),{isLoading:c}=i.useLoadInitialData(l());return(t,n)=>e.renderSlot(t.$slots,"default",{schedulesData:e.unref(s)?e.unref(a)(e.unref(s)):void 0,isLoading:e.unref(c)})}}),l=e.defineComponent({__name:"SubscriptionSchedules.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(n){const r=n;return(o,i)=>{var l,c,u,d;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(p),environment:n.environment,locale:n.locale,"portal-object":n.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(l=n.branding)?void 0:l.colors)?void 0:c.primary,"secondary-color":null==(d=null==(u=n.branding)?void 0:u.colors)?void 0:d.secondary,"experimental-features":n.experimentalFeatures,"log-level":n.logLevel,"on-log":n.onLog,"css-overrides":n.cssOverrides,onError:i[0]||(i[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(a,e.normalizeProps(e.guardReactiveProps(r)),{default:e.withCtx(({schedulesData:t,isLoading:r})=>[t?(e.openBlock(),e.createBlock(s,{key:0,"schedules-data":t,"is-loading":r,configuration:n.configuration},null,8,["schedules-data","is-loading","configuration"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),c=t.defineCustomElement(l),p=t.getComponentName("subscription-schedules");exports.COMPONENT_NAME=p,exports.SolvimonSubscriptionSchedules=c,exports.defineSolvimonSubscriptionSchedules=()=>{customElements.get(p)||customElements.define(p,c)};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
|
|
2
|
-
import { _ as _sfc_main$4, d as defineCustomElement, g as getComponentName } from "../../component-
|
|
3
|
-
import { u as useIntl,
|
|
4
|
-
import { u as useService } from "../../useService-
|
|
5
|
-
import { c as createSubscriptionsService } from "../../subscriptions-
|
|
6
|
-
import { u as useLoadInitialData } from "../../useLoadInitialData-
|
|
2
|
+
import { _ as _sfc_main$4, d as defineCustomElement, g as getComponentName } from "../../component-BSnccqm1.mjs";
|
|
3
|
+
import { u as useIntl, _ as _sfc_main$3, P as PricingPlanSchedules } from "../../vendor-ui-B8IlviSs.mjs";
|
|
4
|
+
import { u as useService } from "../../useService-DF57xuDd.mjs";
|
|
5
|
+
import { c as createSubscriptionsService } from "../../subscriptions-DHjXDyH1.mjs";
|
|
6
|
+
import { u as useLoadInitialData } from "../../useLoadInitialData-IlbmC6p0.mjs";
|
|
7
7
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "SubscriptionSchedules",
|
|
9
9
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-D6hHXndB.js"),t=require("../../component-B53Df2Rt.js"),r=require("../../useCustomer-DYc54GVD.js"),n=require("../../useLoadInitialData-BObRB7Vo.js"),s=require("../../usePaymentMethods-ZPxKg5Y3.js"),i=e.defineComponent({__name:"SubscriptionsList.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(i){const l=i.portalObject.customer_id,a=r.useCustomer({customerId:l}),p=o.useSubscriptionsList({customerId:l}),u=s.usePaymentMethods({customerId:l}),{isLoading:m}=n.useLoadInitialData(a.get.execute(),p.fetchInitial(),u.fetchAll());return(o,r)=>{var n,s,l,d;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(c),environment:i.environment,locale:i.locale,"portal-object":i.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(s=null==(n=i.branding)?void 0:n.colors)?void 0:s.primary,"secondary-color":null==(d=null==(l=i.branding)?void 0:l.colors)?void 0:d.secondary,"experimental-features":i.experimentalFeatures,"log-level":i.logLevel,"on-log":i.onLog,"css-overrides":i.cssOverrides,onError:r[0]||(r[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{customer:e.unref(a),subscriptions:e.unref(p).items,paymentMethods:e.unref(u).items,isLoading:e.unref(m),loadMore:e.unref(p).fetchMore})]),_:3},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),l=e.defineComponent({__name:"SubscriptionsList.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup:r=>(n,s)=>{var l,a,p,u;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(c),environment:r.environment,locale:r.locale,"portal-object":r.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(a=null==(l=r.branding)?void 0:l.colors)?void 0:a.primary,"secondary-color":null==(u=null==(p=r.branding)?void 0:p.colors)?void 0:u.secondary,"experimental-features":r.experimentalFeatures,"log-level":r.logLevel,"on-log":r.onLog,"css-overrides":r.cssOverrides,onError:s[0]||(s[0]=e=>n.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(i,e.normalizeProps(e.guardReactiveProps(n.$props)),{default:e.withCtx(({customer:t,subscriptions:n,paymentMethods:s,isLoading:i,loadMore:l})=>[e.createVNode(o._sfc_main,{configuration:r.configuration,customer:t.customer.value,subscriptions:n.value,"payment-methods":s.value,"is-loading":i,onLoadMore:l},null,8,["configuration","customer","subscriptions","payment-methods","is-loading","onLoadMore"])]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}),a=t.defineCustomElement(l),c=t.getComponentName("subscriptions-list");exports.COMPONENT_NAME=c,exports.SolvimonSubscriptionsList=a,exports.defineSolvimonSubscriptionsList=()=>{customElements.get(c)||customElements.define(c,a)};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, createVNode, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
-
import { u as useSubscriptionsList, _ as _sfc_main$3 } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-
|
|
4
|
-
import { u as useCustomer } from "../../useCustomer-
|
|
5
|
-
import { u as useLoadInitialData } from "../../useLoadInitialData-
|
|
6
|
-
import { u as usePaymentMethods } from "../../usePaymentMethods-
|
|
2
|
+
import { u as useSubscriptionsList, _ as _sfc_main$3 } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-Cv6lz35J.mjs";
|
|
3
|
+
import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-BSnccqm1.mjs";
|
|
4
|
+
import { u as useCustomer } from "../../useCustomer-DCPq7eHM.mjs";
|
|
5
|
+
import { u as useLoadInitialData } from "../../useLoadInitialData-IlbmC6p0.mjs";
|
|
6
|
+
import { u as usePaymentMethods } from "../../usePaymentMethods-DFkRNreh.mjs";
|
|
7
7
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "SubscriptionsList.entry.view",
|
|
9
9
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../ApiStatus-oqvUEWJx.js"),a=require("../../useWalletBalanceItems-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../ApiStatus-oqvUEWJx.js"),a=require("../../useWalletBalanceItems-BQEXDCBg.js"),r=require("../../useLoadInitialData-BObRB7Vo.js"),l=require("../../component-B53Df2Rt.js"),o=e.defineComponent({__name:"WalletBalances",props:{hasError:{type:Boolean},isLoading:{type:Boolean},walletBalances:{type:Array}},setup:t=>(r,l)=>(e.openBlock(),e.createBlock(a._sfc_main,{class:"sv-wallet-balances sv-root sv-component","has-error":t.hasError,"is-loading":t.isLoading,"wallet-balances":t.walletBalances},null,8,["has-error","is-loading","wallet-balances"]))}),n=e.defineComponent({__name:"WalletBalances.entry.view",props:{portalObject:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const l=t.portalObject.customer_id,o=a.useCustomerWalletBalances({customerId:l}),n=a.useWalletBalanceItems(o.walletBalances),{isLoading:s}=r.useLoadInitialData(o.fetch());return(t,a)=>e.renderSlot(t.$slots,"default",{customerWalletBalances:e.unref(o),walletBalanceItems:e.unref(n),isLoading:e.unref(s)})}}),s=e.defineComponent({__name:"WalletBalances.entry",props:{portalObject:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup:a=>(r,s)=>{var i,p,m,u;return e.openBlock(),e.createBlock(e.unref(l._sfc_main),{"custom-element-name":e.unref(c),environment:a.environment,locale:a.locale,"portal-object":a.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(p=null==(i=a.branding)?void 0:i.colors)?void 0:p.primary,"secondary-color":null==(u=null==(m=a.branding)?void 0:m.colors)?void 0:u.secondary,"experimental-features":a.experimentalFeatures,"log-level":a.logLevel,"on-log":a.onLog,"css-overrides":a.cssOverrides,onError:s[0]||(s[0]=e=>r.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(n,e.normalizeProps(e.guardReactiveProps(r.$props)),{default:e.withCtx(({customerWalletBalances:a,walletBalanceItems:r,isLoading:l})=>[e.createVNode(o,{"has-error":a.apiStatus.value===e.unref(t.ApiStatus).Failed,"is-loading":l,"wallet-balances":r},null,8,["has-error","is-loading","wallet-balances"])]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}),i=l.defineCustomElement(s),c=l.getComponentName("wallet-balances");exports.COMPONENT_NAME=c,exports.SolvimonWalletBalances=i,exports.defineSolvimonWalletBalances=()=>{customElements.get(c)||customElements.define(c,i)};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, renderSlot, unref, withCtx, createVNode, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
import { A as ApiStatus } from "../../ApiStatus-CyNDp_op.mjs";
|
|
3
|
-
import { _ as _sfc_main$3, u as useCustomerWalletBalances, a as useWalletBalanceItems } from "../../useWalletBalanceItems-
|
|
4
|
-
import { u as useLoadInitialData } from "../../useLoadInitialData-
|
|
5
|
-
import { _ as _sfc_main$4, d as defineCustomElement, g as getComponentName } from "../../component-
|
|
3
|
+
import { _ as _sfc_main$3, u as useCustomerWalletBalances, a as useWalletBalanceItems } from "../../useWalletBalanceItems-MlHgedWR.mjs";
|
|
4
|
+
import { u as useLoadInitialData } from "../../useLoadInitialData-IlbmC6p0.mjs";
|
|
5
|
+
import { _ as _sfc_main$4, d as defineCustomElement, g as getComponentName } from "../../component-BSnccqm1.mjs";
|
|
6
6
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "WalletBalances",
|
|
8
8
|
props: {
|
|
@@ -42,6 +42,12 @@ export interface ActionRequestDetailRenewSubscription extends ActionRequestDetai
|
|
|
42
42
|
subscriptionId: string;
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
+
export interface ActionRequestDetailUpgradeSubscription extends ActionRequestDetailBase {
|
|
46
|
+
action: 'upgrade-subscription';
|
|
47
|
+
data: {
|
|
48
|
+
subscriptionId: string;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
45
51
|
export interface ActionRequestDetailEditBillingInformation extends ActionRequestDetailBase {
|
|
46
52
|
action: 'edit-billing-information';
|
|
47
53
|
}
|
|
@@ -51,7 +57,10 @@ export interface ActionRequestDetailViewAllPaymentMethods extends ActionRequestD
|
|
|
51
57
|
export interface ActionRequestDetailAddPaymentMethod extends ActionRequestDetailBase {
|
|
52
58
|
action: 'add-payment-method';
|
|
53
59
|
}
|
|
54
|
-
export
|
|
60
|
+
export interface ActionRequestDetailNavigateToCustomerOverview extends ActionRequestDetailBase {
|
|
61
|
+
action: 'navigate-to-customer-overview';
|
|
62
|
+
}
|
|
63
|
+
export type ActionRequestDetail = ActionRequestDetailViewInvoice | ActionRequestDetailPayInvoice | ActionRequestDetailViewSubscriptionDetails | ActionRequestDetailViewAllSubscriptions | ActionRequestDetailCancelSubscription | ActionRequestDetailRenewSubscription | ActionRequestDetailUpgradeSubscription | ActionRequestDetailEditBillingInformation | ActionRequestDetailViewAllPaymentMethods | ActionRequestDetailAddPaymentMethod | ActionRequestDetailNavigateToCustomerOverview;
|
|
55
64
|
/**
|
|
56
65
|
* Type for the 'action-request' custom event. Use when listening for action-request on document or container.
|
|
57
66
|
*/
|
package/dist/core/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../registry-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../registry-Cx7p19-6.js");exports.createSolvimonCore=e.createSolvimonCore,exports.getRegisteredComponentIds=e.getRegisteredComponentIds,exports.getRegisteredScreenIds=e.getRegisteredScreenIds;
|
package/dist/core/index.es.js
CHANGED
package/dist/core/types.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { SolvimonBillingInformationEntryProps } from '../components/BillingInfor
|
|
|
5
5
|
import { SolvimonBillingInformationFormEntryProps } from '../components/BillingInformationForm/BillingInformationForm.entry.types';
|
|
6
6
|
import { SolvimonCustomerPaymentMethodsEntryProps } from '../components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types';
|
|
7
7
|
import { SolvimonInvoiceEntryProps } from '../components/Invoice/Invoice.entry.types';
|
|
8
|
+
import { SolvimonInvoiceHeaderEntryProps } from '../components/InvoiceHeader/InvoiceHeader.entry.types';
|
|
8
9
|
import { SolvimonInvoiceDetailsEntryProps } from '../components/InvoiceDetails/InvoiceDetails.entry.types';
|
|
9
10
|
import { SolvimonInvoicesListEntryProps } from '../components/InvoicesList/InvoicesList.entry.types';
|
|
10
11
|
import { SolvimonPaymentMethodFormEntryProps } from '../components/PaymentMethodForm/PaymentMethodForm.entry.types';
|
|
@@ -16,6 +17,7 @@ import { SolvimonCheckoutEntryProps } from '../screens/Checkout/Checkout.entry.t
|
|
|
16
17
|
import { SolvimonCustomerOverviewEntryProps } from '../screens/CustomerOverview/CustomerOverview.entry.types';
|
|
17
18
|
import { SolvimonUpgradeSubscriptionEntryProps } from '../screens/UpgradeSubscription/UpgradeSubscription.entry.types';
|
|
18
19
|
import { SolvimonPayInvoiceEntryProps } from '../screens/PayInvoice/PayInvoice.entry.types';
|
|
20
|
+
import { SolvimonPaymentMethodsManagementEntryProps } from '../screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types';
|
|
19
21
|
/**
|
|
20
22
|
* Shared configuration passed to all mounted Solvimon components and screens.
|
|
21
23
|
* Extends the base entry props (environment, locale, branding, etc.).
|
|
@@ -41,6 +43,7 @@ export interface SolvimonMountInstance {
|
|
|
41
43
|
}
|
|
42
44
|
interface RegisteredComponentEntryPropsById {
|
|
43
45
|
invoice: SolvimonInvoiceEntryProps;
|
|
46
|
+
'invoice-header': SolvimonInvoiceHeaderEntryProps;
|
|
44
47
|
'invoice-details': SolvimonInvoiceDetailsEntryProps;
|
|
45
48
|
'invoices-list': SolvimonInvoicesListEntryProps;
|
|
46
49
|
'payment-history': SolvimonPaymentHistoryEntryProps;
|
|
@@ -57,6 +60,7 @@ interface RegisteredScreenEntryPropsById {
|
|
|
57
60
|
'customer-overview': SolvimonCustomerOverviewEntryProps;
|
|
58
61
|
'upgrade-subscription': SolvimonUpgradeSubscriptionEntryProps;
|
|
59
62
|
'pay-invoice': SolvimonPayInvoiceEntryProps;
|
|
63
|
+
'payment-methods-management': SolvimonPaymentMethodsManagementEntryProps;
|
|
60
64
|
}
|
|
61
65
|
/**
|
|
62
66
|
* Registered screen ids that can be used with createScreen.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=require("./component-
|
|
1
|
+
const t=require("./component-B53Df2Rt.js");exports.createCustomerService=function(){const e=t.createRequestService(),r=t.useConfig();return{getCustomer:function(t){return e({url:`${r.apiUrls.config}/portal/customers/${t}`})},updateCustomer:function(t,o){return e({url:`${r.apiUrls.config}/portal/customers/${t}`,options:{method:"PATCH"},data:o})},checkTaxID:function(t){return e({url:`${r.apiUrls.config}/portal/customers/validate-tax-id`,options:{method:"POST"},data:t})}}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createRequestService, u as useConfig } from "./component-
|
|
1
|
+
import { c as createRequestService, u as useConfig } from "./component-BSnccqm1.mjs";
|
|
2
2
|
function createCustomerService() {
|
|
3
3
|
const request = createRequestService();
|
|
4
4
|
const config = useConfig();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="{pricing} per {billing_period}",t={"addon_multiple_editor.add_to_subscription_button":"Add to subscription","addon_multiple_editor.description":"Select any number of products","addon_multiple_editor.unsupported_pricing_error":"Unsupported pricing","addon_single_editor.description.at_least_one":"Select at least one product","addon_single_editor.description.at_most_one":"Select up to one product","addon_single_editor.description.exactly_one":"Select one product","billing_information_form.submit_button.label":"Save changes","checkout.address.city.placeholder":"City...","checkout.address.line1.placeholder":"Address line 1...","checkout.address.line2.placeholder":"Address line 2...","checkout.address.portal_code.placeholder":"Postal code...","checkout.address.state.placeholder":"State...","checkout.address.title":"Billing address","checkout.agreement.subscription":"{subscription_amount}/{billing_period} until canceled, starting {start_date, date, long}.","checkout.agreement.trial":"{discounted_amount} for {trial_period}, then {subscription_amount}/{billing_period} until canceled, starting {start_date, date, ::MMMMd}.","checkout.agreement.trial.free":"Free","checkout.billing_details.add_billing_details_button.label":"More billing details","checkout.billing_details.remove_billing_details_button.label":"Remove billing details","checkout.billing_information_block.title":"Billing details","checkout.company_purchase_toggle.sub_title":"I am purchasing on behalf of a company","checkout.company_purchase_toggle.title":"Company purchase","checkout.contact_information_block.title":"Customer information","checkout.country.label":"Billing country","checkout.customize_plan_block.title":"Customize plan","checkout.email_address.label":"Email address","checkout.email_address.placeholder":"Email address...","checkout.express_payment_methods.divider_text":"Or","checkout.express_payment_methods.title":"Subscribe instantly with","checkout.first_name.label":"First name","checkout.first_name.placeholder":"First name...","checkout.invoice_preview.no_country_selected_message":"Please select a country first","checkout.invoice_preview.usage_based_message":"+ Usage","checkout.last_name.label":"Last name","checkout.last_name.placeholder":"Last name...","checkout.legal_name.label":"Legal entity name","checkout.legal_name.placeholder":"Legal entity name...","checkout.not_available.contact_support_message":"this page to try again, or contact customer support.","checkout.not_available.description":"The checkout is currently not available.","checkout.not_available.reload_button":"Reload","checkout.not_available.title":"Checkout not available","checkout.optional_suffix.label":"(optional)","checkout.order_summary_block.billing_period.label":"Billed {period}","checkout.order_summary_block.billing_period.per_label":"/{period}","checkout.order_summary_block.billing_period.per_quarter":"/quarter","checkout.order_summary_block.billing_period.quarterly":"Billed quarterly","checkout.order_summary_block.billing_period.save_badge.prefix":"Save {amount}","checkout.order_summary_block.billing_period.save_badge.suffix":"/year","checkout.order_summary_block.billing_period.sub_label":"{amount}{period}","checkout.order_summary_block.title":"Order summary","checkout.page_title":"Pay and subscribe","checkout.pay_and_subscribe_button_trial.label":"Start trial","checkout.pay_and_subscribe_button.label":"Pay and subscribe","checkout.payment_method_block.no_country_selected_message":"Payment methods will be shown after you select the billing country.","checkout.payment_method_block.no_country_selected_title":"Select your billing country","checkout.payment_method_block.no_payment_methods_available_message":"There are no available payment methods. Please contact support for more information.","checkout.payment_method_block.no_payment_methods_available_title":"No payment methods available","checkout.payment_method_block.title":"Payment method","checkout.payment_methods.no_country_selected_message":"Select a country to see the available payment methods","checkout.promotion_code.add_label":"Add promotion code","checkout.promotion_code.applied_label":"Promotion applied","checkout.promotion_code.applied_status":"Promotion code applied","checkout.promotion_code.apply_aria_label":"Apply promotion code","checkout.promotion_code.apply_button":"Apply","checkout.promotion_code.apply_failed":"Promotion code could not be applied. Please try again.","checkout.promotion_code.input_aria_label":"Promotion code","checkout.promotion_code.placeholder":"Promotion code","checkout.promotion_code.remove_aria_label":"Remove promotion code","checkout.promotion_code.remove_failed":"Promotion code could not be removed. Please try again.","checkout.promotion_code.removed_status":"Promotion code removed","checkout.subscription_description":"You will be billed <strong>{price}</strong> per {period_name}, starting today.","checkout.trial_period_description":"You will be billed <strong>{price}</strong> per {period_name}, starting {startDate, date, long}.","checkout.trial.label":"Trial","checkout.vat_number.check_button.label":"Check","checkout.vat_number.label":"VAT number","checkout.vat_number.placeholder":"VAT number...","components.payment_method_form.section_title":"Available payment methods","customer_overview.billing_information_block.load_failed.subtitle":"Please refresh or contact support.","customer_overview.billing_information_block.load_failed.title":"We can’t load your billing information","customer_overview.billing_information_block.title":"Billing information","customer_overview.billing_information_block.view_all_payment_methods_link_label":"Edit","customer_overview.payment_methods_block.add_payment_method_button_label":"Add payment method","customer_overview.payment_methods_block.add_payment_method_helper_text":"Add a payment method for recurring invoice payments.","customer_overview.payment_methods_block.view_all_payment_methods_link_label":"View all","customer_overview.payment_methods.title":"{count,plural,one{Payment method} other{Payment methods}}","customer_overview.subscriptions_block.fallback_subscription_name":"Subscription","customer_overview.subscriptions_block.no_active_subscription_content":"There’s no active subscription to display.","customer_overview.subscriptions_block.no_active_subscription_title":"No subscriptions","customer_overview.subscriptions_block.title":"{count,plural,one{My subscription} other{My subscriptions}}","customer_overview.subscriptions_block.view_all_button_label":"View all","customer_overview.wallet_balances_block.title":"{count,plural,one{Wallet} other{Wallets}}","customer.invoice_table.pay_invoice_button.label":"Pay","customer.subscriptions_block.cancel_button_label":"Cancel subscription","customer.subscriptions_block.next_billing_date":"Next billing date","customer.subscriptions_block.renew_button_label":"Renew subscription","customer.subscriptions_block.show_details_button_label":"Subscription details","customer.subscriptions_block.upgrade_button_label":"Upgrade subscription","empty_state.retry.button":"Refresh",empty_value_placeholder:"-","invoice_credits.balance.table_header":"Balance","invoice_credits.credit_breakdown.table_header":"Credit breakdown","invoice_credits.remaining.table_header":"Remaining","invoice_credits.used.table_header":"Used","invoice_preview.taxes_not_determined_by_billing_information_tooltip":"Will be determined by billing information","invoice_table.button.load_more":"Load more","invoice_table.chip.paid":"Paid","invoice_table.header.amount":"Amount","invoice_table.header.date":"Date","invoice_table.header.invoice_number":"Invoice","invoice_table.header.status":"Status","invoices_list.title":"Schedules","on_demand_pricing_list.category_fallback_title":"Items","on_demand_pricing_row.add_to_cart_button_label":"Add to cart","on_demand_pricing_row.one_off_label":"one-off","on_demand_pricing_row.remove_button_label":"Remove","pay_button.label.amount_and_payment_method":"Pay {amount} with {type}","pay_button.label.amount_only":"Pay {amount}","pay_button.label.default":"Pay","pay_invoice.error.description":"Please try again or contact support.","pay_invoice.error.title":"Something went wrong","pay_invoice.paid.title":"Thank you for your payment!","pay_invoice.payment_methods.title":"Payment methods","payment_completed_card.redirect_message":"You are being redirected...","payment_completed_card.title.authorize":"Payment successful","payment_completed_card.title.tokenize":"Your payment method is added","payment_integration_form.select_payment_method_error":"Select a payment method","payment_method.context_menu.delete.label":"Delete","payment_method.context_menu.set_as_default.label":"Set as default","payment_methods_list.delete_modal.body":"Are you sure you want to delete this payment method?","payment_methods_list.delete_modal.cancel":"Cancel","payment_methods_list.delete_modal.confirm":"Delete","payment_methods_list.delete_modal.title":"Delete payment method","payments.retry_button.label":"Try again","pricing_group_multiple_editor.at_least_one_description":"Select at least one product",pricing_item_pricing:e,"pricing_item_pricing.unsupported_pricing_error":"Unsupported pricing","screens.payment_method_management.description":"Add a new payment method or set a default payment method for your payments.","screens.payment_method_management.title":"Payment methods","sdk.invoice_details.customer_billing_information.title":"Your billing information","sdk.invoice_details.invoice_details_block.due_date":"Due date","sdk.invoice_details.invoice_details_block.invoice_date":"Invoice date","sdk.invoice_details.invoice_details_block.title":"Invoice details","sdk.invoice_details.invoice.download_pdf":"Download the PDF for a full breakdown","sdk.invoice_details.invoice.title":"Invoice","sdk.invoice_details.payment_history.payment_attempt":"Payment attempt","sdk.invoice_details.payment_history.title":"Payment history","seats.label":"Seats","seats.price_per_seat_period":"{amount} per seat/{period}","seats.tiered_price_per_seat_period":"{amount} per seat/{period}","seats.tiered_pricing_label":"Tiered pricing","seats.tiered_range_label":"{lower_bound} - {upper_bound} seats","seats.tiered_unbounded_range_label":"> {lower_bound} seats","secure_payments_kpi.generic":"Secure and encrypted payments","secure_payments_kpi.specific_vendor":"Secure and encrypted payments by","subscription_payment_completed_card.thank_you_for_subscribing":"Thank you for subscribing.","subscription_payment_completed_card.title":"Payment successful","tax_check.invalid_vat_number":"VAT number is invalid.","tax_check.valid_vat_number":"VAT number is valid.","upgrade_subscription.empty_state":"No one-off items are available for this subscription.","upgrade_subscription.load_error":"Unable to load items. Please try again later.","upgrade_subscription.order_summary.empty_state":"Select your items","upgrade_subscription.order_summary.item_count":"{count} items","upgrade_subscription.order_summary.one_off_label":"one-off","upgrade_subscription.order_summary.selected_item_count":"{count} items","upgrade_subscription.order_summary.selected_items_title":"Selected items","upgrade_subscription.order_summary.title":"Order summary","upgrade_subscription.payment_method_block.no_payment_methods_available_message":"There are no available payment methods. Please contact support for more information.","upgrade_subscription.payment_method_block.no_payment_methods_available_title":"No payment methods available","upgrade_subscription.payment_method_block.title":"Payment method","upgrade_subscription.payment_picker.all_title":"All payment methods","upgrade_subscription.payment_picker.saved_title":"Saved payment methods","upgrade_subscription.preview_error":"Unable to calculate the total. Please try again.","upgrade_subscription.pricing_row.add_button_label":"Add to cart","upgrade_subscription.pricing_row.one_off_label":"one-off","upgrade_subscription.pricing_row.remove_button_label":"Remove","upgrade_subscription.purchase_button.label":"Purchase","upgrade_subscription.purchase_error":"Something went wrong. Please try again.","upgrade_subscription.success.redirect":"You will be redirected shortly…","upgrade_subscription.success.subtitle":"Your purchase has been completed.","upgrade_subscription.success.title":"Payment successful","upgrade_subscription.title":"Upgrade subscription","wallet_balance.credit_type_fallback_label":"Credits","wallet_balance.details.header":"Wallet balance","wallet_balance.load_failed":"Could not load wallet balances","wallet_balance.service_period_heading":"Service period - {startAt} - {endAt}","wallet_balance.wallet_ballance_title":"Balance"};exports.default=t,exports.empty_value_placeholder="-",exports.pricing_item_pricing=e;
|
|
@@ -51,8 +51,8 @@ const enUS = {
|
|
|
51
51
|
"checkout.order_summary_block.billing_period.sub_label": "{amount}{period}",
|
|
52
52
|
"checkout.order_summary_block.title": "Order summary",
|
|
53
53
|
"checkout.page_title": "Pay and subscribe",
|
|
54
|
-
"checkout.pay_and_subscribe_button.label": "Pay and subscribe",
|
|
55
54
|
"checkout.pay_and_subscribe_button_trial.label": "Start trial",
|
|
55
|
+
"checkout.pay_and_subscribe_button.label": "Pay and subscribe",
|
|
56
56
|
"checkout.payment_method_block.no_country_selected_message": "Payment methods will be shown after you select the billing country.",
|
|
57
57
|
"checkout.payment_method_block.no_country_selected_title": "Select your billing country",
|
|
58
58
|
"checkout.payment_method_block.no_payment_methods_available_message": "There are no available payment methods. Please contact support for more information.",
|
|
@@ -71,31 +71,32 @@ const enUS = {
|
|
|
71
71
|
"checkout.promotion_code.remove_failed": "Promotion code could not be removed. Please try again.",
|
|
72
72
|
"checkout.promotion_code.removed_status": "Promotion code removed",
|
|
73
73
|
"checkout.subscription_description": "You will be billed <strong>{price}</strong> per {period_name}, starting today.",
|
|
74
|
-
"checkout.trial.label": "Trial",
|
|
75
74
|
"checkout.trial_period_description": "You will be billed <strong>{price}</strong> per {period_name}, starting {startDate, date, long}.",
|
|
75
|
+
"checkout.trial.label": "Trial",
|
|
76
76
|
"checkout.vat_number.check_button.label": "Check",
|
|
77
77
|
"checkout.vat_number.label": "VAT number",
|
|
78
78
|
"checkout.vat_number.placeholder": "VAT number...",
|
|
79
79
|
"components.payment_method_form.section_title": "Available payment methods",
|
|
80
|
-
"customer.invoice_table.pay_invoice_button.label": "Pay",
|
|
81
|
-
"customer.subscriptions_block.cancel_button_label": "Cancel subscription",
|
|
82
|
-
"customer.subscriptions_block.next_billing_date": "Next billing date",
|
|
83
|
-
"customer.subscriptions_block.renew_button_label": "Renew subscription",
|
|
84
|
-
"customer.subscriptions_block.show_details_button_label": "Subscription details",
|
|
85
80
|
"customer_overview.billing_information_block.load_failed.subtitle": "Please refresh or contact support.",
|
|
86
81
|
"customer_overview.billing_information_block.load_failed.title": "We can’t load your billing information",
|
|
87
82
|
"customer_overview.billing_information_block.title": "Billing information",
|
|
88
83
|
"customer_overview.billing_information_block.view_all_payment_methods_link_label": "Edit",
|
|
89
|
-
"customer_overview.payment_methods.title": "{count,plural,one{Payment method} other{Payment methods}}",
|
|
90
84
|
"customer_overview.payment_methods_block.add_payment_method_button_label": "Add payment method",
|
|
91
85
|
"customer_overview.payment_methods_block.add_payment_method_helper_text": "Add a payment method for recurring invoice payments.",
|
|
92
86
|
"customer_overview.payment_methods_block.view_all_payment_methods_link_label": "View all",
|
|
87
|
+
"customer_overview.payment_methods.title": "{count,plural,one{Payment method} other{Payment methods}}",
|
|
93
88
|
"customer_overview.subscriptions_block.fallback_subscription_name": "Subscription",
|
|
94
89
|
"customer_overview.subscriptions_block.no_active_subscription_content": "There’s no active subscription to display.",
|
|
95
90
|
"customer_overview.subscriptions_block.no_active_subscription_title": "No subscriptions",
|
|
96
91
|
"customer_overview.subscriptions_block.title": "{count,plural,one{My subscription} other{My subscriptions}}",
|
|
97
92
|
"customer_overview.subscriptions_block.view_all_button_label": "View all",
|
|
98
93
|
"customer_overview.wallet_balances_block.title": "{count,plural,one{Wallet} other{Wallets}}",
|
|
94
|
+
"customer.invoice_table.pay_invoice_button.label": "Pay",
|
|
95
|
+
"customer.subscriptions_block.cancel_button_label": "Cancel subscription",
|
|
96
|
+
"customer.subscriptions_block.next_billing_date": "Next billing date",
|
|
97
|
+
"customer.subscriptions_block.renew_button_label": "Renew subscription",
|
|
98
|
+
"customer.subscriptions_block.show_details_button_label": "Subscription details",
|
|
99
|
+
"customer.subscriptions_block.upgrade_button_label": "Upgrade subscription",
|
|
99
100
|
"empty_state.retry.button": "Refresh",
|
|
100
101
|
empty_value_placeholder,
|
|
101
102
|
"invoice_credits.balance.table_header": "Balance",
|
|
@@ -110,6 +111,7 @@ const enUS = {
|
|
|
110
111
|
"invoice_table.header.invoice_number": "Invoice",
|
|
111
112
|
"invoice_table.header.status": "Status",
|
|
112
113
|
"invoices_list.title": "Schedules",
|
|
114
|
+
"on_demand_pricing_list.category_fallback_title": "Items",
|
|
113
115
|
"on_demand_pricing_row.add_to_cart_button_label": "Add to cart",
|
|
114
116
|
"on_demand_pricing_row.one_off_label": "one-off",
|
|
115
117
|
"on_demand_pricing_row.remove_button_label": "Remove",
|
|
@@ -124,16 +126,24 @@ const enUS = {
|
|
|
124
126
|
"payment_completed_card.title.authorize": "Payment successful",
|
|
125
127
|
"payment_completed_card.title.tokenize": "Your payment method is added",
|
|
126
128
|
"payment_integration_form.select_payment_method_error": "Select a payment method",
|
|
129
|
+
"payment_method.context_menu.delete.label": "Delete",
|
|
130
|
+
"payment_method.context_menu.set_as_default.label": "Set as default",
|
|
131
|
+
"payment_methods_list.delete_modal.body": "Are you sure you want to delete this payment method?",
|
|
132
|
+
"payment_methods_list.delete_modal.cancel": "Cancel",
|
|
133
|
+
"payment_methods_list.delete_modal.confirm": "Delete",
|
|
134
|
+
"payment_methods_list.delete_modal.title": "Delete payment method",
|
|
127
135
|
"payments.retry_button.label": "Try again",
|
|
128
136
|
"pricing_group_multiple_editor.at_least_one_description": "Select at least one product",
|
|
129
137
|
pricing_item_pricing,
|
|
130
138
|
"pricing_item_pricing.unsupported_pricing_error": "Unsupported pricing",
|
|
139
|
+
"screens.payment_method_management.description": "Add a new payment method or set a default payment method for your payments.",
|
|
140
|
+
"screens.payment_method_management.title": "Payment methods",
|
|
131
141
|
"sdk.invoice_details.customer_billing_information.title": "Your billing information",
|
|
132
|
-
"sdk.invoice_details.invoice.download_pdf": "Download the PDF for a full breakdown",
|
|
133
|
-
"sdk.invoice_details.invoice.title": "Invoice",
|
|
134
142
|
"sdk.invoice_details.invoice_details_block.due_date": "Due date",
|
|
135
143
|
"sdk.invoice_details.invoice_details_block.invoice_date": "Invoice date",
|
|
136
144
|
"sdk.invoice_details.invoice_details_block.title": "Invoice details",
|
|
145
|
+
"sdk.invoice_details.invoice.download_pdf": "Download the PDF for a full breakdown",
|
|
146
|
+
"sdk.invoice_details.invoice.title": "Invoice",
|
|
137
147
|
"sdk.invoice_details.payment_history.payment_attempt": "Payment attempt",
|
|
138
148
|
"sdk.invoice_details.payment_history.title": "Payment history",
|
|
139
149
|
"seats.label": "Seats",
|
|
@@ -144,28 +154,33 @@ const enUS = {
|
|
|
144
154
|
"seats.tiered_unbounded_range_label": "> {lower_bound} seats",
|
|
145
155
|
"secure_payments_kpi.generic": "Secure and encrypted payments",
|
|
146
156
|
"secure_payments_kpi.specific_vendor": "Secure and encrypted payments by",
|
|
147
|
-
"subscription_payment_completed_card.continue": "Continue to merchant",
|
|
148
157
|
"subscription_payment_completed_card.thank_you_for_subscribing": "Thank you for subscribing.",
|
|
149
158
|
"subscription_payment_completed_card.title": "Payment successful",
|
|
150
159
|
"tax_check.invalid_vat_number": "VAT number is invalid.",
|
|
151
160
|
"tax_check.valid_vat_number": "VAT number is valid.",
|
|
152
|
-
"upgrade_subscription.empty_state": "No
|
|
153
|
-
"upgrade_subscription.
|
|
154
|
-
"upgrade_subscription.order_summary.empty_state": "Select
|
|
161
|
+
"upgrade_subscription.empty_state": "No one-off items are available for this subscription.",
|
|
162
|
+
"upgrade_subscription.load_error": "Unable to load items. Please try again later.",
|
|
163
|
+
"upgrade_subscription.order_summary.empty_state": "Select your items",
|
|
164
|
+
"upgrade_subscription.order_summary.item_count": "{count} items",
|
|
155
165
|
"upgrade_subscription.order_summary.one_off_label": "one-off",
|
|
156
|
-
"upgrade_subscription.order_summary.
|
|
157
|
-
"upgrade_subscription.order_summary.
|
|
166
|
+
"upgrade_subscription.order_summary.selected_item_count": "{count} items",
|
|
167
|
+
"upgrade_subscription.order_summary.selected_items_title": "Selected items",
|
|
158
168
|
"upgrade_subscription.order_summary.title": "Order summary",
|
|
159
|
-
"upgrade_subscription.
|
|
169
|
+
"upgrade_subscription.payment_method_block.no_payment_methods_available_message": "There are no available payment methods. Please contact support for more information.",
|
|
170
|
+
"upgrade_subscription.payment_method_block.no_payment_methods_available_title": "No payment methods available",
|
|
171
|
+
"upgrade_subscription.payment_method_block.title": "Payment method",
|
|
160
172
|
"upgrade_subscription.payment_picker.all_title": "All payment methods",
|
|
161
173
|
"upgrade_subscription.payment_picker.saved_title": "Saved payment methods",
|
|
174
|
+
"upgrade_subscription.preview_error": "Unable to calculate the total. Please try again.",
|
|
162
175
|
"upgrade_subscription.pricing_row.add_button_label": "Add to cart",
|
|
163
176
|
"upgrade_subscription.pricing_row.one_off_label": "one-off",
|
|
164
177
|
"upgrade_subscription.pricing_row.remove_button_label": "Remove",
|
|
165
178
|
"upgrade_subscription.purchase_button.label": "Purchase",
|
|
166
179
|
"upgrade_subscription.purchase_error": "Something went wrong. Please try again.",
|
|
167
|
-
"upgrade_subscription.success.
|
|
180
|
+
"upgrade_subscription.success.redirect": "You will be redirected shortly…",
|
|
181
|
+
"upgrade_subscription.success.subtitle": "Your purchase has been completed.",
|
|
168
182
|
"upgrade_subscription.success.title": "Payment successful",
|
|
183
|
+
"upgrade_subscription.title": "Upgrade subscription",
|
|
169
184
|
"wallet_balance.credit_type_fallback_label": "Credits",
|
|
170
185
|
"wallet_balance.details.header": "Wallet balance",
|
|
171
186
|
"wallet_balance.load_failed": "Could not load wallet balances",
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./registry-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./registry-Cx7p19-6.js"),e=require("./screens/Checkout/Checkout.cjs.js"),i=require("./screens/CustomerOverview/CustomerOverview.cjs.js"),n=require("./screens/UpgradeSubscription/UpgradeSubscription.cjs.js"),s=require("./screens/PayInvoice/PayInvoice.cjs.js"),t=require("./components/BillingInformation/BillingInformation.cjs.js"),r=require("./components/BillingInformationForm/BillingInformationForm.cjs.js"),m=require("./components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js"),l=require("./components/WalletBalances/WalletBalances.cjs.js"),v=require("./components/InvoiceDetails/InvoiceDetails.cjs.js"),c=require("./components/InvoicesList/InvoicesList.cjs.js"),S=require("./components/PaymentHistory/PaymentHistory.cjs.js"),a=require("./components/SubscriptionSchedules/SubscriptionSchedules.cjs.js"),p=require("./components/SubscriptionsList/SubscriptionsList.cjs.js"),d=require("./components/PaymentMethodForm/PaymentMethodForm.cjs.js");exports.createSolvimonCore=o.createSolvimonCore,exports.getRegisteredComponentIds=o.getRegisteredComponentIds,exports.getRegisteredScreenIds=o.getRegisteredScreenIds,exports.SolvimonCheckout=e.SolvimonCheckout,exports.defineSolvimonCheckout=e.defineSolvimonCheckout,exports.SolvimonCustomerOverview=i.SolvimonCustomerOverview,exports.defineSolvimonCustomerOverview=i.defineSolvimonCustomerOverview,exports.SolvimonUpgradeSubscription=n.SolvimonUpgradeSubscription,exports.defineSolvimonUpgradeSubscription=n.defineSolvimonUpgradeSubscription,exports.SolvimonPayInvoice=s.SolvimonPayInvoice,exports.defineSolvimonPayInvoice=s.defineSolvimonPayInvoice,exports.SolvimonBillingInformation=t.SolvimonBillingInformation,exports.defineSolvimonBillingInformation=t.defineSolvimonBillingInformation,exports.SolvimonBillingInformationForm=r.SolvimonBillingInformationForm,exports.defineSolvimonBillingInformationForm=r.defineSolvimonBillingInformationForm,exports.SolvimonCustomerPaymentMethods=m.SolvimonCustomerPaymentMethods,exports.defineSolvimonCustomerPaymentMethods=m.defineSolvimonCustomerPaymentMethods,exports.SolvimonWalletBalances=l.SolvimonWalletBalances,exports.defineSolvimonWalletBalances=l.defineSolvimonWalletBalances,exports.SolvimonInvoiceDetails=v.SolvimonInvoiceDetails,exports.defineSolvimonInvoiceDetails=v.defineSolvimonInvoiceDetails,exports.SolvimonInvoicesList=c.SolvimonInvoicesList,exports.defineSolvimonInvoicesList=c.defineSolvimonInvoicesList,exports.SolvimonPaymentHistory=S.SolvimonPaymentHistory,exports.defineSolvimonPaymentHistory=S.defineSolvimonPaymentHistory,exports.SolvimonSubscriptionSchedules=a.SolvimonSubscriptionSchedules,exports.defineSolvimonSubscriptionSchedules=a.defineSolvimonSubscriptionSchedules,exports.SolvimonSubscriptionsList=p.SolvimonSubscriptionsList,exports.defineSolvimonSubscriptionsList=p.defineSolvimonSubscriptionsList,exports.SolvimonPaymentMethodForm=d.SolvimonPaymentMethodForm,exports.defineSolvimonPaymentMethodForm=d.defineSolvimonPaymentMethodForm;
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c, g, a } from "./registry-
|
|
1
|
+
import { c, g, a } from "./registry-CMo7X2FD.mjs";
|
|
2
2
|
import { SolvimonCheckout, defineSolvimonCheckout } from "./screens/Checkout/Checkout.es.js";
|
|
3
3
|
import { SolvimonCustomerOverview, defineSolvimonCustomerOverview } from "./screens/CustomerOverview/CustomerOverview.es.js";
|
|
4
4
|
import { SolvimonUpgradeSubscription, defineSolvimonUpgradeSubscription } from "./screens/UpgradeSubscription/UpgradeSubscription.es.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=require("./vendor-ui-C3Tq-qY_.js"),e=require("./component-B53Df2Rt.js");exports.createInvoicesService=function(){const n=e.createRequestService(),t=e.useConfig();return{getInvoice:function(i){return n({url:`${t.apiUrls.transaction}/portal/invoices/${i}`})},getInvoices:function({customerId:e,pagination:r,query:a}){const o=i.withPagination({customer_id:e,...a??{}},r),c=new URL(`${t.apiUrls.transaction}/portal/invoices`);return Object.entries(o).forEach(([i,e])=>{null!=e&&(Array.isArray(e)?e.forEach(e=>{c.searchParams.append(`${i}[]`,`${e}`)}):c.searchParams.append(i,`${e}`))}),n({url:c.toString(),isCollection:!0})},getInvoicePdf:async function(e){return n({url:`${t.apiUrls.transaction}/portal/invoices/${e}/pdf`,options:{headers:{"Content-Type":"application/pdf"}}}).then(n=>{const t=new Blob([n],{type:"application/pdf"});i.downloadFile(t,`invoice-${e}.pdf`)})},getInvoicePreview:function({customer:i,pricingPlanSubscriptionId:e,startAt:r,customizations:a,pricing_plan_schedule_customizations:o}){return n({url:`${t.apiUrls.transaction}/portal/invoices/preview`,options:{method:"POST"},data:{template_pricing_plan_subscription_id:e,...r&&{start_at:r},...a&&{pricing_plan_schedule_customizations:a},...o&&{pricing_plan_schedule_customizations:o},customer_details:{...i,reference:"preview"}}})},previewChargeOnDemandPricingItems:function({pricingPlanScheduleId:i,pricingItemIds:e,startAt:r}){return n({url:`${t.apiUrls.transaction}/portal/invoices/charge-on-demand-pricing-items`,options:{method:"POST"},data:{pricing_plan_schedule_id:i,pricing_items:e.map(i=>({pricing_item_id:i})),...r?{start_at:r}:{},preview:!0}})}}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as createRequestService, u as useConfig } from "./component-
|
|
1
|
+
import { f as downloadFile, a as withPagination } from "./vendor-ui-B8IlviSs.mjs";
|
|
2
|
+
import { c as createRequestService, u as useConfig } from "./component-BSnccqm1.mjs";
|
|
3
3
|
function createInvoicesService() {
|
|
4
4
|
const request = createRequestService();
|
|
5
5
|
const config = useConfig();
|
|
@@ -73,11 +73,30 @@ function createInvoicesService() {
|
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
+
function previewChargeOnDemandPricingItems({
|
|
77
|
+
pricingPlanScheduleId,
|
|
78
|
+
pricingItemIds,
|
|
79
|
+
startAt
|
|
80
|
+
}) {
|
|
81
|
+
return request({
|
|
82
|
+
url: `${config.apiUrls.transaction}/portal/invoices/charge-on-demand-pricing-items`,
|
|
83
|
+
options: { method: "POST" },
|
|
84
|
+
data: {
|
|
85
|
+
pricing_plan_schedule_id: pricingPlanScheduleId,
|
|
86
|
+
pricing_items: pricingItemIds.map((pricingItemId) => ({
|
|
87
|
+
pricing_item_id: pricingItemId
|
|
88
|
+
})),
|
|
89
|
+
...startAt ? { start_at: startAt } : {},
|
|
90
|
+
preview: true
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
76
94
|
return {
|
|
77
95
|
getInvoice,
|
|
78
96
|
getInvoices,
|
|
79
97
|
getInvoicePdf,
|
|
80
|
-
getInvoicePreview
|
|
98
|
+
getInvoicePreview,
|
|
99
|
+
previewChargeOnDemandPricingItems
|
|
81
100
|
};
|
|
82
101
|
}
|
|
83
102
|
export {
|