@solvimon/solvimon-web 0.1.0-alpha.6 → 0.1.0-alpha.8
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/ApiStatus-CyNDp_op.mjs +9 -0
- package/dist/ApiStatus-oqvUEWJx.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C-C0i6i6.js +1 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DZ1XkSJ3.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CT0Tjsnw.mjs} +4 -4
- package/dist/{ContentWithAsideLayout-D_T137tN.mjs → ContentWithAsideLayout-BTdixy3L.mjs} +2 -11
- package/dist/ContentWithAsideLayout-oAYVrLvL.js +1 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DK6tiecN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CK73bYUe.mjs} +11 -11
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CLU7Yiyx.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B_WLgBur.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BWXmZmGZ.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs} +2 -2
- package/dist/PaymentHistoryBlock-DHM-3fh-.js +1 -0
- package/dist/PaymentHistoryBlock-YzJ6bxKr.mjs +4 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BSn_Zy0Y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs} +5 -5
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DFw8lrDv.js +1 -0
- package/dist/PaymentIntegrationForm-Cl5ua8v8.js +1 -0
- package/dist/PaymentIntegrationForm-ID4QnvA3.mjs +4 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CVWPT3Ni.mjs +910 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DifRn1ok.js +1 -0
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CKNMt-JH.js +1 -0
- package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-X7-dfeZP.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs} +5 -30
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-AxYjVFUM.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs} +20 -20
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CpEqDnO3.js +1 -0
- package/dist/adyen-51SvcyqV.mjs +4 -0
- package/dist/adyen-DZsyEXkw.js +1 -0
- package/dist/adyenLoader-CEH4A2b2.js +1 -0
- package/dist/adyenLoader-gsbzSjYV.mjs +177 -0
- package/dist/component-C2Gc-wsE.js +1 -0
- package/dist/component-CM9g6tbD.mjs +804 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +14 -14
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +28 -32
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +3 -7
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -1
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +42 -75
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -7
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -1
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +2 -6
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -7
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +10 -34
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +7 -10
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -8
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -1
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +3 -7
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +2 -0
- package/dist/customer-C_Hz_npf.js +1 -0
- package/dist/customer-TIi7iZFw.mjs +32 -0
- package/dist/en-US-CBoPxQwX.mjs +199 -0
- package/dist/en-US-DJq-9dD8.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4 -1
- package/dist/{invoices-C7BHqB0g.mjs → invoices-BuVOuTOm.mjs} +2 -1
- package/dist/invoices-DbvwXAsm.js +1 -0
- package/dist/nl-NL-BB7KbK-h.mjs +181 -0
- package/dist/nl-NL-CtU1Lg2F.js +1 -0
- package/dist/paymentMethods-B4AYGf0K.js +1 -0
- package/dist/{paymentMethods-BA7Kt8ti.mjs → paymentMethods-Di32oJ39.mjs} +2 -1
- package/dist/{payments-NTHUh5je.mjs → payments-C5fD1PXB.mjs} +1 -1
- package/dist/{payments-B8W0W6wZ.js → payments-DeutKq9x.js} +1 -1
- package/dist/{registry-DgRnFEVF.mjs → registry-BLwMl1bK.mjs} +6 -5
- package/dist/registry-CMSmkLcy.js +1 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -1
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +589 -857
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +13 -14
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +3 -0
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -0
- package/dist/screens/PayInvoice/PayInvoice.es.js +456 -0
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +81 -57
- package/dist/solvimon-web.css +1 -1
- package/dist/source-DKDKBlUm.mjs +179 -0
- package/dist/source-dkMNFWDc.js +1 -0
- package/dist/{subscriptions-BEoXaAHw.mjs → subscriptions-mOgjjzUi.mjs} +2 -1
- package/dist/subscriptions-wdMADcQZ.js +1 -0
- package/dist/{useActionDispatchProvider-zSXRlc2S.mjs → useActionDispatchProvider-B4gszz0Q.mjs} +1 -1
- package/dist/{useActionDispatchProvider-DmTJ_bqE.js → useActionDispatchProvider-DfS2P0bd.js} +1 -1
- package/dist/useCustomer-DanZzn-l.js +1 -0
- package/dist/useCustomer-cbhDyWJL.mjs +25 -0
- package/dist/useIncrementalLoading-DFe5Yh8M.js +1 -0
- package/dist/{useIncrementalLoading-Bgs0mqyb.mjs → useIncrementalLoading-RRicokf1.mjs} +3 -4
- package/dist/useInvoiceData-CxxHa5R2.js +1 -0
- package/dist/{useInvoiceData-B6P2VShe.mjs → useInvoiceData-fS6G_244.mjs} +6 -12
- package/dist/{useInvoicesList-23Ra-23Z.mjs → useInvoicesList-BQQxcPdz.mjs} +22 -22
- package/dist/useInvoicesList-CtJqmblZ.js +1 -0
- package/dist/usePaymentMethodOptions-2MloZ9bY.mjs +26 -0
- package/dist/usePaymentMethodOptions-D01YWW3G.js +1 -0
- package/dist/{usePaymentMethods-BK4unvj2.js → usePaymentMethods-Cm9WdSW0.js} +1 -1
- package/dist/{usePaymentMethods-B8Nft16c.mjs → usePaymentMethods-DZvfWSlx.mjs} +2 -2
- package/dist/usePayments-B13S_yai.js +1 -0
- package/dist/usePayments-D4uGKBsV.mjs +36 -0
- package/dist/usePortal-DJDJNLbo.mjs +12 -0
- package/dist/usePortal-DWJEVkTj.js +1 -0
- package/dist/useService-9fCKPTmu.js +1 -0
- package/dist/useService-BuWWE5ND.mjs +68 -0
- package/dist/useViewport-Bu0cyeSi.mjs +38 -0
- package/dist/useViewport-CKRY1CKR.js +1 -0
- package/dist/{useWalletBalanceItems-DreHuOra.mjs → useWalletBalanceItems-B53Gkjro.mjs} +8 -7
- package/dist/useWalletBalanceItems-BMaVT4TW.js +1 -0
- package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
- package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
- package/dist/vendor-ui-BwxuPDg8.mjs +28598 -0
- package/dist/vendor-ui-Ce_Yp7xA.js +1 -0
- package/package.json +30 -17
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-eRGZRjmq.js +0 -1
- package/dist/ContentWithAsideLayout-BZJPhvLh.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BvmKLc2H.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DNWspHtC.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Cx4c8E4i.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Ct26TY0a.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-WRXecMCj.mjs +0 -6568
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-KnhKv07X.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D9_G7CyE.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/cloneDeep-DranHQkY.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/component-DI3AxwdD.mjs +0 -58733
- package/dist/component-yWF07boR.js +0 -1
- package/dist/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/invoices-CjBHfDXp.js +0 -1
- package/dist/paymentMethods-A-5SBmy1.js +0 -1
- package/dist/registry-SwmYGFn7.js +0 -1
- package/dist/sprite-DZD704h3-CCc3Mz1x.js +0 -1
- package/dist/sprite-DZD704h3-DZD704h3.mjs +0 -4
- package/dist/subscriptions-DSi93KpN.js +0 -1
- package/dist/useCustomer-DkrBNt5f.mjs +0 -45
- package/dist/useCustomer-fK-w7ifj.js +0 -1
- package/dist/useIncrementalLoading-BK6N8sYW.js +0 -1
- package/dist/useInvoiceData-CS7hLTea.js +0 -1
- package/dist/useInvoicesList-CIFGVsDj.js +0 -1
- package/dist/useService-B4qv5N2D.mjs +0 -281
- package/dist/useService-D-CUtlp3.js +0 -1
- package/dist/useWalletBalanceItems-NlFk6jPD.js +0 -1
|
@@ -1,32 +1,11 @@
|
|
|
1
1
|
import { defineComponent, renderSlot, unref, computed, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as _sfc_main$6, d as defineCustomElement, g as getComponentName } from "../../component-CM9g6tbD.mjs";
|
|
3
|
+
import { r as getCustomerCountry, u as useIntl, b as _sfc_main$4 } from "../../vendor-ui-BwxuPDg8.mjs";
|
|
3
4
|
import { u as useLoadInitialData } from "../../useLoadInitialData-Dm48tlSO.mjs";
|
|
4
|
-
import { u as useCustomer } from "../../useCustomer-
|
|
5
|
-
import { u as
|
|
6
|
-
import { c as createPaymentMethodsService } from "../../paymentMethods-BA7Kt8ti.mjs";
|
|
5
|
+
import { u as useCustomer } from "../../useCustomer-cbhDyWJL.mjs";
|
|
6
|
+
import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-2MloZ9bY.mjs";
|
|
7
7
|
import { _ as _sfc_main$3 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
|
|
8
|
-
import { _ as _sfc_main$
|
|
9
|
-
function hasCustomerId(payload) {
|
|
10
|
-
return payload.customerId !== void 0;
|
|
11
|
-
}
|
|
12
|
-
function usePaymentMethodOptions() {
|
|
13
|
-
const { getPaymentMethodOptions } = createPaymentMethodsService();
|
|
14
|
-
const service = (payload) => hasCustomerId(payload) ? getPaymentMethodOptions({
|
|
15
|
-
customerId: payload.customerId,
|
|
16
|
-
amount: payload.amount,
|
|
17
|
-
country: payload.country
|
|
18
|
-
}) : getPaymentMethodOptions({
|
|
19
|
-
subscriptionId: payload.subscriptionId,
|
|
20
|
-
amount: payload.amount,
|
|
21
|
-
country: payload.country
|
|
22
|
-
});
|
|
23
|
-
const initialValue = [];
|
|
24
|
-
const { data, execute: get, apiStatus, error, isPending } = useService({
|
|
25
|
-
initialValue,
|
|
26
|
-
service
|
|
27
|
-
});
|
|
28
|
-
return { paymentMethodOptions: data, get, apiStatus, error, isPending };
|
|
29
|
-
}
|
|
8
|
+
import { _ as _sfc_main$5 } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CVWPT3Ni.mjs";
|
|
30
9
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
31
10
|
__name: "PaymentMethodForm.entry.view",
|
|
32
11
|
props: {
|
|
@@ -34,7 +13,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
34
13
|
locale: { type: String },
|
|
35
14
|
dateLocale: { type: String },
|
|
36
15
|
messages: { type: Object },
|
|
37
|
-
showTimezones: { type: Boolean },
|
|
38
16
|
primaryColor: { type: String },
|
|
39
17
|
secondaryColor: { type: String },
|
|
40
18
|
isShadowRoot: { type: Boolean },
|
|
@@ -43,7 +21,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
43
21
|
onLog: { type: Function },
|
|
44
22
|
allowedPortalTypes: { type: Array },
|
|
45
23
|
portalObject: { type: Object },
|
|
46
|
-
customElementName: { type: String },
|
|
47
24
|
branding: { type: Object },
|
|
48
25
|
configuration: { type: Object },
|
|
49
26
|
countryCode: { type: String }
|
|
@@ -148,8 +125,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
148
125
|
return __props.isLoading ? (openBlock(), createBlock(_sfc_main$3, {
|
|
149
126
|
key: 0,
|
|
150
127
|
variant: "section",
|
|
151
|
-
class: "min-h-[180px]"
|
|
152
|
-
|
|
128
|
+
class: "min-h-[180px]",
|
|
129
|
+
"data-testid": "payment-method-form-skeleton"
|
|
130
|
+
})) : (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
153
131
|
key: 1,
|
|
154
132
|
"no-border": "",
|
|
155
133
|
"no-spacing": "",
|
|
@@ -161,7 +139,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
161
139
|
})
|
|
162
140
|
}, {
|
|
163
141
|
default: withCtx(() => [
|
|
164
|
-
createVNode(_sfc_main$
|
|
142
|
+
createVNode(_sfc_main$5, normalizeProps(guardReactiveProps(paymentIntegrationProps.value)), null, 16)
|
|
165
143
|
]),
|
|
166
144
|
_: 1
|
|
167
145
|
}, 8, ["title"]));
|
|
@@ -175,7 +153,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
175
153
|
locale: { type: String },
|
|
176
154
|
dateLocale: { type: String },
|
|
177
155
|
messages: { type: Object },
|
|
178
|
-
showTimezones: { type: Boolean },
|
|
179
156
|
primaryColor: { type: String },
|
|
180
157
|
secondaryColor: { type: String },
|
|
181
158
|
isShadowRoot: { type: Boolean },
|
|
@@ -184,7 +161,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
184
161
|
onLog: { type: Function },
|
|
185
162
|
allowedPortalTypes: { type: Array },
|
|
186
163
|
portalObject: { type: Object },
|
|
187
|
-
customElementName: { type: String },
|
|
188
164
|
branding: { type: Object },
|
|
189
165
|
configuration: { type: Object },
|
|
190
166
|
countryCode: { type: String }
|
|
@@ -193,7 +169,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
193
169
|
const props = __props;
|
|
194
170
|
return (_ctx, _cache) => {
|
|
195
171
|
var _a, _b, _c, _d;
|
|
196
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
172
|
+
return openBlock(), createBlock(unref(_sfc_main$6), {
|
|
197
173
|
"custom-element-name": unref(COMPONENT_NAME),
|
|
198
174
|
environment: __props.environment,
|
|
199
175
|
locale: __props.locale,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SolvimonSubscriptionSchedules: import('
|
|
1
|
+
export declare const SolvimonSubscriptionSchedules: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
|
|
2
2
|
export declare const COMPONENT_NAME: string;
|
|
3
3
|
export declare const defineSolvimonSubscriptionSchedules: () => void;
|
|
@@ -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-C2Gc-wsE.js"),n=require("../../vendor-ui-Ce_Yp7xA.js"),o=require("../../useService-9fCKPTmu.js"),r=require("../../subscriptions-wdMADcQZ.js"),i=require("../../useLoadInitialData-BRg7IWqW.js"),a=e.defineComponent({__name:"SubscriptionSchedules",props:{schedulesData:{type:Array},configuration:{type:Object},isLoading:{type:Boolean}},setup(t){const{$t:o}=n.useIntl();return(r,i)=>(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{"no-border":"","no-spacing":"","content-background":"none",title:e.unref(o)({defaultMessage:"Schedules",description:"Invoices list title",id:"invoices_list.title"})},{default:e.withCtx(()=>[e.createVNode(e.unref(n._sfc_main$16),{schedules:t.schedulesData},null,8,["schedules"])]),_:1},8,["title"]))}});const s=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},branding:{type:Object},configuration:{type:Object}},setup(t){const n=t,{subscription:a,withPlanData:s,get:l}=function({subscriptionId:e}){const{getSubscription:t}=r.createSubscriptionsService(),{data:n,execute:i,apiStatus:a,error:s,isPending:l}=o.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:a,error:s,get:i,isPending:l}}({subscriptionId:n.configuration.subscriptionId}),{isLoading:c}=i.useLoadInitialData(l());return(t,n)=>e.renderSlot(t.$slots,"default",{schedulesData:e.unref(a)?e.unref(s)(e.unref(a)):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},branding:{type:Object},configuration:{type:Object}},setup(n){const o=n;return(r,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,onError:i[0]||(i[0]=e=>r.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(s,e.normalizeProps(e.guardReactiveProps(o)),{default:e.withCtx(({schedulesData:t,isLoading:o})=>[t?(e.openBlock(),e.createBlock(a,{key:0,"schedules-data":t,"is-loading":o,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"])}}}),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,7 +1,8 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import {
|
|
2
|
+
import { _ as _sfc_main$5, d as defineCustomElement, g as getComponentName } from "../../component-CM9g6tbD.mjs";
|
|
3
|
+
import { u as useIntl, b as _sfc_main$3, B as _sfc_main$4 } from "../../vendor-ui-BwxuPDg8.mjs";
|
|
4
|
+
import { u as useService } from "../../useService-BuWWE5ND.mjs";
|
|
5
|
+
import { c as createSubscriptionsService } from "../../subscriptions-mOgjjzUi.mjs";
|
|
5
6
|
import { u as useLoadInitialData } from "../../useLoadInitialData-Dm48tlSO.mjs";
|
|
6
7
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7
8
|
__name: "SubscriptionSchedules",
|
|
@@ -13,7 +14,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
13
14
|
setup(__props) {
|
|
14
15
|
const { $t } = useIntl();
|
|
15
16
|
return (_ctx, _cache) => {
|
|
16
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
17
|
+
return openBlock(), createBlock(unref(_sfc_main$3), {
|
|
17
18
|
"no-border": "",
|
|
18
19
|
"no-spacing": "",
|
|
19
20
|
"content-background": "none",
|
|
@@ -24,7 +25,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
24
25
|
})
|
|
25
26
|
}, {
|
|
26
27
|
default: withCtx(() => [
|
|
27
|
-
createVNode(unref(_sfc_main$
|
|
28
|
+
createVNode(unref(_sfc_main$4), { schedules: __props.schedulesData }, null, 8, ["schedules"])
|
|
28
29
|
]),
|
|
29
30
|
_: 1
|
|
30
31
|
}, 8, ["title"]);
|
|
@@ -56,7 +57,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
56
57
|
locale: { type: String },
|
|
57
58
|
dateLocale: { type: String },
|
|
58
59
|
messages: { type: Object },
|
|
59
|
-
showTimezones: { type: Boolean },
|
|
60
60
|
primaryColor: { type: String },
|
|
61
61
|
secondaryColor: { type: String },
|
|
62
62
|
isShadowRoot: { type: Boolean },
|
|
@@ -65,7 +65,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
onLog: { type: Function },
|
|
66
66
|
allowedPortalTypes: { type: Array },
|
|
67
67
|
portalObject: { type: Object },
|
|
68
|
-
customElementName: { type: String },
|
|
69
68
|
branding: { type: Object },
|
|
70
69
|
configuration: { type: Object }
|
|
71
70
|
},
|
|
@@ -90,7 +89,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
89
|
locale: { type: String },
|
|
91
90
|
dateLocale: { type: String },
|
|
92
91
|
messages: { type: Object },
|
|
93
|
-
showTimezones: { type: Boolean },
|
|
94
92
|
primaryColor: { type: String },
|
|
95
93
|
secondaryColor: { type: String },
|
|
96
94
|
isShadowRoot: { type: Boolean },
|
|
@@ -99,7 +97,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
97
|
onLog: { type: Function },
|
|
100
98
|
allowedPortalTypes: { type: Array },
|
|
101
99
|
portalObject: { type: Object },
|
|
102
|
-
customElementName: { type: String },
|
|
103
100
|
branding: { type: Object },
|
|
104
101
|
configuration: { type: Object }
|
|
105
102
|
},
|
|
@@ -107,7 +104,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
107
104
|
const props = __props;
|
|
108
105
|
return (_ctx, _cache) => {
|
|
109
106
|
var _a, _b, _c, _d;
|
|
110
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
107
|
+
return openBlock(), createBlock(unref(_sfc_main$5), {
|
|
111
108
|
"custom-element-name": unref(COMPONENT_NAME),
|
|
112
109
|
environment: __props.environment,
|
|
113
110
|
locale: __props.locale,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SolvimonSubscriptionsList: import('
|
|
1
|
+
export declare const SolvimonSubscriptionsList: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
|
|
2
2
|
export declare const COMPONENT_NAME: string;
|
|
3
3
|
export declare const defineSolvimonSubscriptionsList: () => void;
|
|
@@ -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-CpEqDnO3.js"),t=require("../../component-C2Gc-wsE.js"),r=require("../../useCustomer-DanZzn-l.js"),n=require("../../useLoadInitialData-BRg7IWqW.js"),l=require("../../usePaymentMethods-Cm9WdSW0.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},branding:{type:Object},configuration:{type:Object}},setup(i){const a=i.portalObject.customer_id,s=r.useCustomer({customerId:a}),p=o.useSubscriptionsList({customerId:a}),u=l.usePaymentMethods({customerId:a}),{isLoading:m}=n.useLoadInitialData(s.get.execute(),p.fetchInitial(),u.fetchAll());return(o,r)=>{var n,l,a,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==(l=null==(n=i.branding)?void 0:n.colors)?void 0:l.primary,"secondary-color":null==(d=null==(a=i.branding)?void 0:a.colors)?void 0:d.secondary,"experimental-features":i.experimentalFeatures,"log-level":i.logLevel,"on-log":i.onLog,onError:r[0]||(r[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{customer:e.unref(s),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"])}}}),a=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},branding:{type:Object},configuration:{type:Object}},setup:r=>(n,l)=>{var a,s,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==(s=null==(a=r.branding)?void 0:a.colors)?void 0:s.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,onError:l[0]||(l[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:l,isLoading:i,loadMore:a})=>[e.createVNode(o._sfc_main,{configuration:r.configuration,customer:t.customer.value,subscriptions:n.value,"payment-methods":l.value,"is-loading":i,onLoadMore:a},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"])}}),s=t.defineCustomElement(a),c=t.getComponentName("subscriptions-list");exports.COMPONENT_NAME=c,exports.SolvimonSubscriptionsList=s,exports.defineSolvimonSubscriptionsList=()=>{customElements.get(c)||customElements.define(c,s)};
|
|
@@ -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 {
|
|
4
|
-
import { u as useCustomer } from "../../useCustomer-
|
|
2
|
+
import { u as useSubscriptionsList, _ as _sfc_main$3 } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs";
|
|
3
|
+
import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-CM9g6tbD.mjs";
|
|
4
|
+
import { u as useCustomer } from "../../useCustomer-cbhDyWJL.mjs";
|
|
5
5
|
import { u as useLoadInitialData } from "../../useLoadInitialData-Dm48tlSO.mjs";
|
|
6
|
-
import { u as usePaymentMethods } from "../../usePaymentMethods-
|
|
6
|
+
import { u as usePaymentMethods } from "../../usePaymentMethods-DZvfWSlx.mjs";
|
|
7
7
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "SubscriptionsList.entry.view",
|
|
9
9
|
props: {
|
|
@@ -11,7 +11,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
locale: { type: String },
|
|
12
12
|
dateLocale: { type: String },
|
|
13
13
|
messages: { type: Object },
|
|
14
|
-
showTimezones: { type: Boolean },
|
|
15
14
|
primaryColor: { type: String },
|
|
16
15
|
secondaryColor: { type: String },
|
|
17
16
|
isShadowRoot: { type: Boolean },
|
|
@@ -20,7 +19,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
20
19
|
onLog: { type: Function },
|
|
21
20
|
allowedPortalTypes: { type: Array },
|
|
22
21
|
portalObject: { type: Object },
|
|
23
|
-
customElementName: { type: String },
|
|
24
22
|
branding: { type: Object },
|
|
25
23
|
configuration: { type: Object }
|
|
26
24
|
},
|
|
@@ -71,7 +69,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
69
|
locale: { type: String },
|
|
72
70
|
dateLocale: { type: String },
|
|
73
71
|
messages: { type: Object },
|
|
74
|
-
showTimezones: { type: Boolean },
|
|
75
72
|
primaryColor: { type: String },
|
|
76
73
|
secondaryColor: { type: String },
|
|
77
74
|
isShadowRoot: { type: Boolean },
|
|
@@ -80,7 +77,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
77
|
onLog: { type: Function },
|
|
81
78
|
allowedPortalTypes: { type: Array },
|
|
82
79
|
portalObject: { type: Object },
|
|
83
|
-
customElementName: { type: String },
|
|
84
80
|
branding: { type: Object },
|
|
85
81
|
configuration: { type: Object }
|
|
86
82
|
},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SolvimonWalletBalances: import('
|
|
1
|
+
export declare const SolvimonWalletBalances: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
|
|
2
2
|
export declare const COMPONENT_NAME: string;
|
|
3
3
|
export declare const defineSolvimonWalletBalances: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../ApiStatus-oqvUEWJx.js"),a=require("../../useWalletBalanceItems-BMaVT4TW.js"),l=require("../../useLoadInitialData-BRg7IWqW.js"),o=require("../../component-C2Gc-wsE.js"),r=e.defineComponent({__name:"WalletBalances",props:{hasError:{type:Boolean},isLoading:{type:Boolean},walletBalances:{type:Array}},setup:t=>(l,o)=>(e.openBlock(),e.createBlock(a._sfc_main,{"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},branding:{type:Object}},setup(t){const o=t.portalObject.customer_id,r=a.useCustomerWalletBalances({customerId:o}),n=a.useWalletBalanceItems(r.walletBalances),{isLoading:s}=l.useLoadInitialData(r.fetch());return(t,a)=>e.renderSlot(t.$slots,"default",{customerWalletBalances:e.unref(r),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},branding:{type:Object}},setup:a=>(l,s)=>{var i,c,u,m;return e.openBlock(),e.createBlock(e.unref(o._sfc_main),{"custom-element-name":e.unref(p),environment:a.environment,locale:a.locale,"portal-object":a.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(i=a.branding)?void 0:i.colors)?void 0:c.primary,"secondary-color":null==(m=null==(u=a.branding)?void 0:u.colors)?void 0:m.secondary,"experimental-features":a.experimentalFeatures,"log-level":a.logLevel,"on-log":a.onLog,onError:s[0]||(s[0]=e=>l.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(n,e.normalizeProps(e.guardReactiveProps(l.$props)),{default:e.withCtx(({customerWalletBalances:a,walletBalanceItems:l,isLoading:o})=>[e.createVNode(r,{"has-error":a.apiStatus.value===e.unref(t.ApiStatus).Failed,"is-loading":o,"wallet-balances":l},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"])}}),i=o.defineCustomElement(s),p=o.getComponentName("wallet-balances");exports.COMPONENT_NAME=p,exports.SolvimonWalletBalances=i,exports.defineSolvimonWalletBalances=()=>{customElements.get(p)||customElements.define(p,i)};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, renderSlot, unref, withCtx, createVNode, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
-
import { A as ApiStatus } from "../../
|
|
3
|
-
import { _ as _sfc_main$3, u as useCustomerWalletBalances, a as useWalletBalanceItems } from "../../useWalletBalanceItems-
|
|
2
|
+
import { A as ApiStatus } from "../../ApiStatus-CyNDp_op.mjs";
|
|
3
|
+
import { _ as _sfc_main$3, u as useCustomerWalletBalances, a as useWalletBalanceItems } from "../../useWalletBalanceItems-B53Gkjro.mjs";
|
|
4
4
|
import { u as useLoadInitialData } from "../../useLoadInitialData-Dm48tlSO.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { _ as _sfc_main$4, d as defineCustomElement, g as getComponentName } from "../../component-CM9g6tbD.mjs";
|
|
6
6
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "WalletBalances",
|
|
8
8
|
props: {
|
|
@@ -28,7 +28,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
locale: { type: String },
|
|
29
29
|
dateLocale: { type: String },
|
|
30
30
|
messages: { type: Object },
|
|
31
|
-
showTimezones: { type: Boolean },
|
|
32
31
|
primaryColor: { type: String },
|
|
33
32
|
secondaryColor: { type: String },
|
|
34
33
|
isShadowRoot: { type: Boolean },
|
|
@@ -36,7 +35,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
36
35
|
logLevel: { type: String },
|
|
37
36
|
onLog: { type: Function },
|
|
38
37
|
allowedPortalTypes: { type: Array },
|
|
39
|
-
customElementName: { type: String },
|
|
40
38
|
branding: { type: Object }
|
|
41
39
|
},
|
|
42
40
|
setup(__props) {
|
|
@@ -62,7 +60,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
60
|
locale: { type: String },
|
|
63
61
|
dateLocale: { type: String },
|
|
64
62
|
messages: { type: Object },
|
|
65
|
-
showTimezones: { type: Boolean },
|
|
66
63
|
primaryColor: { type: String },
|
|
67
64
|
secondaryColor: { type: String },
|
|
68
65
|
isShadowRoot: { type: Boolean },
|
|
@@ -70,7 +67,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
67
|
logLevel: { type: String },
|
|
71
68
|
onLog: { type: Function },
|
|
72
69
|
allowedPortalTypes: { type: Array },
|
|
73
|
-
customElementName: { type: String },
|
|
74
70
|
branding: { type: Object }
|
|
75
71
|
},
|
|
76
72
|
setup(__props) {
|
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-CMSmkLcy.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
|
@@ -14,6 +14,7 @@ import { SolvimonWalletBalancesEntryProps } from '../components/WalletBalances/W
|
|
|
14
14
|
import { SolvimonCheckoutEntryProps } from '../screens/Checkout/Checkout.entry.types';
|
|
15
15
|
import { SolvimonCustomerOverviewEntryProps } from '../screens/CustomerOverview/CustomerOverview.entry.types';
|
|
16
16
|
import { SolvimonUpgradeSubscriptionEntryProps } from '../screens/UpgradeSubscription/UpgradeSubscription.entry.types';
|
|
17
|
+
import { SolvimonPayInvoiceEntryProps } from '../screens/PayInvoice/PayInvoice.entry.types';
|
|
17
18
|
/**
|
|
18
19
|
* Shared configuration passed to all mounted Solvimon components and screens.
|
|
19
20
|
* Extends the base entry props (environment, locale, branding, etc.).
|
|
@@ -53,6 +54,7 @@ interface RegisteredScreenEntryPropsById {
|
|
|
53
54
|
checkout: SolvimonCheckoutEntryProps;
|
|
54
55
|
'customer-overview': SolvimonCustomerOverviewEntryProps;
|
|
55
56
|
'upgrade-subscription': SolvimonUpgradeSubscriptionEntryProps;
|
|
57
|
+
'pay-invoice': SolvimonPayInvoiceEntryProps;
|
|
56
58
|
}
|
|
57
59
|
/**
|
|
58
60
|
* Registered screen ids that can be used with createScreen.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=require("./component-C2Gc-wsE.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})}}};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { c as createRequestService, u as useConfig } from "./component-CM9g6tbD.mjs";
|
|
2
|
+
function createCustomerService() {
|
|
3
|
+
const request = createRequestService();
|
|
4
|
+
const config = useConfig();
|
|
5
|
+
function getCustomer(customerId) {
|
|
6
|
+
return request({
|
|
7
|
+
url: `${config.apiUrls.config}/portal/customers/${customerId}`
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function updateCustomer(customerId, payload) {
|
|
11
|
+
return request({
|
|
12
|
+
url: `${config.apiUrls.config}/portal/customers/${customerId}`,
|
|
13
|
+
options: { method: "PATCH" },
|
|
14
|
+
data: payload
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function checkTaxID(payload) {
|
|
18
|
+
return request({
|
|
19
|
+
url: `${config.apiUrls.config}/portal/customers/validate-tax-id`,
|
|
20
|
+
options: { method: "POST" },
|
|
21
|
+
data: payload
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
getCustomer,
|
|
26
|
+
updateCustomer,
|
|
27
|
+
checkTaxID
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
createCustomerService as c
|
|
32
|
+
};
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
const empty_value_placeholder = "-";
|
|
2
|
+
const pricing_item_pricing = "{pricing} per {billing_period}";
|
|
3
|
+
const enUS = {
|
|
4
|
+
"123456": "Select one product",
|
|
5
|
+
"addon_multiple_editor.add_to_subscription_button": "Add to subscription",
|
|
6
|
+
"addon_multiple_editor.description": "Select any number of products",
|
|
7
|
+
"addon_multiple_editor.unsupported_pricing_error": "Unsupported pricing",
|
|
8
|
+
"addon_single_editor.description.at_least_one": "Select at least one product",
|
|
9
|
+
"addon_single_editor.description.at_most_one": "Select up to one product",
|
|
10
|
+
"addon_single_editor.description.exactly_one": "Select one product",
|
|
11
|
+
"billing_information_form.submit_button.label": "Save changes",
|
|
12
|
+
"checkout.address.city.placeholder": "City...",
|
|
13
|
+
"checkout.address.line1.placeholder": "Address line 1...",
|
|
14
|
+
"checkout.address.line2.placeholder": "Address line 2...",
|
|
15
|
+
"checkout.address.portal_code.placeholder": "Postal code...",
|
|
16
|
+
"checkout.address.state.placeholder": "State...",
|
|
17
|
+
"checkout.address.title": "Billing address",
|
|
18
|
+
"checkout.agreement.subscription": "{subscription_amount}/{billing_period} until canceled, starting {start_date, date, long}.",
|
|
19
|
+
"checkout.agreement.trial": "{discounted_amount} for {trial_period}, then {subscription_amount}/{billing_period} until canceled, starting {start_date, date, ::MMMMd}.",
|
|
20
|
+
"checkout.agreement.trial.free": "Free",
|
|
21
|
+
"checkout.billing_details.add_billing_details_button.label": "More billing details",
|
|
22
|
+
"checkout.billing_details.remove_billing_details_button.label": "Remove billing details",
|
|
23
|
+
"checkout.billing_information_block.title": "Billing details",
|
|
24
|
+
"checkout.company_purchase_toggle.sub_title": "I am purchasing on behalf of a company",
|
|
25
|
+
"checkout.company_purchase_toggle.title": "Company purchase",
|
|
26
|
+
"checkout.contact_information_block.title": "Customer information",
|
|
27
|
+
"checkout.country.label": "Billing country",
|
|
28
|
+
"checkout.customize_plan_block.title": "Customize plan",
|
|
29
|
+
"checkout.email_address.label": "Email address",
|
|
30
|
+
"checkout.email_address.placeholder": "Email address...",
|
|
31
|
+
"checkout.express_payment_methods.divider_text": "Or",
|
|
32
|
+
"checkout.express_payment_methods.title": "Subscribe instantly with",
|
|
33
|
+
"checkout.first_name.label": "First name",
|
|
34
|
+
"checkout.first_name.placeholder": "First name...",
|
|
35
|
+
"checkout.invoice_preview.no_country_selected_message": "Please select a country first",
|
|
36
|
+
"checkout.invoice_preview.usage_based_message": "+ Usage",
|
|
37
|
+
"checkout.kpi.encrypted_payments.label": "Secure and encrypted payments",
|
|
38
|
+
"checkout.last_name.label": "Last name",
|
|
39
|
+
"checkout.last_name.placeholder": "Last name...",
|
|
40
|
+
"checkout.legal_name.label": "Legal entity name",
|
|
41
|
+
"checkout.legal_name.placeholder": "Legal entity name...",
|
|
42
|
+
"checkout.not_available.contact_support_message": "this page to try again, or contact customer support.",
|
|
43
|
+
"checkout.not_available.description": "The checkout is currently not available.",
|
|
44
|
+
"checkout.not_available.reload_button": "Reload",
|
|
45
|
+
"checkout.not_available.title": "Checkout not available",
|
|
46
|
+
"checkout.optional_suffix.label": "(optional)",
|
|
47
|
+
"checkout.order_summary_block.billing_period.label": "Billed {period}",
|
|
48
|
+
"checkout.order_summary_block.billing_period.per_label": "/{period}",
|
|
49
|
+
"checkout.order_summary_block.billing_period.per_quarter": "/quarter",
|
|
50
|
+
"checkout.order_summary_block.billing_period.quarterly": "Billed quarterly",
|
|
51
|
+
"checkout.order_summary_block.billing_period.save_badge.prefix": "Save {amount}",
|
|
52
|
+
"checkout.order_summary_block.billing_period.save_badge.suffix": "/year",
|
|
53
|
+
"checkout.order_summary_block.billing_period.sub_label": "{amount}{period}",
|
|
54
|
+
"checkout.order_summary_block.title": "Order summary",
|
|
55
|
+
"checkout.page_title": "Pay and subscribe",
|
|
56
|
+
"checkout.pay_and_subscribe_button.label": "Pay and subscribe",
|
|
57
|
+
"checkout.pay_and_subscribe_button_trial.label": "Start trial",
|
|
58
|
+
"checkout.payment_method_block.no_country_selected_message": "Payment methods will be shown after you select the billing country.",
|
|
59
|
+
"checkout.payment_method_block.no_country_selected_title": "Select your billing country",
|
|
60
|
+
"checkout.payment_method_block.no_payment_methods_available_message": "There are no available payment methods. Please contact support for more information.",
|
|
61
|
+
"checkout.payment_method_block.no_payment_methods_available_title": "No payment methods available",
|
|
62
|
+
"checkout.payment_method_block.title": "Payment method",
|
|
63
|
+
"checkout.payment_methods.no_country_selected_message": "Select a country to see the available payment methods",
|
|
64
|
+
"checkout.promotion_code.add_label": "Add promotion code",
|
|
65
|
+
"checkout.promotion_code.applied_label": "Promotion applied",
|
|
66
|
+
"checkout.promotion_code.applied_status": "Promotion code applied",
|
|
67
|
+
"checkout.promotion_code.apply_aria_label": "Apply promotion code",
|
|
68
|
+
"checkout.promotion_code.apply_button": "Apply",
|
|
69
|
+
"checkout.promotion_code.apply_failed": "Promotion code could not be applied. Please try again.",
|
|
70
|
+
"checkout.promotion_code.input_aria_label": "Promotion code",
|
|
71
|
+
"checkout.promotion_code.placeholder": "Promotion code",
|
|
72
|
+
"checkout.promotion_code.remove_aria_label": "Remove promotion code",
|
|
73
|
+
"checkout.promotion_code.remove_failed": "Promotion code could not be removed. Please try again.",
|
|
74
|
+
"checkout.promotion_code.removed_status": "Promotion code removed",
|
|
75
|
+
"checkout.subscription_description": "You will be billed <strong>{price}</strong> per {period_name}, starting today.",
|
|
76
|
+
"checkout.trial.label": "Trial",
|
|
77
|
+
"checkout.trial_period_description": "You will be billed <strong>{price}</strong> per {period_name}, starting {startDate, date, long}.",
|
|
78
|
+
"checkout.vat_number.check_button.label": "Check",
|
|
79
|
+
"checkout.vat_number.label": "VAT number",
|
|
80
|
+
"checkout.vat_number.placeholder": "VAT number...",
|
|
81
|
+
"components.payment_method_form.section_title": "Available payment methods",
|
|
82
|
+
"customer.invoice_table.pay_invoice_button.label": "Pay",
|
|
83
|
+
"customer.subscriptions_block.cancel_button_label": "Cancel subscription",
|
|
84
|
+
"customer.subscriptions_block.next_billing_date": "Next billing date",
|
|
85
|
+
"customer.subscriptions_block.renew_button_label": "Renew subscription",
|
|
86
|
+
"customer.subscriptions_block.show_details_button_label": "Subscription details",
|
|
87
|
+
"customer_invoices.load_failed.subtitle": "Please refresh or contact support.",
|
|
88
|
+
"customer_invoices.load_failed.title": "We can’t load your invoices",
|
|
89
|
+
"customer_overview.billing_information_block.load_failed.subtitle": "Please refresh or contact support.",
|
|
90
|
+
"customer_overview.billing_information_block.load_failed.title": "We can’t load your billing information",
|
|
91
|
+
"customer_overview.billing_information_block.title": "Billing information",
|
|
92
|
+
"customer_overview.billing_information_block.view_all_payment_methods_link_label": "Edit",
|
|
93
|
+
"customer_overview.invoices_block.no_active_subscription_content": "You haven’t received an invoice yet. It’ll appear here once it’s generated.",
|
|
94
|
+
"customer_overview.invoices_block.no_invoices_title": "No invoices to display",
|
|
95
|
+
"customer_overview.invoices_block.title": "Invoices",
|
|
96
|
+
"customer_overview.invoices_block.view_all_invoices_link_label": "View all",
|
|
97
|
+
"customer_overview.payment_methods.title": "Payment methods",
|
|
98
|
+
"customer_overview.payment_methods_block.add_payment_method_button_label": "Add payment method",
|
|
99
|
+
"customer_overview.payment_methods_block.add_payment_method_helper_text": "Add a payment method for recurring invoice payments.",
|
|
100
|
+
"customer_overview.payment_methods_block.load_failed.subtitle": "Please refresh or contact support.",
|
|
101
|
+
"customer_overview.payment_methods_block.load_failed.title": "We can’t load your payment methods",
|
|
102
|
+
"customer_overview.payment_methods_block.view_all_payment_methods_link_label": "View all",
|
|
103
|
+
"customer_overview.subscriptions_block.fallback_subscription_name": "Subscription",
|
|
104
|
+
"customer_overview.subscriptions_block.load_failed.subtitle": "Please refresh or contact support.",
|
|
105
|
+
"customer_overview.subscriptions_block.load_failed.title": "We can’t load your subscriptions",
|
|
106
|
+
"customer_overview.subscriptions_block.no_active_subscription_content": "There’s no active subscription to display.",
|
|
107
|
+
"customer_overview.subscriptions_block.no_active_subscription_title": "No subscriptions",
|
|
108
|
+
"customer_overview.subscriptions_block.title": "My subscriptions",
|
|
109
|
+
"customer_overview.subscriptions_block.view_all_button_label": "View all",
|
|
110
|
+
"customer_overview.wallet_balances_block.title": "{count,plural,one{Wallet} other{Wallets}}",
|
|
111
|
+
"empty_state.retry.button": "Refresh",
|
|
112
|
+
empty_value_placeholder,
|
|
113
|
+
"invoice_credits.balance.table_header": "Balance",
|
|
114
|
+
"invoice_credits.credit_breakdown.table_header": "Credit breakdown",
|
|
115
|
+
"invoice_credits.remaining.table_header": "Remaining",
|
|
116
|
+
"invoice_credits.used.table_header": "Used",
|
|
117
|
+
"invoice_preview.taxes_not_determined_by_billing_information_tooltip": "Will be determined by billing information",
|
|
118
|
+
"invoice_table.button.load_more": "Load more",
|
|
119
|
+
"invoice_table.chip.paid": "Paid",
|
|
120
|
+
"invoice_table.header.amount": "Amount",
|
|
121
|
+
"invoice_table.header.date": "Date",
|
|
122
|
+
"invoice_table.header.invoice_number": "Invoice",
|
|
123
|
+
"invoice_table.header.status": "Status",
|
|
124
|
+
"invoices_list.title": "Schedules",
|
|
125
|
+
"on_demand_pricing_row.add_to_cart_button_label": "Add to cart",
|
|
126
|
+
"on_demand_pricing_row.one_off_label": "one-off",
|
|
127
|
+
"on_demand_pricing_row.remove_button_label": "Remove",
|
|
128
|
+
"pay_invoice.error.description": "Please try again or contact support.",
|
|
129
|
+
"pay_invoice.error.title": "Something went wrong",
|
|
130
|
+
"pay_invoice.paid.title": "Thank you for your payment!",
|
|
131
|
+
"pay_invoice.payment_methods.title": "Payment methods",
|
|
132
|
+
"pay_button.label.amount_and_payment_method": "Pay {amount} with {type}",
|
|
133
|
+
"pay_button.label.amount_only": "Pay {amount}",
|
|
134
|
+
"pay_button.label.default": "Pay",
|
|
135
|
+
"payment_completed_card.redirect_message": "You are being redirected...",
|
|
136
|
+
"payment_completed_card.title.authorize": "Payment successful",
|
|
137
|
+
"payment_completed_card.title.tokenize": "Your payment method is added",
|
|
138
|
+
"payment_integration_form.select_payment_method_error": "Select a payment method",
|
|
139
|
+
"payments.retry_button.label": "Try again",
|
|
140
|
+
"pricing_group_multiple_editor.at_least_one_description": "Select at least one product",
|
|
141
|
+
pricing_item_pricing,
|
|
142
|
+
"pricing_item_pricing.flat_top_up": "Flat top up pricing",
|
|
143
|
+
"pricing_item_pricing.none": "Not billed",
|
|
144
|
+
"pricing_item_pricing.pass_through": "Pass through pricing",
|
|
145
|
+
"pricing_item_pricing.per_seat": "Per seat",
|
|
146
|
+
"pricing_item_pricing.stair_step": "Stair step pricing",
|
|
147
|
+
"pricing_item_pricing.tiered": "Tiered pricing",
|
|
148
|
+
"pricing_item_pricing.tiered_top_up": "Tiered top up pricing",
|
|
149
|
+
"pricing_item_pricing.top_tiered": "Top tiered pricing",
|
|
150
|
+
"pricing_item_pricing.unsupported_pricing_error": "Unsupported pricing",
|
|
151
|
+
"sdk.invoice_details.customer_billing_information.title": "Your billing information",
|
|
152
|
+
"sdk.invoice_details.invoice.download_pdf": "Download the PDF for a full breakdown",
|
|
153
|
+
"sdk.invoice_details.invoice.title": "Invoice",
|
|
154
|
+
"sdk.invoice_details.invoice_details_block.due_date": "Due date",
|
|
155
|
+
"sdk.invoice_details.invoice_details_block.invoice_date": "Invoice date",
|
|
156
|
+
"sdk.invoice_details.invoice_details_block.title": "Invoice details",
|
|
157
|
+
"sdk.invoice_details.payment_history.payment_attempt": "Payment attempt",
|
|
158
|
+
"sdk.invoice_details.payment_history.title": "Payment history",
|
|
159
|
+
"seats.label": "Seats",
|
|
160
|
+
"seats.price_per_seat_period": "{amount} per seat/{period}",
|
|
161
|
+
"seats.tiered_price_per_seat_period": "{amount} per seat/{period}",
|
|
162
|
+
"seats.tiered_pricing_label": "Tiered pricing",
|
|
163
|
+
"seats.tiered_range_label": "{lower_bound} - {upper_bound} seats",
|
|
164
|
+
"seats.tiered_unbounded_range_label": "> {lower_bound} seats",
|
|
165
|
+
"secure_payments_kpi.generic": "Secure and encrypted payments",
|
|
166
|
+
"secure_payments_kpi.specific_vendor": "Secure and encrypted payments by",
|
|
167
|
+
"subscription_payment_completed_card.continue": "Continue to merchant",
|
|
168
|
+
"subscription_payment_completed_card.thank_you_for_subscribing": "Thank you for subscribing.",
|
|
169
|
+
"subscription_payment_completed_card.title": "Payment successful",
|
|
170
|
+
"tax_check.invalid_vat_number": "VAT number is invalid.",
|
|
171
|
+
"tax_check.valid_vat_number": "VAT number is valid.",
|
|
172
|
+
"upgrade_subscription.empty_state": "No on-demand add-ons are available for this subscription.",
|
|
173
|
+
"upgrade_subscription.kpi.encrypted_payments.label": "Secure and encrypted payments",
|
|
174
|
+
"upgrade_subscription.order_summary.empty_state": "Select add-ons to see pricing.",
|
|
175
|
+
"upgrade_subscription.order_summary.one_off_label": "one-off",
|
|
176
|
+
"upgrade_subscription.order_summary.subtotal_label": "Total excluding taxes",
|
|
177
|
+
"upgrade_subscription.order_summary.taxes_label": "Taxes",
|
|
178
|
+
"upgrade_subscription.order_summary.title": "Order summary",
|
|
179
|
+
"upgrade_subscription.order_summary.total_label": "Total due today",
|
|
180
|
+
"upgrade_subscription.payment_picker.all_title": "All payment methods",
|
|
181
|
+
"upgrade_subscription.payment_picker.saved_title": "Saved payment methods",
|
|
182
|
+
"upgrade_subscription.pricing_row.add_button_label": "Add to cart",
|
|
183
|
+
"upgrade_subscription.pricing_row.one_off_label": "one-off",
|
|
184
|
+
"upgrade_subscription.pricing_row.remove_button_label": "Remove",
|
|
185
|
+
"upgrade_subscription.purchase_button.label": "Purchase",
|
|
186
|
+
"upgrade_subscription.purchase_error": "Something went wrong. Please try again.",
|
|
187
|
+
"upgrade_subscription.success.subtitle": "Your add-ons have been activated.",
|
|
188
|
+
"upgrade_subscription.success.title": "Payment successful",
|
|
189
|
+
"wallet_balance.credit_type_fallback_label": "Credits",
|
|
190
|
+
"wallet_balance.details.header": "Wallet balance",
|
|
191
|
+
"wallet_balance.load_failed": "Could not load wallet balances",
|
|
192
|
+
"wallet_balance.service_period_heading": "Service period - {startAt} - {endAt}",
|
|
193
|
+
"wallet_balance.wallet_ballance_title": "Balance"
|
|
194
|
+
};
|
|
195
|
+
export {
|
|
196
|
+
enUS as default,
|
|
197
|
+
empty_value_placeholder,
|
|
198
|
+
pricing_item_pricing
|
|
199
|
+
};
|