@vindentech/api-client 2.0.0-next.1 → 2.0.0-next.10

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.
Files changed (46) hide show
  1. package/dist/client.d.ts.map +1 -1
  2. package/dist/client.js.map +1 -1
  3. package/dist/generated/_all.d.ts +2 -0
  4. package/dist/generated/_all.d.ts.map +1 -1
  5. package/dist/generated/_all.js +2 -0
  6. package/dist/generated/_all.js.map +1 -1
  7. package/dist/generated/_permissions.d.ts +29 -1
  8. package/dist/generated/_permissions.d.ts.map +1 -1
  9. package/dist/generated/_permissions.js +7 -0
  10. package/dist/generated/_permissions.js.map +1 -1
  11. package/dist/generated/analytics/analytics.d.ts +16 -2
  12. package/dist/generated/analytics/analytics.d.ts.map +1 -1
  13. package/dist/generated/analytics/analytics.js +22 -1
  14. package/dist/generated/analytics/analytics.js.map +1 -1
  15. package/dist/generated/billing-accounts/billing-accounts.d.ts +8 -1
  16. package/dist/generated/billing-accounts/billing-accounts.d.ts.map +1 -1
  17. package/dist/generated/billing-accounts/billing-accounts.js +0 -1
  18. package/dist/generated/billing-accounts/billing-accounts.js.map +1 -1
  19. package/dist/generated/collection-holds/collection-holds.d.ts +24 -0
  20. package/dist/generated/collection-holds/collection-holds.d.ts.map +1 -0
  21. package/dist/generated/collection-holds/collection-holds.js +23 -0
  22. package/dist/generated/collection-holds/collection-holds.js.map +1 -0
  23. package/dist/generated/index.schemas.d.ts +716 -17
  24. package/dist/generated/index.schemas.d.ts.map +1 -1
  25. package/dist/generated/index.schemas.js +77 -0
  26. package/dist/generated/index.schemas.js.map +1 -1
  27. package/dist/generated/invoice-auto-charge-mode/invoice-auto-charge-mode.d.ts +38 -0
  28. package/dist/generated/invoice-auto-charge-mode/invoice-auto-charge-mode.d.ts.map +1 -0
  29. package/dist/generated/invoice-auto-charge-mode/invoice-auto-charge-mode.js +41 -0
  30. package/dist/generated/invoice-auto-charge-mode/invoice-auto-charge-mode.js.map +1 -0
  31. package/dist/generated/invoices/invoices.d.ts +31 -2
  32. package/dist/generated/invoices/invoices.d.ts.map +1 -1
  33. package/dist/generated/invoices/invoices.js +25 -1
  34. package/dist/generated/invoices/invoices.js.map +1 -1
  35. package/dist/generated/organizations/organizations.d.ts +1 -1
  36. package/dist/generated/organizations/organizations.js +1 -1
  37. package/dist/generated/provider-switch/provider-switch.d.ts +5 -1
  38. package/dist/generated/provider-switch/provider-switch.d.ts.map +1 -1
  39. package/dist/generated/provider-switch/provider-switch.js.map +1 -1
  40. package/dist/generated/tenant-config/tenant-config.d.ts +29 -1
  41. package/dist/generated/tenant-config/tenant-config.d.ts.map +1 -1
  42. package/dist/generated/tenant-config/tenant-config.js +39 -0
  43. package/dist/generated/tenant-config/tenant-config.js.map +1 -1
  44. package/dist/index.d.ts +3 -3
  45. package/dist/index.d.ts.map +1 -1
  46. package/package.json +1 -1
@@ -9,6 +9,24 @@ export interface HealthResponseDto {
9
9
  status: string;
10
10
  timestamp: string;
11
11
  }
