@solvimon/solvimon-web 0.1.0-alpha.7 → 0.1.0-alpha.9
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 +124 -0
- 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-CupcH8TZ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CX8vlY2Z.mjs} +6 -6
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DGisvmez.js +1 -0
- package/dist/ContentWithAsideLayout-B5B8Kwaw.js +1 -0
- package/dist/{ContentWithAsideLayout-Ct24RV-2.mjs → ContentWithAsideLayout-DhfUkZZg.mjs} +10 -16
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZJ0xukI.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bus-5gC3.mjs} +21 -13
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CkRsyMlJ.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Bc2hkpTb.mjs} +19 -9
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0vVUHuY.js +1 -0
- package/dist/PaymentHistoryBlock-BiiFJkpT.js +1 -0
- package/dist/PaymentHistoryBlock-D_B099M7.mjs +4 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CaMDtHrL.mjs} +16 -13
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DWTEfLrE.js +1 -0
- package/dist/PaymentIntegrationForm-D1oJA9mC.js +1 -0
- package/dist/PaymentIntegrationForm-DNkjhqMF.mjs +4 -0
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D37gDtY7.mjs} +95 -199
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D5bxFJ-p.js +1 -0
- package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-BChVMzCj.mjs} +5 -31
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Br3bEUlP.js +1 -0
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs → Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs} +9 -6
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-AHw3iTfi.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BkzLj8n2.mjs} +28 -22
- package/dist/adyen-B_QrYdaC.mjs +4 -0
- package/dist/adyen-Bwewy3HC.mjs +172 -0
- package/dist/adyen-R6aSZ0Yf.js +1 -0
- package/dist/adyen-mQEEOjgl.js +1 -0
- package/dist/adyen.css +1 -0
- package/dist/component-BOqPDAVk.js +1 -0
- package/dist/component-Djrf1L-Z.mjs +889 -0
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +8 -9
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +14 -18
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +10 -10
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +70 -2673
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +10 -10
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +7 -8
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +10 -10
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +16 -38
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +17 -4826
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +11 -11
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +9 -9
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +6 -2
- package/dist/{customer-CJrpbGX4.mjs → customer-B31QzznT.mjs} +1 -1
- package/dist/{customer-CcQR-JIm.js → customer-hDxW1Dbp.js} +1 -1
- package/dist/en-US-CgPY97Vq.js +1 -0
- package/dist/en-US-N3CUCsVy.mjs +179 -0
- package/dist/index-CzL1ZcGi.mjs +85 -0
- package/dist/index-DIFK3mcJ.js +6 -0
- package/dist/index-DRdBmZ2-.js +1 -0
- package/dist/index-DyvRdSR7.mjs +9673 -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-CNK1Ushv.mjs → invoices-DIYPN2j_.mjs} +2 -15
- package/dist/invoices-DzkA1jDc.js +1 -0
- package/dist/nl-NL-B8U9b85I.mjs +197 -0
- package/dist/nl-NL-qMRaTRrM.js +1 -0
- package/dist/{paymentMethods-C-ApE-G4.mjs → paymentMethods-67b3UlTZ.mjs} +2 -2
- package/dist/paymentMethods-C_sdTkSF.js +1 -0
- package/dist/{payments-CLt0SExf.js → payments-DkHhTHto.js} +1 -1
- package/dist/{payments-CE9U7aKK.mjs → payments-Dq6R37Fz.mjs} +1 -1
- package/dist/registry-BkViv4tv.js +1 -0
- package/dist/{registry-B99ZnfEn.mjs → registry-Df_26rJy.mjs} +6 -4
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +632 -2538
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +23 -17
- 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 +458 -0
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +147 -99
- package/dist/solvimon-web.css +1 -1
- package/dist/{subscriptions-CoeCrY1I.mjs → subscriptions-ClGIr_aS.mjs} +2 -2
- package/dist/subscriptions-jelITJcX.js +1 -0
- package/dist/{useActionDispatchProvider-eO2qFPGv.mjs → useActionDispatchProvider-BC57-Ufn.mjs} +1 -1
- package/dist/{useActionDispatchProvider-CWVV_xsi.js → useActionDispatchProvider-rw9kWeE0.js} +1 -1
- package/dist/{useCustomer--jycAz--.mjs → useCustomer-Ba9WRtuT.mjs} +2 -2
- package/dist/{useCustomer-PthyTFLl.js → useCustomer-CUcaeQn_.js} +1 -1
- package/dist/{useIncrementalLoading-CcnL3flF.mjs → useIncrementalLoading-Cnzh2mAz.mjs} +3 -8
- package/dist/useIncrementalLoading-DoTTXM2Y.js +1 -0
- package/dist/{useInvoiceData-BiMMoVoW.mjs → useInvoiceData-BJwwDur7.mjs} +6 -12
- package/dist/useInvoiceData-D2jkdmlA.js +1 -0
- package/dist/{useInvoicesList-DFhF_gp7.mjs → useInvoicesList-CFzAxyae.mjs} +34 -267
- package/dist/useInvoicesList-CaBCGs4h.js +1 -0
- package/dist/{useLoadInitialData-Dm48tlSO.mjs → useLoadInitialData-5sgImpzc.mjs} +5 -0
- package/dist/useLoadInitialData-DjwRHcAH.js +1 -0
- package/dist/usePaymentMethodOptions-C2k4npCQ.mjs +26 -0
- package/dist/usePaymentMethodOptions-DYO6xr3-.js +1 -0
- package/dist/{usePaymentMethods-BX2RnHZN.mjs → usePaymentMethods-CRWbH48K.mjs} +2 -2
- package/dist/{usePaymentMethods-BRQ7-dUr.js → usePaymentMethods-ryN_YohI.js} +1 -1
- package/dist/usePayments-Cw5PPEJa.mjs +36 -0
- package/dist/usePayments-DWXPGFvp.js +1 -0
- package/dist/usePortal-CxX4nrE4.js +1 -0
- package/dist/usePortal-cmE08vYs.mjs +12 -0
- package/dist/useService-Bb9r_sOQ.js +1 -0
- package/dist/useService-BsSEI8DZ.mjs +53 -0
- package/dist/useViewport-Bu0cyeSi.mjs +38 -0
- package/dist/useViewport-CKRY1CKR.js +1 -0
- package/dist/useWalletBalanceItems-CkDqmk36.mjs +109 -0
- package/dist/useWalletBalanceItems-CpZ1NWPr.js +1 -0
- package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
- package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
- package/dist/vendor-ui-5pJF5KBP.js +1 -0
- package/dist/vendor-ui-C0K3osvz.mjs +27645 -0
- package/package.json +20 -12
- package/dist/Alert.vue.es-DMPvSykx.js +0 -1
- package/dist/Alert.vue.es-DsJ1ckRU.mjs +0 -172
- package/dist/Amount.vue.es-C6JE5rL8.mjs +0 -23
- package/dist/Amount.vue.es-h8wulbBG.js +0 -1
- package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +0 -93
- package/dist/Avatar.vue.es-BbyE0AjW.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +0 -1
- package/dist/Button.vue.es-6sBk5tBL.mjs +0 -408
- package/dist/Button.vue.es-BC4_TItq.js +0 -1
- package/dist/CardContent.vue.es-ChEMrFCc.mjs +0 -115
- package/dist/CardContent.vue.es-i9ivuGKG.js +0 -1
- package/dist/Chip.vue.es-D0fkSe8a.js +0 -1
- package/dist/Chip.vue.es-DcW2CjUA.mjs +0 -1576
- package/dist/Comparators.vue.es-BdxDqU8o.js +0 -1
- package/dist/Comparators.vue.es-DdTKGB80.mjs +0 -406
- package/dist/ContentWithAsideLayout-UHovpjZu.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +0 -175
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +0 -1
- package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
- package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
- package/dist/DividerText.vue.es-B7oa5Xpn.mjs +0 -72
- package/dist/DividerText.vue.es-yiFdPQvo.js +0 -1
- package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +0 -30
- package/dist/ErrorNotification.vue.es-FpRyg0De.js +0 -1
- package/dist/FormMessage.vue.es-DFQXxiSC.mjs +0 -46
- package/dist/FormMessage.vue.es-LeWoj774.js +0 -1
- package/dist/IconButton.vue.es-DNCwwH_j.mjs +0 -825
- package/dist/IconButton.vue.es-DiSiGPWO.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +0 -1
- package/dist/PaymentMethod.vue.es-DYlnmZh7.js +0 -1
- package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +0 -1255
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +0 -1
- package/dist/Section.vue.es-3-H1pUTB.mjs +0 -79
- package/dist/Section.vue.es-BuzTXRLP.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +0 -1
- package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +0 -136
- package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +0 -1
- package/dist/TrialChip.vue.es-BHYbW8b6.mjs +0 -759
- package/dist/TrialChip.vue.es-C6Xg_5rR.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/_flatRest.es-BHFPCqZh.mjs +0 -642
- package/dist/_flatRest.es-dFffnTpX.js +0 -1
- package/dist/adyen-51SvcyqV.mjs +0 -4
- package/dist/adyen-DZsyEXkw.js +0 -1
- package/dist/api.es-B4qAAJKr.js +0 -1
- package/dist/api.es-UkfpLiLL.mjs +0 -83
- package/dist/auto-DzZuCneB.mjs +0 -14387
- package/dist/auto-PpnAChnH.js +0 -6
- package/dist/cloneDeep-Hs8Pp07F.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/cn.es-C7xoIs3C.js +0 -1
- package/dist/cn.es-tfxVlz02.mjs +0 -3191
- package/dist/component-ZRZIt3ZW.js +0 -1
- package/dist/component-dpA83LIN.mjs +0 -6569
- package/dist/countryData.es--zJAd6LA.mjs +0 -252
- package/dist/countryData.es-D3MFzU92.js +0 -1
- package/dist/customer.es-D42Md24r.js +0 -1
- package/dist/customer.es-LIW2YmLL.mjs +0 -30
- package/dist/formatting.es-9hM8aHSg.js +0 -1
- package/dist/formatting.es-D5H_ySFv.mjs +0 -68
- package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
- package/dist/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CI71bVGE.mjs +0 -2521
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/index-WLSPwi90.js +0 -1
- package/dist/index.es-BBJF2O2l.js +0 -1
- package/dist/index.es-LCAKs4tH.mjs +0 -438
- package/dist/invoices-3kVHsAXr.js +0 -1
- package/dist/isEmpty.es-Bp1SbWFu.mjs +0 -131
- package/dist/isEmpty.es-Dycf-CD_.js +0 -1
- package/dist/paymentMethods-DZRf0WRl.js +0 -1
- package/dist/pick.es-BgDAfhAl.js +0 -1
- package/dist/pick.es-DdVOyp0Q.mjs +0 -45
- package/dist/registry-ClZ43bQn.js +0 -1
- package/dist/sprite.svg.es-CCc3Mz1x.js +0 -1
- package/dist/sprite.svg.es-DZD704h3.mjs +0 -4
- package/dist/subscriptions-CS8HTxzC.js +0 -1
- package/dist/typeGuards.es-C4nR5FkL.js +0 -1
- package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
- package/dist/useIncrementalLoading-CAdNW-Bf.js +0 -1
- package/dist/useInvoiceData-DvQO_nKz.js +0 -1
- package/dist/useInvoicesList-CHkwSNO9.js +0 -1
- package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
- package/dist/useService-B67YWAcN.js +0 -1
- package/dist/useService-DG_zedHV.mjs +0 -282
- package/dist/useWalletBalanceItems-B5FMmoU2.mjs +0 -308
- package/dist/useWalletBalanceItems-BY3gq0fc.js +0 -1
package/README.md
CHANGED
|
@@ -69,6 +69,31 @@ export default function Page() {
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
+
## CSS overrides
|
|
73
|
+
|
|
74
|
+
Solvimon components render inside shadow DOM, so CSS from the host page cannot style them directly. Pass `cssOverrides` to `createSolvimonCore` to inject customer CSS into each SDK shadow root.
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
import { createSolvimonCore } from '@solvimon/solvimon-web/core';
|
|
78
|
+
|
|
79
|
+
const solvimon = createSolvimonCore({
|
|
80
|
+
environment: 'TEST',
|
|
81
|
+
cssOverrides: `
|
|
82
|
+
.sv-root {
|
|
83
|
+
font-family: Inter, sans-serif;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.sv-checkout__submit {
|
|
87
|
+
border-radius: 24px !important;
|
|
88
|
+
}
|
|
89
|
+
`,
|
|
90
|
+
});
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Use the public `sv-*` classes as styling hooks. Do not rely on internal Tailwind utility classes, because those can change.
|
|
94
|
+
|
|
95
|
+
For more details, see [`@solvimon/solvimon-web/core`](./src/public/core/README.md).
|
|
96
|
+
|
|
72
97
|
## Available components
|
|
73
98
|
|
|
74
99
|
### Screens
|
|
@@ -99,6 +124,66 @@ Embeddable building blocks.
|
|
|
99
124
|
| `@solvimon/solvimon-web/components/subscriptions-list` | `<solvimon-subscriptions-list>` |
|
|
100
125
|
| `@solvimon/solvimon-web/components/wallet-balances` | `<solvimon-wallet-balances>` |
|
|
101
126
|
|
|
127
|
+
## Supported Adyen payment methods
|
|
128
|
+
|
|
129
|
+
### Cards
|
|
130
|
+
|
|
131
|
+
- American Express
|
|
132
|
+
- Bancontact
|
|
133
|
+
- Carnet
|
|
134
|
+
- Cartes Bancaires
|
|
135
|
+
- China UnionPay
|
|
136
|
+
- Dankort
|
|
137
|
+
- Diners Club
|
|
138
|
+
- Discover
|
|
139
|
+
- EFTPOS
|
|
140
|
+
- Elo
|
|
141
|
+
- Girocard
|
|
142
|
+
- Hipercard
|
|
143
|
+
- JCB
|
|
144
|
+
- Maestro
|
|
145
|
+
- Mastercard
|
|
146
|
+
- NYCE
|
|
147
|
+
- Pulse
|
|
148
|
+
- Star
|
|
149
|
+
- UnionPay
|
|
150
|
+
- V Pay
|
|
151
|
+
- Visa
|
|
152
|
+
|
|
153
|
+
### Digital wallets
|
|
154
|
+
|
|
155
|
+
- Amazon Pay
|
|
156
|
+
- Apple Pay
|
|
157
|
+
- Bancontact Mobile
|
|
158
|
+
- Cash App Pay
|
|
159
|
+
- DANA
|
|
160
|
+
- GCash
|
|
161
|
+
- Google Pay
|
|
162
|
+
- GoPay
|
|
163
|
+
- KakaoPay
|
|
164
|
+
- MOMO
|
|
165
|
+
- PayPal
|
|
166
|
+
- TWINT
|
|
167
|
+
|
|
168
|
+
### Direct debit
|
|
169
|
+
|
|
170
|
+
- ACH (US)
|
|
171
|
+
- Bacs Direct Debit (UK)
|
|
172
|
+
- SEPA Direct Debit
|
|
173
|
+
- Pay by Bank (US)
|
|
174
|
+
|
|
175
|
+
### Online banking
|
|
176
|
+
|
|
177
|
+
- EPS
|
|
178
|
+
- iDEAL
|
|
179
|
+
- Pay by Bank
|
|
180
|
+
- Trustly
|
|
181
|
+
|
|
182
|
+
### Buy now, pay later
|
|
183
|
+
|
|
184
|
+
- Klarna
|
|
185
|
+
- Zip
|
|
186
|
+
|
|
102
187
|
## Release pipeline
|
|
103
188
|
|
|
104
189
|
Releases are published to [npm](https://www.npmjs.com/package/@solvimon/solvimon-web)
|
|
@@ -106,3 +191,42 @@ automatically via GitHub Actions. See the
|
|
|
106
191
|
[publishing documentation](./docs/development/publish.md) for the release flow.
|
|
107
192
|
|
|
108
193
|
Want to contribute? Check the [developer documentation](./docs/development/readme.md).
|
|
194
|
+
|
|
195
|
+
<!-- log-codes:start — DO NOT EDIT: auto-generated by `npm run logs:list` -->
|
|
196
|
+
## Error logging
|
|
197
|
+
|
|
198
|
+
The SDK emits structured log entries via the [`onLog`](#error-logging) callback. Subscribe to receive all log events and filter by `code` for programmatic handling.
|
|
199
|
+
|
|
200
|
+
### Error codes
|
|
201
|
+
|
|
202
|
+
| Code | Description |
|
|
203
|
+
| :--- | :---------- |
|
|
204
|
+
| `ADYEN_SUBMIT_FAILED` | Failed to submit Adyen drop-in |
|
|
205
|
+
| `APPLE_PAY_AUTHORIZATION_FAILED` | Payment authorization failed |
|
|
206
|
+
| `APPLE_PAY_ERROR` | Apple Pay error |
|
|
207
|
+
| `CUSTOMER_FETCH_FAILED` | Failed to fetch customer billing information |
|
|
208
|
+
| `EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR` | The Google Pay button reference is not found and cannot be mounted |
|
|
209
|
+
| `EXPRESS_CHECKOUT_PAYPAL_ERROR` | The PayPal button reference is not found and cannot be mounted |
|
|
210
|
+
| `INITIAL_DATA_LOAD_FAILED` | Failed to load initial data |
|
|
211
|
+
| `INTEGRATION_ERROR` | Unhandled error in payment submission flow |
|
|
212
|
+
| `INVALID_COUNTRY_CODE` | invalid country code provided:… |
|
|
213
|
+
| `INVALID_EMAIL` | invalid email provided:… |
|
|
214
|
+
| `INVALID_REDIRECT_RESULT` | Redirect result is set but payment acceptor id is missing |
|
|
215
|
+
| `INVALID_TOKEN` | Failed to fetch access token |
|
|
216
|
+
| `INVOICE_PREVIEW_FAILED` | Failed to load invoice preview |
|
|
217
|
+
| `PAYMENT_AUTHORIZATION_FAILED` | Failed payment authorization for payment acceptor with id… |
|
|
218
|
+
| `PAYMENT_DETAILS_CALL_FAILED` | Failed fetching payment details |
|
|
219
|
+
| `PAYMENT_INTEGRATION_INITIALIZATION_FAILED` | Failed to mount Adyen web drop-in |
|
|
220
|
+
| `PURCHASE_FAILED` | Failed to complete upgrade subscription purchase |
|
|
221
|
+
| `REQUEST_PARSE_FAILED` | Failed to parse JSON response |
|
|
222
|
+
| `RESOURCE_REVOKED` | Failed to load portal resource |
|
|
223
|
+
| `TOKENIZATION_FAILED` | Missing customer id for payment acceptor with id… |
|
|
224
|
+
|
|
225
|
+
### Warning codes
|
|
226
|
+
|
|
227
|
+
| Code | Description |
|
|
228
|
+
| :--- | :---------- |
|
|
229
|
+
| `ADYEN_INVALID_CONFIGURATION` | No environment set for adyen advanced flow, defaulted to live |
|
|
230
|
+
| `APPLE_PAY_ACTION_REQUIRED` | Payment requires additional action |
|
|
231
|
+
| `TRANSLATION_LOAD_FAILED` | Failed to load translations for locale… |
|
|
232
|
+
<!-- log-codes:end — DO NOT EDIT: auto-generated by `npm run logs:list` -->
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports.ApiStatus={Initial:"INITIAL",Loading:"LOADING",Failed:"FAILED",Done:"DONE"};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, createSlots, withCtx, createVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as _sfc_main$
|
|
4
|
-
import {
|
|
5
|
-
import { _ as _sfc_main$1 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
|
|
6
|
-
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-eO2qFPGv.mjs";
|
|
2
|
+
import { u as useIntl, c as _sfc_main$2, e as _sfc_main$3 } from "./vendor-ui-C0K3osvz.mjs";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
4
|
+
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-BC57-Ufn.mjs";
|
|
7
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
6
|
__name: "BillingInformation",
|
|
9
7
|
props: {
|
|
@@ -21,10 +19,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
19
|
return __props.isLoading ? (openBlock(), createBlock(_sfc_main$1, {
|
|
22
20
|
key: 0,
|
|
23
21
|
variant: "section",
|
|
24
|
-
class: "min-h-[100px]",
|
|
22
|
+
class: "sv-billing-information sv-root sv-component sv-loading min-h-[100px]",
|
|
25
23
|
"data-testid": "billing-information-skeleton"
|
|
26
24
|
})) : (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
27
25
|
key: 1,
|
|
26
|
+
class: "sv-billing-information sv-root sv-component",
|
|
28
27
|
customer: __props.customer,
|
|
29
28
|
"fallback-to-reference": false
|
|
30
29
|
}, createSlots({ _: 2 }, [
|
|
@@ -36,6 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
35
|
variant: "ghost",
|
|
37
36
|
color: "gray",
|
|
38
37
|
"icon-prefix": "edit",
|
|
38
|
+
class: "sv-action sv-action--ghost sv-billing-information__edit",
|
|
39
39
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(dispatchAction)({ action: "edit-billing-information" }))
|
|
40
40
|
}, {
|
|
41
41
|
default: withCtx(() => [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),i=require("./vendor-ui-5pJF5KBP.js"),t=require("./Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),o=require("./useActionDispatchProvider-rw9kWeE0.js"),n=e.defineComponent({__name:"BillingInformation",props:{customer:{type:Object},isLoading:{type:Boolean},configuration:{default:()=>({showEditButton:!0}),type:Object}},emits:["edit-billing-information"],setup(n){const{$t:s}=i.useIntl(),{dispatchAction:r}=o.useActionDispatchProvider();return(o,a)=>n.isLoading?(e.openBlock(),e.createBlock(t._sfc_main,{key:0,variant:"section",class:"sv-billing-information sv-root sv-component sv-loading min-h-[100px]","data-testid":"billing-information-skeleton"})):(e.openBlock(),e.createBlock(e.unref(i._sfc_main$2),{key:1,class:"sv-billing-information sv-root sv-component",customer:n.customer,"fallback-to-reference":!1},e.createSlots({_:2},[n.configuration.showEditButton?{name:"settings",fn:e.withCtx(()=>[e.createVNode(e.unref(i._sfc_main$3),{size:"sm",variant:"ghost",color:"gray","icon-prefix":"edit",class:"sv-action sv-action--ghost sv-billing-information__edit",onClick:a[0]||(a[0]=i=>e.unref(r)({action:"edit-billing-information"}))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"Edit",id:"customer_overview.billing_information_block.view_all_payment_methods_link_label",description:"The link text that links to the overview page of the customer billing information"})),1)]),_:1})]),key:"0"}:void 0]),1032,["customer"]))}});exports._sfc_main=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t={class:"sv-layout grid w-full grid-cols-1 gap-4"},o={key:0,class:"sv-layout__header"},l={class:"sv-layout__body flex flex-col items-start gap-6 md:flex-row"},s={class:"sv-layout__content grid w-full grow grid-cols-1 gap-4 md:w-auto"},r={class:"sv-layout__aside grid w-full grid-cols-1 gap-4 md:w-80 md:shrink-0"};const d=((e,t)=>{const o=e.__vccOpts||e;for(const[l,s]of t)o[l]=s;return o})({},[["render",function(d,a){return e.openBlock(),e.createElementBlock("div",t,[d.$slots.header?(e.openBlock(),e.createElementBlock("div",o,[e.renderSlot(d.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",l,[e.createElementVNode("div",s,[e.renderSlot(d.$slots,"content")]),e.createElementVNode("aside",r,[e.renderSlot(d.$slots,"aside")])])])}]]);exports.ContentWithAsideLayout=d;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P as PORTAL_INJECTION_KEY } from "./component-dpA83LIN.mjs";
|
|
3
|
-
function usePortal() {
|
|
4
|
-
const portal = inject(PORTAL_INJECTION_KEY);
|
|
5
|
-
if (!portal) {
|
|
6
|
-
throw new Error("PortalProvider is not provided");
|
|
7
|
-
}
|
|
8
|
-
return portal;
|
|
9
|
-
}
|
|
1
|
+
import { openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode } from "vue";
|
|
10
2
|
const _export_sfc = (sfc, props) => {
|
|
11
3
|
const target = sfc.__vccOpts || sfc;
|
|
12
4
|
for (const [key, val] of props) {
|
|
@@ -15,11 +7,14 @@ const _export_sfc = (sfc, props) => {
|
|
|
15
7
|
return target;
|
|
16
8
|
};
|
|
17
9
|
const _sfc_main = {};
|
|
18
|
-
const _hoisted_1 = { class: "grid w-full grid-cols-1 gap-4" };
|
|
19
|
-
const _hoisted_2 = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
const _hoisted_1 = { class: "sv-layout grid w-full grid-cols-1 gap-4" };
|
|
11
|
+
const _hoisted_2 = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "sv-layout__header"
|
|
14
|
+
};
|
|
15
|
+
const _hoisted_3 = { class: "sv-layout__body flex flex-col items-start gap-6 md:flex-row" };
|
|
16
|
+
const _hoisted_4 = { class: "sv-layout__content grid w-full grow grid-cols-1 gap-4 md:w-auto" };
|
|
17
|
+
const _hoisted_5 = { class: "sv-layout__aside grid w-full grid-cols-1 gap-4 md:w-80 md:shrink-0" };
|
|
23
18
|
function _sfc_render(_ctx, _cache) {
|
|
24
19
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
25
20
|
_ctx.$slots["header"] ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
@@ -37,6 +32,5 @@ function _sfc_render(_ctx, _cache) {
|
|
|
37
32
|
}
|
|
38
33
|
const ContentWithAsideLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
39
34
|
export {
|
|
40
|
-
ContentWithAsideLayout as C
|
|
41
|
-
usePortal as u
|
|
35
|
+
ContentWithAsideLayout as C
|
|
42
36
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock, unref, createSlots, withCtx, createElementBlock, Fragment, renderList, createVNode, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as _sfc_main$
|
|
4
|
-
import {
|
|
5
|
-
import { a as useIntl, _ as _sfc_main$4 } from "./component-dpA83LIN.mjs";
|
|
6
|
-
import { _ as _sfc_main$6 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
|
|
7
|
-
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-eO2qFPGv.mjs";
|
|
2
|
+
import { u as useIntl, b as _sfc_main$2, j as _sfc_main$3, _ as _sfc_main$4, e as _sfc_main$5 } from "./vendor-ui-C0K3osvz.mjs";
|
|
3
|
+
import { _ as _sfc_main$6 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
4
|
+
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-BC57-Ufn.mjs";
|
|
8
5
|
const _hoisted_1 = {
|
|
9
6
|
key: 0,
|
|
10
|
-
class: "flex flex-col gap-2"
|
|
7
|
+
class: "sv-payment-methods__list flex flex-col gap-2"
|
|
11
8
|
};
|
|
12
9
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
13
10
|
__name: "CustomerPaymentMethodsBlock",
|
|
@@ -25,6 +22,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25
22
|
const hasPaymentMethods = computed(() => props.paymentMethods.length > 0);
|
|
26
23
|
return (_ctx, _cache) => {
|
|
27
24
|
return openBlock(), createBlock(unref(_sfc_main$2), {
|
|
25
|
+
class: "sv-payment-methods",
|
|
28
26
|
"no-spacing": "",
|
|
29
27
|
"no-border": "",
|
|
30
28
|
title: unref($t)(
|
|
@@ -40,20 +38,28 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
40
38
|
hasPaymentMethods.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
41
39
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.paymentMethods, (paymentMethod) => {
|
|
42
40
|
return openBlock(), createBlock(unref(_sfc_main$2), {
|
|
43
|
-
key: paymentMethod.id
|
|
41
|
+
key: paymentMethod.id,
|
|
42
|
+
class: "sv-payment-methods__item"
|
|
44
43
|
}, {
|
|
45
44
|
default: withCtx(() => [
|
|
46
|
-
createVNode(unref(_sfc_main$3), {
|
|
45
|
+
createVNode(unref(_sfc_main$3), {
|
|
46
|
+
class: "sv-payment-methods__item-content",
|
|
47
|
+
"payment-method": paymentMethod
|
|
48
|
+
}, null, 8, ["payment-method"])
|
|
47
49
|
]),
|
|
48
50
|
_: 2
|
|
49
51
|
}, 1024);
|
|
50
52
|
}), 128))
|
|
51
|
-
])) : (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
53
|
+
])) : (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
54
|
+
key: 1,
|
|
55
|
+
class: "sv-empty-state sv-payment-methods__empty"
|
|
56
|
+
}, {
|
|
52
57
|
default: withCtx(() => [
|
|
53
58
|
createVNode(unref(_sfc_main$4), {
|
|
54
59
|
variant: "body-sm",
|
|
55
60
|
shade: "lighter",
|
|
56
|
-
"no-spacing": ""
|
|
61
|
+
"no-spacing": "",
|
|
62
|
+
class: "sv-payment-methods__empty-message"
|
|
57
63
|
}, {
|
|
58
64
|
default: withCtx(() => [
|
|
59
65
|
createTextVNode(toDisplayString(unref($t)({
|
|
@@ -66,7 +72,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
66
72
|
}),
|
|
67
73
|
__props.showAddButton ? (openBlock(), createBlock(unref(_sfc_main$5), {
|
|
68
74
|
key: 0,
|
|
69
|
-
class: "mt-4 w-full",
|
|
75
|
+
class: "sv-action sv-action--secondary sv-action--full-width sv-payment-methods__add mt-4 w-full",
|
|
70
76
|
variant: "outline",
|
|
71
77
|
color: "gray",
|
|
72
78
|
"icon-prefix": "add",
|
|
@@ -96,6 +102,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
96
102
|
variant: "ghost",
|
|
97
103
|
color: "gray",
|
|
98
104
|
"icon-suffix": "arrow_right_alt",
|
|
105
|
+
class: "sv-action sv-action--ghost sv-payment-methods__view-all",
|
|
99
106
|
type: "button",
|
|
100
107
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("view-all-payment-methods"))
|
|
101
108
|
}, {
|
|
@@ -133,10 +140,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
133
140
|
return __props.isLoading ? (openBlock(), createBlock(_sfc_main$6, {
|
|
134
141
|
key: 0,
|
|
135
142
|
variant: "section",
|
|
136
|
-
class: "h-72",
|
|
143
|
+
class: "sv-payment-methods sv-root sv-component sv-loading h-72",
|
|
137
144
|
"data-testid": "customer-payment-methods-skeleton"
|
|
138
145
|
})) : (openBlock(), createBlock(_sfc_main$1, {
|
|
139
146
|
key: 1,
|
|
147
|
+
class: "sv-payment-methods sv-root sv-component",
|
|
140
148
|
"is-loading": __props.isLoading,
|
|
141
149
|
"payment-methods": __props.paymentMethods,
|
|
142
150
|
"show-view-all-button": (_a = __props.configuration) == null ? void 0 : _a.showViewAllButton,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./vendor-ui-5pJF5KBP.js"),o=require("./Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),n=require("./useActionDispatchProvider-rw9kWeE0.js"),a={key:0,class:"sv-payment-methods__list flex flex-col gap-2"},s=e.defineComponent({__name:"CustomerPaymentMethodsBlock",props:{paymentMethods:{type:Array},limit:{default:2,type:Number},isLoading:{type:Boolean},showViewAllButton:{type:Boolean},showAddButton:{type:Boolean}},emits:["view-all-payment-methods","add-payment-method"],setup(o){const n=o,{$t:s}=t.useIntl(),i=e.computed(()=>n.paymentMethods.length>0);return(n,d)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{class:"sv-payment-methods","no-spacing":"","no-border":"",title:e.unref(s)({defaultMessage:"{count, plural, one {Payment method} other {Payment methods}}",description:"Title for the payment methods block on the customer overview page",id:"customer_overview.payment_methods.title"},{count:String(o.paymentMethods.length)})},e.createSlots({default:e.withCtx(()=>[i.value?(e.openBlock(),e.createElementBlock("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.paymentMethods,o=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:o.id,class:"sv-payment-methods__item"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$5),{class:"sv-payment-methods__item-content","payment-method":o},null,8,["payment-method"])]),_:2},1024))),128))])):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:1,class:"sv-empty-state sv-payment-methods__empty"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main),{variant:"body-sm",shade:"lighter","no-spacing":"",class:"sv-payment-methods__empty-message"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"Add a payment method for recurring invoice payments.",description:"Helper text for adding a payment method when no payment methods are configured",id:"customer_overview.payment_methods_block.add_payment_method_helper_text"})),1)]),_:1}),o.showAddButton?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:0,class:"sv-action sv-action--secondary sv-action--full-width sv-payment-methods__add mt-4 w-full",variant:"outline",color:"gray","icon-prefix":"add",type:"button",onClick:d[1]||(d[1]=e=>n.$emit("add-payment-method"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"Add payment method",description:"Text for the add payment method button that is shown when no payment methods have been configured",id:"customer_overview.payment_methods_block.add_payment_method_button_label"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1}))]),_:2},[o.showViewAllButton?{name:"right",fn:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$3),{size:"sm",variant:"ghost",color:"gray","icon-suffix":"arrow_right_alt",class:"sv-action sv-action--ghost sv-payment-methods__view-all",type:"button",onClick:d[0]||(d[0]=e=>n.$emit("view-all-payment-methods"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"View all",id:"customer_overview.payment_methods_block.view_all_payment_methods_link_label",description:"The link text that links to the overview page of the customer invoices"})),1)]),_:1})]),key:"0"}:void 0]),1032,["title"]))}}),i=e.defineComponent({__name:"CustomerPaymentMethods",props:{isLoading:{type:Boolean},paymentMethods:{type:Array},maxPaymentMethods:{type:Number},configuration:{default:()=>({showViewAllButton:!0,showAddButton:!0}),type:Object}},setup(t){const{dispatchAction:a}=n.useActionDispatchProvider();return(n,i)=>{var d,m;return t.isLoading?(e.openBlock(),e.createBlock(o._sfc_main,{key:0,variant:"section",class:"sv-payment-methods sv-root sv-component sv-loading h-72","data-testid":"customer-payment-methods-skeleton"})):(e.openBlock(),e.createBlock(s,{key:1,class:"sv-payment-methods sv-root sv-component","is-loading":t.isLoading,"payment-methods":t.paymentMethods,"show-view-all-button":null==(d=t.configuration)?void 0:d.showViewAllButton,"show-add-button":null==(m=t.configuration)?void 0:m.showAddButton,onViewAllPaymentMethods:i[0]||(i[0]=t=>e.unref(a)({action:"view-all-payment-methods"})),onAddPaymentMethod:i[1]||(i[1]=t=>e.unref(a)({action:"add-payment-method"}))},null,8,["is-loading","payment-methods","show-view-all-button","show-add-button"]))}}});exports._sfc_main=i;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, withCtx, createElementBlock, createElementVNode, createVNode, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { a as useIntl, _ as _sfc_main$2 } from "./component-dpA83LIN.mjs";
|
|
2
|
+
import { u as useIntl, b as _sfc_main$1, _ as _sfc_main$2 } from "./vendor-ui-C0K3osvz.mjs";
|
|
4
3
|
const _hoisted_1 = {
|
|
5
4
|
key: 0,
|
|
6
|
-
class: "flex flex-col gap-2"
|
|
5
|
+
class: "sv-invoice-details__body flex flex-col gap-2"
|
|
7
6
|
};
|
|
7
|
+
const _hoisted_2 = { class: "sv-invoice-details__row" };
|
|
8
|
+
const _hoisted_3 = { class: "sv-invoice-details__row" };
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
__name: "InvoiceDetailsBlock",
|
|
10
11
|
props: {
|
|
@@ -14,6 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
15
|
const { $t, formatDate } = useIntl();
|
|
15
16
|
return (_ctx, _cache) => {
|
|
16
17
|
return openBlock(), createBlock(unref(_sfc_main$1), {
|
|
18
|
+
class: "sv-invoice-details",
|
|
17
19
|
title: unref($t)({
|
|
18
20
|
defaultMessage: "Invoice details",
|
|
19
21
|
description: "Title for the invoice details block on the invoice overview page",
|
|
@@ -22,8 +24,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
24
|
}, {
|
|
23
25
|
default: withCtx(() => [
|
|
24
26
|
__props.invoice ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
25
|
-
createElementVNode("div",
|
|
26
|
-
createVNode(unref(_sfc_main$2), {
|
|
27
|
+
createElementVNode("div", _hoisted_2, [
|
|
28
|
+
createVNode(unref(_sfc_main$2), {
|
|
29
|
+
variant: "caps-heading",
|
|
30
|
+
class: "sv-invoice-details__label"
|
|
31
|
+
}, {
|
|
27
32
|
default: withCtx(() => [
|
|
28
33
|
createTextVNode(toDisplayString(unref($t)({
|
|
29
34
|
defaultMessage: "Invoice date",
|
|
@@ -35,7 +40,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
40
|
}),
|
|
36
41
|
__props.invoice.invoice_date ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
37
42
|
key: 0,
|
|
38
|
-
variant: "body-xs"
|
|
43
|
+
variant: "body-xs",
|
|
44
|
+
class: "sv-invoice-details__value"
|
|
39
45
|
}, {
|
|
40
46
|
default: withCtx(() => [
|
|
41
47
|
createTextVNode(toDisplayString(unref(formatDate)({
|
|
@@ -48,8 +54,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
54
|
_: 1
|
|
49
55
|
})) : createCommentVNode("", true)
|
|
50
56
|
]),
|
|
51
|
-
createElementVNode("div",
|
|
52
|
-
createVNode(unref(_sfc_main$2), {
|
|
57
|
+
createElementVNode("div", _hoisted_3, [
|
|
58
|
+
createVNode(unref(_sfc_main$2), {
|
|
59
|
+
variant: "caps-heading",
|
|
60
|
+
class: "sv-invoice-details__label"
|
|
61
|
+
}, {
|
|
53
62
|
default: withCtx(() => [
|
|
54
63
|
createTextVNode(toDisplayString(unref($t)({
|
|
55
64
|
defaultMessage: "Due date",
|
|
@@ -61,7 +70,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
70
|
}),
|
|
62
71
|
__props.invoice.due_date ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
63
72
|
key: 0,
|
|
64
|
-
variant: "body-xs"
|
|
73
|
+
variant: "body-xs",
|
|
74
|
+
class: "sv-invoice-details__value"
|
|
65
75
|
}, {
|
|
66
76
|
default: withCtx(() => [
|
|
67
77
|
createTextVNode(toDisplayString(unref(formatDate)({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),i=require("./vendor-ui-5pJF5KBP.js"),t={key:0,class:"sv-invoice-details__body flex flex-col gap-2"},o={class:"sv-invoice-details__row"},a={class:"sv-invoice-details__row"},n=e.defineComponent({__name:"InvoiceDetailsBlock",props:{invoice:{type:Object}},setup(n){const{$t:c,formatDate:s}=i.useIntl();return(d,l)=>(e.openBlock(),e.createBlock(e.unref(i._sfc_main$1),{class:"sv-invoice-details",title:e.unref(c)({defaultMessage:"Invoice details",description:"Title for the invoice details block on the invoice overview page",id:"sdk.invoice_details.invoice_details_block.title"})},{default:e.withCtx(()=>[n.invoice?(e.openBlock(),e.createElementBlock("div",t,[e.createElementVNode("div",o,[e.createVNode(e.unref(i._sfc_main),{variant:"caps-heading",class:"sv-invoice-details__label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)({defaultMessage:"Invoice date",description:"Title for the invoice date in invoice details block on the invoice overview page",id:"sdk.invoice_details.invoice_details_block.invoice_date"})),1)]),_:1}),n.invoice.invoice_date?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:0,variant:"body-xs",class:"sv-invoice-details__value"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({date:n.invoice.invoice_date,format:"date",timezone:n.invoice.customer.timezone,offsetType:"offsetted"})),1)]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",a,[e.createVNode(e.unref(i._sfc_main),{variant:"caps-heading",class:"sv-invoice-details__label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)({defaultMessage:"Due date",description:"Title for the due date in invoice details block on the invoice overview page",id:"sdk.invoice_details.invoice_details_block.due_date"})),1)]),_:1}),n.invoice.due_date?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:0,variant:"body-xs",class:"sv-invoice-details__value"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({date:n.invoice.due_date,format:"date",timezone:n.invoice.customer.timezone,offsetType:"offsetted"})),1)]),_:1})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1},8,["title"]))}});exports._sfc_main=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DWTEfLrE.js");exports.default=e._sfc_main;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode, toDisplayString, createElementVNode, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { _ as _sfc_main$2 } from "./
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { a as useIntl, _ as _sfc_main$1 } from "./component-dpA83LIN.mjs";
|
|
7
|
-
const _hoisted_1 = { class: "flex flex-col-reverse gap-1" };
|
|
8
|
-
const _hoisted_2 = { class: "flex justify-between items-center mb-2" };
|
|
2
|
+
import { u as useIntl, _ as _sfc_main$1, b as _sfc_main$2, f as _sfc_main$3, h as formatEnum, j as _sfc_main$4 } from "./vendor-ui-C0K3osvz.mjs";
|
|
3
|
+
const _hoisted_1 = { class: "sv-payment-history" };
|
|
4
|
+
const _hoisted_2 = { class: "sv-payment-history__items flex flex-col-reverse gap-1" };
|
|
5
|
+
const _hoisted_3 = { class: "sv-payment-history__item-header mb-2 flex items-center justify-between" };
|
|
9
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
7
|
__name: "PaymentHistoryBlock",
|
|
11
8
|
props: {
|
|
@@ -25,10 +22,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
22
|
REFUSED: "red"
|
|
26
23
|
};
|
|
27
24
|
return (_ctx, _cache) => {
|
|
28
|
-
return openBlock(), createElementBlock("div",
|
|
25
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
29
26
|
createVNode(unref(_sfc_main$1), {
|
|
30
27
|
tag: "h2",
|
|
31
|
-
variant: "heading-3"
|
|
28
|
+
variant: "heading-3",
|
|
29
|
+
class: "sv-payment-history__title"
|
|
32
30
|
}, {
|
|
33
31
|
default: withCtx(() => [
|
|
34
32
|
createTextVNode(toDisplayString(unref($t)({
|
|
@@ -39,15 +37,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
37
|
]),
|
|
40
38
|
_: 1
|
|
41
39
|
}),
|
|
42
|
-
createElementVNode("div",
|
|
40
|
+
createElementVNode("div", _hoisted_2, [
|
|
43
41
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.paymentAttempts, (paymentAttempt) => {
|
|
44
42
|
return openBlock(), createBlock(unref(_sfc_main$2), {
|
|
45
43
|
key: paymentAttempt.id,
|
|
46
|
-
class: "mt-1 md:mt-2"
|
|
44
|
+
class: "sv-payment-history__item mt-1 md:mt-2"
|
|
47
45
|
}, {
|
|
48
46
|
default: withCtx(() => [
|
|
49
|
-
createElementVNode("div",
|
|
50
|
-
createVNode(unref(_sfc_main$1), {
|
|
47
|
+
createElementVNode("div", _hoisted_3, [
|
|
48
|
+
createVNode(unref(_sfc_main$1), {
|
|
49
|
+
variant: "caps-heading",
|
|
50
|
+
class: "sv-payment-history__item-title"
|
|
51
|
+
}, {
|
|
51
52
|
default: withCtx(() => [
|
|
52
53
|
createTextVNode(toDisplayString(unref($t)({
|
|
53
54
|
defaultMessage: "Payment attempt",
|
|
@@ -58,6 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
59
|
_: 1
|
|
59
60
|
}),
|
|
60
61
|
createVNode(unref(_sfc_main$3), {
|
|
62
|
+
class: "sv-payment-history__item-status",
|
|
61
63
|
color: colorMapping[paymentAttempt.result]
|
|
62
64
|
}, {
|
|
63
65
|
default: withCtx(() => [
|
|
@@ -68,6 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
70
|
]),
|
|
69
71
|
paymentAttempt.payment_method_details ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
70
72
|
key: 0,
|
|
73
|
+
class: "sv-payment-history__payment-method",
|
|
71
74
|
"payment-method": paymentAttempt.payment_method_details
|
|
72
75
|
}, {
|
|
73
76
|
description: withCtx(() => [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./vendor-ui-5pJF5KBP.js"),a={class:"sv-payment-history"},n={class:"sv-payment-history__items flex flex-col-reverse gap-1"},s={class:"sv-payment-history__item-header mb-2 flex items-center justify-between"},r=e.defineComponent({__name:"PaymentHistoryBlock",props:{paymentAttempts:{type:Array},customer:{type:Object}},setup(r){const{$t:o,formatDate:i}=t.useIntl(),m={AUTHORIZED:"green",CANCELLED:"red",ERROR:"red",PENDING:"orange",PENDING_REFUND:"orange",REFUNDED:"orange",CHARGED_BACK:"orange",REFUSED:"red"};return(c,l)=>(e.openBlock(),e.createElementBlock("div",a,[e.createVNode(e.unref(t._sfc_main),{tag:"h2",variant:"heading-3",class:"sv-payment-history__title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Payment history",description:"Title for the payment history block on the invoice details page",id:"sdk.invoice_details.payment_history.title"})),1)]),_:1}),e.createElementVNode("div",n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.paymentAttempts,a=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:a.id,class:"sv-payment-history__item mt-1 md:mt-2"},{default:e.withCtx(()=>[e.createElementVNode("div",s,[e.createVNode(e.unref(t._sfc_main),{variant:"caps-heading",class:"sv-payment-history__item-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Payment attempt",description:"Title for the payment attempt block",id:"sdk.invoice_details.payment_history.payment_attempt"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$4),{class:"sv-payment-history__item-status",color:m[a.result]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.formatEnum)(a.result)),1)]),_:2},1032,["color"])]),a.payment_method_details?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$5),{key:0,class:"sv-payment-history__payment-method","payment-method":a.payment_method_details},{description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({date:a.created_at,format:"dateTime",offsetType:"offsetted",timezone:r.customer.timezone})),1)]),_:2},1032,["payment-method"])):e.createCommentVNode("",!0)]),_:2},1024))),128))])]))}});exports._sfc_main=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D5bxFJ-p.js");exports.default=e._sfc_main;
|