@vindentech/api-client 2.0.0-next.12 → 2.0.0-next.14

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). */
@@ -1578,6 +1583,31 @@ export interface OrganizationOwnerDto {
1578
1583
  /** @nullable */
1579
1584
  phone: string | null;
1580
1585
  }
1586
+ export interface OrganizationPaymentMethodDto {
1587
+ /** The tenant's code for the method, e.g. `manual_invoice` or `stripe_card`. */
1588
+ code: string;
1589
+ /** The method's name, as the tenant labels it. */
1590
+ displayName: string;
1591
+ /** True when invoices are charged automatically (a card), false when the customer pays an invoice they receive. */
1592
+ isAutoChargeable: boolean;
1593
+ }
1594
+ export interface OrganizationContractSummaryDto {
1595
+ /**
1596
+ * The binding plan the contract is on. null for a contract that names no plan (older contracts carry only `bindingType`).
1597
+ * @nullable
1598
+ */
1599
+ bindingPlanId: string | null;
1600
+ /**
1601
+ * The binding plan's code.
1602
+ * @nullable
1603
+ */
1604
+ bindingType: string | null;
1605
+ /**
1606
+ * The binding plan's name. null when the contract names no plan.
1607
+ * @nullable
1608
+ */
1609
+ name: string | null;
1610
+ }
1581
1611
  export type OrganizationListItemDtoType = typeof OrganizationListItemDtoType[keyof typeof OrganizationListItemDtoType];
