@solvimon/solvimon-web 0.1.0-alpha.16 → 0.1.0-alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BYBAO4Au.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BrPsTuoW.mjs} +2 -2
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BI3Lg7nO.js → BillingInformation.vue_vue_type_script_setup_true_lang-BuQ8bzar.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C_uHr21N.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-1Op9GjGZ.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CTnn1gkW.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CuWrBcoK.mjs} +3 -3
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C66beqgf.js +1 -0
- package/dist/{useWalletBalanceItems-COQDLfoZ.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D2BhuXsh.mjs} +24 -56
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BbuEBiY3.js +1 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3cqlbGY.mjs +147 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DU6X3zxr.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-dwIv_xxf.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-ryvFEQMV.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-wxP5IaGt.mjs} +1 -1
- package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-DdpPrYxi.js → InvoiceHeader.vue_vue_type_script_setup_true_lang-05NKI2A0.js} +1 -1
- package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-bAiAbtMi.mjs → InvoiceHeader.vue_vue_type_script_setup_true_lang-17v07F58.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-BKMttUyk.mjs → PaymentHistoryBlock-BitwS9Re.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-BGbTy4Se.js → PaymentHistoryBlock-ZtmPXXwI.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-tM7f_fQS.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3ZUDUdw.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CixdxEGm.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CMGK71zZ.js} +1 -1
- package/dist/{PaymentIntegrationForm-CypW6fZY.mjs → PaymentIntegrationForm-BK2aLPCo.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-D4QupHWl.js → PaymentIntegrationForm-BZTzCUiu.js} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CrGSfZZs.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B_yDNGK8.mjs} +5 -5
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-GN3WAr10.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-B8eNptZp.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-CIQ0vsko.mjs} +25 -14
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-zRr8iihy.js +1 -0
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-BQIN3zuf.mjs +156 -0
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DyL2-vV0.js +1 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BUTqn4Ey.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DVeB_mqK.mjs} +5 -5
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-Be_fF-R_.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OvGGejpX.js} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BxqIfmkK.js +1 -0
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cqk-vonA.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-D1TcP9PR.mjs} +115 -68
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BKz2QQn9.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BMXr26gF.mjs +37 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DB1p61kZ.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BDqX6OaE.mjs} +22 -119
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CyAFjCh7.js +1 -0
- package/dist/component-CUJ_G2Nw.mjs +962 -0
- package/dist/component-CiKxWtdx.js +1 -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 +7 -7
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.es.js +4 -4
- 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 +6 -6
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +7 -58
- 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 +8 -6
- package/dist/core/action-request.types.d.ts +3 -3
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +4 -2
- package/dist/{customer-_W8gIX5m.js → customer-AfRcAZ5P.js} +1 -1
- package/dist/{customer-Bv_fqXzO.mjs → customer-DAgdegIW.mjs} +1 -1
- package/dist/{en-US-DAgOSlgv.mjs → en-US-DSzSbgL5.mjs} +68 -36
- package/dist/en-US-QzQnGXP1.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +7 -4
- package/dist/invoices-BHgajZHq.js +1 -0
- package/dist/{invoices-BGb0AwVF.mjs → invoices-BXDgW8ch.mjs} +32 -16
- package/dist/nl-NL-C4rr-1tr.js +1 -0
- package/dist/{nl-NL-DCsmrA8A.mjs → nl-NL-Li7RW89R.mjs} +72 -40
- package/dist/{paymentMethods-DIbB759g.js → paymentMethods-BMcc-eTl.js} +1 -1
- package/dist/{paymentMethods-DvqlWe96.mjs → paymentMethods-xzFD2L30.mjs} +2 -2
- package/dist/{payments-DMDDI3MK.js → payments-DMvmB5vg.js} +1 -1
- package/dist/{payments-CpzTVrQM.mjs → payments-DV6csRej.mjs} +1 -1
- package/dist/pricing-B1uImUm4.mjs +19 -0
- package/dist/pricing-BEjY_5wb.js +1 -0
- package/dist/pricingPlanSchedule-B9HFiXy-.js +1 -0
- package/dist/pricingPlanSchedule-C_cqUyTk.mjs +144 -0
- package/dist/registry-CeMxLjwU.js +1 -0
- package/dist/{registry-B-If1W_u.mjs → registry-CyENvS6l.mjs} +7 -4
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +414 -675
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +65 -19
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -1
- package/dist/screens/PayInvoice/PayInvoice.es.js +10 -9
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.es.js +8 -8
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +3 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.es.js +542 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +3 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +1 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.es.js +725 -0
- package/dist/solvimon-web.css +1 -1
- package/dist/subscription-B4dBAY9C.mjs +89 -0
- package/dist/subscription-b0OPx8Du.js +1 -0
- package/dist/{subscriptions-BPYyv09M.mjs → subscriptions-CrNDM9qa.mjs} +6 -2
- package/dist/{subscriptions-CC61I6Nj.js → subscriptions-DC-mxa17.js} +1 -1
- package/dist/{url-1Lbg5Yni.mjs → url-BjZ1Pg0l.mjs} +1 -1
- package/dist/url-D8GJi5rF.js +1 -0
- package/dist/{useActionDispatchProvider-BHTknMoH.js → useActionDispatchProvider-bqR_FeM4.js} +1 -1
- package/dist/{useActionDispatchProvider-Dz8-e4gZ.mjs → useActionDispatchProvider-zB_GKeUR.mjs} +1 -1
- package/dist/{useCustomer-VVJi8z2w.mjs → useCustomer-VfeQ6rG2.mjs} +2 -2
- package/dist/{useCustomer-Z24KchWC.js → useCustomer-bO4D6e4Z.js} +1 -1
- package/dist/{useIncrementalLoading-CuSndpP2.js → useIncrementalLoading-BgWuwoMo.js} +1 -1
- package/dist/{useIncrementalLoading-DmOT2MXH.mjs → useIncrementalLoading-C59FXHzp.mjs} +1 -1
- package/dist/{useInvoiceData-Bl87gzIS.js → useInvoiceData-CxxkBTGY.js} +1 -1
- package/dist/{useInvoiceData-Di5pLPM0.mjs → useInvoiceData-Dhg-hx8C.mjs} +2 -2
- package/dist/useInvoicesList-BXZ9uV9i.js +1 -0
- package/dist/{useInvoicesList-z19cteaD.mjs → useInvoicesList-DBz7T7sM.mjs} +4 -4
- package/dist/{useLoadInitialData-CkpryfjF.mjs → useLoadInitialData-BhpIg7OF.mjs} +1 -1
- package/dist/{useLoadInitialData-CTqfiMTN.js → useLoadInitialData-BqiAFNFi.js} +1 -1
- package/dist/{usePaymentMethodOptions-BsCZnCQW.js → usePaymentMethodOptions-DszFvgKX.js} +1 -1
- package/dist/{usePaymentMethodOptions-BoGHJjng.mjs → usePaymentMethodOptions-PcMjtMSF.mjs} +2 -2
- package/dist/{usePaymentMethods-ocHmNoP7.mjs → usePaymentMethods-B5AbGWsn.mjs} +2 -2
- package/dist/{usePaymentMethods-AC-4rrR9.js → usePaymentMethods-Bb1Xbads.js} +1 -1
- package/dist/{usePayments-D85eB5l4.mjs → usePayments-DgoZoBZh.mjs} +3 -3
- package/dist/{usePayments-CgXZeWrU.js → usePayments-is5c66Z6.js} +1 -1
- package/dist/{usePortal-DVD7PcWI.js → usePortal-C4qWsJeq.js} +1 -1
- package/dist/{usePortal-B1O1zgdV.mjs → usePortal-DWLtNqBB.mjs} +1 -1
- package/dist/{useService-DF57xuDd.mjs → useService-BZqFkz7p.mjs} +1 -1
- package/dist/{useService-CHrkefKd.js → useService-DKm3QtT4.js} +1 -1
- package/dist/useSubscription-CEZJw6wZ.mjs +23 -0
- package/dist/useSubscription-DuUNc1_l.js +1 -0
- package/dist/useTopUpModal-DNyWrHDv.mjs +1012 -0
- package/dist/useTopUpModal-DeF-cfCK.js +1 -0
- package/dist/{vendor-ui-B8IlviSs.mjs → vendor-ui-BoGKOJ36.mjs} +8642 -7077
- package/dist/vendor-ui-BuRqLx74.js +1 -0
- package/package.json +14 -7
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BBEM-YPz.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-eWmC5GOT.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVoS3ZXS.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-56vu59V4.js +0 -1
- package/dist/component-Bg2JVC_O.mjs +0 -933
- package/dist/component-Bs8oszfD.js +0 -1
- package/dist/en-US-C0gIE4Q1.js +0 -1
- package/dist/invoices-D-OKipCg.js +0 -1
- package/dist/nl-NL-Br7muSHK.js +0 -1
- package/dist/registry-uG2isab0.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +0 -3
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +0 -1102
- package/dist/url-B6-3PkW2.js +0 -1
- package/dist/useInvoicesList-CFk-_oVK.js +0 -1
- package/dist/useWalletBalanceItems-BL-R5foK.js +0 -1
- package/dist/vendor-ui-C3Tq-qY_.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ export { createSolvimonCore, getRegisteredScreenIds, getRegisteredComponentIds,
|
|
|
2
2
|
export type { SolvimonMountConfig, CoreConfiguration, ComponentConfigurationById, ScreenConfigurationById, ComponentMountConfiguration, ScreenMountConfiguration, SolvimonMountInstance, RegisteredScreenId, RegisteredComponentId, ActionRequestDetail, RequestActionEvent, } from './public/core';
|
|
3
3
|
export { SolvimonCheckout, defineSolvimonCheckout, } from './public/screens/Checkout/Checkout.entry.ce';
|
|
4
4
|
export { SolvimonCustomerOverview, defineSolvimonCustomerOverview, } from './public/screens/CustomerOverview/CustomerOverview.entry.ce';
|
|
5
|
-
export {
|
|
5
|
+
export { SolvimonSubscriptionManagement, defineSolvimonSubscriptionManagement, } from './public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce';
|
|
6
|
+
export { SolvimonSubscriptionDetails, defineSolvimonSubscriptionDetails, } from './public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce';
|
|
6
7
|
export { SolvimonPayInvoice, defineSolvimonPayInvoice, } from './public/screens/PayInvoice/PayInvoice.entry.ce';
|
|
7
8
|
export { SolvimonBillingInformation, defineSolvimonBillingInformation, } from './public/components/BillingInformation/BillingInformation.entry.ce';
|
|
8
9
|
export { SolvimonBillingInformationForm, defineSolvimonBillingInformationForm, } from './public/components/BillingInformationForm/BillingInformationForm.entry.ce';
|
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { c, g, a } from "./registry-
|
|
1
|
+
import { c, g, a } from "./registry-CyENvS6l.mjs";
|
|
2
2
|
import { SolvimonCheckout, defineSolvimonCheckout } from "./screens/Checkout/Checkout.es.js";
|
|
3
3
|
import { SolvimonCustomerOverview, defineSolvimonCustomerOverview } from "./screens/CustomerOverview/CustomerOverview.es.js";
|
|
4
|
-
import {
|
|
4
|
+
import { SolvimonSubscriptionManagement, defineSolvimonSubscriptionManagement } from "./screens/SubscriptionManagement/SubscriptionManagement.es.js";
|
|
5
|
+
import { SolvimonSubscriptionDetails, defineSolvimonSubscriptionDetails } from "./screens/SubscriptionDetails/SubscriptionDetails.es.js";
|
|
5
6
|
import { SolvimonPayInvoice, defineSolvimonPayInvoice } from "./screens/PayInvoice/PayInvoice.es.js";
|
|
6
7
|
import { SolvimonBillingInformation, defineSolvimonBillingInformation } from "./components/BillingInformation/BillingInformation.es.js";
|
|
7
8
|
import { SolvimonBillingInformationForm, defineSolvimonBillingInformationForm } from "./components/BillingInformationForm/BillingInformationForm.es.js";
|
|
@@ -24,9 +25,10 @@ export {
|
|
|
24
25
|
SolvimonPayInvoice,
|
|
25
26
|
SolvimonPaymentHistory,
|
|
26
27
|
SolvimonPaymentMethodForm,
|
|
28
|
+
SolvimonSubscriptionDetails,
|
|
29
|
+
SolvimonSubscriptionManagement,
|
|
27
30
|
SolvimonSubscriptionSchedules,
|
|
28
31
|
SolvimonSubscriptionsList,
|
|
29
|
-
SolvimonUpgradeSubscription,
|
|
30
32
|
SolvimonWalletBalances,
|
|
31
33
|
c as createSolvimonCore,
|
|
32
34
|
defineSolvimonBillingInformation,
|
|
@@ -39,9 +41,10 @@ export {
|
|
|
39
41
|
defineSolvimonPayInvoice,
|
|
40
42
|
defineSolvimonPaymentHistory,
|
|
41
43
|
defineSolvimonPaymentMethodForm,
|
|
44
|
+
defineSolvimonSubscriptionDetails,
|
|
45
|
+
defineSolvimonSubscriptionManagement,
|
|
42
46
|
defineSolvimonSubscriptionSchedules,
|
|
43
47
|
defineSolvimonSubscriptionsList,
|
|
44
|
-
defineSolvimonUpgradeSubscription,
|
|
45
48
|
defineSolvimonWalletBalances,
|
|
46
49
|
g as getRegisteredComponentIds,
|
|
47
50
|
a as getRegisteredScreenIds
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=require("./vendor-ui-BuRqLx74.js"),n=require("./component-CiKxWtdx.js");exports.createInvoicesService=function(){const e=n.createRequestService(),t=n.useConfig(),r=`${t.apiUrls.transaction}/portal/invoices/charge-on-demand-pricing-items`;return{getInvoice:function(i){return e({url:`${t.apiUrls.transaction}/portal/invoices/${i}`})},getInvoices:function({customerId:n,pagination:r,query:a}){const o=i.withPagination({customer_id:n,...a??{}},r),c=new URL(`${t.apiUrls.transaction}/portal/invoices`);return Object.entries(o).forEach(([i,n])=>{null!=n&&(Array.isArray(n)?n.forEach(n=>{c.searchParams.append(`${i}[]`,`${n}`)}):c.searchParams.append(i,`${n}`))}),e({url:c.toString(),isCollection:!0})},getInvoicePdf:async function(n){return e({url:`${t.apiUrls.transaction}/portal/invoices/${n}/pdf`,options:{headers:{"Content-Type":"application/pdf"}}}).then(e=>{const t=new Blob([e],{type:"application/pdf"});i.downloadFile(t,`invoice-${n}.pdf`)})},getInvoicePreview:function({customer:i,pricingPlanSubscriptionId:n,startAt:r,customizations:a,pricing_plan_schedule_customizations:o,forExistingSubscription:c=!1}){return e({url:`${t.apiUrls.transaction}/portal/invoices/preview`,options:{method:"POST"},data:{...c?{pricing_plan_subscription_id:n}:{template_pricing_plan_subscription_id:n,customer_details:{...i,reference:"preview"}},...r&&{start_at:r},...a&&{pricing_plan_schedule_customizations:a},...o&&{pricing_plan_schedule_customizations:o}}})},previewChargeOnDemandPricingItems:function({pricingPlanScheduleId:i,pricingItems:n,startAt:t}){return e({url:r,options:{method:"POST"},data:{pricing_plan_schedule_id:i,pricing_items:n,preview:!0,...t?{start_at:t}:{}}})},chargeOnDemandPricingItems:function(i){return e({url:r,options:{method:"POST"},data:{finalize_immediately:!0,...i}})}}};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { f as downloadFile, a as withPagination } from "./vendor-ui-
|
|
2
|
-
import { c as createRequestService, u as useConfig } from "./component-
|
|
1
|
+
import { f as downloadFile, a as withPagination } from "./vendor-ui-BoGKOJ36.mjs";
|
|
2
|
+
import { c as createRequestService, u as useConfig } from "./component-CUJ_G2Nw.mjs";
|
|
3
3
|
function createInvoicesService() {
|
|
4
4
|
const request = createRequestService();
|
|
5
5
|
const config = useConfig();
|
|
6
|
+
const chargeOnDemandPricingItemsUrl = `${config.apiUrls.transaction}/portal/invoices/charge-on-demand-pricing-items`;
|
|
6
7
|
function getInvoice(invoiceId) {
|
|
7
8
|
return request({
|
|
8
9
|
url: `${config.apiUrls.transaction}/portal/invoices/${invoiceId}`
|
|
@@ -54,40 +55,54 @@ function createInvoicesService() {
|
|
|
54
55
|
pricingPlanSubscriptionId,
|
|
55
56
|
startAt,
|
|
56
57
|
customizations,
|
|
57
|
-
pricing_plan_schedule_customizations
|
|
58
|
+
pricing_plan_schedule_customizations,
|
|
59
|
+
forExistingSubscription = false
|
|
58
60
|
}) {
|
|
59
61
|
return request({
|
|
60
62
|
url: `${config.apiUrls.transaction}/portal/invoices/preview`,
|
|
61
63
|
options: { method: "POST" },
|
|
62
64
|
data: {
|
|
63
|
-
|
|
65
|
+
// A subscription that is already running is priced as itself, and its customer is
|
|
66
|
+
// known. One that does not exist yet is priced off the template it would be created
|
|
67
|
+
// from, for the details it would be invoiced to.
|
|
68
|
+
...forExistingSubscription ? { pricing_plan_subscription_id: pricingPlanSubscriptionId } : {
|
|
69
|
+
template_pricing_plan_subscription_id: pricingPlanSubscriptionId,
|
|
70
|
+
customer_details: {
|
|
71
|
+
...customer,
|
|
72
|
+
reference: "preview"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
64
75
|
...startAt && { start_at: startAt },
|
|
65
76
|
...customizations && { pricing_plan_schedule_customizations: customizations },
|
|
66
77
|
...pricing_plan_schedule_customizations && {
|
|
67
78
|
pricing_plan_schedule_customizations
|
|
68
|
-
},
|
|
69
|
-
customer_details: {
|
|
70
|
-
...customer,
|
|
71
|
-
reference: "preview"
|
|
72
79
|
}
|
|
73
80
|
}
|
|
74
81
|
});
|
|
75
82
|
}
|
|
76
83
|
function previewChargeOnDemandPricingItems({
|
|
77
84
|
pricingPlanScheduleId,
|
|
78
|
-
|
|
85
|
+
pricingItems,
|
|
79
86
|
startAt
|
|
80
87
|
}) {
|
|
81
88
|
return request({
|
|
82
|
-
url:
|
|
89
|
+
url: chargeOnDemandPricingItemsUrl,
|
|
83
90
|
options: { method: "POST" },
|
|
84
91
|
data: {
|
|
85
92
|
pricing_plan_schedule_id: pricingPlanScheduleId,
|
|
86
|
-
pricing_items:
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
pricing_items: pricingItems,
|
|
94
|
+
preview: true,
|
|
95
|
+
...startAt ? { start_at: startAt } : {}
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function chargeOnDemandPricingItems(payload) {
|
|
100
|
+
return request({
|
|
101
|
+
url: chargeOnDemandPricingItemsUrl,
|
|
102
|
+
options: { method: "POST" },
|
|
103
|
+
data: {
|
|
104
|
+
finalize_immediately: true,
|
|
105
|
+
...payload
|
|
91
106
|
}
|
|
92
107
|
});
|
|
93
108
|
}
|
|
@@ -96,7 +111,8 @@ function createInvoicesService() {
|
|
|
96
111
|
getInvoices,
|
|
97
112
|
getInvoicePdf,
|
|
98
113
|
getInvoicePreview,
|
|
99
|
-
previewChargeOnDemandPricingItems
|
|
114
|
+
previewChargeOnDemandPricingItems,
|
|
115
|
+
chargeOnDemandPricingItems
|
|
100
116
|
};
|
|
101
117
|
}
|
|
102
118
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="{pricing} per {billing_period}",t={"add_payment_method_modal.cancel_button.label":"Annuleren","add_payment_method_modal.confirm_button.label":"Betaalmethode opslaan","add_payment_method_modal.subtitle":"Voeg een nieuwe betaalmethode toe om mee te betalen.","add_payment_method_modal.title":"Betaalmethode toevoegen","addon_multiple_editor.add_to_subscription_button":"Toevoegen aan abonnement","addon_multiple_editor.description":"Selecteer een of meer producten","addon_multiple_editor.unsupported_pricing_error":"Niet-ondersteunde prijsstelling","addon_single_editor.description.at_least_one":"Selecteer minimaal één product","addon_single_editor.description.at_most_one":"Selecteer maximaal één product","addon_single_editor.description.exactly_one":"Selecteer één product","billing_information_form.submit_button.label":"Wijzigingen opslaan","checkout.address.city.placeholder":"Stad...","checkout.address.line1.placeholder":"Adresregel 1...","checkout.address.line2.placeholder":"Adresregel 2...","checkout.address.portal_code.placeholder":"Postcode...","checkout.address.state.placeholder":"Provincie...","checkout.address.title":"Factuuradres","checkout.agreement.subscription":"{subscription_amount}/{billing_period} tot annulering, startend op {start_date, date, long}.","checkout.agreement.trial":"{discounted_amount} voor {trial_period}, daarna {subscription_amount}/{billing_period} tot annulering, startend op {start_date, date, ::MMMMd}.","checkout.agreement.trial.free":"Gratis","checkout.billing_details.add_billing_details_button.label":"Meer factuurgegevens","checkout.billing_details.remove_billing_details_button.label":"Factuurgegevens verwijderen","checkout.billing_information_block.title":"Factuurgegevens","checkout.company_purchase_toggle.sub_title":"Ik koop namens een bedrijf","checkout.company_purchase_toggle.title":"Zakelijke aankoop","checkout.contact_information_block.title":"Klantgegevens","checkout.country.label":"Factuurland","checkout.customize_plan_block.title":"Plan aanpassen","checkout.email_address.label":"E-mailadres","checkout.email_address.placeholder":"E-mailadres...","checkout.express_payment_methods.divider_text":"Of","checkout.express_payment_methods.title":"Direct abonneren met","checkout.first_name.label":"Voornaam","checkout.first_name.placeholder":"Voornaam...","checkout.invoice_preview.no_country_selected_message":"Selecteer eerst een land","checkout.invoice_preview.usage_based_message":"+ Gebruik","checkout.last_name.label":"Achternaam","checkout.last_name.placeholder":"Achternaam...","checkout.legal_name.label":"Naam rechtspersoon","checkout.legal_name.placeholder":"Naam rechtspersoon...","checkout.not_available.contact_support_message":"deze pagina om het opnieuw te proberen, of neem contact op met de klantenservice.","checkout.not_available.description":"De betaalpagina is momenteel niet beschikbaar.","checkout.not_available.reload_button":"Herladen","checkout.not_available.title":"Betaalpagina niet beschikbaar","checkout.optional_suffix.label":"(optioneel)","checkout.order_summary_block.billing_period.label":"Gefactureerd per {period}","checkout.order_summary_block.billing_period.per_label":"/{period}","checkout.order_summary_block.billing_period.per_quarter":"/kwartaal","checkout.order_summary_block.billing_period.quarterly":"Gefactureerd per kwartaal","checkout.order_summary_block.billing_period.save_badge.prefix":"Bespaar {amount}","checkout.order_summary_block.billing_period.save_badge.suffix":"/jaar","checkout.order_summary_block.billing_period.sub_label":"{amount} per {period}","checkout.order_summary_block.title":"Besteloverzicht","checkout.page_title":"Betalen en abonneren","checkout.pay_and_subscribe_button.label":"Betalen en abonneren","checkout.pay_and_subscribe_button_trial.label":"Proefperiode starten","checkout.payment_method_block.no_country_selected_message":"Betaalmethoden worden getoond zodra je het factuurland hebt geselecteerd.","checkout.payment_method_block.no_country_selected_title":"Selecteer je factuurland","checkout.payment_method_block.no_payment_methods_available_message":"Er zijn geen beschikbare betaalmethoden. Neem contact op met de ondersteuning voor meer informatie.","checkout.payment_method_block.no_payment_methods_available_title":"Geen betaalmethoden beschikbaar","checkout.payment_method_block.title":"Betaalmethode","checkout.payment_methods.no_country_selected_message":"Selecteer een land om de beschikbare betaalmethoden te zien","checkout.promotion_code.add_label":"Promotiecode toevoegen","checkout.promotion_code.applied_label":"Promotie toegepast","checkout.promotion_code.applied_status":"Promotiecode toegepast","checkout.promotion_code.apply_aria_label":"Promotiecode toepassen","checkout.promotion_code.apply_button":"Toepassen","checkout.promotion_code.apply_failed":"Promotiecode kon niet worden toegepast. Probeer het opnieuw.","checkout.promotion_code.input_aria_label":"Promotiecode","checkout.promotion_code.placeholder":"Promotiecode","checkout.promotion_code.remove_aria_label":"Promotiecode verwijderen","checkout.promotion_code.remove_failed":"Promotiecode kon niet worden verwijderd. Probeer het opnieuw.","checkout.promotion_code.removed_status":"Promotiecode verwijderd","checkout.subscription_description":"Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, vanaf vandaag.","checkout.trial.label":"Proefperiode","checkout.trial_period_description":"Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, startend op {startDate, date, long}.","checkout.vat_number.check_button.label":"Controleren","checkout.vat_number.label":"BTW-nummer","checkout.vat_number.placeholder":"BTW-nummer...","components.payment_method_form.section_title":"Beschikbare betaalmethoden","components.payment_method_form.submit_button.label":"Betaalmethode opslaan","customer.invoice_table.pay_invoice_button.label":"Betalen","customer.subscriptions_block.next_billing_date":"Volgende factuurdatum","customer.subscriptions_block.show_details_button_label":"Abonnementsdetails","customer_invoices.load_failed.subtitle":"Vernieuw de pagina of neem contact op met de ondersteuning.","customer_invoices.load_failed.title":"We kunnen je facturen niet laden","customer_overview.billing_information_block.load_failed.subtitle":"Vernieuw de pagina of neem contact op met de ondersteuning.","customer_overview.billing_information_block.load_failed.title":"We kunnen je factuurgegevens niet laden","customer_overview.billing_information_block.title":"Factuurgegevens","customer_overview.billing_information_block.view_all_payment_methods_link_label":"Bewerken","customer_overview.invoices_block.no_active_subscription_content":"Je hebt nog geen factuur ontvangen. Deze verschijnt hier zodra deze is gegenereerd.","customer_overview.invoices_block.no_invoices_title":"Geen facturen om weer te geven","customer_overview.invoices_block.title":"Facturen","customer_overview.invoices_block.view_all_invoices_link_label":"Alles weergeven","customer_overview.payment_methods.title":"{count,plural,one{Betaalmethode} other{Betaalmethoden}}","customer_overview.payment_methods_block.add_payment_method_button_label":"Betaalmethode toevoegen","customer_overview.payment_methods_block.add_payment_method_helper_text":"Voeg een betaalmethode toe voor terugkerende factuurbetalingen.","customer_overview.payment_methods_block.load_failed.subtitle":"Vernieuw de pagina of neem contact op met de ondersteuning.","customer_overview.payment_methods_block.load_failed.title":"We kunnen je betaalmethoden niet laden","customer_overview.payment_methods_block.view_all_payment_methods_link_label":"Alles weergeven","customer_overview.subscriptions_block.fallback_subscription_name":"Abonnement","customer_overview.subscriptions_block.load_failed.subtitle":"Vernieuw de pagina of neem contact op met de ondersteuning.","customer_overview.subscriptions_block.load_failed.title":"We kunnen je abonnementen niet laden","customer_overview.subscriptions_block.no_active_subscription_content":"Er is geen actief abonnement om weer te geven.","customer_overview.subscriptions_block.no_active_subscription_title":"Geen abonnementen","customer_overview.subscriptions_block.title":"{count,plural,one{Mijn abonnement} other{Mijn abonnementen}}","customer_overview.subscriptions_block.view_all_button_label":"Alles weergeven","customer_overview.wallet_balances_block.title":"{count,plural,one{Wallet} other{Wallets}}","empty_state.retry.button":"Vernieuwen",empty_value_placeholder:"-","enabled_pricings_list.item.price":"{amount} per {period}","enabled_pricings_list.item.upgrade_button.label":"Upgraden","enabled_pricings_list.title":"Upgrades","invoice_credits.balance.table_header":"Saldo","invoice_credits.credit_breakdown.table_header":"Kredietoverzicht","invoice_credits.remaining.table_header":"Resterend","invoice_credits.used.table_header":"Gebruikt","invoice_preview.taxes_not_determined_by_billing_information_tooltip":"Wordt bepaald aan de hand van de factuurgegevens","invoice_table.button.load_more":"Meer laden","invoice_table.chip.paid":"Betaald","invoice_table.header.amount":"Bedrag","invoice_table.header.date":"Datum","invoice_table.header.invoice_number":"Factuur","invoice_table.header.status":"Status","invoices_list.title":"Schema's","on_demand_pricing_list.category_fallback_title":"Items","on_demand_pricing_row.add_to_cart_button_label":"Aan winkelwagen toevoegen","on_demand_pricing_row.one_off_label":"eenmalig","on_demand_pricing_row.remove_button_label":"Verwijderen","pay_button.label.amount_and_payment_method":"Betaal {amount} met {type}","pay_button.label.amount_only":"Betaal {amount}","pay_button.label.default":"Betalen","pay_invoice.error.description":"Probeer het opnieuw of neem contact op met de klantenservice.","pay_invoice.error.title":"Er is iets misgegaan","pay_invoice.paid.title":"Bedankt voor je betaling!","pay_invoice.payment_methods.title":"Betaalmethoden","payment_completed_card.redirect_message":"Je wordt doorgestuurd...","payment_completed_card.title.authorize":"Betaling geslaagd","payment_completed_card.title.tokenize":"Je betaalmethode is toegevoegd","payment_integration_form.select_payment_method_error":"Selecteer een betaalmethode","payment_method.context_menu.delete.label":"Verwijderen","payment_method.context_menu.set_as_default.label":"Instellen als standaard","payment_method_selector.add_payment_method":"Betaalmethode toevoegen","payment_method_selector.no_payment_methods_available":"Er zijn geen beschikbare betaalmethoden. Neem contact op met de ondersteuning voor meer informatie.","payment_methods_list.delete_modal.body":"Weet u zeker dat u deze betaalmethode wilt verwijderen?","payment_methods_list.delete_modal.cancel":"Annuleren","payment_methods_list.delete_modal.confirm":"Verwijderen","payment_methods_list.delete_modal.title":"Betaalmethode verwijderen","payments.retry_button.label":"Opnieuw proberen","pricing_group_multiple_editor.at_least_one_description":"Selecteer minimaal één product",pricing_item_pricing:e,"pricing_item_pricing.flat_top_up":"Flat top-up prijs","pricing_item_pricing.none":"Niet gefactureerd","pricing_item_pricing.pass_through":"Doorberekeningsprijs","pricing_item_pricing.per_seat":"Per gebruiker","pricing_item_pricing.stair_step":"Staffelprijzen","pricing_item_pricing.tiered":"Tariefschalen","pricing_item_pricing.tiered_top_up":"Tariefschalen met top-up","pricing_item_pricing.top_tiered":"Top-tier prijs","pricing_item_pricing.unsupported_pricing_error":"Niet-ondersteunde prijsstelling","screens.payment_method_management.description":"Voeg een nieuwe betaalmethode toe of stel een standaard betaalmethode in voor uw betalingen.","screens.payment_method_management.title":"Betaalmethoden","sdk.invoice_details.customer_billing_information.title":"Jouw factuur gegevens","sdk.invoice_details.invoice.download_pdf":"Download de PDF voor een volledig overzicht","sdk.invoice_details.invoice.title":"Factuur","sdk.invoice_details.invoice_details_block.due_date":"Vervaldatum","sdk.invoice_details.invoice_details_block.invoice_date":"Factuurdatum","sdk.invoice_details.invoice_details_block.title":"Factuurgegevens","sdk.invoice_details.payment_history.payment_attempt":"Betaalpoging","sdk.invoice_details.payment_history.title":"Betaalgeschiedenis","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":"Staffelprijzen","seats.tiered_range_label":"{lower_bound} - {upper_bound} seats","seats.tiered_unbounded_range_label":"> {lower_bound} seats","secure_payments_kpi.generic":"Veilige en versleutelde betalingen","secure_payments_kpi.specific_vendor":"Veilige en versleutelde betalingen door","subscription_details.cancel_button.label":"Abonnement opzeggen","subscription_details.empty_state.message":"Dit abonnement is niet langer beschikbaar.","subscription_details.empty_state.title":"Abonnement niet gevonden","subscription_details.load_error":"Dit abonnement kon niet worden geladen. Probeer het later opnieuw.","subscription_details.renew_button.label":"Abonnement verlengen","subscription_details.title":"Abonnementsdetails","subscription_management.kpi.encrypted_payments.label":"Veilige en versleutelde betalingen","subscription_management.done_button.label":"Klaar","subscription_management.order_summary.empty_state":"Selecteer items om de prijzen te zien.","subscription_management.order_summary.item_count":"{count} items","subscription_management.order_summary.one_off_label":"eenmalig","subscription_management.order_summary.selected_item_count":"{count} items","subscription_management.order_summary.selected_items_title":"Geselecteerde items","subscription_management.order_summary.subtotal_label":"Totaal exclusief belasting","subscription_management.order_summary.taxes_label":"Belasting","subscription_management.order_summary.title":"Besteloverzicht","subscription_management.order_summary.total_label":"Vandaag te betalen","subscription_management.payment_method_selector.label":"Betaalmethode","subscription_management.payment_picker.all_title":"Alle betaalmethoden","subscription_management.payment_picker.saved_title":"Opgeslagen betaalmethoden","subscription_management.pricing_row.add_button_label":"Aan winkelwagen toevoegen","subscription_management.pricing_row.one_off_label":"eenmalig","subscription_management.pricing_row.remove_button_label":"Verwijderen","subscription_management.success.message":"Je {subject} is gewijzigd. Houd er rekening mee dat het even kan duren voordat deze wijziging in je abonnement te zien is.","subscription_management.success.message_generic":"Je abonnement is gewijzigd. Houd er rekening mee dat het even kan duren voordat deze wijziging in je abonnement te zien is.","subscription_management.success.title":"Abonnement bijgewerkt","subscription_management.summary.empty_state":"Kies je plan om te zien wat het kost.","subscription_management.summary.error":"Het totaal kon niet worden berekend. Probeer het opnieuw.","subscription_management.summary.title":"Besteloverzicht","subscription_management.summary.total_due_heading":"Totaal te betalen","subscription_management.title":"{subject} beheren","subscription_management.title.default_subject":"abonnement","subscription_management.update_button.label":"Abonnement bijwerken","subscription_management.update_error":"Er is iets misgegaan. Probeer het opnieuw.","subscription_payment_completed_card.thank_you_for_subscribing":"Bedankt voor je abonnement.","subscription_payment_completed_card.title":"Betaling geslaagd","tax_check.invalid_vat_number":"BTW-nummer is ongeldig.","tax_check.valid_vat_number":"BTW-nummer is geldig.","topup_modal.add_payment_method.subtitle":"Voeg een nieuwe betaalmethode toe om je saldo op te waarderen.","topup_modal.add_payment_method.title":"Betaalmethode toevoegen","topup_modal.back_button.label":"Terug","topup_modal.cancel_button.label":"Annuleren","topup_modal.confirm_button.empty.label":"Saldo opwaarderen","topup_modal.confirm_button.label":"Saldo opwaarderen met {value}","topup_modal.done_button.label":"Klaar","topup_modal.flexible_option.bounds":"Tussen {minimum} en {maximum}","topup_modal.flexible_option.label":"Kies je eigen bedrag","topup_modal.payment_method_selector.label":"Betaalmethode","topup_modal.pricing_items.label":"Selecteer opwaardeerbedrag","topup_modal.save_payment_method.label":"Betaalmethode opslaan","topup_modal.subtitle":"Je huidige saldo is {balance}.","topup_modal.success.added":"Je saldo is opgewaardeerd met {value}. Houd er rekening mee dat het even kan duren voordat deze wijziging in je wallet te zien is.","topup_modal.success.modal_subtitle":"Je betaling is gelukt.","topup_modal.success.modal_title":"Opwaardering voltooid","topup_modal.success.receipt.heading":"Bon","topup_modal.success.title":"Top-up geslaagd","topup_modal.title":"Saldo opwaarderen","wallet_balance.credit_type_fallback_label":"Tegoed","wallet_balance.details.header":"Walletsaldo","wallet_balance.load_failed":"Walletsaldi konden niet worden geladen","wallet_balance.service_period_heading":"Serviceperiode - {startAt} - {endAt}"};exports.default=t,exports.empty_value_placeholder="-",exports.pricing_item_pricing=e;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
const empty_value_placeholder = "-";
|
|
2
2
|
const pricing_item_pricing = "{pricing} per {billing_period}";
|
|
3
3
|
const nlNL = {
|
|
4
|
+
"add_payment_method_modal.cancel_button.label": "Annuleren",
|
|
5
|
+
"add_payment_method_modal.confirm_button.label": "Betaalmethode opslaan",
|
|
6
|
+
"add_payment_method_modal.subtitle": "Voeg een nieuwe betaalmethode toe om mee te betalen.",
|
|
7
|
+
"add_payment_method_modal.title": "Betaalmethode toevoegen",
|
|
4
8
|
"addon_multiple_editor.add_to_subscription_button": "Toevoegen aan abonnement",
|
|
5
9
|
"addon_multiple_editor.description": "Selecteer een of meer producten",
|
|
6
10
|
"addon_multiple_editor.unsupported_pricing_error": "Niet-ondersteunde prijsstelling",
|
|
@@ -51,8 +55,8 @@ const nlNL = {
|
|
|
51
55
|
"checkout.order_summary_block.billing_period.sub_label": "{amount} per {period}",
|
|
52
56
|
"checkout.order_summary_block.title": "Besteloverzicht",
|
|
53
57
|
"checkout.page_title": "Betalen en abonneren",
|
|
54
|
-
"checkout.pay_and_subscribe_button_trial.label": "Proefperiode starten",
|
|
55
58
|
"checkout.pay_and_subscribe_button.label": "Betalen en abonneren",
|
|
59
|
+
"checkout.pay_and_subscribe_button_trial.label": "Proefperiode starten",
|
|
56
60
|
"checkout.payment_method_block.no_country_selected_message": "Betaalmethoden worden getoond zodra je het factuurland hebt geselecteerd.",
|
|
57
61
|
"checkout.payment_method_block.no_country_selected_title": "Selecteer je factuurland",
|
|
58
62
|
"checkout.payment_method_block.no_payment_methods_available_message": "Er zijn geen beschikbare betaalmethoden. Neem contact op met de ondersteuning voor meer informatie.",
|
|
@@ -71,12 +75,16 @@ const nlNL = {
|
|
|
71
75
|
"checkout.promotion_code.remove_failed": "Promotiecode kon niet worden verwijderd. Probeer het opnieuw.",
|
|
72
76
|
"checkout.promotion_code.removed_status": "Promotiecode verwijderd",
|
|
73
77
|
"checkout.subscription_description": "Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, vanaf vandaag.",
|
|
74
|
-
"checkout.trial_period_description": "Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, startend op {startDate, date, long}.",
|
|
75
78
|
"checkout.trial.label": "Proefperiode",
|
|
79
|
+
"checkout.trial_period_description": "Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, startend op {startDate, date, long}.",
|
|
76
80
|
"checkout.vat_number.check_button.label": "Controleren",
|
|
77
81
|
"checkout.vat_number.label": "BTW-nummer",
|
|
78
82
|
"checkout.vat_number.placeholder": "BTW-nummer...",
|
|
79
83
|
"components.payment_method_form.section_title": "Beschikbare betaalmethoden",
|
|
84
|
+
"components.payment_method_form.submit_button.label": "Betaalmethode opslaan",
|
|
85
|
+
"customer.invoice_table.pay_invoice_button.label": "Betalen",
|
|
86
|
+
"customer.subscriptions_block.next_billing_date": "Volgende factuurdatum",
|
|
87
|
+
"customer.subscriptions_block.show_details_button_label": "Abonnementsdetails",
|
|
80
88
|
"customer_invoices.load_failed.subtitle": "Vernieuw de pagina of neem contact op met de ondersteuning.",
|
|
81
89
|
"customer_invoices.load_failed.title": "We kunnen je facturen niet laden",
|
|
82
90
|
"customer_overview.billing_information_block.load_failed.subtitle": "Vernieuw de pagina of neem contact op met de ondersteuning.",
|
|
@@ -87,12 +95,12 @@ const nlNL = {
|
|
|
87
95
|
"customer_overview.invoices_block.no_invoices_title": "Geen facturen om weer te geven",
|
|
88
96
|
"customer_overview.invoices_block.title": "Facturen",
|
|
89
97
|
"customer_overview.invoices_block.view_all_invoices_link_label": "Alles weergeven",
|
|
98
|
+
"customer_overview.payment_methods.title": "{count,plural,one{Betaalmethode} other{Betaalmethoden}}",
|
|
90
99
|
"customer_overview.payment_methods_block.add_payment_method_button_label": "Betaalmethode toevoegen",
|
|
91
100
|
"customer_overview.payment_methods_block.add_payment_method_helper_text": "Voeg een betaalmethode toe voor terugkerende factuurbetalingen.",
|
|
92
101
|
"customer_overview.payment_methods_block.load_failed.subtitle": "Vernieuw de pagina of neem contact op met de ondersteuning.",
|
|
93
102
|
"customer_overview.payment_methods_block.load_failed.title": "We kunnen je betaalmethoden niet laden",
|
|
94
103
|
"customer_overview.payment_methods_block.view_all_payment_methods_link_label": "Alles weergeven",
|
|
95
|
-
"customer_overview.payment_methods.title": "{count,plural,one{Betaalmethode} other{Betaalmethoden}}",
|
|
96
104
|
"customer_overview.subscriptions_block.fallback_subscription_name": "Abonnement",
|
|
97
105
|
"customer_overview.subscriptions_block.load_failed.subtitle": "Vernieuw de pagina of neem contact op met de ondersteuning.",
|
|
98
106
|
"customer_overview.subscriptions_block.load_failed.title": "We kunnen je abonnementen niet laden",
|
|
@@ -101,14 +109,11 @@ const nlNL = {
|
|
|
101
109
|
"customer_overview.subscriptions_block.title": "{count,plural,one{Mijn abonnement} other{Mijn abonnementen}}",
|
|
102
110
|
"customer_overview.subscriptions_block.view_all_button_label": "Alles weergeven",
|
|
103
111
|
"customer_overview.wallet_balances_block.title": "{count,plural,one{Wallet} other{Wallets}}",
|
|
104
|
-
"customer.invoice_table.pay_invoice_button.label": "Betalen",
|
|
105
|
-
"customer.subscriptions_block.cancel_button_label": "Abonnement opzeggen",
|
|
106
|
-
"customer.subscriptions_block.next_billing_date": "Volgende factuurdatum",
|
|
107
|
-
"customer.subscriptions_block.renew_button_label": "Abonnement verlengen",
|
|
108
|
-
"customer.subscriptions_block.show_details_button_label": "Abonnementsdetails",
|
|
109
|
-
"customer.subscriptions_block.upgrade_button_label": "Abonnement upgraden",
|
|
110
112
|
"empty_state.retry.button": "Vernieuwen",
|
|
111
113
|
empty_value_placeholder,
|
|
114
|
+
"enabled_pricings_list.item.price": "{amount} per {period}",
|
|
115
|
+
"enabled_pricings_list.item.upgrade_button.label": "Upgraden",
|
|
116
|
+
"enabled_pricings_list.title": "Upgrades",
|
|
112
117
|
"invoice_credits.balance.table_header": "Saldo",
|
|
113
118
|
"invoice_credits.credit_breakdown.table_header": "Kredietoverzicht",
|
|
114
119
|
"invoice_credits.remaining.table_header": "Resterend",
|
|
@@ -138,6 +143,8 @@ const nlNL = {
|
|
|
138
143
|
"payment_integration_form.select_payment_method_error": "Selecteer een betaalmethode",
|
|
139
144
|
"payment_method.context_menu.delete.label": "Verwijderen",
|
|
140
145
|
"payment_method.context_menu.set_as_default.label": "Instellen als standaard",
|
|
146
|
+
"payment_method_selector.add_payment_method": "Betaalmethode toevoegen",
|
|
147
|
+
"payment_method_selector.no_payment_methods_available": "Er zijn geen beschikbare betaalmethoden. Neem contact op met de ondersteuning voor meer informatie.",
|
|
141
148
|
"payment_methods_list.delete_modal.body": "Weet u zeker dat u deze betaalmethode wilt verwijderen?",
|
|
142
149
|
"payment_methods_list.delete_modal.cancel": "Annuleren",
|
|
143
150
|
"payment_methods_list.delete_modal.confirm": "Verwijderen",
|
|
@@ -157,11 +164,11 @@ const nlNL = {
|
|
|
157
164
|
"screens.payment_method_management.description": "Voeg een nieuwe betaalmethode toe of stel een standaard betaalmethode in voor uw betalingen.",
|
|
158
165
|
"screens.payment_method_management.title": "Betaalmethoden",
|
|
159
166
|
"sdk.invoice_details.customer_billing_information.title": "Jouw factuur gegevens",
|
|
167
|
+
"sdk.invoice_details.invoice.download_pdf": "Download de PDF voor een volledig overzicht",
|
|
168
|
+
"sdk.invoice_details.invoice.title": "Factuur",
|
|
160
169
|
"sdk.invoice_details.invoice_details_block.due_date": "Vervaldatum",
|
|
161
170
|
"sdk.invoice_details.invoice_details_block.invoice_date": "Factuurdatum",
|
|
162
171
|
"sdk.invoice_details.invoice_details_block.title": "Factuurgegevens",
|
|
163
|
-
"sdk.invoice_details.invoice.download_pdf": "Download de PDF voor een volledig overzicht",
|
|
164
|
-
"sdk.invoice_details.invoice.title": "Factuur",
|
|
165
172
|
"sdk.invoice_details.payment_history.payment_attempt": "Betaalpoging",
|
|
166
173
|
"sdk.invoice_details.payment_history.title": "Betaalgeschiedenis",
|
|
167
174
|
"seats.label": "Seats",
|
|
@@ -172,42 +179,67 @@ const nlNL = {
|
|
|
172
179
|
"seats.tiered_unbounded_range_label": "> {lower_bound} seats",
|
|
173
180
|
"secure_payments_kpi.generic": "Veilige en versleutelde betalingen",
|
|
174
181
|
"secure_payments_kpi.specific_vendor": "Veilige en versleutelde betalingen door",
|
|
182
|
+
"subscription_details.cancel_button.label": "Abonnement opzeggen",
|
|
183
|
+
"subscription_details.empty_state.message": "Dit abonnement is niet langer beschikbaar.",
|
|
184
|
+
"subscription_details.empty_state.title": "Abonnement niet gevonden",
|
|
185
|
+
"subscription_details.load_error": "Dit abonnement kon niet worden geladen. Probeer het later opnieuw.",
|
|
186
|
+
"subscription_details.renew_button.label": "Abonnement verlengen",
|
|
187
|
+
"subscription_details.title": "Abonnementsdetails",
|
|
188
|
+
"subscription_management.kpi.encrypted_payments.label": "Veilige en versleutelde betalingen",
|
|
189
|
+
"subscription_management.done_button.label": "Klaar",
|
|
190
|
+
"subscription_management.order_summary.empty_state": "Selecteer items om de prijzen te zien.",
|
|
191
|
+
"subscription_management.order_summary.item_count": "{count} items",
|
|
192
|
+
"subscription_management.order_summary.one_off_label": "eenmalig",
|
|
193
|
+
"subscription_management.order_summary.selected_item_count": "{count} items",
|
|
194
|
+
"subscription_management.order_summary.selected_items_title": "Geselecteerde items",
|
|
195
|
+
"subscription_management.order_summary.subtotal_label": "Totaal exclusief belasting",
|
|
196
|
+
"subscription_management.order_summary.taxes_label": "Belasting",
|
|
197
|
+
"subscription_management.order_summary.title": "Besteloverzicht",
|
|
198
|
+
"subscription_management.order_summary.total_label": "Vandaag te betalen",
|
|
199
|
+
"subscription_management.payment_method_selector.label": "Betaalmethode",
|
|
200
|
+
"subscription_management.payment_picker.all_title": "Alle betaalmethoden",
|
|
201
|
+
"subscription_management.payment_picker.saved_title": "Opgeslagen betaalmethoden",
|
|
202
|
+
"subscription_management.pricing_row.add_button_label": "Aan winkelwagen toevoegen",
|
|
203
|
+
"subscription_management.pricing_row.one_off_label": "eenmalig",
|
|
204
|
+
"subscription_management.pricing_row.remove_button_label": "Verwijderen",
|
|
205
|
+
"subscription_management.success.message": "Je {subject} is gewijzigd. Houd er rekening mee dat het even kan duren voordat deze wijziging in je abonnement te zien is.",
|
|
206
|
+
"subscription_management.success.message_generic": "Je abonnement is gewijzigd. Houd er rekening mee dat het even kan duren voordat deze wijziging in je abonnement te zien is.",
|
|
207
|
+
"subscription_management.success.title": "Abonnement bijgewerkt",
|
|
208
|
+
"subscription_management.summary.empty_state": "Kies je plan om te zien wat het kost.",
|
|
209
|
+
"subscription_management.summary.error": "Het totaal kon niet worden berekend. Probeer het opnieuw.",
|
|
210
|
+
"subscription_management.summary.title": "Besteloverzicht",
|
|
211
|
+
"subscription_management.summary.total_due_heading": "Totaal te betalen",
|
|
212
|
+
"subscription_management.title": "{subject} beheren",
|
|
213
|
+
"subscription_management.title.default_subject": "abonnement",
|
|
214
|
+
"subscription_management.update_button.label": "Abonnement bijwerken",
|
|
215
|
+
"subscription_management.update_error": "Er is iets misgegaan. Probeer het opnieuw.",
|
|
175
216
|
"subscription_payment_completed_card.thank_you_for_subscribing": "Bedankt voor je abonnement.",
|
|
176
217
|
"subscription_payment_completed_card.title": "Betaling geslaagd",
|
|
177
218
|
"tax_check.invalid_vat_number": "BTW-nummer is ongeldig.",
|
|
178
219
|
"tax_check.valid_vat_number": "BTW-nummer is geldig.",
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"upgrade_subscription.pricing_row.one_off_label": "eenmalig",
|
|
199
|
-
"upgrade_subscription.pricing_row.remove_button_label": "Verwijderen",
|
|
200
|
-
"upgrade_subscription.purchase_button.label": "Kopen",
|
|
201
|
-
"upgrade_subscription.purchase_error": "Er is iets misgegaan. Probeer het opnieuw.",
|
|
202
|
-
"upgrade_subscription.success.redirect": "Je wordt zo doorgestuurd",
|
|
203
|
-
"upgrade_subscription.success.subtitle": "Je aankoop is voltooid.",
|
|
204
|
-
"upgrade_subscription.success.title": "Betaling geslaagd",
|
|
205
|
-
"upgrade_subscription.title": "Abonnement upgraden",
|
|
220
|
+
"topup_modal.add_payment_method.subtitle": "Voeg een nieuwe betaalmethode toe om je saldo op te waarderen.",
|
|
221
|
+
"topup_modal.add_payment_method.title": "Betaalmethode toevoegen",
|
|
222
|
+
"topup_modal.back_button.label": "Terug",
|
|
223
|
+
"topup_modal.cancel_button.label": "Annuleren",
|
|
224
|
+
"topup_modal.confirm_button.empty.label": "Saldo opwaarderen",
|
|
225
|
+
"topup_modal.confirm_button.label": "Saldo opwaarderen met {value}",
|
|
226
|
+
"topup_modal.done_button.label": "Klaar",
|
|
227
|
+
"topup_modal.flexible_option.bounds": "Tussen {minimum} en {maximum}",
|
|
228
|
+
"topup_modal.flexible_option.label": "Kies je eigen bedrag",
|
|
229
|
+
"topup_modal.payment_method_selector.label": "Betaalmethode",
|
|
230
|
+
"topup_modal.pricing_items.label": "Selecteer opwaardeerbedrag",
|
|
231
|
+
"topup_modal.save_payment_method.label": "Betaalmethode opslaan",
|
|
232
|
+
"topup_modal.subtitle": "Je huidige saldo is {balance}.",
|
|
233
|
+
"topup_modal.success.added": "Je saldo is opgewaardeerd met {value}. Houd er rekening mee dat het even kan duren voordat deze wijziging in je wallet te zien is.",
|
|
234
|
+
"topup_modal.success.modal_subtitle": "Je betaling is gelukt.",
|
|
235
|
+
"topup_modal.success.modal_title": "Opwaardering voltooid",
|
|
236
|
+
"topup_modal.success.receipt.heading": "Bon",
|
|
237
|
+
"topup_modal.success.title": "Top-up geslaagd",
|
|
238
|
+
"topup_modal.title": "Saldo opwaarderen",
|
|
206
239
|
"wallet_balance.credit_type_fallback_label": "Tegoed",
|
|
207
240
|
"wallet_balance.details.header": "Walletsaldo",
|
|
208
241
|
"wallet_balance.load_failed": "Walletsaldi konden niet worden geladen",
|
|
209
|
-
"wallet_balance.service_period_heading": "Serviceperiode - {startAt} - {endAt}"
|
|
210
|
-
"wallet_balance.wallet_ballance_title": "Saldo"
|
|
242
|
+
"wallet_balance.service_period_heading": "Serviceperiode - {startAt} - {endAt}"
|
|
211
243
|
};
|
|
212
244
|
export {
|
|
213
245
|
nlNL as default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=require("./vendor-ui-
|
|
1
|
+
const t=require("./vendor-ui-BuRqLx74.js"),e=require("./component-CiKxWtdx.js");exports.createPaymentMethodsService=function(){const n=e.createRequestService(),o=e.useConfig(),r="/portal/payment-methods";return{getPaymentMethods:function({customerId:e,pagination:i,query:a}){const s=t.withPagination({customer_id:e,...a??{}},i),u=new URL(`${o.apiUrls.config}${r}`);return Object.entries(s).forEach(([t,e])=>{null!=e&&(Array.isArray(e)?e.forEach(e=>{u.searchParams.append(`${t}[]`,`${e}`)}):u.searchParams.append(t,`${e}`))}),n({url:u.toString(),isCollection:!0})},getPaymentMethodOptions:function({customerId:t,country:e,subscriptionId:r,amount:i}){return n({url:`${o.apiUrls.config}/portal/payment-method-options`,options:{method:"POST"},data:{...t&&{customer_id:t},...e&&{country:e},...r&&{pricing_plan_subscription_id:r},amount:i}})},tokenizePaymentMethod:function(t){return n({url:`${o.apiUrls.config}/portal/payment-methods/tokenize`,options:{method:"POST"},data:t})},setDefaultPaymentMethod:function({paymentMethodId:t}){return n({url:`${o.apiUrls.config}${r}/${t}`,options:{method:"PATCH"},data:{is_default:!0}})}}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as withPagination } from "./vendor-ui-
|
|
2
|
-
import { c as createRequestService, u as useConfig } from "./component-
|
|
1
|
+
import { a as withPagination } from "./vendor-ui-BoGKOJ36.mjs";
|
|
2
|
+
import { c as createRequestService, u as useConfig } from "./component-CUJ_G2Nw.mjs";
|
|
3
3
|
function createPaymentMethodsService() {
|
|
4
4
|
const request = createRequestService();
|
|
5
5
|
const config = useConfig();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=require("./component-
|
|
1
|
+
const t=require("./component-CiKxWtdx.js"),e="/portal/payments";exports.createPaymentsService=()=>{const a=t.createRequestService(),n=t.useConfig();return{getPayments:function(t){return a({url:`${n.apiUrls.transaction}${e}`,query:{invoice_id:t},isCollection:!0})},getPaymentDetails:function({paymentAcceptorId:t,paymentGatewayVariant:r,adyen:i}){return a({url:`${n.apiUrls.transaction}${e}/verify-details`,options:{method:"POST"},data:{payment_acceptor_id:t,payment_gateway_variant:r,adyen:i}})},authorizePayment:function(t){return a({url:`${n.apiUrls.transaction}${e}/authorize`,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-CUJ_G2Nw.mjs";
|
|
2
2
|
const BASE_URL = "/portal/payments";
|
|
3
3
|
const createPaymentsService = () => {
|
|
4
4
|
const request = createRequestService();
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { i as isEmpty } from "./vendor-ui-BoGKOJ36.mjs";
|
|
2
|
+
function getAllPricingsFromScheduleInfos(scheduleInfos) {
|
|
3
|
+
return scheduleInfos.flatMap(
|
|
4
|
+
(scheduleInfo) => {
|
|
5
|
+
var _a;
|
|
6
|
+
return ((_a = scheduleInfo.pricing_plan_version.pricing_categories) == null ? void 0 : _a.flatMap(
|
|
7
|
+
(category) => category.pricings ?? []
|
|
8
|
+
)) ?? [];
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
function getNameFromPricing(pricing) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
return !isEmpty(pricing.name) ? pricing.name : (_b = (_a = pricing.products) == null ? void 0 : _a[0]) == null ? void 0 : _b.name;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
getAllPricingsFromScheduleInfos as a,
|
|
18
|
+
getNameFromPricing as g
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const n=require("./vendor-ui-BuRqLx74.js");exports.getAllPricingsFromScheduleInfos=function(n){return n.flatMap(n=>{var r;return(null==(r=n.pricing_plan_version.pricing_categories)?void 0:r.flatMap(n=>n.pricings??[]))??[]})},exports.getNameFromPricing=function(r){var i,e;return n.isEmpty(r.name)?null==(e=null==(i=r.products)?void 0:i[0])?void 0:e.name:r.name};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function i({pricingPlanScheduleInfos:i,type:n}){return(i??[]).find(i=>{var r;return((null==(r=i.pricing_plan_schedule)?void 0:r.type)??i.type)===n})}const n=i=>{var n;return Date.parse(i.start_at??(null==(n=i.pricing_plan_schedule)?void 0:n.start_at))};function r(i){const r=Date.now();return i.filter(i=>{const e=i.pricing_plan_schedule,l=(null==e?void 0:e.type)??i.type,c=n(i),o=i.end_at??(null==e?void 0:e.end_at),t=o?Date.parse(o):void 0,u=Number.isFinite(c)&&c<=r,a=void 0===t||!Number.isFinite(t)||t>r;return"DEFAULT"===l&&u&&a}).sort((i,r)=>n(r)-n(i)).at(0)}exports.getActiveDefaultScheduleId=function(i){var n;return null==(n=r(i.flatMap(({pricing_plan_schedule_infos:i})=>i??[])))?void 0:n.id},exports.getActiveDefaultScheduleInfo=r,exports.getFirstPricingPlanScheduleOfType=i,exports.getPricingGroupByPricingId=function({pricingPlanScheduleInfo:i,pricingId:n}){var r;return((null==(r=i.pricing_plan_version)?void 0:r.pricing_categories)??[]).flatMap(i=>i.pricing_groups??[]).find(i=>(i.pricings??[]).some(i=>i.id===n))},exports.getPricingItemConfigMetaById=function({pricingPlanScheduleInfo:i}){const n=new Map;return(i.pricing_plan_version.pricing_categories??[]).forEach(i=>{var r;null==(r=i.pricings)||r.forEach(i=>{var r;null==(r=i.items)||r.forEach(i=>{var r,e,l;null==(r=i.billing_period_configs)||r.forEach(i=>{var r;null==(r=i.configs)||r.forEach(r=>{var e,l,c,o;if(r.id){const t=null==(o=null==(c=null==(l=null==(e=r.details)?void 0:e.bands)?void 0:l.find(i=>{var n;return null==(n=i.amount)?void 0:n.currency}))?void 0:c.amount)?void 0:o.currency;n.set(r.id,{...t&&{currency:t},billingPeriod:i.billing_period})}})}),null==(e=i.configs)||e.forEach(i=>{var r,e,l,c;if(i.id){const o=null==(c=null==(l=null==(e=null==(r=i.details)?void 0:r.bands)?void 0:e.find(i=>{var n;return null==(n=i.amount)?void 0:n.currency}))?void 0:l.amount)?void 0:c.currency;n.set(i.id,{...o&&{currency:o}})}}),null==(l=i.pricing_currency_configs)||l.forEach(i=>{var r,e;const l=i.currency;null==(r=i.billing_period_configs)||r.forEach(i=>{var r;null==(r=i.configs)||r.forEach(r=>{r.id&&n.set(r.id,{currency:l,billingPeriod:i.billing_period})})}),null==(e=i.configs)||e.forEach(i=>{i.id&&n.set(i.id,{currency:l})})})})})}),n},exports.getScheduleCustomizations=function({enabledPricings:n,seatsValues:r,pricingPlanScheduleInfos:e,pricingCurrency:l,billingPeriod:c}){const o=i({pricingPlanScheduleInfos:e,type:"DEFAULT"});if(o&&(n||r))return[{pricing_plan_schedule_id:o.id,enabled_pricings:n,seats_values:null==r?void 0:r.map(({pricing_item_config_id:i,number:n})=>({pricing_item_config_id:i,number:n})),...l&&{pricing_currency:l},...c&&{billing_period:c}}]};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
function getFirstPricingPlanScheduleOfType({
|
|
2
|
+
pricingPlanScheduleInfos,
|
|
3
|
+
type
|
|
4
|
+
}) {
|
|
5
|
+
return (pricingPlanScheduleInfos ?? []).find(
|
|
6
|
+
(scheduleInfo) => {
|
|
7
|
+
var _a;
|
|
8
|
+
return (((_a = scheduleInfo.pricing_plan_schedule) == null ? void 0 : _a.type) ?? scheduleInfo.type) === type;
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
function getActiveDefaultScheduleId(subscriptions) {
|
|
13
|
+
var _a;
|
|
14
|
+
return (_a = getActiveDefaultScheduleInfo(
|
|
15
|
+
subscriptions.flatMap(({ pricing_plan_schedule_infos }) => pricing_plan_schedule_infos ?? [])
|
|
16
|
+
)) == null ? void 0 : _a.id;
|
|
17
|
+
}
|
|
18
|
+
const getStartAt = (scheduleInfo) => {
|
|
19
|
+
var _a;
|
|
20
|
+
return Date.parse(scheduleInfo.start_at ?? ((_a = scheduleInfo.pricing_plan_schedule) == null ? void 0 : _a.start_at));
|
|
21
|
+
};
|
|
22
|
+
function getActiveDefaultScheduleInfo(scheduleInfos) {
|
|
23
|
+
const now = Date.now();
|
|
24
|
+
return scheduleInfos.filter((scheduleInfo) => {
|
|
25
|
+
const schedule = scheduleInfo.pricing_plan_schedule;
|
|
26
|
+
const type = (schedule == null ? void 0 : schedule.type) ?? scheduleInfo.type;
|
|
27
|
+
const startAt = getStartAt(scheduleInfo);
|
|
28
|
+
const endAtValue = scheduleInfo.end_at ?? (schedule == null ? void 0 : schedule.end_at);
|
|
29
|
+
const endAt = endAtValue ? Date.parse(endAtValue) : void 0;
|
|
30
|
+
const hasStarted = Number.isFinite(startAt) && startAt <= now;
|
|
31
|
+
const hasNotEnded = endAt === void 0 || !Number.isFinite(endAt) || endAt > now;
|
|
32
|
+
return type === "DEFAULT" && hasStarted && hasNotEnded;
|
|
33
|
+
}).sort((a, b) => getStartAt(b) - getStartAt(a)).at(0);
|
|
34
|
+
}
|
|
35
|
+
function getPricingGroupByPricingId({
|
|
36
|
+
pricingPlanScheduleInfo,
|
|
37
|
+
pricingId
|
|
38
|
+
}) {
|
|
39
|
+
var _a;
|
|
40
|
+
return (((_a = pricingPlanScheduleInfo.pricing_plan_version) == null ? void 0 : _a.pricing_categories) ?? []).flatMap((category) => category.pricing_groups ?? []).find((group) => (group.pricings ?? []).some((pricing) => pricing.id === pricingId));
|
|
41
|
+
}
|
|
42
|
+
function getPricingItemConfigMetaById({
|
|
43
|
+
pricingPlanScheduleInfo
|
|
44
|
+
}) {
|
|
45
|
+
const metaById = /* @__PURE__ */ new Map();
|
|
46
|
+
const categories = pricingPlanScheduleInfo.pricing_plan_version.pricing_categories ?? [];
|
|
47
|
+
categories.forEach((category) => {
|
|
48
|
+
var _a;
|
|
49
|
+
(_a = category.pricings) == null ? void 0 : _a.forEach((pricing) => {
|
|
50
|
+
var _a2;
|
|
51
|
+
(_a2 = pricing.items) == null ? void 0 : _a2.forEach((item) => {
|
|
52
|
+
var _a3, _b, _c;
|
|
53
|
+
(_a3 = item.billing_period_configs) == null ? void 0 : _a3.forEach((billingConfig) => {
|
|
54
|
+
var _a4;
|
|
55
|
+
(_a4 = billingConfig.configs) == null ? void 0 : _a4.forEach((config) => {
|
|
56
|
+
var _a5, _b2, _c2, _d;
|
|
57
|
+
if (config.id) {
|
|
58
|
+
const currency = (_d = (_c2 = (_b2 = (_a5 = config.details) == null ? void 0 : _a5.bands) == null ? void 0 : _b2.find(
|
|
59
|
+
(band) => {
|
|
60
|
+
var _a6;
|
|
61
|
+
return (_a6 = band.amount) == null ? void 0 : _a6.currency;
|
|
62
|
+
}
|
|
63
|
+
)) == null ? void 0 : _c2.amount) == null ? void 0 : _d.currency;
|
|
64
|
+
metaById.set(config.id, {
|
|
65
|
+
...currency && { currency },
|
|
66
|
+
billingPeriod: billingConfig.billing_period
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
(_b = item.configs) == null ? void 0 : _b.forEach((config) => {
|
|
72
|
+
var _a4, _b2, _c2, _d;
|
|
73
|
+
if (config.id) {
|
|
74
|
+
const currency = (_d = (_c2 = (_b2 = (_a4 = config.details) == null ? void 0 : _a4.bands) == null ? void 0 : _b2.find(
|
|
75
|
+
(band) => {
|
|
76
|
+
var _a5;
|
|
77
|
+
return (_a5 = band.amount) == null ? void 0 : _a5.currency;
|
|
78
|
+
}
|
|
79
|
+
)) == null ? void 0 : _c2.amount) == null ? void 0 : _d.currency;
|
|
80
|
+
metaById.set(config.id, {
|
|
81
|
+
...currency && { currency }
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
(_c = item.pricing_currency_configs) == null ? void 0 : _c.forEach((currencyConfig) => {
|
|
86
|
+
var _a4, _b2;
|
|
87
|
+
const currency = currencyConfig.currency;
|
|
88
|
+
(_a4 = currencyConfig.billing_period_configs) == null ? void 0 : _a4.forEach((billingConfig) => {
|
|
89
|
+
var _a5;
|
|
90
|
+
(_a5 = billingConfig.configs) == null ? void 0 : _a5.forEach((config) => {
|
|
91
|
+
if (config.id) {
|
|
92
|
+
metaById.set(config.id, {
|
|
93
|
+
currency,
|
|
94
|
+
billingPeriod: billingConfig.billing_period
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
(_b2 = currencyConfig.configs) == null ? void 0 : _b2.forEach((config) => {
|
|
100
|
+
if (config.id) {
|
|
101
|
+
metaById.set(config.id, { currency });
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
return metaById;
|
|
109
|
+
}
|
|
110
|
+
function getScheduleCustomizations({
|
|
111
|
+
enabledPricings,
|
|
112
|
+
seatsValues,
|
|
113
|
+
pricingPlanScheduleInfos,
|
|
114
|
+
pricingCurrency,
|
|
115
|
+
billingPeriod
|
|
116
|
+
}) {
|
|
117
|
+
const subscriptionSchedule = getFirstPricingPlanScheduleOfType({
|
|
118
|
+
pricingPlanScheduleInfos,
|
|
119
|
+
type: "DEFAULT"
|
|
120
|
+
});
|
|
121
|
+
if (!subscriptionSchedule || !enabledPricings && !seatsValues) {
|
|
122
|
+
return void 0;
|
|
123
|
+
}
|
|
124
|
+
return [
|
|
125
|
+
{
|
|
126
|
+
pricing_plan_schedule_id: subscriptionSchedule.id,
|
|
127
|
+
enabled_pricings: enabledPricings,
|
|
128
|
+
seats_values: seatsValues == null ? void 0 : seatsValues.map(({ pricing_item_config_id, number }) => ({
|
|
129
|
+
pricing_item_config_id,
|
|
130
|
+
number
|
|
131
|
+
})),
|
|
132
|
+
...pricingCurrency && { pricing_currency: pricingCurrency },
|
|
133
|
+
...billingPeriod && { billing_period: billingPeriod }
|
|
134
|
+
}
|
|
135
|
+
];
|
|
136
|
+
}
|
|
137
|
+
export {
|
|
138
|
+
getActiveDefaultScheduleId as a,
|
|
139
|
+
getScheduleCustomizations as b,
|
|
140
|
+
getActiveDefaultScheduleInfo as c,
|
|
141
|
+
getPricingGroupByPricingId as d,
|
|
142
|
+
getPricingItemConfigMetaById as e,
|
|
143
|
+
getFirstPricingPlanScheduleOfType as g
|
|
144
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./components/PaymentMethodForm/PaymentMethodForm.cjs.js"),n=require("./screens/CustomerOverview/CustomerOverview.cjs.js"),o=require("./screens/Checkout/Checkout.cjs.js"),i=require("./screens/SubscriptionManagement/SubscriptionManagement.cjs.js"),t=require("./screens/SubscriptionDetails/SubscriptionDetails.cjs.js"),s=require("./screens/PayInvoice/PayInvoice.cjs.js"),r=require("./screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js"),c=require("./components/Invoice/Invoice.cjs.js"),m=require("./components/InvoiceHeader/InvoiceHeader.cjs.js"),a=require("./components/InvoiceDetails/InvoiceDetails.cjs.js"),u=require("./components/InvoicesList/InvoicesList.cjs.js"),l=require("./components/PaymentHistory/PaymentHistory.cjs.js"),v=require("./components/SubscriptionsList/SubscriptionsList.cjs.js"),d=require("./components/SubscriptionSchedules/SubscriptionSchedules.cjs.js"),p=require("./components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js"),f=require("./components/WalletBalances/WalletBalances.cjs.js"),j=require("./components/BillingInformation/BillingInformation.cjs.js"),S=require("./components/BillingInformationForm/BillingInformationForm.cjs.js"),h=require("./component-CiKxWtdx.js"),b={"customer-overview":n.defineSolvimonCustomerOverview,checkout:o.defineSolvimonCheckout,"subscription-management":i.defineSolvimonSubscriptionManagement,"subscription-details":t.defineSolvimonSubscriptionDetails,"pay-invoice":s.defineSolvimonPayInvoice,"payment-methods-management":r.defineSolvimonPaymentMethodsManagement},y={invoice:c.defineSolvimonInvoice,"invoice-header":m.defineSolvimonInvoiceHeader,"invoice-details":a.defineSolvimonInvoiceDetails,"invoices-list":u.defineSolvimonInvoicesList,"payment-history":l.defineSolvimonPaymentHistory,"subscriptions-list":v.defineSolvimonSubscriptionsList,"subscription-schedules":d.defineSolvimonSubscriptionSchedules,"customer-payment-methods":p.defineSolvimonCustomerPaymentMethods,"wallet-balances":f.defineSolvimonWalletBalances,"billing-information":j.defineSolvimonBillingInformation,"billing-information-form":S.defineSolvimonBillingInformationForm,"payment-method-form":e.defineSolvimonPaymentMethodForm};function g(e,n){const o="screen"===n?(i=e,Object.hasOwn(b,i)&&b[e]):function(e){return Object.hasOwn(y,e)}(e)&&y[e];var i;if(!o)throw new Error(`Solvimon: unknown ${n} id "${e}". Registered ${n}s: ${Object.keys("screen"===n?b:y).join(", ")}.`);o()}function I(e,n,o,i){const t=function(e){if("string"==typeof e){const n=document.querySelector(e);if(!n)throw new Error(`Solvimon: container not found for selector "${e}"`);return n}return e}(e);g(n,o);const s=(r=n,h.getComponentName(r));var r;const c=document.createElement(s);return function(e,n){const o={};for(const[i,t]of Object.entries(n))void 0!==t&&(o[i]=t);Object.assign(e,o)}(c,i),t.appendChild(c),{unmount(){c.remove()}}}function q(e){const{container:n,...o}=e;return{container:n,props:Object.fromEntries(Object.entries(o))}}function M(e,n){return{...e,...n}}const P=["customer-overview","checkout","subscription-management","subscription-details","pay-invoice","payment-methods-management"],w=["invoice","invoice-header","invoice-details","invoices-list","payment-history","subscriptions-list","subscription-schedules","customer-payment-methods","wallet-balances","billing-information","billing-information-form","payment-method-form"];exports.createSolvimonCore=function(e={}){return{config:e,createComponent(n,o){const{container:i,props:t}=q(o);return I(i,n,"component",M(e,t)).unmount},createScreen(n,o){const{container:i,props:t}=q(o);return I(i,n,"screen",M(e,t)).unmount}}},exports.getRegisteredComponentIds=function(){return[...w]},exports.getRegisteredScreenIds=function(){return[...P]};
|