@vindentech/api-client 2.0.0-next.13 → 2.0.0-next.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -249,10 +249,15 @@ export interface OrderMerchandiseDto {
249
249
  /** Units placed. */
250
250
  quantity: number;
251
251
  /**
252
- * Per-unit price ex VAT, frozen at placement, in minor units (e.g. öre/cent).
252
+ * Per-unit price ex VAT, frozen at placement, in minor units (e.g. öre/cent). A price entered including VAT is its net part, which does not multiply back to the line.
253
253
  * @minimum 0
254
254
  */
255
255
  unitPriceExVatMinor: number;
256
+ /**
257
+ * Per-unit price inc VAT, frozen at placement, in minor units: as entered where the price includes VAT, so `unitPriceIncVatMinor` × `quantity` is the line the invoice bills (10 × 2,99 € = 29,90 €), else `unitPriceExVatMinor` with its VAT.
258
+ * @minimum 0
259
+ */
260
+ unitPriceIncVatMinor: number;
256
261
  /** VAT rate frozen at placement (numeric column → string, e.g. "25.0000"). */
257
262
  vatRate: string;
258
263
  /** Frozen at placement (ISO 4217). */
@@ -2889,10 +2894,15 @@ export interface CartMerchandiseDto {
2889
2894
  */
2890
2895
  name: string | null;
2891
2896
  /**
2892
- * Price ex VAT as a decimal string: what the SKU's pricing rule charges today in the cart's currency, which is what the quote charges for the line. Null when no price is in force.
2897
+ * Price ex VAT as a decimal string: what the SKU's pricing rule charges today in the cart's currency, which is what the quote charges for the line. A price entered including VAT shows its net part, which does not multiply back to the line. Null when no price is in force.
2893
2898
  * @nullable
2894
2899
  */
2895
2900
  retailPriceExVat: string | null;
2901
+ /**
2902
+ * The same price including VAT, as a decimal string: as entered when the price includes VAT, else retailPriceExVat with its VAT. Null exactly when retailPriceExVat is.
2903
+ * @nullable
2904
+ */
2905
+ retailPriceIncVat: string | null;
2896
2906
  /** @nullable */
2897
2907
  currencyCode: string | null;
2898
2908
  /**
@@ -3069,8 +3079,10 @@ export interface QuoteLineDto {
3069
3079
  reference: string | null;
3070
3080
  description: string;
3071
3081
  quantity: number;
3072
- /** Unit price ex-VAT, integer minor units of the quote currency. This is the catalogue price BEFORE any campaign or binding discount — with one applied it no longer multiplies out to `lineTotalExVatMinor` (a 100% start-fee waiver leaves a priced unit against a zero line). Nor does a storage month the price book prices, which is billed a night at a time with each night rounded, as the invoice bills it. Sum `lineTotalExVatMinor`, never unit × quantity, or the result contradicts `totals`. */
3082
+ /** Unit price ex-VAT, integer minor units of the quote currency. This is the catalogue price BEFORE any campaign or binding discount — with one applied it no longer multiplies out to `lineTotalExVatMinor` (a 100% start-fee waiver leaves a priced unit against a zero line). Nor does a storage month the price book prices, which is billed a night at a time with each night rounded, as the invoice bills it. Sum `lineTotalExVatMinor`, never unit × quantity, or the result contradicts `totals`. A price that includes VAT is stated here as its net part, which taxed again can miss by a cent; `unitPriceIncVatMinor` states it as written. */
3073
3083
  unitPriceExVatMinor: number;
3084
+ /** Unit price inc-VAT, integer minor units, on the same basis as `unitPriceExVatMinor`: before any campaign or binding discount. Where the price book states the price including VAT, this is that price as written (29,90 € per m³, where `unitPriceExVatMinor` is its net part, 23,82 €, which taxed again is 29,89 €); otherwise it is `unitPriceExVatMinor` with its VAT added. On a line that is its own unit (a minimum charge, or a minimum lifting a price), it is the amount `unitPriceExVatMinor` states with that amount's VAT: on a storage month, one night's. Like the ex-VAT unit price it does not multiply out to a line total: show `lineTotalIncVatMinor` for that. */
3085
+ unitPriceIncVatMinor: number;
3074
3086
  /** Line total ex-VAT, integer minor units, AFTER any campaign and binding discount — the amount that reaches `totals` */
3075
3087
  lineTotalExVatMinor: number;
3076
3088
  /** Line total inc-VAT, integer minor units, on the same basis as `lineTotalExVatMinor`: after any campaign and binding discount, before the coupon (`couponDiscountIncVatMinor` is not subtracted). The VAT is the line's share of what the invoice charges on the invoice line it is billed on, so the lines add up to `totals.incVatMinor` exactly. Quote lines billed as one invoice line (the same article, VAT rate and RUT flag) share that line's VAT in proportion to their totals, so one of them can be a cent off its own total taxed alone. */
@@ -3624,38 +3636,71 @@ export interface AvailableServiceDto {
3624
3636
  * @nullable
3625
3637
  */
3626
3638
  fromPrice: MoneyDto | null;
3639
+ /**
3640
+ * `fromPrice` including VAT: the price as the price book states it where its prices include VAT (29,90 €, where `fromPrice` shows its net part, 23,82 €, which taxed again is 29,89 €), else `fromPrice` with its VAT added. Null exactly when `fromPrice` is.
3641
+ * @nullable
3642
+ */
3643
+ fromPriceIncVat: MoneyDto | null;
3627
3644
  /** Whether any future capacity day/slot exists for the service+zone */
3628
3645
  hasSlots: boolean;
3629
3646
  }
3630
3647
  export interface SlotPriceDto {
3631
3648
  /** @nullable */
3632
3649
  perM3ExVat?: string | null;
3633
- /** @nullable */
3650
+ /**
3651
+ * `perM3ExVat` including VAT. Null exactly when `perM3ExVat` is.
3652
+ * @nullable
3653
+ */
3634
3654
  perM3IncVat?: string | null;
3635
3655
  /** @nullable */
3636
3656
  perHourExVat?: string | null;
3637
3657
  /** @nullable */
3638
3658
  baseFeeExVat?: string | null;
3659
+ /**
3660
+ * `baseFeeExVat` including VAT. Null exactly when `baseFeeExVat` is.
3661
+ * @nullable
3662
+ */
3663
+ baseFeeIncVat?: string | null;
3639
3664
  /**
3640
3665
  * Money, ex VAT: what the slot's service zone adds ON TOP of the base transport price — show it as "+X". Null when the cart would add none: the slot has no zone of its own (a pooled slot), no zone surcharge rule lists the slot's zone above 0, or the zone is priced per m³ (zoneSurchargePerM3ExVat).
3641
3666
  * @nullable
3642
3667
  */
3643
3668
  zoneSurchargeExVat: string | null;
3669
+ /**
3670
+ * `zoneSurchargeExVat` including VAT — show it as "+X". Null exactly when `zoneSurchargeExVat` is.
3671
+ * @nullable
3672
+ */
3673
+ zoneSurchargeIncVat: string | null;
3644
3674
  /**
3645
3675
  * Money per m³, ex VAT: what the slot's service zone adds ON TOP of the base transport price for each m³ the order's transport bills, after its minimum billable volumes — show it as "+X/m³". Null when the zone adds nothing per m³; never set beside zoneSurchargeExVat.
3646
3676
  * @nullable
3647
3677
  */
3648
3678
  zoneSurchargePerM3ExVat: string | null;
3679
+ /**
3680
+ * `zoneSurchargePerM3ExVat` including VAT — show it as "+X/m³". Null exactly when `zoneSurchargePerM3ExVat` is.
3681
+ * @nullable
3682
+ */
3683
+ zoneSurchargePerM3IncVat: string | null;
3649
3684
  /**
3650
3685
  * Money, ex VAT: what this window adds ON TOP of the base transport price — show it as "+X". Null when the cart would add none: the window carries no surcharge, no pricing rule bills it, or the window is priced per m³ (windowSurchargePerM3ExVat).
3651
3686
  * @nullable
3652
3687
  */
3653
3688
  windowSurchargeExVat: string | null;
3689
+ /**
3690
+ * `windowSurchargeExVat` including VAT — show it as "+X". Null exactly when `windowSurchargeExVat` is.
3691
+ * @nullable
3692
+ */
3693
+ windowSurchargeIncVat: string | null;
3654
3694
  /**
3655
3695
  * Money per m³, ex VAT: what this window adds ON TOP of the base transport price for each m³ the order's transport bills, after its minimum billable volumes — show it as "+X/m³". Null when the window adds nothing per m³ or no pricing rule bills it; never set beside windowSurchargeExVat.
3656
3696
  * @nullable
3657
3697
  */
3658
3698
  windowSurchargePerM3ExVat: string | null;
3699
+ /**
3700
+ * `windowSurchargePerM3ExVat` including VAT — show it as "+X/m³". Null exactly when `windowSurchargePerM3ExVat` is.
3701
+ * @nullable
3702
+ */
3703
+ windowSurchargePerM3IncVat: string | null;
3659
3704
  /** @nullable */
3660
3705
  vatRate: string | null;
3661
3706
  /** @nullable */
@@ -6615,6 +6660,11 @@ export interface DisposalRequestQuoteLineDto {
6615
6660
  * @nullable
6616
6661
  */
6617
6662
  unitPriceExVatMinor: number | null;
6663
+ /**
6664
+ * Minor units, inc VAT: the price as written where the price book states it including VAT, else unitPriceExVatMinor with its VAT. Null exactly when unitPriceExVatMinor is.
6665
+ * @nullable
6666
+ */
6667
+ unitPriceIncVatMinor: number | null;
6618
6668
  /** Minor units, ex VAT. */
6619
6669
  totalExVatMinor: number;
6620
6670
  /** VAT percentage, e.g. 25.5. */
@@ -11573,6 +11623,9 @@ export interface ExportedCartsDto {
11573
11623
  export type ExportedStoredGoodsDtoProductsItem = {
11574
11624
  [key: string]: unknown;
11575
11625
  };
11626
+ export type ExportedStoredGoodsDtoFoldersItem = {
11627
+ [key: string]: unknown;
11628
+ };
11576
11629
  export type ExportedStoredGoodsDtoProductImagesItem = {
11577
11630
  [key: string]: unknown;
11578
11631
  };
@@ -11597,6 +11650,8 @@ export type ExportedStoredGoodsDtoFileLinksItem = {
11597
11650
  export interface ExportedStoredGoodsDto {
11598
11651
  /** `public.product` rows, live and soft-deleted. */
11599
11652
  products: ExportedStoredGoodsDtoProductsItem[];
11653
+ /** `public.folder` rows, live and soft-deleted: the product folders, nested by `parentFolderId`. A product's `folderId` names one. */
11654
+ folders: ExportedStoredGoodsDtoFoldersItem[];
11600
11655
  /** `public.product_image` rows the customer can see, live and soft-deleted. Files are storage keys, served by `GET /v1/images`. */
11601
11656
  productImages: ExportedStoredGoodsDtoProductImagesItem[];
11602
11657
  /** `public.item` rows, live and soft-deleted. */
@@ -13845,10 +13900,15 @@ export interface CheckoutMerchandiseDto {
13845
13900
  /** The SKU's text per locale, keyed by BCP-47 tag (sv-SE, en-GB, fi-FI). `name` and `description` are the default: show `translations[locale]?.name ?? name` and `translations[locale]?.description ?? description`, each field on its own. `{}` when the SKU has no translations. */
13846
13901
  translations: TenantGoodsTranslationsDto;
13847
13902
  /**
13848
- * Price ex VAT as a decimal string: what the SKU's pricing rule charges today, in currencyCode. Null when no price is in force today.
13903
+ * Price ex VAT as a decimal string: what the SKU's pricing rule charges today, in currencyCode. A price entered including VAT shows its net part (2,99 € at 25,5 % → "2.38"), which does not multiply back to a line. Null when no price is in force today.
13849
13904
  * @nullable
13850
13905
  */
13851
13906
  retailPriceExVat?: string | null;
13907
+ /**
13908
+ * The same price including VAT, as a decimal string: as entered when the price includes VAT ("2.99", so 10 of them are the 29,90 € the cart charges), else retailPriceExVat with its VAT. Null exactly when retailPriceExVat is.
13909
+ * @nullable
13910
+ */
13911
+ retailPriceIncVat?: string | null;
13852
13912
  /** @nullable */
13853
13913
  currencyCode?: string | null;
13854
13914
  /** @nullable */
@@ -13883,10 +13943,15 @@ export interface MerchandiseEstimateLineDto {
13883
13943
  /** The SKU's text per locale, keyed by BCP-47 tag (sv-SE, en-GB, fi-FI). `name` and `description` are the default: show `translations[locale]?.name ?? name` and `translations[locale]?.description ?? description`, each field on its own. `{}` when the SKU has no translations. */
13884
13944
  translations: TenantGoodsTranslationsDto;
13885
13945
  /**
13886
- * Price ex VAT as a decimal string: what the SKU's pricing rule charges today, in currencyCode. Null when no price is in force today.
13946
+ * Price ex VAT as a decimal string: what the SKU's pricing rule charges today, in currencyCode. A price entered including VAT shows its net part (2,99 € at 25,5 % → "2.38"), which does not multiply back to a line. Null when no price is in force today.
13887
13947
  * @nullable
13888
13948
  */
13889
13949
  retailPriceExVat?: string | null;
13950
+ /**
13951
+ * The same price including VAT, as a decimal string: as entered when the price includes VAT ("2.99", so 10 of them are the 29,90 € the cart charges), else retailPriceExVat with its VAT. Null exactly when retailPriceExVat is.
13952
+ * @nullable
13953
+ */
13954
+ retailPriceIncVat?: string | null;
13890
13955
  /** @nullable */
13891
13956
  currencyCode?: string | null;
13892
13957
  /** @nullable */