1582
1612
  export declare const OrganizationListItemDtoType: {
1583
1613
  readonly business: "business";
@@ -1640,6 +1670,36 @@ export interface OrganizationListItemDto {
1640
1670
  * @nullable
1641
1671
  */
1642
1672
  invoiceRecipientEmail: string | null;
1673
+ /**
1674
+ * The customer's orders (jobs), every status: the `total` of `GET /v1/orders?organizationId=…`. null for a caller without `order:read` (org-billing).
1675
+ * @nullable
1676
+ */
1677
+ ordersCount: number | null;
1678
+ /**
1679
+ * The customer's orders not yet in a final status (completed, cancelled or failed): the orders that keep a customer from being deleted. `openOrdersCount > 0` is a customer with active orders. null for a caller without `order:read`.
1680
+ * @nullable
1681
+ */
1682
+ openOrdersCount: number | null;
1683
+ /**
1684
+ * When the customer's newest order was created, the time the orders list sorts by. null when the customer has no orders, and for a caller without `order:read` (`ordersCount` is then null too).
1685
+ * @nullable
1686
+ */
1687
+ lastOrderAt: string | null;
1688
+ /**
1689
+ * Units of the customer's goods in storage: the `units` of `GET /v1/products/stats?organizationId=…&status=IN_STORAGE`, the number the customer profile shows. Goods awaiting disposal are not counted, so a customer at 0 can still be refused deletion for goods on the shelf. null for a caller without `product:read` (org-billing).
1690
+ * @nullable
1691
+ */
1692
+ inStorageUnits: number | null;
1693
+ /**
1694
+ * How the customer pays: their billing account's payment method, else the tenant's default. null when the customer has no billing account or the tenant no default, and for a caller without `billingaccount:read`.
1695
+ * @nullable
1696
+ */
1697
+ paymentMethod: OrganizationPaymentMethodDto | null;
1698
+ /**
1699
+ * The customer's active contract (binding), as `GET /v1/organizations/:id/contract` returns it. null when none is active, and for a caller without `organizationcontract:read` (tenant-admin and operations-manager hold it).
1700
+ * @nullable
1701
+ */
1702
+ contract: OrganizationContractSummaryDto | null;
1643
1703
  }
1644
1704
  export interface PaginatedOrganizationsDto {
1645
1705
  /** The page of rows. */
@@ -2834,10 +2894,15 @@ export interface CartMerchandiseDto {
2834
2894
  */
2835
2895
  name: string | null;
2836
2896
  /**
2837
- * 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.
2838
2898
  * @nullable
2839
2899
  */
2840
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;
2841
2906
  /** @nullable */
2842
2907
  currencyCode: string | null;
2843
2908
  /**
@@ -3014,8 +3079,10 @@ export interface QuoteLineDto {
3014
3079
  reference: string | null;
3015
3080
  description: string;
3016
3081
  quantity: number;
3017
- /** 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. */
3018
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;
3019
3086
  /** Line total ex-VAT, integer minor units, AFTER any campaign and binding discount — the amount that reaches `totals` */
3020
3087
  lineTotalExVatMinor: number;
3021
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. */
@@ -3569,38 +3636,71 @@ export interface AvailableServiceDto {
3569
3636
  * @nullable
3570
3637
  */
3571
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;
3572
3644
  /** Whether any future capacity day/slot exists for the service+zone */
3573
3645
  hasSlots: boolean;
3574
3646
  }
3575
3647
  export interface SlotPriceDto {
3576
3648
  /** @nullable */
3577
3649
  perM3ExVat?: string | null;
3578
- /** @nullable */
3650
+ /**
3651
+ * `perM3ExVat` including VAT. Null exactly when `perM3ExVat` is.
3652
+ * @nullable
3653
+ */
3579
3654
  perM3IncVat?: string | null;
3580
3655
  /** @nullable */
3581
3656
  perHourExVat?: string | null;
3582
3657
  /** @nullable */
3583
3658
  baseFeeExVat?: string | null;
3659
+ /**
3660
+ * `baseFeeExVat` including VAT. Null exactly when `baseFeeExVat` is.
3661
+ * @nullable
3662
+ */
3663
+ baseFeeIncVat?: string | null;
3584
3664
  /**
3585
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).
3586
3666
  * @nullable
3587
3667
  */
3588
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;
3589
3674
  /**
3590
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.
3591
3676
  * @nullable
3592
3677
  */
3593
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;
3594
3684
  /**
3595
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).
3596
3686
  * @nullable
3597
3687
  */
3598
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;
3599
3694
  /**
3600
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.
3601
3696
  * @nullable
3602
3697
  */
3603
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;
3604
3704
  /** @nullable */
3605
3705
  vatRate: string | null;
3606
3706
  /** @nullable */
@@ -6560,6 +6660,11 @@ export interface DisposalRequestQuoteLineDto {
6560
6660
  * @nullable
6561
6661
  */
6562
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;
6563
6668
  /** Minor units, ex VAT. */
6564
6669
  totalExVatMinor: number;
6565
6670
  /** VAT percentage, e.g. 25.5. */
@@ -13790,10 +13895,15 @@ export interface CheckoutMerchandiseDto {
13790
13895
  /** 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. */
13791
13896
  translations: TenantGoodsTranslationsDto;
13792
13897
  /**
13793
- * 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.
13898
+ * 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.
13794
13899
  * @nullable
13795
13900
  */
13796
13901
  retailPriceExVat?: string | null;
13902
+ /**
13903
+ * 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.
13904
+ * @nullable
13905
+ */
13906
+ retailPriceIncVat?: string | null;
13797
13907
  /** @nullable */
13798
13908
  currencyCode?: string | null;
13799
13909
  /** @nullable */
@@ -13828,10 +13938,15 @@ export interface MerchandiseEstimateLineDto {
13828
13938
  /** 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. */
13829
13939
  translations: TenantGoodsTranslationsDto;
13830
13940
  /**
13831
- * 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.
13941
+ * 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.
13832
13942
  * @nullable
13833
13943
  */
13834
13944
  retailPriceExVat?: string | null;
13945
+ /**
13946
+ * 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.
13947
+ * @nullable
13948
+ */
13949
+ retailPriceIncVat?: string | null;
13835
13950
  /** @nullable */
13836
13951
  currencyCode?: string | null;
13837
13952
  /** @nullable */
@@ -14941,6 +15056,11 @@ export type OrganizationsControllerListV1Params = {
14941
15056
  * Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
14942
15057
  */
14943
15058
  warehouseId?: string;
15059
+ /**
15060
+ * Filter by how the customer pays: the code of their billing account's payment method, else the tenant's default (as `paymentMethod.code` on each row). A customer with no billing account never matches. Requires `billingaccount:read`: anyone else is refused with 403 `payment_method_filter_requires_billing_account_read`.
15061
+ * @pattern ^[a-z0-9_]{1,64}$
15062
+ */
15063
+ paymentMethod?: string;
14944
15064
  /**
14945
15065
  * Sort key. Rows that tie on it are ordered by organization id, in the same direction.
14946
15066
  */
@@ -15003,6 +15123,11 @@ export type OrganizationsControllerStatsV1Params = {
15003
15123
  * Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
15004
15124
  */
15005
15125
  warehouseId?: string;
15126
+ /**
15127
+ * Filter by how the customer pays: the code of their billing account's payment method, else the tenant's default (as `paymentMethod.code` on each row). A customer with no billing account never matches. Requires `billingaccount:read`: anyone else is refused with 403 `payment_method_filter_requires_billing_account_read`.
15128
+ * @pattern ^[a-z0-9_]{1,64}$
15129
+ */
15130
+ paymentMethod?: string;
15006
15131
  };
15007
15132
  export type OrganizationsControllerStatsV1Type = typeof OrganizationsControllerStatsV1Type[keyof typeof OrganizationsControllerStatsV1Type];
15008
15133
  export declare const OrganizationsControllerStatsV1Type: {