platform-types 1.10.804 → 1.10.805
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cart.d.ts +18 -0
- package/package.json +1 -1
package/dist/cart.d.ts
CHANGED
|
@@ -193,6 +193,24 @@ declare global {
|
|
|
193
193
|
*/
|
|
194
194
|
cost?: number;
|
|
195
195
|
price: number;
|
|
196
|
+
/**
|
|
197
|
+
* The net of `price`, per unit, in the same currency as the line
|
|
198
|
+
* (`calculateItemNeto(price, 1, rate, 1, 'decimal')`): equal to the
|
|
199
|
+
* `neto` a new IVA-declaring invoice prints for one undiscounted unit
|
|
200
|
+
* when the line currency is the voucher currency. A Factura C does not
|
|
201
|
+
* discriminate IVA (its `ImpNeto` is the gross), and a voucher in another
|
|
202
|
+
* currency converts first. Absent when the
|
|
203
|
+
* line has no declarable `ivaType` — never a 0 % fallback.
|
|
204
|
+
*
|
|
205
|
+
* ⚠️ READ-TIME and DISPLAY ONLY. Derived at the customer exits (web
|
|
206
|
+
* `GET /basket`, the customer basket write echo and its 409 rebase, the
|
|
207
|
+
* guest cart, the checkout cart-conflict body, the storefront re-priced
|
|
208
|
+
* cart and the customer `baskets` socket frame); never stored, never
|
|
209
|
+
* accepted on a write, never on an operator copy. Never charge, quote or
|
|
210
|
+
* total it — `CartTotals` carries no net. Shown by the storefront only
|
|
211
|
+
* while `ecommerce.config.showNetPlusIva` is on.
|
|
212
|
+
*/
|
|
213
|
+
netOfIva?: number;
|
|
196
214
|
listId?: number;
|
|
197
215
|
currency?: string;
|
|
198
216
|
currencyValue?: number;
|