12
+ export interface OrderCustomerLegDto {
13
+ /** The leg's id, as in OrderDetailDto.legs. */
14
+ orderTransportLegId: string;
15
+ /** PICKUP, DELIVERY, DISPATCH, RETURN or SERVICE. Tells a pickup address from a delivery address, and shows when no leg of the order's own direction was picked. */
16
+ legType: string;
17
+ /** @nullable */
18
+ addressLine1: string | null;
19
+ /** @nullable */
20
+ zipCode: string | null;
21
+ /** @nullable */
22
+ city: string | null;
23
+ /** @nullable */
24
+ recipientPhone: string | null;
25
+ /** @nullable */
26
+ plannedWindowStart: string | null;
27
+ /** @nullable */
28
+ plannedWindowEnd: string | null;
29
+ }
12
30
  export interface OrderHandlingZoneDto {
13
31
  positionId: string;
14
32
  section: string;
@@ -51,6 +69,11 @@ export interface OrderSummaryDto {
51
69
  * @nullable
52
70
  */
53
71
  recipientName: string | null;
72
+ /**
73
+ * The customer-facing transport leg: its address, contact phone and booked window. Picked from the live legs the caller can see as the lowest-sequence leg of the order's customer-facing type (PICKUP for PICKUP, MOVE, TRANSFER and PICKING jobs; DELIVERY for DELIVERY, DROP_OFF and MERCHANDISE_SALE jobs), else the lowest-sequence leg with an address, else the lowest-sequence leg — the same leg a client picks from `GET /v1/orders/{id}`'s `legs`. Not necessarily the leg `recipientName` reads, which is always the lowest-sequence one. Null when the order has no leg the caller can see. A carrier reaches only its own booked legs and warehouse staff only legs on an assigned warehouse, so for them this can also be a leg other than the customer's own; `legType` says which.
74
+ * @nullable
75
+ */
76
+ customerLeg: OrderCustomerLegDto | null;
54
77
  /** Live product lines on the job (voided and deleted lines excluded). Scoped by the caller's own row visibility, so it matches what `GET /v1/orders/{id}` would show them. */
55
78
  productCount: number;
56
79
  /** Merchandise lines on the job (public.sales_order_merchandise) — always 0 except on a MERCHANDISE_SALE job, which carries merchandise instead of product lines. Distinct from `productCount`, which never counts these. Scoped by the caller's own row visibility like `productCount`: 0 can mean 'no merchandise' or 'withheld by scope'. */
@@ -415,6 +438,11 @@ export interface OrderDetailDto {
415
438
  * @nullable
416
439
  */
417
440
  recipientName: string | null;
441
+ /**
442
+ * The customer-facing transport leg: its address, contact phone and booked window. Picked from the live legs the caller can see as the lowest-sequence leg of the order's customer-facing type (PICKUP for PICKUP, MOVE, TRANSFER and PICKING jobs; DELIVERY for DELIVERY, DROP_OFF and MERCHANDISE_SALE jobs), else the lowest-sequence leg with an address, else the lowest-sequence leg — the same leg a client picks from `GET /v1/orders/{id}`'s `legs`. Not necessarily the leg `recipientName` reads, which is always the lowest-sequence one. Null when the order has no leg the caller can see. A carrier reaches only its own booked legs and warehouse staff only legs on an assigned warehouse, so for them this can also be a leg other than the customer's own; `legType` says which.
443
+ * @nullable
444
+ */
445
+ customerLeg: OrderCustomerLegDto | null;
418
446
  /** Live product lines on the job (voided and deleted lines excluded). Scoped by the caller's own row visibility, so it matches what `GET /v1/orders/{id}` would show them. */
419
447
  productCount: number;
420
448
  /** Merchandise lines on the job (public.sales_order_merchandise) — always 0 except on a MERCHANDISE_SALE job, which carries merchandise instead of product lines. Distinct from `productCount`, which never counts these. Scoped by the caller's own row visibility like `productCount`: 0 can mean 'no merchandise' or 'withheld by scope'. */
@@ -1561,6 +1589,15 @@ export declare const OrganizationListItemDtoType: {
1561
1589
  export type OrganizationListItemDtoMetadata = {
1562
1590
  [key: string]: unknown;
1563
1591
  } | null;
1592
+ /**
1593
+ * The account's service tier, as `GET /v1/me` reports it. CORE unless set.
1594
+ */
1595
+ export type OrganizationListItemDtoServiceTier = typeof OrganizationListItemDtoServiceTier[keyof typeof OrganizationListItemDtoServiceTier];
1596
+ export declare const OrganizationListItemDtoServiceTier: {
1597
+ readonly PRO: "PRO";
1598
+ readonly CORE: "CORE";
1599
+ readonly LIGHT: "LIGHT";
1600
+ };
1564
1601
  export interface OrganizationListItemDto {
1565
1602
  organizationId: string;
1566
1603
  type: OrganizationListItemDtoType;
@@ -1584,6 +1621,25 @@ export interface OrganizationListItemDto {
1584
1621
  * @nullable
1585
1622
  */
1586
1623
  owner: OrganizationOwnerDto | null;
1624
+ /** The account's service tier, as `GET /v1/me` reports it. CORE unless set. */
1625
+ serviceTier: OrganizationListItemDtoServiceTier;
1626
+ /**
1627
+ * Live members of the organization, invited members who have not signed in yet included. A forgotten (erased) person is not counted, as they are never the `owner`. null for a caller without `member:read`, like `owner`.
1628
+ * @nullable
1629
+ */
1630
+ memberCount: number | null;
1631
+ /** True when the organization is personal and still carries the name onboarding gives an account nobody named ("Account" and eight hex characters). Erasure renames an account back to it, so an erased customer reads true as well. */
1632
+ isPlaceholderName: boolean;
1633
+ /**
1634
+ * The invoice email staff set on the billing account: an override. Trimmed, and null when unset or blank, the rule `invoiceRecipientEmail` applies to it; `invoiceEmail` on `GET /v1/billing/accounts` is the column as stored. null for a caller without `billingaccount:read`.
1635
+ * @nullable
1636
+ */
1637
+ invoiceEmail: string | null;
1638
+ /**
1639
+ * Where the organization's invoices are sent: `invoiceEmail` when set, else the owner's profile email for a personal organization, else the organization's contact email for a business. Read from the same billing account as `invoiceEmail`. As `invoiceRecipientEmail` on `GET /v1/billing/accounts`, and null for a caller without `billingaccount:read`.
1640
+ * @nullable
1641
+ */
1642
+ invoiceRecipientEmail: string | null;
1587
1643
  }
1588
1644
  export interface PaginatedOrganizationsDto {
1589
1645
  /** The page of rows. */
@@ -2914,6 +2970,22 @@ export interface CartDto {
2914
2970
  createdAt: string;
2915
2971
  updatedAt: string;
2916
2972
  }
2973
+ export interface QuoteFloorItemDto {
2974
+ /** The cart goods line: `items[].cartProductId` on the cart. */
2975
+ cartProductId: string;
2976
+ /** Units on the line, each topped up by `topUpCm3`. */
2977
+ quantity: number;
2978
+ /** One unit's volume in cm³, from the line's dimensions. */
2979
+ measuredCm3: number;
2980
+ /** `measuredCm3` rounded the way the rule rounds each item before its minimum (to the nearest 0,01 m³, say). Equal to `measuredCm3` when the rule does not round. */
2981
+ roundedCm3: number;
2982
+ /** The minimum billable volume per unit, in cm³: what each unit is billed as. */
2983
+ minimumCm3: number;
2984
+ /** What the minimum adds to one unit, in cm³: `minimumCm3` − `roundedCm3`. */
2985
+ topUpCm3: number;
2986
+ /** What the minimum adds to the line, in cm³: `topUpCm3` × `quantity`. */
2987
+ totalTopUpCm3: number;
2988
+ }
2917
2989
  export type QuoteLineDtoKind = typeof QuoteLineDtoKind[keyof typeof QuoteLineDtoKind];
2918
2990
  export declare const QuoteLineDtoKind: {
2919
2991
  readonly GOODS: "GOODS";
@@ -2923,7 +2995,7 @@ export declare const QuoteLineDtoKind: {
2923
2995
  readonly START_FEE: "START_FEE";
2924
2996
  };
2925
2997
  /**
2926
- * Set on a line that exists only because a contracted minimum applied, so it can be shown as such: `quantity` — a minimum billable volume lifted the quantity (the line carries the difference; the line before it carries what the goods account for), `fee` — a minimum charge topped the component up, `minimum_amount` — the charge's own minimum price per order lifted it (the line carries the difference, including any minimum billable volume beneath it; the line before it carries what the goods account for), `minimum_monthly_fee` — the storage came in under its minimum monthly fee after every campaign, binding discount and code, and this line bills the difference (a `GOODS` line against the minimum fee article; no reduction applies to it, and it is the line the invoice bills for the month). The line keeps the kind of the charge it lifts. Absent on every other line.
2998
+ * Set on a line that exists only because a contracted minimum applied, so it can be shown as such: `quantity` — a minimum billable volume lifted the quantity (the line carries the difference; the line before it carries what the goods account for; `floorItems` says which items, when the minimum is per item), `fee` — a minimum charge topped the component up, `minimum_amount` — the charge's own minimum price per order lifted it (the line carries the difference, including any minimum billable volume beneath it; the line before it carries what the goods account for), `minimum_monthly_fee` — the storage came in under its minimum monthly fee after every campaign, binding discount and code, and this line bills the difference (a `GOODS` line against the minimum fee article; no reduction applies to it, and it is the line the invoice bills for the month). The line keeps the kind of the charge it lifts. Absent on every other line.
2927
2999
  * @nullable
2928
3000
  */
2929
3001
  export type QuoteLineDtoFloorKind = typeof QuoteLineDtoFloorKind[keyof typeof QuoteLineDtoFloorKind] | null;
@@ -2978,10 +3050,12 @@ export interface QuoteLineDto {
2978
3050
  */
2979
3051
  componentCode?: string | null;
2980
3052
  /**
2981
- * Set on a line that exists only because a contracted minimum applied, so it can be shown as such: `quantity` — a minimum billable volume lifted the quantity (the line carries the difference; the line before it carries what the goods account for), `fee` — a minimum charge topped the component up, `minimum_amount` — the charge's own minimum price per order lifted it (the line carries the difference, including any minimum billable volume beneath it; the line before it carries what the goods account for), `minimum_monthly_fee` — the storage came in under its minimum monthly fee after every campaign, binding discount and code, and this line bills the difference (a `GOODS` line against the minimum fee article; no reduction applies to it, and it is the line the invoice bills for the month). The line keeps the kind of the charge it lifts. Absent on every other line.
3053
+ * Set on a line that exists only because a contracted minimum applied, so it can be shown as such: `quantity` — a minimum billable volume lifted the quantity (the line carries the difference; the line before it carries what the goods account for; `floorItems` says which items, when the minimum is per item), `fee` — a minimum charge topped the component up, `minimum_amount` — the charge's own minimum price per order lifted it (the line carries the difference, including any minimum billable volume beneath it; the line before it carries what the goods account for), `minimum_monthly_fee` — the storage came in under its minimum monthly fee after every campaign, binding discount and code, and this line bills the difference (a `GOODS` line against the minimum fee article; no reduction applies to it, and it is the line the invoice bills for the month). The line keeps the kind of the charge it lifts. Absent on every other line.
2982
3054
  * @nullable
2983
3055
  */
2984
3056
  floorKind?: QuoteLineDtoFloorKind;
3057
+ /** On a `floorKind: quantity` line lifted by a minimum billable volume per item: the cart's goods lines that minimum tops up, so the line can say which items it comes from. Each names its cart line and states, per unit, its volume, that volume rounded as the rule rounds each item, the minimum it is billed as, and the difference. Lines whose units bill at least the minimum are not listed. The lines' `totalTopUpCm3` add up to the volume this line bills, which `quantity` states in the rule's unit (m³) rounded to 4 decimals. That sum is exact when the rule rounds each item; when it does not, the line starts from the cart's total volume, rounded once, so the two can differ by up to 1 cm³ a unit. Absent on every other line, including a minimum for the whole storage or order, one per counted item, a transport whose own minimum price applied instead (`floorKind: minimum_amount`), and the price book preview. */
3058
+ floorItems?: QuoteFloorItemDto[];
2985
3059
  }
2986
3060
  export interface QuoteVolumeDto {
2987
3061
  /** Total goods volume in cm³ */
@@ -8477,7 +8551,7 @@ export interface UpdateBillingAccountDto {
8477
8551
  /** ISO 4217 currency code. */
8478
8552
  currencyCode?: string;
8479
8553
  /**
8480
- * Pin the account to one of the tenant's payment methods. `null` clears it, so the account uses the tenant default. An invoice keeps the method it was sent with; a Stripe-collected invoice's saved card is charged on its due date when that method is auto-chargeable.
8554
+ * Pin the account to one of the tenant's payment methods. `null` clears it, so the account uses the tenant default. A new pin must be an active, undeleted method of the account's own payment provider, or the request is a 400 naming why; sending the method already pinned is not re-checked. An invoice keeps the method it was sent with; a Stripe-collected invoice's saved card is charged on its due date when that method is auto-chargeable.
8481
8555
  * @nullable
8482
8556
  */
8483
8557
  paymentMethodId?: string | null;
@@ -8599,11 +8673,23 @@ export interface InvoiceRowDto {
8599
8673
  vatRate: string;
8600
8674
  /** ISO 4217 currency code. */
8601
8675
  currencyCode: string;
8676
+ /** Whether the row was priced including VAT (BE-2298): its amount is then `amountExVatMinor + vatAmountMinor`, and a credit note's `refundAmountMinor` for it is stated the same way. A row priced ex VAT is credited ex VAT. Rows of one article in the two bases are separate rows. */
8677
+ pricesIncludeVat: boolean;
8602
8678
  /**
8603
8679
  * Explanation printed on the invoice line: why a floor or minimum period applied, and the title of a campaign or discount code that reduced the row, in the customer's language.
8604
8680
  * @nullable
8605
8681
  */
8606
8682
  freeText: string | null;
8683
+ /**
8684
+ * Staff's replacement for this row's whole line (article name and explanation), set on a draft with PUT /v1/billing/invoices/{id}/rows/{rowId}/description. Null when the line is built from the article name and freeText.
8685
+ * @maxLength 200
8686
+ * @nullable
8687
+ */
8688
+ descriptionOverride: string | null;
8689
+ /** The line the customer sees for this row on the invoice: descriptionOverride when set, otherwise the article name followed by freeText, in the invoice's language. Show this rather than rebuilding it. */
8690
+ description: string;
8691
+ /** Whether the copy of the invoice the customer receives (the Stripe or the Fortnox invoice) carries this row. False only for a row priced at nothing on an article with hideOnInvoiceWhenZero on, and never for every row of an invoice. Read from the article now, so it says what a push now would send: an invoice already pushed keeps the lines it was sent with. Every row stays on the invoice and counts towards its totals; a client showing the customer's invoice leaves out rows where this is false. */
8692
+ shownToCustomer: boolean;
8607
8693
  /** Coupon benefits that reduced this row. Empty when none did. */
8608
8694
  appliedCoupons: AppliedCouponSummaryDto[];
8609
8695
  /** What kind of row this is: charge = an ordinary charge; carried = a correction of an earlier month; clawback = a campaign benefit charged back; manual = a row staff added by hand, billed as entered. A credit note row has the kind of the row it credits. */
@@ -8738,9 +8824,24 @@ export interface RemoveInvoiceRowDto {
8738
8824
  */
8739
8825
  reason: string;
8740
8826
  }
8827
+ export interface SetInvoiceRowDescriptionDto {
8828
+ /**
8829
+ * The row's whole line as the customer will read it, in place of the article name and its explanation, as entered (surrounding whitespace is trimmed). null restores the line built from the article name and the row's text.
8830
+ * @minLength 1
8831
+ * @maxLength 200
8832
+ * @nullable
8833
+ */
8834
+ description: string | null;
8835
+ /**
8836
+ * Why the row is reworded (recorded in the audit log; never shown to the customer).
8837
+ * @minLength 1
8838
+ * @maxLength 500
8839
+ */
8840
+ reason: string;
8841
+ }
8741
8842
  export interface CreditNoteRowDto {
8742
8843
  invoiceRowId: string;
8743
- /** Amount (excl. VAT, minor units, POSITIVE magnitude) to refund off this row. The service writes it as a negative credit-note row. */
8844
+ /** Amount (minor units, POSITIVE magnitude) to refund off this row, in the row's price basis: excl. VAT, unless the row was priced including VAT, when it includes VAT. The service writes it as a negative credit-note row. */
8744
8845
  refundAmountMinor: number;
8745
8846
  }
8746
8847
  export interface IssueCreditNoteDto {
@@ -8808,6 +8909,47 @@ export interface SendInvoiceResponseDto {
8808
8909
  /** The routing token enqueued for the Worker's InvoiceSendProcessor — derived from paymentProvider (manual → fortnox-email, stripe → stripe-payment). */
8809
8910
  rail: SendInvoiceResponseDtoRail;
8810
8911
  }
8912
+ export interface CollectionHoldCreditNoteDto {
8913
+ /** The credit note's own id; read it with GET /v1/billing/invoices/{id}. */
8914
+ invoiceId: string;
8915
+ /** Invoice status enum: CREATED or READY while a draft, SENT or later once sent. */
8916
+ invoiceStatus: string;
8917
+ /** The credit note's total in minor currency units, negative as the credit note stores it. */
8918
+ totalMinor: number;
8919
+ /** When the credit note was created. */
8920
+ createdAt: string;
8921
+ }
8922
+ /**
8923
+ * DRAFT_CREDIT_NOTE: every credit note against the invoice is a draft (CREATED or READY). While one is, the due-date charge neither charges the card nor moves the invoice to OVERDUE; one already OVERDUE stays so. Send the draft or void it: once it is voided, the charge treats the invoice as if the credit note had never existed. CREDITED: a credit note against the invoice has been sent. The due-date charge has stopped for good: it never charges the card or moves the invoice to OVERDUE, and one already OVERDUE stays so. With remainingMinor > 0 the rest is collected by hand; with remainingMinor <= 0 nothing is owed, but the Stripe invoice still asks for its full amount until it is voided in Stripe. Either way the invoice stays listed while its status is SENT, PARTIALLY_PAID or OVERDUE.
8924
+ */
8925
+ export type CollectionHoldDtoReason = typeof CollectionHoldDtoReason[keyof typeof CollectionHoldDtoReason];
8926
+ export declare const CollectionHoldDtoReason: {
8927
+ readonly DRAFT_CREDIT_NOTE: "DRAFT_CREDIT_NOTE";
8928
+ readonly CREDITED: "CREDITED";
8929
+ };
8930
+ export interface CollectionHoldDto {
8931
+ invoice: InvoiceDto;
8932
+ /** DRAFT_CREDIT_NOTE: every credit note against the invoice is a draft (CREATED or READY). While one is, the due-date charge neither charges the card nor moves the invoice to OVERDUE; one already OVERDUE stays so. Send the draft or void it: once it is voided, the charge treats the invoice as if the credit note had never existed. CREDITED: a credit note against the invoice has been sent. The due-date charge has stopped for good: it never charges the card or moves the invoice to OVERDUE, and one already OVERDUE stays so. With remainingMinor > 0 the rest is collected by hand; with remainingMinor <= 0 nothing is owed, but the Stripe invoice still asks for its full amount until it is voided in Stripe. Either way the invoice stays listed while its status is SENT, PARTIALLY_PAID or OVERDUE. */
8933
+ reason: CollectionHoldDtoReason;
8934
+ /** Every credit note against the invoice that is not voided, oldest first. */
8935
+ creditNotes: CollectionHoldCreditNoteDto[];
8936
+ /** What the sent credit notes credit, in minor currency units, as a positive amount. Drafts are not counted. */
8937
+ creditedMinor: number;
8938
+ /** The payments recorded against the invoice, in minor currency units. */
8939
+ paidMinor: number;
8940
+ /** invoice.totalMinor − creditedMinor − paidMinor, in minor currency units. Zero or negative when nothing is owed. */
8941
+ remainingMinor: number;
8942
+ }
8943
+ export interface PaginatedCollectionHoldsDto {
8944
+ /** The page of rows. */
8945
+ items: CollectionHoldDto[];
8946
+ /** Exact count of all rows matching the filter, pre-pagination (RLS-scoped). */
8947
+ total: number;
8948
+ /** Effective max rows applied (after defaults/clamp). */
8949
+ limit: number;
8950
+ /** Effective rows skipped applied. */
8951
+ offset: number;
8952
+ }
8811
8953
  export interface ArticleTranslationDto {
8812
8954
  /** @maxLength 80 */
8813
8955
  name: string;
@@ -8838,6 +8980,8 @@ export interface ArticleDto {
8838
8980
  vatInclusiveDefault: boolean;
8839
8981
  rutEligible: boolean;
8840
8982
  isActive: boolean;
8983
+ /** Leave this article's rows off the customer's copy of an invoice (the Stripe or the Fortnox invoice) when they were priced at nothing: zero in both amounts, not reduced by a campaign, a code or a discount rule, not added or reworded by staff, carrying no labour hours, and with another line of the invoice still printed. The invoice itself keeps every row, so totals do not change, and its rows say which ones the customer gets (`shownToCustomer`). Read when an invoice is pushed: a change reaches every invoice not yet pushed, and one already pushed keeps its lines. */
8984
+ hideOnInvoiceWhenZero: boolean;
8841
8985
  createdAt: string;
8842
8986
  updatedAt: string;
8843
8987
  }
@@ -8872,6 +9016,8 @@ export interface CreateArticleDto {
8872
9016
  vatInclusiveDefault?: boolean;
8873
9017
  rutEligible?: boolean;
8874
9018
  isActive?: boolean;
9019
+ /** Leave this article's rows off the customer's copy of an invoice (the Stripe or the Fortnox invoice) when they were priced at nothing: zero in both amounts, not reduced by a campaign, a code or a discount rule, not added or reworded by staff, carrying no labour hours, and with another line of the invoice still printed. The invoice itself keeps every row, so totals do not change, and its rows say which ones the customer gets (`shownToCustomer`). Read when an invoice is pushed: a change reaches every invoice not yet pushed, and one already pushed keeps its lines. Omitted stores false. */
9020
+ hideOnInvoiceWhenZero?: boolean;
8875
9021
  /** Default VAT rate, a percentage (numeric column → string): 25.0000 for 25 %, 25.5000 for 25.5 %. Invoice rows priced on this article take their VAT from it. */
8876
9022
  vatRateDefault: string;
8877
9023
  }
@@ -8891,6 +9037,8 @@ export interface UpdateArticleDto {
8891
9037
  vatInclusiveDefault?: boolean;
8892
9038
  rutEligible?: boolean;
8893
9039
  isActive?: boolean;
9040
+ /** Leave this article's rows off the customer's copy of an invoice (the Stripe or the Fortnox invoice) when they were priced at nothing: zero in both amounts, not reduced by a campaign, a code or a discount rule, not added or reworded by staff, carrying no labour hours, and with another line of the invoice still printed. The invoice itself keeps every row, so totals do not change, and its rows say which ones the customer gets (`shownToCustomer`). Read when an invoice is pushed: a change reaches every invoice not yet pushed, and one already pushed keeps its lines. Omitted leaves it as it is. */
9041
+ hideOnInvoiceWhenZero?: boolean;
8894
9042
  /** Default VAT rate (numeric column → string, e.g. 25.0000). */
8895
9043
  vatRateDefault?: string;
8896
9044
  }
@@ -8934,6 +9082,8 @@ export interface TenantBillingConfigDto {
8934
9082
  timezone: string;
8935
9083
  /** When one-off charges (a transport, its start fee, a failed-transport or packaging fee) are invoiced: `per_charge` (on an invoice of their own, the day after they are incurred) or `monthly` (on the calendar month's invoice beside storage, once the month has closed). Storage, subscription and recurring charges are invoiced monthly either way. Defaults to `per_charge`. Written by platform admins only. */
8936
9084
  oneOffInvoicing: TenantBillingConfigDtoOneOffInvoicing;
9085
+ /** Whether the tenant's prices are written including VAT: the basis every price book price, per-customer price and merchandise price written from now on is stated in. A price of 29,90 € including VAT at 25,5 % bills 23,82 € and 6,08 € VAT. Each price keeps the basis it was written in (`pricesIncludeVat` on each rule), so changing this re-prices nothing. Defaults to false. Changed by a tenant admin. */
9086
+ pricesIncludeVat: boolean;
8937
9087
  createdAt: string;
8938
9088
  updatedAt: string;
8939
9089
  enabledCurrencies: EnabledCurrencyDto[];
@@ -8957,6 +9107,8 @@ export interface UpdateTenantBillingConfigDto {
8957
9107
  timezone?: string;
8958
9108
  /** When one-off charges are invoiced (see the read model). **Changed by platform admins only**: anyone else sending a value that differs from the current one gets 403 and nothing is written. Sending the current value back — a form that round-trips the object — is accepted. A change applies to the charges not yet invoiced; nothing already invoiced moves. */
8959
9109
  oneOffInvoicing?: UpdateTenantBillingConfigDtoOneOffInvoicing;
9110
+ /** Whether prices are written including VAT from now on (see the read model). Nothing already written is re-priced: switch the price book with a change set effective on the 1st of a month after setting this. **Changed by tenant admins only**: anyone else sending a value that differs from the current one gets 403. A change is refused with 409 while a price book draft is open (`prices_include_vat_price_book_draft_open`: publish or discard it first, since its prices were written in the old basis), and turning it on is refused while the tenant's default accounting provider or any billing account's is Fortnox (`prices_include_vat_fortnox_in_use`: the Fortnox push sends prices ex VAT). Sending the current value back is accepted. */
9111
+ pricesIncludeVat?: boolean;
8960
9112
  changeReason?: string;
8961
9113
  }
8962
9114
  export interface EnabledCurrencyInputDto {
@@ -8969,6 +9121,208 @@ export interface EnabledCurrencyInputDto {
8969
9121
  export interface ReplaceEnabledCurrenciesDto {
8970
9122
  currencies: EnabledCurrencyInputDto[];
8971
9123
  }
9124
+ export type InvoiceTextLocaleDtoLocale = typeof InvoiceTextLocaleDtoLocale[keyof typeof InvoiceTextLocaleDtoLocale];
9125
+ export declare const InvoiceTextLocaleDtoLocale: {
9126
+ readonly 'sv-SE': "sv-SE";
9127
+ readonly 'en-GB': "en-GB";
9128
+ readonly 'fi-FI': "fi-FI";
9129
+ };
9130
+ export interface InvoiceTextLocaleDto {
9131
+ locale: InvoiceTextLocaleDtoLocale;
9132
+ /** What an invoice built now is labelled with in this locale: the tenant's text, else the platform's. */
9133
+ text: string;
9134
+ /** The platform's text in this locale, which a cleared text goes back to. */
9135
+ platformDefault: string;
9136
+ /** Whether the tenant has its own text in this locale. */
9137
+ overridden: boolean;
9138
+ }
9139
+ /**
9140
+ * floor_quantity / floor_fee: a contracted minimum quantity or charge applied; minimum_period: days billed for the minimum storage period; carried: a correction for an earlier month; clawback: a campaign benefit charged back, followed by the campaign's title; minimum_monthly_fee: the lift to the minimum monthly storage fee.
9141
+ */
9142
+ export type InvoiceTextDtoKey = typeof InvoiceTextDtoKey[keyof typeof InvoiceTextDtoKey];
9143
+ export declare const InvoiceTextDtoKey: {
9144
+ readonly floor_quantity: "floor_quantity";
9145
+ readonly floor_fee: "floor_fee";
9146
+ readonly minimum_period: "minimum_period";
9147
+ readonly carried: "carried";
9148
+ readonly clawback: "clawback";
9149
+ readonly minimum_monthly_fee: "minimum_monthly_fee";
9150
+ };
9151
+ export interface InvoiceTextDto {
9152
+ /** floor_quantity / floor_fee: a contracted minimum quantity or charge applied; minimum_period: days billed for the minimum storage period; carried: a correction for an earlier month; clawback: a campaign benefit charged back, followed by the campaign's title; minimum_monthly_fee: the lift to the minimum monthly storage fee. */
9153
+ key: InvoiceTextDtoKey;
9154
+ /** The longest text accepted for this label. It leaves room on the 200-character invoice line for an article name of up to 80 characters, and for clawback also a campaign title. A campaign or code title after another label is cut when a long label leaves it no room. */
9155
+ maxLength: number;
9156
+ locales: InvoiceTextLocaleDto[];
9157
+ }
9158
+ export interface InvoiceTextLocalesInputDto {
9159
+ /**
9160
+ * Omitted or null: the platform's text in this locale.
9161
+ * @maxLength 119
9162
+ * @nullable
9163
+ */
9164
+ 'sv-SE'?: string | null;
9165
+ /**
9166
+ * Omitted or null: the platform's text in this locale.
9167
+ * @maxLength 119
9168
+ * @nullable
9169
+ */
9170
+ 'en-GB'?: string | null;
9171
+ /**
9172
+ * Omitted or null: the platform's text in this locale.
9173
+ * @maxLength 119
9174
+ * @nullable
9175
+ */
9176
+ 'fi-FI'?: string | null;
9177
+ }
9178
+ export interface ClawbackInvoiceTextLocalesInputDto {
9179
+ /**
9180
+ * Omitted or null: the platform's text in this locale.
9181
+ * @maxLength 38
9182
+ * @nullable
9183
+ */
9184
+ 'sv-SE'?: string | null;
9185
+ /**
9186
+ * Omitted or null: the platform's text in this locale.
9187
+ * @maxLength 38
9188
+ * @nullable
9189
+ */
9190
+ 'en-GB'?: string | null;
9191
+ /**
9192
+ * Omitted or null: the platform's text in this locale.
9193
+ * @maxLength 38
9194
+ * @nullable
9195
+ */
9196
+ 'fi-FI'?: string | null;
9197
+ }
9198
+ export interface InvoiceTextsInputDto {
9199
+ /**
9200
+ * Omitted or null: the platform's text in every locale.
9201
+ * @nullable
9202
+ */
9203
+ floor_quantity?: InvoiceTextLocalesInputDto | null;
9204
+ /**
9205
+ * Omitted or null: the platform's text in every locale.
9206
+ * @nullable
9207
+ */
9208
+ floor_fee?: InvoiceTextLocalesInputDto | null;
9209
+ /**
9210
+ * Omitted or null: the platform's text in every locale.
9211
+ * @nullable
9212
+ */
9213
+ minimum_period?: InvoiceTextLocalesInputDto | null;
9214
+ /**
9215
+ * Omitted or null: the platform's text in every locale.
9216
+ * @nullable
9217
+ */
9218
+ carried?: InvoiceTextLocalesInputDto | null;
9219
+ /**
9220
+ * Omitted or null: the platform's text in every locale.
9221
+ * @nullable
9222
+ */
9223
+ clawback?: ClawbackInvoiceTextLocalesInputDto | null;
9224
+ /**
9225
+ * Omitted or null: the platform's text in every locale.
9226
+ * @nullable
9227
+ */
9228
+ minimum_monthly_fee?: InvoiceTextLocalesInputDto | null;
9229
+ }
9230
+ export interface ReplaceInvoiceTextsDto {
9231
+ /** The tenant's text for each label and locale, replacing every text it had. A label or locale left out, or null, reads the platform's text in that locale; `{}` resets every label. */
9232
+ texts: InvoiceTextsInputDto;
9233
+ }
9234
+ /**
9235
+ * The mode in force. `off` — the job does nothing for the tenant: no charge, no move to OVERDUE. Invoices keep their schedule and are acted on, late, once the mode is `live` again. `shadow` (the default) — it logs what it would do and calls nothing in Stripe and writes nothing. `live` — it charges the saved card on the due date and moves an invoice still unpaid afterwards to OVERDUE.
9236
+ */
9237
+ export type InvoiceAutoChargeModeDtoMode = typeof InvoiceAutoChargeModeDtoMode[keyof typeof InvoiceAutoChargeModeDtoMode];
9238
+ export declare const InvoiceAutoChargeModeDtoMode: {
9239
+ readonly off: "off";
9240
+ readonly shadow: "shadow";
9241
+ readonly live: "live";
9242
+ };
9243
+ export interface InvoiceAutoChargeModeDto {
9244
+ /** The mode in force. `off` — the job does nothing for the tenant: no charge, no move to OVERDUE. Invoices keep their schedule and are acted on, late, once the mode is `live` again. `shadow` (the default) — it logs what it would do and calls nothing in Stripe and writes nothing. `live` — it charges the saved card on the due date and moves an invoice still unpaid afterwards to OVERDUE. */
9245
+ mode: InvoiceAutoChargeModeDtoMode;
9246
+ /** Whether the tenant has a stored mode. False means `mode` is the `shadow` default, which nobody has chosen. */
9247
+ configured: boolean;
9248
+ /**
9249
+ * Keycloak `sub` of whoever set the stored mode through this API. Null when nothing is stored, and when the stored mode is not the one the newest change through this API set: it was then set directly in the database, which records no actor.
9250
+ * @nullable
9251
+ */
9252
+ changedByUserSub: string | null;
9253
+ /**
9254
+ * When that change was made. Null whenever `changedByUserSub` is.
9255
+ * @nullable
9256
+ */
9257
+ changedAt: string | null;
9258
+ /**
9259
+ * The reason recorded with that change. Null whenever `changedByUserSub` is.
9260
+ * @nullable
9261
+ */
9262
+ changeReason: string | null;
9263
+ }
9264
+ /**
9265
+ * `off` — the job does nothing for the tenant: no charge, no move to OVERDUE. Invoices keep their schedule and are acted on, late, once the mode is `live` again. `shadow` (the default) — it logs what it would do and calls nothing in Stripe and writes nothing. `live` — it charges the saved card on the due date and moves an invoice still unpaid afterwards to OVERDUE.
9266
+ */
9267
+ export type SetInvoiceAutoChargeModeDtoMode = typeof SetInvoiceAutoChargeModeDtoMode[keyof typeof SetInvoiceAutoChargeModeDtoMode];
9268
+ export declare const SetInvoiceAutoChargeModeDtoMode: {
9269
+ readonly off: "off";
9270
+ readonly shadow: "shadow";
9271
+ readonly live: "live";
9272
+ };
9273
+ export interface SetInvoiceAutoChargeModeDto {
9274
+ /** `off` — the job does nothing for the tenant: no charge, no move to OVERDUE. Invoices keep their schedule and are acted on, late, once the mode is `live` again. `shadow` (the default) — it logs what it would do and calls nothing in Stripe and writes nothing. `live` — it charges the saved card on the due date and moves an invoice still unpaid afterwards to OVERDUE. */
9275
+ mode: SetInvoiceAutoChargeModeDtoMode;
9276
+ /** Why the mode is changing. Recorded in the admin action. */
9277
+ reason: string;
9278
+ }
9279
+ /**
9280
+ * The mode in force. `off` — the job does nothing for the tenant: no charge, no move to OVERDUE. Invoices keep their schedule and are acted on, late, once the mode is `live` again. `shadow` (the default) — it logs what it would do and calls nothing in Stripe and writes nothing. `live` — it charges the saved card on the due date and moves an invoice still unpaid afterwards to OVERDUE.
9281
+ */
9282
+ export type SetInvoiceAutoChargeModeResultDtoMode = typeof SetInvoiceAutoChargeModeResultDtoMode[keyof typeof SetInvoiceAutoChargeModeResultDtoMode];
9283
+ export declare const SetInvoiceAutoChargeModeResultDtoMode: {
9284
+ readonly off: "off";
9285
+ readonly shadow: "shadow";
9286
+ readonly live: "live";
9287
+ };
9288
+ /**
9289
+ * The mode this call replaced. Null when the tenant had no stored mode, i.e. it was on the `shadow` default.
9290
+ * @nullable
9291
+ */
9292
+ export type SetInvoiceAutoChargeModeResultDtoPreviousMode = typeof SetInvoiceAutoChargeModeResultDtoPreviousMode[keyof typeof SetInvoiceAutoChargeModeResultDtoPreviousMode] | null;
9293
+ export declare const SetInvoiceAutoChargeModeResultDtoPreviousMode: {
9294
+ readonly off: "off";
9295
+ readonly shadow: "shadow";
9296
+ readonly live: "live";
9297
+ };
9298
+ export interface SetInvoiceAutoChargeModeResultDto {
9299
+ /** The mode in force. `off` — the job does nothing for the tenant: no charge, no move to OVERDUE. Invoices keep their schedule and are acted on, late, once the mode is `live` again. `shadow` (the default) — it logs what it would do and calls nothing in Stripe and writes nothing. `live` — it charges the saved card on the due date and moves an invoice still unpaid afterwards to OVERDUE. */
9300
+ mode: SetInvoiceAutoChargeModeResultDtoMode;
9301
+ /** Whether the tenant has a stored mode. False means `mode` is the `shadow` default, which nobody has chosen. */
9302
+ configured: boolean;
9303
+ /**
9304
+ * Keycloak `sub` of whoever set the stored mode through this API. Null when nothing is stored, and when the stored mode is not the one the newest change through this API set: it was then set directly in the database, which records no actor.
9305
+ * @nullable
9306
+ */
9307
+ changedByUserSub: string | null;
9308
+ /**
9309
+ * When that change was made. Null whenever `changedByUserSub` is.
9310
+ * @nullable
9311
+ */
9312
+ changedAt: string | null;
9313
+ /**
9314
+ * The reason recorded with that change. Null whenever `changedByUserSub` is.
9315
+ * @nullable
9316
+ */
9317
+ changeReason: string | null;
9318
+ /**
9319
+ * The mode this call replaced. Null when the tenant had no stored mode, i.e. it was on the `shadow` default.
9320
+ * @nullable
9321
+ */
9322
+ previousMode: SetInvoiceAutoChargeModeResultDtoPreviousMode;
9323
+ /** True when this call replayed a prior result for the same Idempotency-Key and wrote nothing. */
9324
+ idempotent: boolean;
9325
+ }
8972
9326
  export interface CustomerSubscriptionConfigDto {
8973
9327
  customerSubscriptionConfigId: string;
8974
9328
  tenantId: string;
@@ -9923,6 +10277,8 @@ export interface PricingRuleDto {
9923
10277
  calculationMethod: string;
9924
10278
  /** Method-specific parameters (JSON). */
9925
10279
  parameters: PricingRuleDtoParameters;
10280
+ /** Whether the amounts in `parameters` include VAT (BE-2298): stamped from the tenant's `pricesIncludeVat` whenever the parameters are written, and kept when the tenant's changes. A price that includes VAT bills its amount with the VAT taken out of it (29,90 € at 25,5 % is 23,82 € and 6,08 € VAT); one that excludes it is taxed on top. */
10281
+ pricesIncludeVat: boolean;
9926
10282
  /** Rule scope: order / product / shipment / storage / time / material. */
9927
10283
  ruleScope: string;
9928
10284
  /** Engine stage (lower runs first; layered rules differ). */
@@ -10044,7 +10400,10 @@ export interface SimulatedBasisRowDto {
10044
10400
  quantity: number;
10045
10401
  unitOfMeasureId: string;
10046
10402
  unitCode: string;
10047
- /** @nullable */
10403
+ /**
10404
+ * The rule's unit price, in the row's basis (`pricesIncludeVat`).
10405
+ * @nullable
10406
+ */
10048
10407
  unitPriceMinor: number | null;
10049
10408
  /** Amount excl. VAT in minor currency units. */
10050
10409
  amountExVatMinor: number;
@@ -10052,6 +10411,8 @@ export interface SimulatedBasisRowDto {
10052
10411
  vatRate: number;
10053
10412
  /** Pre-discount VAT in minor currency units. */
10054
10413
  vatAmountMinor: number;
10414
+ /** Whether the row's price includes VAT (BE-2298): its amount is then `amountExVatMinor + vatAmountMinor`, split out of the price, and a reduction applies to the two together. A template is simulated in the tenant's basis, which is what applying it would stamp; a self-cost-plus-markup row is ex VAT whatever the basis. */
10415
+ pricesIncludeVat: boolean;
10055
10416
  currencyCode: string;
10056
10417
  ruleScope: string;
10057
10418
  componentCode: string;
@@ -10069,6 +10430,8 @@ export interface ProjectedInvoiceRowDto {
10069
10430
  amountExVatMinor: number;
10070
10431
  /** VAT amount in minor currency units, BEFORE discounts. */
10071
10432
  vatAmountMinor: number;
10433
+ /** Whether the row's price includes VAT (BE-2298). Rows of one article in the two bases are projected onto separate invoice rows, as the invoice bills them. */
10434
+ pricesIncludeVat: boolean;
10072
10435
  rutEligible: boolean;
10073
10436
  /** @nullable */
10074
10437
  periodStart: string | null;
@@ -10169,7 +10532,7 @@ export interface SimulatedQuoteDeferralDto {
10169
10532
  export interface SimulatedQuoteDto {
10170
10533
  /** ISO 4217 — the currency all amounts are expressed in */
10171
10534
  currencyCode: string;
10172
- /** One line per priced component, as the cart lists them: the transport base, a zone surcharge, a window surcharge, the start fee, storage, and each floor (`floorKind` quantity or fee) on a line of its own. Each campaign's reduction is on the line it reduces (`campaignDiscountExVatMinor`). */
10535
+ /** One line per priced component, as the cart lists them: the transport base, a zone surcharge, a window surcharge, the start fee, storage, and each floor (`floorKind` quantity or fee) on a line of its own. Each campaign's reduction is on the line it reduces (`campaignDiscountExVatMinor`). A preview has no cart lines, so no line carries `floorItems`. */
10173
10536
  lines: QuoteLineDto[];
10174
10537
  volume: QuoteVolumeDto;
10175
10538
  /** The automatic campaigns applied (newCustomerInCampaignWindow); status is qualifies. */
@@ -10631,6 +10994,8 @@ export interface PriceBookDto {
10631
10994
  * @nullable
10632
10995
  */
10633
10996
  currencyCode: string | null;
10997
+ /** Whether the tenant's prices are written including VAT (the tenant billing config's `pricesIncludeVat`, BE-2298): the basis a section written now is stated in. Each rule carries its own basis (`pricesIncludeVat`), which differs from this one for a rule written before the tenant's changed. */
10998
+ pricesIncludeVat: boolean;
10634
10999
  sections: PriceBookSectionDto[];
10635
11000
  /**
10636
11001
  * The tenant's open draft, or null.
@@ -12931,10 +13296,20 @@ export interface TenantGoodsDto {
12931
13296
  /** 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. */
12932
13297
  translations: TenantGoodsTranslationsDto;
12933
13298
  /**
12934
- * The SKU's price ex VAT as a decimal string, read from its pricing rule: the open-ended rule, which is the latest price set even when it starts in the future. Null when the SKU has no open-ended price.
13299
+ * The SKU's price ex VAT as a decimal string, read from its pricing rule: the open-ended rule, which is the latest price set even when it starts in the future. A price entered including VAT shows its net part (2,99 € at 25,5 % → "2.38"), which does not multiply back to it. Null when the SKU has no open-ended price.
12935
13300
  * @nullable
12936
13301
  */
12937
13302
  retailPriceExVat?: string | null;
13303
+ /**
13304
+ * The same price including VAT, as a decimal string: as entered when the price includes VAT (`pricesIncludeVat`), else the ex-VAT price with its VAT. Null when the SKU has no open-ended price.
13305
+ * @nullable
13306
+ */
13307
+ retailPriceIncVat?: string | null;
13308
+ /**
13309
+ * Whether the price was entered including VAT (`unitPriceIncVatMinor`). Null when the SKU has no open-ended price.
13310
+ * @nullable
13311
+ */
13312
+ pricesIncludeVat?: boolean | null;
12938
13313
  /** @nullable */
12939
13314
  currencyCode?: string | null;
12940
13315
  /** The billing.article this SKU prices through. Created by the SKU command; not caller-supplied. */
@@ -12999,10 +13374,15 @@ export interface CreateTenantGoodsDto {
12999
13374
  /** The name and description per locale (sv-SE, en-GB, fi-FI); `name` and `description` above stay the default for a locale with none. Defaults to none. */
13000
13375
  translations?: TenantGoodsTranslationsInputDto;
13001
13376
  /**
13002
- * Price per unit ex VAT, in minor units (öre/cent). 0 is allowed — a free item still needs a rule so the sale produces an invoice line.
13377
+ * Price per unit ex VAT, in minor units (öre/cent). 0 is allowed — a free item still needs a rule so the sale produces an invoice line. Required on a tenant whose prices exclude VAT; on one whose prices include VAT (`pricesIncludeVat` on the tenant billing config) it is refused with 400 `merchandise_price_basis_mismatch`: give `unitPriceIncVatMinor` instead.
13003
13378
  * @minimum 0
13004
13379
  */
13005
- unitPriceExVatMinor: number;
13380
+ unitPriceExVatMinor?: number;
13381
+ /**
13382
+ * Price per unit INCLUDING VAT, in minor units, on a tenant whose prices include VAT: 10 at 299 bill 29,90 € (23,82 € and 6,08 € VAT at 25,5 %). Required there and refused with 400 `merchandise_price_basis_mismatch` anywhere else.
13383
+ * @minimum 0
13384
+ */
13385
+ unitPriceIncVatMinor?: number;
13006
13386
  /** ISO 4217. Required even though the SKU column is nullable: the pricing rule's currency is NOT NULL and must be enabled for the tenant (billing.tenant_enabled_currency), so a SKU without one could not be priced. */
13007
13387
  currencyCode: string;
13008
13388
  /** VAT rate for the SKU's article, a percentage (numeric → string): 25.0000 for 25 %, 25.5000 for 25.5 %. A code that restores a deleted SKU keeps that SKU's article, and so its rate; change it through PATCH /v1/billing/articles/:id. */
@@ -13044,10 +13424,15 @@ export interface UpdateTenantGoodsDto {
13044
13424
  /** Replaces the SKU's per-locale texts WHOLE: a locale left out loses its entry, and `{}` removes them all. Omitted leaves them alone. */
13045
13425
  translations?: TenantGoodsTranslationsInputDto;
13046
13426
  /**
13047
- * New price per unit ex VAT in minor units. Equal to the current price is a no-op; different closes the live rule's window and opens a new one.
13427
+ * New price per unit ex VAT in minor units. Equal to the current price is a no-op; different closes the live rule's window and opens a new one. On a tenant whose prices include VAT it is refused with 400 `merchandise_price_basis_mismatch`: give `unitPriceIncVatMinor` instead.
13048
13428
  * @minimum 0
13049
13429
  */
13050
13430
  unitPriceExVatMinor?: number;
13431
+ /**
13432
+ * New price per unit INCLUDING VAT in minor units, on a tenant whose prices include VAT. Equal to the current price, in the same basis, is a no-op; anything else, including the same amount on a price that was entered ex VAT, closes the live rule's window and opens a new one. Refused with 400 `merchandise_price_basis_mismatch` on a tenant whose prices exclude VAT.
13433
+ * @minimum 0
13434
+ */
13435
+ unitPriceIncVatMinor?: number;
13051
13436
  /** Date the new price takes effect (YYYY-MM-DD). Defaults to today. Must be strictly AFTER the live rule's effective_from: an earlier date would build an inverted date range and a same-day one an empty range, which the EXCLUDE constraint silently accepts and nothing can ever price. */
13052
13437
  effectiveFrom?: string;
13053
13438
  category?: string;
@@ -13566,6 +13951,28 @@ export interface AnalyticsVolumePerCustomerDto {
13566
13951
  /** @nullable */
13567
13952
  estimatedM3: number | null;
13568
13953
  }
13954
+ export interface AnalyticsVolumeBucketDto {
13955
+ /** Customers in the bucket. */
13956
+ count: number;
13957
+ /**
13958
+ * Average over the bucket's customers of the measured m³ each held over their stored nights. Null for an empty bucket.
13959
+ * @nullable
13960
+ */
13961
+ measuredM3: number | null;
13962
+ /**
13963
+ * The same, estimated. A stay's estimate is its average over the nights that carry one, as the stays dataset reports it; a stay with none counts at its measured average. Null for an empty bucket, or when no stay of its customers carries an estimate.
13964
+ * @nullable
13965
+ */
13966
+ estimatedM3: number | null;
13967
+ }
13968
+ export interface AnalyticsVolumeByStatusDto {
13969
+ /** Latest stay stored on the night. */
13970
+ active: AnalyticsVolumeBucketDto;
13971
+ /** Latest stay ended: empty for `stayGapNights` consecutive nights. */
13972
+ ended: AnalyticsVolumeBucketDto;
13973
+ /** Every customer who has stored, including those between stays, who are in neither bucket above. */
13974
+ all: AnalyticsVolumeBucketDto;
13975
+ }
13569
13976
  export interface AnalyticsNightsBucketDto {
13570
13977
  /** Stays, or customers, in the bucket. */
13571
13978
  count: number;
@@ -13607,12 +14014,17 @@ export interface AnalyticsLifetimeValueDto {
13607
14014
  */
13608
14015
  currencyCode: string | null;
13609
14016
  /**
13610
- * Average invoiced revenue ex VAT, minor units, of the customers whose latest stay has ended.
14017
+ * Average invoiced revenue ex VAT, minor units, of the customers whose latest stay is stored on the night.
14018
+ * @nullable
14019
+ */
14020
+ activeCustomersMinor: number | null;
14021
+ /**
14022
+ * The same over the customers whose latest stay has ended.
13611
14023
  * @nullable
13612
14024
  */
13613
14025
  endedCustomersMinor: number | null;
13614
14026
  /**
13615
- * The same over every customer who has stored.
14027
+ * The same over every customer who has stored, including those between stays.
13616
14028
  * @nullable
13617
14029
  */
13618
14030
  storingCustomersMinor: number | null;
@@ -13624,6 +14036,8 @@ export interface AnalyticsPointInTimeDto {
13624
14036
  activeCustomers: number;
13625
14037
  storedVolume: AnalyticsStoredVolumeDto;
13626
14038
  averageVolumePerActiveCustomer: AnalyticsVolumePerCustomerDto;
14039
+ /** Per customer, the average m³ they held over their stored nights across every stay, by the status of their latest stay. An active customer's is their average so far, not the night's volume, which averageVolumePerActiveCustomer gives. */
14040
+ averageVolumeWhileStoring: AnalyticsVolumeByStatusDto;
13627
14041
  /** Customers registered on or before the night, cumulative. */
13628
14042
  registeredCustomers: number;
13629
14043
  /** Customers who had stored by the night, cumulative. */
@@ -13638,6 +14052,8 @@ export interface AnalyticsPointInTimeSetDto {
13638
14052
  previousMonthEnd: AnalyticsPointInTimeDto;
13639
14053
  /** asOf a month earlier, clamped to that month's last day (31 Oct → 30 Sep). */
13640
14054
  sameDayLastMonth: AnalyticsPointInTimeDto;
14055
+ /** The last night of the range the requested one is compared with, `range.previous.to`: the night to compare a point-in-time figure with, range against range. */
14056
+ previousRangeEnd: AnalyticsPointInTimeDto;
13641
14057
  }
13642
14058
  export interface AnalyticsRevenueCategoryDto {
13643
14059
  /**
@@ -13656,7 +14072,10 @@ export interface AnalyticsRevenueArticleDto {
13656
14072
  articleId: string | null;
13657
14073
  /** @nullable */
13658
14074
  code: string | null;
13659
- /** @nullable */
14075
+ /**
14076
+ * The article's name in the requested `locale`, else its default name. Null for a row with no article.
14077
+ * @nullable
14078
+ */
13660
14079
  name: string | null;
13661
14080
  /** @nullable */
13662
14081
  category: string | null;
@@ -13691,6 +14110,46 @@ export interface AnalyticsPeriodSetDto {
13691
14110
  /** The month before that. */
13692
14111
  monthBefore: AnalyticsPeriodDto;
13693
14112
  }
14113
+ export interface AnalyticsCohortLifetimeValueDto {
14114
+ /**
14115
+ * The tenant's default currency, which lifetime revenue is counted in; revenue in any other currency is not in it. Null before the first build or for a tenant with no default currency.
14116
+ * @nullable
14117
+ */
14118
+ currencyCode: string | null;
14119
+ /**
14120
+ * Average invoiced revenue ex VAT to date, minor units, of the cohort's customers whose latest stay is stored as of the latest nightly build. Revenue invoiced after the range counts, so an earlier range's cohort has had longer to earn. Null when none is.
14121
+ * @nullable
14122
+ */
14123
+ activeCustomersMinor: number | null;
14124
+ /**
14125
+ * The same over the cohort's customers whose latest stay has ended.
14126
+ * @nullable
14127
+ */
14128
+ endedCustomersMinor: number | null;
14129
+ /**
14130
+ * The same over the whole cohort, including customers between stays. Null when the cohort is empty.
14131
+ * @nullable
14132
+ */
14133
+ storingCustomersMinor: number | null;
14134
+ }
14135
+ export interface AnalyticsRangePeriodDto {
14136
+ from: string;
14137
+ /** Included. */
14138
+ to: string;
14139
+ /** Customers registered in the window. */
14140
+ newRegisteredCustomers: number;
14141
+ /** Customers whose first stay started in the window. */
14142
+ newStoringCustomers: number;
14143
+ /** Invoiced revenue by invoice date, one entry per currency, never summed across currencies. Invoices sent, paid, overdue or written off; credit notes net against them. */
14144
+ revenue: AnalyticsRevenueDto[];
14145
+ cohortLifetimeValue: AnalyticsCohortLifetimeValueDto;
14146
+ }
14147
+ export interface AnalyticsRangeSetDto {
14148
+ /** The range asked for, `from` through `to`. */
14149
+ current: AnalyticsRangePeriodDto;
14150
+ /** The range it is compared with. A range starting on a 1st compares with the same span as many calendar months earlier as it spans, ending on a month's last day when it does: October with September, a quarter with the quarter before, 1–10 Nov with 1–10 Oct. Any other range compares with as many days immediately before it. */
14151
+ previous: AnalyticsRangePeriodDto;
14152
+ }
13694
14153
  export interface AnalyticsRevenueTotalDto {
13695
14154
  currencyCode: string;
13696
14155
  /** Revenue ex VAT, minor units. */
@@ -13734,6 +14193,36 @@ export interface AnalyticsPricePerM3Dto {
13734
14193
  /** The service month before it. */
13735
14194
  monthBefore: AnalyticsPricePerM3MonthDto;
13736
14195
  }
14196
+ export interface AnalyticsPricePerM3TrendMonthDto {
14197
+ /** First day of the service month. */
14198
+ serviceMonth: string;
14199
+ /** Storage-category revenue ex VAT for the service month, minor units. */
14200
+ storageRevenueMinor: number;
14201
+ /** Average m³ stored over the month's nights, measured. */
14202
+ averageMeasuredM3: number;
14203
+ /**
14204
+ * The same, estimated; null when no night of the month carries an estimate.
14205
+ * @nullable
14206
+ */
14207
+ averageEstimatedM3: number | null;
14208
+ /**
14209
+ * Minor units per measured m³; null when nothing measured was stored.
14210
+ * @nullable
14211
+ */
14212
+ pricePerMeasuredM3Minor: number | null;
14213
+ /**
14214
+ * Minor units per estimated m³.
14215
+ * @nullable
14216
+ */
14217
+ pricePerEstimatedM3Minor: number | null;
14218
+ /** None of the month's storage charges in this currency is still unbilled or on a draft — the rule lastInvoicedServiceMonth is chosen by. Both prices are null unless the month is fully invoiced and has storage revenue in this currency: never estimated. Until then storageRevenueMinor is what has been invoiced so far. Revenue is as of the latest nightly build, so on the day a month's last storage invoices are sent its price can read short until the next build. */
14219
+ fullyInvoiced: boolean;
14220
+ }
14221
+ export interface AnalyticsPricePerM3TrendDto {
14222
+ currencyCode: string;
14223
+ /** The twelve service months before asOf's, oldest first, every one listed. averagePricePerM3's lastInvoicedServiceMonth can be older than all of them. */
14224
+ months: AnalyticsPricePerM3TrendMonthDto[];
14225
+ }
13737
14226
  export interface AnalyticsEstimateCategoryDto {
13738
14227
  /** @nullable */
13739
14228
  category: string | null;
@@ -13764,6 +14253,57 @@ export interface AnalyticsEstimateCurrencyDto {
13764
14253
  lastMonthActualMinor: number;
13765
14254
  byCategory: AnalyticsEstimateCategoryDto[];
13766
14255
  }
14256
+ /**
14257
+ * `cold_start` when fewer than `minPods` pods were measured in the window, so the ratio is 1 and no correction was applied.
14258
+ */
14259
+ export type AnalyticsForecastRatioDtoSource = typeof AnalyticsForecastRatioDtoSource[keyof typeof AnalyticsForecastRatioDtoSource];
14260
+ export declare const AnalyticsForecastRatioDtoSource: {
14261
+ readonly measured: "measured";
14262
+ readonly cold_start: "cold_start";
14263
+ };
14264
+ export interface AnalyticsForecastRatioDto {
14265
+ /** What an estimated volume is multiplied by to read as the warehouse will measure it: measured volume over estimated volume of the pods measured in the window, four decimals. Not clamped: above 1 means estimates run short. Exactly 1 when `source` is `cold_start`. */
14266
+ value: number;
14267
+ /** `cold_start` when fewer than `minPods` pods were measured in the window, so the ratio is 1 and no correction was applied. */
14268
+ source: AnalyticsForecastRatioDtoSource;
14269
+ /** Pods measured in the window that carry both a measurement and an estimate. */
14270
+ measuredPods: number;
14271
+ /** The fewest measured pods the ratio is computed from. */
14272
+ minPods: number;
14273
+ /** Days of measurements the ratio reads, ending at `windowTo`. */
14274
+ windowDays: number;
14275
+ windowFrom: string;
14276
+ windowTo: string;
14277
+ }
14278
+ export interface AnalyticsInvoiceForecastCategoryDto {
14279
+ /** @nullable */
14280
+ category: string | null;
14281
+ /** Net ex-VAT of the booked pickups' charges in this category, minor units, after campaigns, binding discounts and codes. */
14282
+ bookedPickupsMinor: number;
14283
+ }
14284
+ export interface AnalyticsInvoiceForecastCurrencyDto {
14285
+ currencyCode: string;
14286
+ /** Net ex-VAT of what the booked pickups add to the window's invoices, minor units: the sum of the categories'. Not part of `estimateMinor`. */
14287
+ bookedPickupsMinor: number;
14288
+ /** Pickups priced into this currency. */
14289
+ pickupsPriced: number;
14290
+ byCategory: AnalyticsInvoiceForecastCategoryDto[];
14291
+ }
14292
+ export interface AnalyticsInvoiceForecastDto {
14293
+ /** Always true: what live pickups booked for the rest of the window will add if they go ahead, priced through the pricing engine as their checkout quote was. Separate from the accrued figures and never added to them. */
14294
+ isForecast: boolean;
14295
+ ratio: AnalyticsForecastRatioDto;
14296
+ /** Live pickups planned in the window after `asOf`, not yet at the warehouse. A pickup planned earlier and still open counts from the day after `asOf`. */
14297
+ pickupsBooked: number;
14298
+ /** How many of them are priced into `currencies`. */
14299
+ pickupsPriced: number;
14300
+ /** Booked pickups left out because nothing could price them: no currency, a price book with no base rule for them, or the limit on how many are priced in one request (`truncated`). */
14301
+ pickupsUnpriced: number;
14302
+ /** True when pricing stopped at the limit on pickups or on time, so `currencies` is short by the pickups it did not reach. */
14303
+ truncated: boolean;
14304
+ /** One entry per currency. */
14305
+ currencies: AnalyticsInvoiceForecastCurrencyDto[];
14306
+ }
13767
14307
  export interface AnalyticsInvoiceEstimateDto {
13768
14308
  /** Always true: these are projections, not invoices. */
13769
14309
  isEstimate: boolean;
@@ -13781,9 +14321,11 @@ export interface AnalyticsInvoiceEstimateDto {
13781
14321
  lastMonthComplete: boolean;
13782
14322
  /** One entry per currency. */
13783
14323
  currencies: AnalyticsEstimateCurrencyDto[];
14324
+ /** What live pickups booked for the rest of the window add on top of this estimate, priced through the pricing engine. Never part of `estimateMinor` or any figure above: the client shows it beside them, or adds it up. */
14325
+ forecast: AnalyticsInvoiceForecastDto;
13784
14326
  }
13785
14327
  export interface AnalyticsOverviewDto {
13786
- /** The night the figures describe. */
14328
+ /** The night the figures describe: the range's last night, `to`. */
13787
14329
  asOf: string;
13788
14330
  /**
13789
14331
  * When the nightly analytics build these figures read was computed; null before the first.
@@ -13794,11 +14336,54 @@ export interface AnalyticsOverviewDto {
13794
14336
  stayGapNights: number;
13795
14337
  pointInTime: AnalyticsPointInTimeSetDto;
13796
14338
  periods: AnalyticsPeriodSetDto;
14339
+ /** The period figures over the requested range and the range it is compared with, each with the lifetime value of its acquisition cohort. */
14340
+ range: AnalyticsRangeSetDto;
13797
14341
  revenueYearToDate: AnalyticsRevenueYearToDateDto;
13798
14342
  /** One entry per currency with a fully invoiced storage month. */
13799
14343
  averagePricePerM3: AnalyticsPricePerM3Dto[];
14344
+ /** The price per m³ month by month, one entry per currency with storage revenue in any of the twelve service months before asOf's, including a currency with no fully invoiced month yet. */
14345
+ averagePricePerM3Trend: AnalyticsPricePerM3TrendDto[];
13800
14346
  estimatedInvoicesThisMonth: AnalyticsInvoiceEstimateDto;
13801
14347
  }
14348
+ export interface AnalyticsStorageForecastDayDto {
14349
+ date: string;
14350
+ /** m³ in storage when the day ends: the day before's, plus what booked pickups bring on the day, less what booked deliveries take out. Never below 0. */
14351
+ projectedM3: number;
14352
+ /** m³ the pickups planned on the day bring in, estimated volume times the correction ratio. */
14353
+ incomingM3: number;
14354
+ /** m³ the deliveries planned on the day take out. */
14355
+ outgoingM3: number;
14356
+ /** Pickups planned on the day. */
14357
+ bookedPickups: number;
14358
+ /** Deliveries planned on the day. */
14359
+ bookedDeliveries: number;
14360
+ }
14361
+ /**
14362
+ * Which volume `startM3` is: the estimated volume the dashboard charts, or the measured volume when no night carries an estimate.
14363
+ */
14364
+ export type AnalyticsStorageForecastDtoStartBasis = typeof AnalyticsStorageForecastDtoStartBasis[keyof typeof AnalyticsStorageForecastDtoStartBasis];
14365
+ export declare const AnalyticsStorageForecastDtoStartBasis: {
14366
+ readonly estimated: "estimated";
14367
+ readonly measured: "measured";
14368
+ };
14369
+ export interface AnalyticsStorageForecastDto {
14370
+ /** The latest night built: the forecast starts from how it ended. */
14371
+ asOf: string;
14372
+ /**
14373
+ * When the nightly analytics build these figures read was computed; null before the first.
14374
+ * @nullable
14375
+ */
14376
+ computedAt: string | null;
14377
+ /** Days forecast, from the day after `asOf`. */
14378
+ horizonDays: number;
14379
+ /** m³ in storage when `asOf` ended, the figure the forecast continues from. */
14380
+ startM3: number;
14381
+ /** Which volume `startM3` is: the estimated volume the dashboard charts, or the measured volume when no night carries an estimate. */
14382
+ startBasis: AnalyticsStorageForecastDtoStartBasis;
14383
+ ratio: AnalyticsForecastRatioDto;
14384
+ /** One entry per day, in date order, every day listed. */
14385
+ days: AnalyticsStorageForecastDayDto[];
14386
+ }
13802
14387
  export interface AnalyticsDailyRowDto {
13803
14388
  date: string;
13804
14389
  /** Customers with goods in storage that night. */
@@ -14133,7 +14718,33 @@ export type OrganizationsControllerListV1Params = {
14133
14718
  */
14134
14719
  search?: string;
14135
14720
  /**
14136
- * Batch-fetch by id (repeatable — ?ids=a&ids=b, max 100). When present this is the ONLY filter applied (type/search above are ignored) and pagination (limit/offset) is ignored — every matching, RLS-visible organization is returned, in no particular order (callers key by id). An id that doesn't exist, or isn't visible to the caller, is silently omitted rather than causing an error.
14721
+ * Filter by service tier.
14722
+ */
14723
+ serviceTier?: OrganizationsControllerListV1ServiceTier;
14724
+ /**
14725
+ * Created at or after this instant, inclusive: a date (YYYY-MM-DD) or an ISO-8601 date-time with its offset, to the millisecond. A date alone is midnight UTC at the start of that day.
14726
+ * @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
14727
+ */
14728
+ createdFrom?: string;
14729
+ /**
14730
+ * Created at or before this instant, inclusive: a date (YYYY-MM-DD) or an ISO-8601 date-time with its offset, to the millisecond. A date alone is midnight UTC at the start of that day, so `2026-11-11` leaves out what was created later that day: send the next day, or a full timestamp, to include it.
14731
+ * @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
14732
+ */
14733
+ createdTo?: string;
14734
+ /**
14735
+ * Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
14736
+ */
14737
+ warehouseId?: string;
14738
+ /**
14739
+ * Sort key. Rows that tie on it are ordered by organization id, in the same direction.
14740
+ */
14741
+ sort?: OrganizationsControllerListV1Sort;
14742
+ /**
14743
+ * Sort direction. When omitted: `asc` for `sort=name`, `desc` for `sort=createdAt` (newest first). Without `sort`, it applies to `createdAt`.
14744
+ */
14745
+ order?: OrganizationsControllerListV1Order;
14746
+ /**
14747
+ * Batch-fetch by id (repeatable — ?ids=a&ids=b, max 100). When present this is the ONLY filter applied (every filter above is ignored) and pagination (limit/offset) and sort/order are ignored — every matching, RLS-visible organization is returned, in no particular order (callers key by id). An id that doesn't exist, or isn't visible to the caller, is silently omitted rather than causing an error.
14137
14748
  */
14138
14749
  ids?: string[];
14139
14750
  };
@@ -14142,22 +14753,62 @@ export declare const OrganizationsControllerListV1Type: {
14142
14753
  readonly business: "business";
14143
14754
  readonly personal: "personal";
14144
14755
  };
14756
+ export type OrganizationsControllerListV1ServiceTier = typeof OrganizationsControllerListV1ServiceTier[keyof typeof OrganizationsControllerListV1ServiceTier];
14757
+ export declare const OrganizationsControllerListV1ServiceTier: {
14758
+ readonly PRO: "PRO";
14759
+ readonly CORE: "CORE";
14760
+ readonly LIGHT: "LIGHT";
14761
+ };
14762
+ export type OrganizationsControllerListV1Sort = typeof OrganizationsControllerListV1Sort[keyof typeof OrganizationsControllerListV1Sort];
14763
+ export declare const OrganizationsControllerListV1Sort: {
14764
+ readonly name: "name";
14765
+ readonly createdAt: "createdAt";
14766
+ };
14767
+ export type OrganizationsControllerListV1Order = typeof OrganizationsControllerListV1Order[keyof typeof OrganizationsControllerListV1Order];
14768
+ export declare const OrganizationsControllerListV1Order: {
14769
+ readonly asc: "asc";
14770
+ readonly desc: "desc";
14771
+ };
14145
14772
  export type OrganizationsControllerStatsV1Params = {
14146
14773
  /**
14147
14774
  * Filter by organization type.
14148
14775
  */
14149
14776
  type?: OrganizationsControllerStatsV1Type;
14150
14777
  /**
14151
- * Case-insensitive substring search. Always matches the organization name, its corporate identity number (orgnr) and, given a whole id, the organization id. For tenant staff with `member:read`, and platform-admin, it also matches any live member's email, display name, first name, last name, "first last", and phone, and the billing account's invoice email; the member matched need not be the one shown as `owner`. Other callers, org users included, are not matched on those fields. Matches exactly what GET /v1/organizations matches for the same caller.
14778
+ * Case-insensitive substring search. Always matches the organization name, its corporate identity number (orgnr) and, given a whole id, the organization id. For tenant staff with `member:read`, and platform-admin, it also matches any live member's email, display name, first name, last name, "first last", and phone, and the billing account's invoice email; the member matched need not be the one shown as `owner`. Other callers, org users included, are not matched on those fields.
14152
14779
  * @maxLength 200
14153
14780
  */
14154
14781
  search?: string;
14782
+ /**
14783
+ * Filter by service tier.
14784
+ */
14785
+ serviceTier?: OrganizationsControllerStatsV1ServiceTier;
14786
+ /**
14787
+ * Created at or after this instant, inclusive: a date (YYYY-MM-DD) or an ISO-8601 date-time with its offset, to the millisecond. A date alone is midnight UTC at the start of that day.
14788
+ * @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
14789
+ */
14790
+ createdFrom?: string;
14791
+ /**
14792
+ * Created at or before this instant, inclusive: a date (YYYY-MM-DD) or an ISO-8601 date-time with its offset, to the millisecond. A date alone is midnight UTC at the start of that day, so `2026-11-11` leaves out what was created later that day: send the next day, or a full timestamp, to include it.
14793
+ * @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
14794
+ */
14795
+ createdTo?: string;
14796
+ /**
14797
+ * Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
14798
+ */
14799
+ warehouseId?: string;
14155
14800
  };
14156
14801
  export type OrganizationsControllerStatsV1Type = typeof OrganizationsControllerStatsV1Type[keyof typeof OrganizationsControllerStatsV1Type];
14157
14802
  export declare const OrganizationsControllerStatsV1Type: {
14158
14803
  readonly business: "business";
14159
14804
  readonly personal: "personal";
14160
14805
  };
14806
+ export type OrganizationsControllerStatsV1ServiceTier = typeof OrganizationsControllerStatsV1ServiceTier[keyof typeof OrganizationsControllerStatsV1ServiceTier];
14807
+ export declare const OrganizationsControllerStatsV1ServiceTier: {
14808
+ readonly PRO: "PRO";
14809
+ readonly CORE: "CORE";
14810
+ readonly LIGHT: "LIGHT";
14811
+ };
14161
14812
  export type CarriersControllerListProvidersV1Params = {
14162
14813
  /**
14163
14814
  * Max rows to return (1–100).
@@ -15048,6 +15699,28 @@ export type InvoicesControllerListCorrectionsV1Params = {
15048
15699
  */
15049
15700
  offset?: number;
15050
15701
  };
15702
+ export type CollectionHoldsControllerListCollectionHoldsV1Params = {
15703
+ /**
15704
+ * Max rows to return (1–100).
15705
+ * @minimum 1
15706
+ * @maximum 100
15707
+ */
15708
+ limit?: number;
15709
+ /**
15710
+ * Rows to skip.
15711
+ * @minimum 0
15712
+ */
15713
+ offset?: number;
15714
+ /**
15715
+ * Only the invoices held for this reason.
15716
+ */
15717
+ reason?: CollectionHoldsControllerListCollectionHoldsV1Reason;
15718
+ };
15719
+ export type CollectionHoldsControllerListCollectionHoldsV1Reason = typeof CollectionHoldsControllerListCollectionHoldsV1Reason[keyof typeof CollectionHoldsControllerListCollectionHoldsV1Reason];
15720
+ export declare const CollectionHoldsControllerListCollectionHoldsV1Reason: {
15721
+ readonly DRAFT_CREDIT_NOTE: "DRAFT_CREDIT_NOTE";
15722
+ readonly CREDITED: "CREDITED";
15723
+ };
15051
15724
  export type ArticlesControllerListArticlesV1Params = {
15052
15725
  /**
15053
15726
  * Max rows to return (1–100).
@@ -15774,9 +16447,35 @@ export type TransportOptionsControllerListV1Params = {
15774
16447
  };
15775
16448
  export type AnalyticsControllerOverviewV1Params = {
15776
16449
  /**
15777
- * The night the figures describe (YYYY-MM-DD), in the tenant's billing calendar. Defaults to the latest night the nightly analytics build covers, normally last night. A later night is 400 as_of_not_built.
16450
+ * The night the figures describe (YYYY-MM-DD), in the tenant's billing calendar: the range's last night, `to` by its older name, so give one or the other (400 as_of_and_to_exclusive). Defaults to the latest night the nightly analytics build covers, normally last night. A later night is 400 as_of_not_built.
15778
16451
  */
15779
16452
  asOf?: string;
16453
+ /**
16454
+ * First day of the range (YYYY-MM-DD), in the billing calendar. Defaults to the 1st of `to`'s month, so the range is the month to date. 400 date_range_required when it is after `to`; the range may span at most 25 calendar months (400 date_range_too_wide).
16455
+ */
16456
+ from?: string;
16457
+ /**
16458
+ * Last day of the range, included, and the night the point-in-time figures are read at. Defaults to, and may not be after, the latest night the nightly build covers (400 date_range_not_built).
16459
+ */
16460
+ to?: string;
16461
+ /**
16462
+ * Language of the article names in `byArticle`: the page's language. Each name is the article's name in this locale, or its default name when it has none. Omit it to get every article's default name.
16463
+ */
16464
+ locale?: AnalyticsControllerOverviewV1Locale;
16465
+ };
16466
+ export type AnalyticsControllerOverviewV1Locale = typeof AnalyticsControllerOverviewV1Locale[keyof typeof AnalyticsControllerOverviewV1Locale];
16467
+ export declare const AnalyticsControllerOverviewV1Locale: {
16468
+ readonly 'sv-SE': "sv-SE";
16469
+ readonly 'en-GB': "en-GB";
16470
+ readonly 'fi-FI': "fi-FI";
16471
+ };
16472
+ export type AnalyticsControllerStorageForecastV1Params = {
16473
+ /**
16474
+ * Days to forecast, from the day after the latest night built (1–60).
16475
+ * @minimum 1
16476
+ * @maximum 60
16477
+ */
16478
+ days?: number;
15780
16479
  };
15781
16480
  export type AnalyticsControllerDailyV1Params = {
15782
16481
  /**