@vindentech/api-client 2.0.0-next.2 → 2.0.0-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js.map +1 -1
- package/dist/generated/_all.d.ts +4 -0
- package/dist/generated/_all.d.ts.map +1 -1
- package/dist/generated/_all.js +4 -0
- package/dist/generated/_all.js.map +1 -1
- package/dist/generated/_permissions.d.ts +41 -1
- package/dist/generated/_permissions.d.ts.map +1 -1
- package/dist/generated/_permissions.js +10 -0
- package/dist/generated/_permissions.js.map +1 -1
- package/dist/generated/analytics/analytics.d.ts +30 -2
- package/dist/generated/analytics/analytics.d.ts.map +1 -1
- package/dist/generated/analytics/analytics.js +43 -1
- package/dist/generated/analytics/analytics.js.map +1 -1
- package/dist/generated/billing-accounts/billing-accounts.d.ts +8 -1
- package/dist/generated/billing-accounts/billing-accounts.d.ts.map +1 -1
- package/dist/generated/billing-accounts/billing-accounts.js +0 -1
- package/dist/generated/billing-accounts/billing-accounts.js.map +1 -1
- package/dist/generated/collection-holds/collection-holds.d.ts +24 -0
- package/dist/generated/collection-holds/collection-holds.d.ts.map +1 -0
- package/dist/generated/collection-holds/collection-holds.js +23 -0
- package/dist/generated/collection-holds/collection-holds.js.map +1 -0
- package/dist/generated/index.schemas.d.ts +1351 -84
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js +133 -5
- package/dist/generated/index.schemas.js.map +1 -1
- package/dist/generated/invoice-auto-charge-mode/invoice-auto-charge-mode.d.ts +38 -0
- package/dist/generated/invoice-auto-charge-mode/invoice-auto-charge-mode.d.ts.map +1 -0
- package/dist/generated/invoice-auto-charge-mode/invoice-auto-charge-mode.js +41 -0
- package/dist/generated/invoice-auto-charge-mode/invoice-auto-charge-mode.js.map +1 -0
- package/dist/generated/organization-stored-volume/organization-stored-volume.d.ts +31 -0
- package/dist/generated/organization-stored-volume/organization-stored-volume.d.ts.map +1 -0
- package/dist/generated/organization-stored-volume/organization-stored-volume.js +15 -0
- package/dist/generated/organization-stored-volume/organization-stored-volume.js.map +1 -0
- package/dist/generated/organizations/organizations.d.ts +1 -1
- package/dist/generated/organizations/organizations.js +1 -1
- package/dist/generated/price-presentation/price-presentation.d.ts +38 -0
- package/dist/generated/price-presentation/price-presentation.d.ts.map +1 -0
- package/dist/generated/price-presentation/price-presentation.js +41 -0
- package/dist/generated/price-presentation/price-presentation.js.map +1 -0
- package/dist/generated/provider-switch/provider-switch.d.ts +5 -1
- package/dist/generated/provider-switch/provider-switch.d.ts.map +1 -1
- package/dist/generated/provider-switch/provider-switch.js.map +1 -1
- package/dist/generated/tenant-config/tenant-config.d.ts +29 -1
- package/dist/generated/tenant-config/tenant-config.d.ts.map +1 -1
- package/dist/generated/tenant-config/tenant-config.js +39 -0
- package/dist/generated/tenant-config/tenant-config.js.map +1 -1
- package/dist/generated/users/users.d.ts +1 -1
- package/dist/generated/users/users.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- 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'. */
|
|
@@ -226,10 +249,15 @@ export interface OrderMerchandiseDto {
|
|
|
226
249
|
/** Units placed. */
|
|
227
250
|
quantity: number;
|
|
228
251
|
/**
|
|
229
|
-
* 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.
|
|
230
253
|
* @minimum 0
|
|
231
254
|
*/
|
|
232
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;
|
|
233
261
|
/** VAT rate frozen at placement (numeric column → string, e.g. "25.0000"). */
|
|
234
262
|
vatRate: string;
|
|
235
263
|
/** Frozen at placement (ISO 4217). */
|
|
@@ -415,6 +443,11 @@ export interface OrderDetailDto {
|
|
|
415
443
|
* @nullable
|
|
416
444
|
*/
|
|
417
445
|
recipientName: string | null;
|
|
446
|
+
/**
|
|
447
|
+
* 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.
|
|
448
|
+
* @nullable
|
|
449
|
+
*/
|
|
450
|
+
customerLeg: OrderCustomerLegDto | null;
|
|
418
451
|
/** 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
452
|
productCount: number;
|
|
420
453
|
/** 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'. */
|
|
@@ -1550,6 +1583,31 @@ export interface OrganizationOwnerDto {
|
|
|
1550
1583
|
/** @nullable */
|
|
1551
1584
|
phone: string | null;
|
|
1552
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
|
+
}
|
|
1553
1611
|
export type OrganizationListItemDtoType = typeof OrganizationListItemDtoType[keyof typeof OrganizationListItemDtoType];
|
|
1554
1612
|
export declare const OrganizationListItemDtoType: {
|
|
1555
1613
|
readonly business: "business";
|
|
@@ -1584,6 +1642,53 @@ export interface OrganizationListItemDto {
|
|
|
1584
1642
|
* @nullable
|
|
1585
1643
|
*/
|
|
1586
1644
|
owner: OrganizationOwnerDto | null;
|
|
1645
|
+
/**
|
|
1646
|
+
* 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`.
|
|
1647
|
+
* @nullable
|
|
1648
|
+
*/
|
|
1649
|
+
memberCount: number | null;
|
|
1650
|
+
/** 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. */
|
|
1651
|
+
isPlaceholderName: boolean;
|
|
1652
|
+
/**
|
|
1653
|
+
* 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`.
|
|
1654
|
+
* @nullable
|
|
1655
|
+
*/
|
|
1656
|
+
invoiceEmail: string | null;
|
|
1657
|
+
/**
|
|
1658
|
+
* 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`.
|
|
1659
|
+
* @nullable
|
|
1660
|
+
*/
|
|
1661
|
+
invoiceRecipientEmail: string | null;
|
|
1662
|
+
/**
|
|
1663
|
+
* The customer's orders (jobs), every status: the `total` of `GET /v1/orders?organizationId=…`. null for a caller without `order:read` (org-billing).
|
|
1664
|
+
* @nullable
|
|
1665
|
+
*/
|
|
1666
|
+
ordersCount: number | null;
|
|
1667
|
+
/**
|
|
1668
|
+
* 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`.
|
|
1669
|
+
* @nullable
|
|
1670
|
+
*/
|
|
1671
|
+
openOrdersCount: number | null;
|
|
1672
|
+
/**
|
|
1673
|
+
* 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).
|
|
1674
|
+
* @nullable
|
|
1675
|
+
*/
|
|
1676
|
+
lastOrderAt: string | null;
|
|
1677
|
+
/**
|
|
1678
|
+
* 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).
|
|
1679
|
+
* @nullable
|
|
1680
|
+
*/
|
|
1681
|
+
inStorageUnits: number | null;
|
|
1682
|
+
/**
|
|
1683
|
+
* 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`.
|
|
1684
|
+
* @nullable
|
|
1685
|
+
*/
|
|
1686
|
+
paymentMethod: OrganizationPaymentMethodDto | null;
|
|
1687
|
+
/**
|
|
1688
|
+
* 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).
|
|
1689
|
+
* @nullable
|
|
1690
|
+
*/
|
|
1691
|
+
contract: OrganizationContractSummaryDto | null;
|
|
1587
1692
|
}
|
|
1588
1693
|
export interface PaginatedOrganizationsDto {
|
|
1589
1694
|
/** The page of rows. */
|
|
@@ -1841,10 +1946,6 @@ export interface OrganizationContractDto {
|
|
|
1841
1946
|
/** @nullable */
|
|
1842
1947
|
bindingVolumeCm3: number | null;
|
|
1843
1948
|
/** @nullable */
|
|
1844
|
-
volumeCm3: number | null;
|
|
1845
|
-
/** @nullable */
|
|
1846
|
-
billableVolumeCm3: number | null;
|
|
1847
|
-
/** @nullable */
|
|
1848
1949
|
currentPeriodStart: string | null;
|
|
1849
1950
|
/** @nullable */
|
|
1850
1951
|
currentPeriodEnd: string | null;
|
|
@@ -1861,6 +1962,16 @@ export interface UpdateOrganizationContractBindingDto {
|
|
|
1861
1962
|
/** Target billing.binding_plan id. */
|
|
1862
1963
|
bindingPlanId: string;
|
|
1863
1964
|
}
|
|
1965
|
+
export interface OrganizationStoredVolumeDto {
|
|
1966
|
+
/** The measured volume in cm³, at the sizes storage bills. It counts the goods the storage snapshot dated tomorrow in the billing calendar counts, and adds up the same sizes, so that snapshot bills this figure if nothing changes before it is written. Goods leaving on a delivery count through the delivery's planned day, so those planned for today are already out. A pod with no size adds nothing. Counted whether or not the organization has a billing account; only one with an account is billed. Before any minimum billable volume, which pricing applies. */
|
|
1967
|
+
measuredVolumeCm3: number;
|
|
1968
|
+
/** The measured volume in cm³, with each pod that has no size counted at its product's measured size, or else at the product's estimated size. A pod with neither adds nothing. Nothing is invoiced from it. */
|
|
1969
|
+
estimatedVolumeCm3: number;
|
|
1970
|
+
/** The pods counted that have no size, so add nothing to measuredVolumeCm3. */
|
|
1971
|
+
unmeasuredPodCount: number;
|
|
1972
|
+
/** When the figure was read. */
|
|
1973
|
+
asOf: string;
|
|
1974
|
+
}
|
|
1864
1975
|
export type OrganizationSettingDtoServiceType = typeof OrganizationSettingDtoServiceType[keyof typeof OrganizationSettingDtoServiceType];
|
|
1865
1976
|
export declare const OrganizationSettingDtoServiceType: {
|
|
1866
1977
|
readonly STORAGE: "STORAGE";
|
|
@@ -2247,15 +2358,6 @@ export declare const MeOrganizationDtoType: {
|
|
|
2247
2358
|
readonly business: "business";
|
|
2248
2359
|
readonly personal: "personal";
|
|
2249
2360
|
};
|
|
2250
|
-
/**
|
|
2251
|
-
* Service tier of the account. PRO is the 3PL / Receive & Distribute tier; CORE is the default. A display hint for client-side feature gating only — no endpoint enforces it server-side, so a CORE account can still reach PRO-tier routes it otherwise has permission for.
|
|
2252
|
-
*/
|
|
2253
|
-
export type MeOrganizationDtoServiceTier = typeof MeOrganizationDtoServiceTier[keyof typeof MeOrganizationDtoServiceTier];
|
|
2254
|
-
export declare const MeOrganizationDtoServiceTier: {
|
|
2255
|
-
readonly PRO: "PRO";
|
|
2256
|
-
readonly CORE: "CORE";
|
|
2257
|
-
readonly LIGHT: "LIGHT";
|
|
2258
|
-
};
|
|
2259
2361
|
export interface MeOrganizationDto {
|
|
2260
2362
|
organizationId: string;
|
|
2261
2363
|
/** The account's name — the company name for a business org. */
|
|
@@ -2272,8 +2374,6 @@ export interface MeOrganizationDto {
|
|
|
2272
2374
|
* @nullable
|
|
2273
2375
|
*/
|
|
2274
2376
|
preferredLocale: string | null;
|
|
2275
|
-
/** Service tier of the account. PRO is the 3PL / Receive & Distribute tier; CORE is the default. A display hint for client-side feature gating only — no endpoint enforces it server-side, so a CORE account can still reach PRO-tier routes it otherwise has permission for. */
|
|
2276
|
-
serviceTier: MeOrganizationDtoServiceTier;
|
|
2277
2377
|
/**
|
|
2278
2378
|
* Active storage/service agreement; null when there is none, or when the caller's role cannot read it.
|
|
2279
2379
|
* @nullable
|
|
@@ -2360,7 +2460,7 @@ export interface MeResponseDto {
|
|
|
2360
2460
|
/** Long-form staff assignments (own rows only) from employee_assignment — the authoritative warehouse/carrier reach behind the warehouseIds/carrierId summary. */
|
|
2361
2461
|
assignments: AssignmentDto[];
|
|
2362
2462
|
/**
|
|
2363
|
-
* The caller's active customer account (company name,
|
|
2463
|
+
* The caller's active customer account (company name, subscription) — the org named by the token's organization_id claim. Null for staff and for a tenant-less platform operator.
|
|
2364
2464
|
* @nullable
|
|
2365
2465
|
*/
|
|
2366
2466
|
organization: MeOrganizationDto | null;
|
|
@@ -2778,10 +2878,15 @@ export interface CartMerchandiseDto {
|
|
|
2778
2878
|
*/
|
|
2779
2879
|
name: string | null;
|
|
2780
2880
|
/**
|
|
2781
|
-
* 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.
|
|
2881
|
+
* 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.
|
|
2782
2882
|
* @nullable
|
|
2783
2883
|
*/
|
|
2784
2884
|
retailPriceExVat: string | null;
|
|
2885
|
+
/**
|
|
2886
|
+
* 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.
|
|
2887
|
+
* @nullable
|
|
2888
|
+
*/
|
|
2889
|
+
retailPriceIncVat: string | null;
|
|
2785
2890
|
/** @nullable */
|
|
2786
2891
|
currencyCode: string | null;
|
|
2787
2892
|
/**
|
|
@@ -2914,6 +3019,22 @@ export interface CartDto {
|
|
|
2914
3019
|
createdAt: string;
|
|
2915
3020
|
updatedAt: string;
|
|
2916
3021
|
}
|
|
3022
|
+
export interface QuoteFloorItemDto {
|
|
3023
|
+
/** The cart goods line: `items[].cartProductId` on the cart. */
|
|
3024
|
+
cartProductId: string;
|
|
3025
|
+
/** Units on the line, each topped up by `topUpCm3`. */
|
|
3026
|
+
quantity: number;
|
|
3027
|
+
/** One unit's volume in cm³, from the line's dimensions. */
|
|
3028
|
+
measuredCm3: number;
|
|
3029
|
+
/** `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. */
|
|
3030
|
+
roundedCm3: number;
|
|
3031
|
+
/** The minimum billable volume per unit, in cm³: what each unit is billed as. */
|
|
3032
|
+
minimumCm3: number;
|
|
3033
|
+
/** What the minimum adds to one unit, in cm³: `minimumCm3` − `roundedCm3`. */
|
|
3034
|
+
topUpCm3: number;
|
|
3035
|
+
/** What the minimum adds to the line, in cm³: `topUpCm3` × `quantity`. */
|
|
3036
|
+
totalTopUpCm3: number;
|
|
3037
|
+
}
|
|
2917
3038
|
export type QuoteLineDtoKind = typeof QuoteLineDtoKind[keyof typeof QuoteLineDtoKind];
|
|
2918
3039
|
export declare const QuoteLineDtoKind: {
|
|
2919
3040
|
readonly GOODS: "GOODS";
|
|
@@ -2923,7 +3044,7 @@ export declare const QuoteLineDtoKind: {
|
|
|
2923
3044
|
readonly START_FEE: "START_FEE";
|
|
2924
3045
|
};
|
|
2925
3046
|
/**
|
|
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.
|
|
3047
|
+
* 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
3048
|
* @nullable
|
|
2928
3049
|
*/
|
|
2929
3050
|
export type QuoteLineDtoFloorKind = typeof QuoteLineDtoFloorKind[keyof typeof QuoteLineDtoFloorKind] | null;
|
|
@@ -2942,8 +3063,10 @@ export interface QuoteLineDto {
|
|
|
2942
3063
|
reference: string | null;
|
|
2943
3064
|
description: string;
|
|
2944
3065
|
quantity: number;
|
|
2945
|
-
/** 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`. */
|
|
3066
|
+
/** 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. */
|
|
2946
3067
|
unitPriceExVatMinor: number;
|
|
3068
|
+
/** 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. */
|
|
3069
|
+
unitPriceIncVatMinor: number;
|
|
2947
3070
|
/** Line total ex-VAT, integer minor units, AFTER any campaign and binding discount — the amount that reaches `totals` */
|
|
2948
3071
|
lineTotalExVatMinor: number;
|
|
2949
3072
|
/** 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. */
|
|
@@ -2978,10 +3101,12 @@ export interface QuoteLineDto {
|
|
|
2978
3101
|
*/
|
|
2979
3102
|
componentCode?: string | null;
|
|
2980
3103
|
/**
|
|
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.
|
|
3104
|
+
* 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
3105
|
* @nullable
|
|
2983
3106
|
*/
|
|
2984
3107
|
floorKind?: QuoteLineDtoFloorKind;
|
|
3108
|
+
/** 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. */
|
|
3109
|
+
floorItems?: QuoteFloorItemDto[];
|
|
2985
3110
|
}
|
|
2986
3111
|
export interface QuoteVolumeDto {
|
|
2987
3112
|
/** Total goods volume in cm³ */
|
|
@@ -3108,6 +3233,77 @@ export interface QuoteBindingOptionDto {
|
|
|
3108
3233
|
/** This cart, priced under this plan */
|
|
3109
3234
|
totals: QuoteTotalsDto;
|
|
3110
3235
|
}
|
|
3236
|
+
/**
|
|
3237
|
+
* `category`: a price category's amount. `start_fee`: the start fee's, a row of its own. `discount`: what the campaigns, the binding discount and the code took off the row before it, as a negative amount; it follows that row and has the same `category` and `vatRate`.
|
|
3238
|
+
*/
|
|
3239
|
+
export type QuoteDisplayLineDtoKind = typeof QuoteDisplayLineDtoKind[keyof typeof QuoteDisplayLineDtoKind];
|
|
3240
|
+
export declare const QuoteDisplayLineDtoKind: {
|
|
3241
|
+
readonly category: "category";
|
|
3242
|
+
readonly start_fee: "start_fee";
|
|
3243
|
+
readonly discount: "discount";
|
|
3244
|
+
};
|
|
3245
|
+
/**
|
|
3246
|
+
* The price category: `storage` (the storage month and every minimum on it, the minimum monthly fee included), `transport` (the transport, its minimums and its window and zone surcharges), `start_fee`, `packing_materials`, `insurance`, `services`.
|
|
3247
|
+
*/
|
|
3248
|
+
export type QuoteDisplayLineDtoCategory = typeof QuoteDisplayLineDtoCategory[keyof typeof QuoteDisplayLineDtoCategory];
|
|
3249
|
+
export declare const QuoteDisplayLineDtoCategory: {
|
|
3250
|
+
readonly storage: "storage";
|
|
3251
|
+
readonly transport: "transport";
|
|
3252
|
+
readonly start_fee: "start_fee";
|
|
3253
|
+
readonly packing_materials: "packing_materials";
|
|
3254
|
+
readonly insurance: "insurance";
|
|
3255
|
+
readonly services: "services";
|
|
3256
|
+
};
|
|
3257
|
+
/**
|
|
3258
|
+
* `m3`: cubic metres. `pcs`: items. Null exactly when `quantity` is.
|
|
3259
|
+
* @nullable
|
|
3260
|
+
*/
|
|
3261
|
+
export type QuoteDisplayLineDtoUnit = typeof QuoteDisplayLineDtoUnit[keyof typeof QuoteDisplayLineDtoUnit] | null;
|
|
3262
|
+
export declare const QuoteDisplayLineDtoUnit: {
|
|
3263
|
+
readonly m3: "m3";
|
|
3264
|
+
readonly pcs: "pcs";
|
|
3265
|
+
};
|
|
3266
|
+
export interface QuoteDisplayLineDto {
|
|
3267
|
+
/** `category`: a price category's amount. `start_fee`: the start fee's, a row of its own. `discount`: what the campaigns, the binding discount and the code took off the row before it, as a negative amount; it follows that row and has the same `category` and `vatRate`. */
|
|
3268
|
+
kind: QuoteDisplayLineDtoKind;
|
|
3269
|
+
/** The price category: `storage` (the storage month and every minimum on it, the minimum monthly fee included), `transport` (the transport, its minimums and its window and zone surcharges), `start_fee`, `packing_materials`, `insurance`, `services`. */
|
|
3270
|
+
category: QuoteDisplayLineDtoCategory;
|
|
3271
|
+
/** The row's label in the booking's language (the organization's preferred language, else the cart's country's): the category's name, or that category's discount. */
|
|
3272
|
+
description: string;
|
|
3273
|
+
/**
|
|
3274
|
+
* What the row bills for, in `unit`: the m³ the storage month is billed on (`volume.billableM3`), the m³ the transport is billed on when it is priced per m³, the number of packing-material items. Null on a discount row and wherever a quantity says nothing (a transport priced per order, the start fee).
|
|
3275
|
+
* @nullable
|
|
3276
|
+
*/
|
|
3277
|
+
quantity: number | null;
|
|
3278
|
+
/**
|
|
3279
|
+
* `m3`: cubic metres. `pcs`: items. Null exactly when `quantity` is.
|
|
3280
|
+
* @nullable
|
|
3281
|
+
*/
|
|
3282
|
+
unit: QuoteDisplayLineDtoUnit;
|
|
3283
|
+
/** The row's amount excluding VAT, integer minor units. A category row is before every reduction when a discount row follows it, after them otherwise; a discount row is negative. */
|
|
3284
|
+
amountExVatMinor: number;
|
|
3285
|
+
/** The row's amount including VAT, integer minor units, on the same basis as `amountExVatMinor`. Whether a discount row is shown is decided in the basis the prices are written in (including VAT where they include it). A discount row is never above zero in either figure, but a reduction smaller than a VAT rounding can leave the other one at 0. */
|
|
3286
|
+
amountIncVatMinor: number;
|
|
3287
|
+
/** VAT rate as a percentage (25 = 25%). A category whose lines carry different rates is split into one row per rate. */
|
|
3288
|
+
vatRate: number;
|
|
3289
|
+
}
|
|
3290
|
+
export interface QuoteDisplayTotalsDto {
|
|
3291
|
+
/** Sum of `displayLines[].amountExVatMinor`, minor units */
|
|
3292
|
+
exVatMinor: number;
|
|
3293
|
+
/** `incVatMinor` − `exVatMinor`, minor units */
|
|
3294
|
+
vatMinor: number;
|
|
3295
|
+
/** Sum of `displayLines[].amountIncVatMinor`, minor units: equal to `totals.payableMinor`, since the discount rows include the code. */
|
|
3296
|
+
incVatMinor: number;
|
|
3297
|
+
}
|
|
3298
|
+
/**
|
|
3299
|
+
* How the tenant presents its prices (its price presentation setting), which decides `displayLines`. `detailed`: show `lines` as they are, with the code and totals beside them; `displayLines` is empty. `category_with_discounts`: one row per price category before its reductions, then a discount row per category one reduced. `category_net`: one row per category after them.
|
|
3300
|
+
*/
|
|
3301
|
+
export type QuoteResponseDtoPresentationMode = typeof QuoteResponseDtoPresentationMode[keyof typeof QuoteResponseDtoPresentationMode];
|
|
3302
|
+
export declare const QuoteResponseDtoPresentationMode: {
|
|
3303
|
+
readonly detailed: "detailed";
|
|
3304
|
+
readonly category_with_discounts: "category_with_discounts";
|
|
3305
|
+
readonly category_net: "category_net";
|
|
3306
|
+
};
|
|
3111
3307
|
export interface QuoteResponseDto {
|
|
3112
3308
|
cartId: string;
|
|
3113
3309
|
/** ISO 4217 — the currency all amounts are expressed in */
|
|
@@ -3141,6 +3337,15 @@ export interface QuoteResponseDto {
|
|
|
3141
3337
|
*/
|
|
3142
3338
|
rutDeductionMinor: number | null;
|
|
3143
3339
|
totals: QuoteTotalsDto;
|
|
3340
|
+
/** How the tenant presents its prices (its price presentation setting), which decides `displayLines`. `detailed`: show `lines` as they are, with the code and totals beside them; `displayLines` is empty. `category_with_discounts`: one row per price category before its reductions, then a discount row per category one reduced. `category_net`: one row per category after them. */
|
|
3341
|
+
presentationMode: QuoteResponseDtoPresentationMode;
|
|
3342
|
+
/** The lines regrouped as `presentationMode` says, in the order to show them: storage, transport, start fee, packing materials, insurance, services, each by VAT rate, each followed by its discount row. Every minimum folds into its category, and the window and zone surcharges into transport. Unlike `lines`, the discount rows include the code, so the rows add up to `displayTotals`, which is what the customer pays. Where the storage comes in under its minimum monthly fee, its discount row shows only what a reduction took off what is paid. Empty in `detailed` mode. */
|
|
3343
|
+
displayLines: QuoteDisplayLineDto[];
|
|
3344
|
+
/**
|
|
3345
|
+
* What `displayLines` add up to: `incVatMinor` is `totals.payableMinor`. Null in `detailed` mode.
|
|
3346
|
+
* @nullable
|
|
3347
|
+
*/
|
|
3348
|
+
displayTotals: QuoteDisplayTotalsDto | null;
|
|
3144
3349
|
/** Components present on the cart that this quote did not price, or reductions it did not apply. Their absence from `totals` is intentional, never a zero charge. Values: GOODS, SERVICE, START_FEE, TRANSPORT (no configured article, price row, or computable rate — no line is emitted at all), INSURANCE (no plan catalogue exists yet), TRANSPORT_PARTIAL (a transport line IS priced from the rate card but excludes a component the cart carries no quantity for — a per-hour rate with no `estimatedHours`, or a per-unit rate with no shipment manifest — so the transport amount is a floor, not the final charge), TRANSPORT_RUT (the line is RUT-eligible but its price source carries no post-deduction price to derive the amount from), MATERIAL_DELIVERY (the cart holds a material:delivery timeslot; its underlying slot may carry a real price, but materials pricing is not yet designed, so it is excluded from `totals` rather than priced as ordinary transport), MERCHANDISE (at least one basketed SKU could not be priced and is excluded from `totals` — it was deactivated after being basketed, it has no active price for today in the cart's currency, or its price rule is malformed. Priceable SKUs in the same basket still appear as MERCHANDISE lines, so this value means 'some of the basket is missing from the total', not 'none of it is priced'). When the tenant's price-book mode is `live`, a PICKUP or DELIVERY cart's GOODS, START_FEE and TRANSPORT come from the pricing rules the invoice uses, and one of those values here means a rule could not price this cart — most often because the cart does not yet state what it reads (a volume with a line missing its dimensions, a slot price before a slot is held) — or reads a component that could not be priced; the rest of the cart is still priced. A rule-priced TRANSPORT line carries no post-deduction price, so a RUT cart reports TRANSPORT_RUT for it. TRANSPORT_PARTIAL does not occur in that mode. */
|
|
3145
3350
|
deferred: string[];
|
|
3146
3351
|
}
|
|
@@ -3495,38 +3700,71 @@ export interface AvailableServiceDto {
|
|
|
3495
3700
|
* @nullable
|
|
3496
3701
|
*/
|
|
3497
3702
|
fromPrice: MoneyDto | null;
|
|
3703
|
+
/**
|
|
3704
|
+
* `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.
|
|
3705
|
+
* @nullable
|
|
3706
|
+
*/
|
|
3707
|
+
fromPriceIncVat: MoneyDto | null;
|
|
3498
3708
|
/** Whether any future capacity day/slot exists for the service+zone */
|
|
3499
3709
|
hasSlots: boolean;
|
|
3500
3710
|
}
|
|
3501
3711
|
export interface SlotPriceDto {
|
|
3502
3712
|
/** @nullable */
|
|
3503
3713
|
perM3ExVat?: string | null;
|
|
3504
|
-
/**
|
|
3714
|
+
/**
|
|
3715
|
+
* `perM3ExVat` including VAT. Null exactly when `perM3ExVat` is.
|
|
3716
|
+
* @nullable
|
|
3717
|
+
*/
|
|
3505
3718
|
perM3IncVat?: string | null;
|
|
3506
3719
|
/** @nullable */
|
|
3507
3720
|
perHourExVat?: string | null;
|
|
3508
3721
|
/** @nullable */
|
|
3509
3722
|
baseFeeExVat?: string | null;
|
|
3723
|
+
/**
|
|
3724
|
+
* `baseFeeExVat` including VAT. Null exactly when `baseFeeExVat` is.
|
|
3725
|
+
* @nullable
|
|
3726
|
+
*/
|
|
3727
|
+
baseFeeIncVat?: string | null;
|
|
3510
3728
|
/**
|
|
3511
3729
|
* 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).
|
|
3512
3730
|
* @nullable
|
|
3513
3731
|
*/
|
|
3514
3732
|
zoneSurchargeExVat: string | null;
|
|
3733
|
+
/**
|
|
3734
|
+
* `zoneSurchargeExVat` including VAT — show it as "+X". Null exactly when `zoneSurchargeExVat` is.
|
|
3735
|
+
* @nullable
|
|
3736
|
+
*/
|
|
3737
|
+
zoneSurchargeIncVat: string | null;
|
|
3515
3738
|
/**
|
|
3516
3739
|
* 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.
|
|
3517
3740
|
* @nullable
|
|
3518
3741
|
*/
|
|
3519
3742
|
zoneSurchargePerM3ExVat: string | null;
|
|
3743
|
+
/**
|
|
3744
|
+
* `zoneSurchargePerM3ExVat` including VAT — show it as "+X/m³". Null exactly when `zoneSurchargePerM3ExVat` is.
|
|
3745
|
+
* @nullable
|
|
3746
|
+
*/
|
|
3747
|
+
zoneSurchargePerM3IncVat: string | null;
|
|
3520
3748
|
/**
|
|
3521
3749
|
* 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).
|
|
3522
3750
|
* @nullable
|
|
3523
3751
|
*/
|
|
3524
3752
|
windowSurchargeExVat: string | null;
|
|
3753
|
+
/**
|
|
3754
|
+
* `windowSurchargeExVat` including VAT — show it as "+X". Null exactly when `windowSurchargeExVat` is.
|
|
3755
|
+
* @nullable
|
|
3756
|
+
*/
|
|
3757
|
+
windowSurchargeIncVat: string | null;
|
|
3525
3758
|
/**
|
|
3526
3759
|
* 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.
|
|
3527
3760
|
* @nullable
|
|
3528
3761
|
*/
|
|
3529
3762
|
windowSurchargePerM3ExVat: string | null;
|
|
3763
|
+
/**
|
|
3764
|
+
* `windowSurchargePerM3ExVat` including VAT — show it as "+X/m³". Null exactly when `windowSurchargePerM3ExVat` is.
|
|
3765
|
+
* @nullable
|
|
3766
|
+
*/
|
|
3767
|
+
windowSurchargePerM3IncVat: string | null;
|
|
3530
3768
|
/** @nullable */
|
|
3531
3769
|
vatRate: string | null;
|
|
3532
3770
|
/** @nullable */
|
|
@@ -6486,6 +6724,11 @@ export interface DisposalRequestQuoteLineDto {
|
|
|
6486
6724
|
* @nullable
|
|
6487
6725
|
*/
|
|
6488
6726
|
unitPriceExVatMinor: number | null;
|
|
6727
|
+
/**
|
|
6728
|
+
* 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.
|
|
6729
|
+
* @nullable
|
|
6730
|
+
*/
|
|
6731
|
+
unitPriceIncVatMinor: number | null;
|
|
6489
6732
|
/** Minor units, ex VAT. */
|
|
6490
6733
|
totalExVatMinor: number;
|
|
6491
6734
|
/** VAT percentage, e.g. 25.5. */
|
|
@@ -8477,7 +8720,7 @@ export interface UpdateBillingAccountDto {
|
|
|
8477
8720
|
/** ISO 4217 currency code. */
|
|
8478
8721
|
currencyCode?: string;
|
|
8479
8722
|
/**
|
|
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.
|
|
8723
|
+
* 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
8724
|
* @nullable
|
|
8482
8725
|
*/
|
|
8483
8726
|
paymentMethodId?: string | null;
|
|
@@ -8599,6 +8842,8 @@ export interface InvoiceRowDto {
|
|
|
8599
8842
|
vatRate: string;
|
|
8600
8843
|
/** ISO 4217 currency code. */
|
|
8601
8844
|
currencyCode: string;
|
|
8845
|
+
/** 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. */
|
|
8846
|
+
pricesIncludeVat: boolean;
|
|
8602
8847
|
/**
|
|
8603
8848
|
* 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
8849
|
* @nullable
|
|
@@ -8612,6 +8857,8 @@ export interface InvoiceRowDto {
|
|
|
8612
8857
|
descriptionOverride: string | null;
|
|
8613
8858
|
/** 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. */
|
|
8614
8859
|
description: string;
|
|
8860
|
+
/** 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. */
|
|
8861
|
+
shownToCustomer: boolean;
|
|
8615
8862
|
/** Coupon benefits that reduced this row. Empty when none did. */
|
|
8616
8863
|
appliedCoupons: AppliedCouponSummaryDto[];
|
|
8617
8864
|
/** 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. */
|
|
@@ -8632,6 +8879,77 @@ export interface InvoiceRowDto {
|
|
|
8632
8879
|
*/
|
|
8633
8880
|
servicedAt: string | null;
|
|
8634
8881
|
}
|
|
8882
|
+
/**
|
|
8883
|
+
* `category`: a price category's amount. `start_fee`: the start fee's, a row of its own. `discount`: what the campaigns, the binding discount and the code took off the row before it, as a negative amount; it follows that row and has the same `category` and `vatRate`.
|
|
8884
|
+
*/
|
|
8885
|
+
export type InvoiceDisplayLineDtoKind = typeof InvoiceDisplayLineDtoKind[keyof typeof InvoiceDisplayLineDtoKind];
|
|
8886
|
+
export declare const InvoiceDisplayLineDtoKind: {
|
|
8887
|
+
readonly category: "category";
|
|
8888
|
+
readonly start_fee: "start_fee";
|
|
8889
|
+
readonly discount: "discount";
|
|
8890
|
+
};
|
|
8891
|
+
/**
|
|
8892
|
+
* The price category, as checkout shows the same charge: `storage` (storage nights, their minimums and the minimum monthly fee), `transport` (a pickup's or delivery's transport, its minimums and its window and zone surcharges), `start_fee` (a pickup's or delivery's start fee, on whichever article it is billed), `packing_materials` (merchandise, and packaging material charged on a cancel), `insurance`, `services` (every other charge: a service, a recycling fee, a row staff added).
|
|
8893
|
+
*/
|
|
8894
|
+
export type InvoiceDisplayLineDtoCategory = typeof InvoiceDisplayLineDtoCategory[keyof typeof InvoiceDisplayLineDtoCategory];
|
|
8895
|
+
export declare const InvoiceDisplayLineDtoCategory: {
|
|
8896
|
+
readonly storage: "storage";
|
|
8897
|
+
readonly transport: "transport";
|
|
8898
|
+
readonly start_fee: "start_fee";
|
|
8899
|
+
readonly packing_materials: "packing_materials";
|
|
8900
|
+
readonly insurance: "insurance";
|
|
8901
|
+
readonly services: "services";
|
|
8902
|
+
};
|
|
8903
|
+
/**
|
|
8904
|
+
* `pcs`: items, the only unit an invoice states (`m3` is the quote's). Null exactly when `quantity` is.
|
|
8905
|
+
* @nullable
|
|
8906
|
+
*/
|
|
8907
|
+
export type InvoiceDisplayLineDtoUnit = typeof InvoiceDisplayLineDtoUnit[keyof typeof InvoiceDisplayLineDtoUnit] | null;
|
|
8908
|
+
export declare const InvoiceDisplayLineDtoUnit: {
|
|
8909
|
+
readonly m3: "m3";
|
|
8910
|
+
readonly pcs: "pcs";
|
|
8911
|
+
};
|
|
8912
|
+
export interface InvoiceDisplayLineDto {
|
|
8913
|
+
/** `category`: a price category's amount. `start_fee`: the start fee's, a row of its own. `discount`: what the campaigns, the binding discount and the code took off the row before it, as a negative amount; it follows that row and has the same `category` and `vatRate`. */
|
|
8914
|
+
kind: InvoiceDisplayLineDtoKind;
|
|
8915
|
+
/** The price category, as checkout shows the same charge: `storage` (storage nights, their minimums and the minimum monthly fee), `transport` (a pickup's or delivery's transport, its minimums and its window and zone surcharges), `start_fee` (a pickup's or delivery's start fee, on whichever article it is billed), `packing_materials` (merchandise, and packaging material charged on a cancel), `insurance`, `services` (every other charge: a service, a recycling fee, a row staff added). */
|
|
8916
|
+
category: InvoiceDisplayLineDtoCategory;
|
|
8917
|
+
/** The row's label in the invoice's language (the organization's preferred language, else the billing account's country's): the category's name, or that category's discount. */
|
|
8918
|
+
description: string;
|
|
8919
|
+
/**
|
|
8920
|
+
* The number of packing-material items. Null on every other row: an invoice states no m³ for storage or transport, whose volume can change during the month.
|
|
8921
|
+
* @nullable
|
|
8922
|
+
*/
|
|
8923
|
+
quantity: number | null;
|
|
8924
|
+
/**
|
|
8925
|
+
* `pcs`: items, the only unit an invoice states (`m3` is the quote's). Null exactly when `quantity` is.
|
|
8926
|
+
* @nullable
|
|
8927
|
+
*/
|
|
8928
|
+
unit: InvoiceDisplayLineDtoUnit;
|
|
8929
|
+
/** The row's amount excluding VAT, integer minor units. A category row is before every reduction when a discount row follows it, after them otherwise; a discount row is negative. */
|
|
8930
|
+
amountExVatMinor: number;
|
|
8931
|
+
/** The row's amount including VAT, integer minor units, on the same basis as `amountExVatMinor`. Whether a discount row is shown is decided in the basis the prices are written in (including VAT where they include it). A discount row is never above zero in either figure, but a reduction smaller than a VAT rounding can leave the other one at 0. */
|
|
8932
|
+
amountIncVatMinor: number;
|
|
8933
|
+
/** VAT rate as a percentage (25 = 25%). A category whose rows carry different rates is split into one row per rate. */
|
|
8934
|
+
vatRate: number;
|
|
8935
|
+
}
|
|
8936
|
+
export interface InvoiceDisplayTotalsDto {
|
|
8937
|
+
/** Sum of `displayLines[].amountExVatMinor`, minor units */
|
|
8938
|
+
exVatMinor: number;
|
|
8939
|
+
/** `incVatMinor` − `exVatMinor`, minor units */
|
|
8940
|
+
vatMinor: number;
|
|
8941
|
+
/** Sum of `displayLines[].amountIncVatMinor`, minor units: what the rows the customer's copy shows add up to including VAT, the stored rows' amounts and VAT exactly. */
|
|
8942
|
+
incVatMinor: number;
|
|
8943
|
+
}
|
|
8944
|
+
/**
|
|
8945
|
+
* How the customer's copy of the invoice presents its prices, which decides `displayLines`. Frozen when the invoice is sent: the tenant's price presentation setting for an invoice sent as a Stripe invoice, `detailed` otherwise. An invoice not yet sent shows what sending it now would freeze; one sent before the setting reached invoices, a credit note, an adjustment and a voided invoice are `detailed`. `detailed`: show `rows` (those with `shownToCustomer`); `displayLines` is empty. `category_with_discounts`: one row per price category before its reductions, then a discount row per category one reduced. `category_net`: one row per category after them.
|
|
8946
|
+
*/
|
|
8947
|
+
export type InvoiceDetailDtoPresentationMode = typeof InvoiceDetailDtoPresentationMode[keyof typeof InvoiceDetailDtoPresentationMode];
|
|
8948
|
+
export declare const InvoiceDetailDtoPresentationMode: {
|
|
8949
|
+
readonly detailed: "detailed";
|
|
8950
|
+
readonly category_with_discounts: "category_with_discounts";
|
|
8951
|
+
readonly category_net: "category_net";
|
|
8952
|
+
};
|
|
8635
8953
|
export interface InvoiceDetailDto {
|
|
8636
8954
|
invoiceId: string;
|
|
8637
8955
|
tenantId: string;
|
|
@@ -8687,6 +9005,15 @@ export interface InvoiceDetailDto {
|
|
|
8687
9005
|
/** @nullable */
|
|
8688
9006
|
snapshotCorporateIdentityNumber: string | null;
|
|
8689
9007
|
rows: InvoiceRowDto[];
|
|
9008
|
+
/** How the customer's copy of the invoice presents its prices, which decides `displayLines`. Frozen when the invoice is sent: the tenant's price presentation setting for an invoice sent as a Stripe invoice, `detailed` otherwise. An invoice not yet sent shows what sending it now would freeze; one sent before the setting reached invoices, a credit note, an adjustment and a voided invoice are `detailed`. `detailed`: show `rows` (those with `shownToCustomer`); `displayLines` is empty. `category_with_discounts`: one row per price category before its reductions, then a discount row per category one reduced. `category_net`: one row per category after them. */
|
|
9009
|
+
presentationMode: InvoiceDetailDtoPresentationMode;
|
|
9010
|
+
/** The rows the customer's copy shows, regrouped as `presentationMode` says, in the order to show them: storage, transport, start fee, packing materials, insurance, services, each by VAT rate, each followed by its discount row. The same rows the Stripe invoice is sent with. Built from the stored rows when read; the stored rows, totals and Fortnox copy are unchanged. Next to the minimum monthly fee, a storage discount row shows only what a reduction took off what is paid. Storage and transport rows state no quantity; packing materials state their item count. Empty in `detailed` mode. */
|
|
9011
|
+
displayLines: InvoiceDisplayLineDto[];
|
|
9012
|
+
/**
|
|
9013
|
+
* What `displayLines` add up to. Null in `detailed` mode.
|
|
9014
|
+
* @nullable
|
|
9015
|
+
*/
|
|
9016
|
+
displayTotals: InvoiceDisplayTotalsDto | null;
|
|
8690
9017
|
}
|
|
8691
9018
|
export interface VoidInvoiceDto {
|
|
8692
9019
|
/** Why the invoice is being voided (required, recorded on the row). */
|
|
@@ -8763,7 +9090,7 @@ export interface SetInvoiceRowDescriptionDto {
|
|
|
8763
9090
|
}
|
|
8764
9091
|
export interface CreditNoteRowDto {
|
|
8765
9092
|
invoiceRowId: string;
|
|
8766
|
-
/** Amount (
|
|
9093
|
+
/** 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. */
|
|
8767
9094
|
refundAmountMinor: number;
|
|
8768
9095
|
}
|
|
8769
9096
|
export interface IssueCreditNoteDto {
|
|
@@ -8831,6 +9158,47 @@ export interface SendInvoiceResponseDto {
|
|
|
8831
9158
|
/** The routing token enqueued for the Worker's InvoiceSendProcessor — derived from paymentProvider (manual → fortnox-email, stripe → stripe-payment). */
|
|
8832
9159
|
rail: SendInvoiceResponseDtoRail;
|
|
8833
9160
|
}
|
|
9161
|
+
export interface CollectionHoldCreditNoteDto {
|
|
9162
|
+
/** The credit note's own id; read it with GET /v1/billing/invoices/{id}. */
|
|
9163
|
+
invoiceId: string;
|
|
9164
|
+
/** Invoice status enum: CREATED or READY while a draft, SENT or later once sent. */
|
|
9165
|
+
invoiceStatus: string;
|
|
9166
|
+
/** The credit note's total in minor currency units, negative as the credit note stores it. */
|
|
9167
|
+
totalMinor: number;
|
|
9168
|
+
/** When the credit note was created. */
|
|
9169
|
+
createdAt: string;
|
|
9170
|
+
}
|
|
9171
|
+
/**
|
|
9172
|
+
* 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.
|
|
9173
|
+
*/
|
|
9174
|
+
export type CollectionHoldDtoReason = typeof CollectionHoldDtoReason[keyof typeof CollectionHoldDtoReason];
|
|
9175
|
+
export declare const CollectionHoldDtoReason: {
|
|
9176
|
+
readonly DRAFT_CREDIT_NOTE: "DRAFT_CREDIT_NOTE";
|
|
9177
|
+
readonly CREDITED: "CREDITED";
|
|
9178
|
+
};
|
|
9179
|
+
export interface CollectionHoldDto {
|
|
9180
|
+
invoice: InvoiceDto;
|
|
9181
|
+
/** 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. */
|
|
9182
|
+
reason: CollectionHoldDtoReason;
|
|
9183
|
+
/** Every credit note against the invoice that is not voided, oldest first. */
|
|
9184
|
+
creditNotes: CollectionHoldCreditNoteDto[];
|
|
9185
|
+
/** What the sent credit notes credit, in minor currency units, as a positive amount. Drafts are not counted. */
|
|
9186
|
+
creditedMinor: number;
|
|
9187
|
+
/** The payments recorded against the invoice, in minor currency units. */
|
|
9188
|
+
paidMinor: number;
|
|
9189
|
+
/** invoice.totalMinor − creditedMinor − paidMinor, in minor currency units. Zero or negative when nothing is owed. */
|
|
9190
|
+
remainingMinor: number;
|
|
9191
|
+
}
|
|
9192
|
+
export interface PaginatedCollectionHoldsDto {
|
|
9193
|
+
/** The page of rows. */
|
|
9194
|
+
items: CollectionHoldDto[];
|
|
9195
|
+
/** Exact count of all rows matching the filter, pre-pagination (RLS-scoped). */
|
|
9196
|
+
total: number;
|
|
9197
|
+
/** Effective max rows applied (after defaults/clamp). */
|
|
9198
|
+
limit: number;
|
|
9199
|
+
/** Effective rows skipped applied. */
|
|
9200
|
+
offset: number;
|
|
9201
|
+
}
|
|
8834
9202
|
export interface ArticleTranslationDto {
|
|
8835
9203
|
/** @maxLength 80 */
|
|
8836
9204
|
name: string;
|
|
@@ -8861,6 +9229,8 @@ export interface ArticleDto {
|
|
|
8861
9229
|
vatInclusiveDefault: boolean;
|
|
8862
9230
|
rutEligible: boolean;
|
|
8863
9231
|
isActive: boolean;
|
|
9232
|
+
/** 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. */
|
|
9233
|
+
hideOnInvoiceWhenZero: boolean;
|
|
8864
9234
|
createdAt: string;
|
|
8865
9235
|
updatedAt: string;
|
|
8866
9236
|
}
|
|
@@ -8895,6 +9265,8 @@ export interface CreateArticleDto {
|
|
|
8895
9265
|
vatInclusiveDefault?: boolean;
|
|
8896
9266
|
rutEligible?: boolean;
|
|
8897
9267
|
isActive?: boolean;
|
|
9268
|
+
/** 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. */
|
|
9269
|
+
hideOnInvoiceWhenZero?: boolean;
|
|
8898
9270
|
/** 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. */
|
|
8899
9271
|
vatRateDefault: string;
|
|
8900
9272
|
}
|
|
@@ -8914,6 +9286,8 @@ export interface UpdateArticleDto {
|
|
|
8914
9286
|
vatInclusiveDefault?: boolean;
|
|
8915
9287
|
rutEligible?: boolean;
|
|
8916
9288
|
isActive?: boolean;
|
|
9289
|
+
/** 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. */
|
|
9290
|
+
hideOnInvoiceWhenZero?: boolean;
|
|
8917
9291
|
/** Default VAT rate (numeric column → string, e.g. 25.0000). */
|
|
8918
9292
|
vatRateDefault?: string;
|
|
8919
9293
|
}
|
|
@@ -8957,6 +9331,8 @@ export interface TenantBillingConfigDto {
|
|
|
8957
9331
|
timezone: string;
|
|
8958
9332
|
/** 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. */
|
|
8959
9333
|
oneOffInvoicing: TenantBillingConfigDtoOneOffInvoicing;
|
|
9334
|
+
/** 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. */
|
|
9335
|
+
pricesIncludeVat: boolean;
|
|
8960
9336
|
createdAt: string;
|
|
8961
9337
|
updatedAt: string;
|
|
8962
9338
|
enabledCurrencies: EnabledCurrencyDto[];
|
|
@@ -8970,6 +9346,7 @@ export declare const UpdateTenantBillingConfigDtoOneOffInvoicing: {
|
|
|
8970
9346
|
readonly monthly: "monthly";
|
|
8971
9347
|
};
|
|
8972
9348
|
export interface UpdateTenantBillingConfigDto {
|
|
9349
|
+
/** The payment method of every billing account without its own: a Stripe-collected invoice's saved card is charged on its due date when this method is auto-chargeable. A change must name an active, undeleted payment method of this tenant, of any provider; anything else gets 400 with `code` `payment_method_not_found`, `payment_method_deleted` or `payment_method_inactive`, and nothing is written. Sending the current value back is accepted, even if that method has since gone inactive. */
|
|
8973
9350
|
defaultPaymentMethodId?: string;
|
|
8974
9351
|
defaultPaymentTermId?: string;
|
|
8975
9352
|
defaultBillingFrequencyId?: string;
|
|
@@ -8980,6 +9357,8 @@ export interface UpdateTenantBillingConfigDto {
|
|
|
8980
9357
|
timezone?: string;
|
|
8981
9358
|
/** 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. */
|
|
8982
9359
|
oneOffInvoicing?: UpdateTenantBillingConfigDtoOneOffInvoicing;
|
|
9360
|
+
/** 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. */
|
|
9361
|
+
pricesIncludeVat?: boolean;
|
|
8983
9362
|
changeReason?: string;
|
|
8984
9363
|
}
|
|
8985
9364
|
export interface EnabledCurrencyInputDto {
|
|
@@ -8992,58 +9371,273 @@ export interface EnabledCurrencyInputDto {
|
|
|
8992
9371
|
export interface ReplaceEnabledCurrenciesDto {
|
|
8993
9372
|
currencies: EnabledCurrencyInputDto[];
|
|
8994
9373
|
}
|
|
8995
|
-
export
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9374
|
+
export type InvoiceTextLocaleDtoLocale = typeof InvoiceTextLocaleDtoLocale[keyof typeof InvoiceTextLocaleDtoLocale];
|
|
9375
|
+
export declare const InvoiceTextLocaleDtoLocale: {
|
|
9376
|
+
readonly 'sv-SE': "sv-SE";
|
|
9377
|
+
readonly 'en-GB': "en-GB";
|
|
9378
|
+
readonly 'fi-FI': "fi-FI";
|
|
9379
|
+
};
|
|
9380
|
+
export interface InvoiceTextLocaleDto {
|
|
9381
|
+
locale: InvoiceTextLocaleDtoLocale;
|
|
9382
|
+
/** What an invoice built now is labelled with in this locale: the tenant's text, else the platform's. */
|
|
9383
|
+
text: string;
|
|
9384
|
+
/** The platform's text in this locale, which a cleared text goes back to. */
|
|
9385
|
+
platformDefault: string;
|
|
9386
|
+
/** Whether the tenant has its own text in this locale. */
|
|
9387
|
+
overridden: boolean;
|
|
9388
|
+
}
|
|
9389
|
+
/**
|
|
9390
|
+
* 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.
|
|
9391
|
+
*/
|
|
9392
|
+
export type InvoiceTextDtoKey = typeof InvoiceTextDtoKey[keyof typeof InvoiceTextDtoKey];
|
|
9393
|
+
export declare const InvoiceTextDtoKey: {
|
|
9394
|
+
readonly floor_quantity: "floor_quantity";
|
|
9395
|
+
readonly floor_fee: "floor_fee";
|
|
9396
|
+
readonly minimum_period: "minimum_period";
|
|
9397
|
+
readonly carried: "carried";
|
|
9398
|
+
readonly clawback: "clawback";
|
|
9399
|
+
readonly minimum_monthly_fee: "minimum_monthly_fee";
|
|
9400
|
+
};
|
|
9401
|
+
export interface InvoiceTextDto {
|
|
9402
|
+
/** 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. */
|
|
9403
|
+
key: InvoiceTextDtoKey;
|
|
9404
|
+
/** 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. */
|
|
9405
|
+
maxLength: number;
|
|
9406
|
+
locales: InvoiceTextLocaleDto[];
|
|
9407
|
+
}
|
|
9408
|
+
export interface InvoiceTextLocalesInputDto {
|
|
9004
9409
|
/**
|
|
9005
|
-
*
|
|
9410
|
+
* Omitted or null: the platform's text in this locale.
|
|
9411
|
+
* @maxLength 119
|
|
9006
9412
|
* @nullable
|
|
9007
9413
|
*/
|
|
9008
|
-
|
|
9414
|
+
'sv-SE'?: string | null;
|
|
9009
9415
|
/**
|
|
9010
|
-
*
|
|
9416
|
+
* Omitted or null: the platform's text in this locale.
|
|
9417
|
+
* @maxLength 119
|
|
9011
9418
|
* @nullable
|
|
9012
9419
|
*/
|
|
9013
|
-
|
|
9014
|
-
/**
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
/** @nullable */
|
|
9021
|
-
bindingVolume: number | null;
|
|
9022
|
-
/** @nullable */
|
|
9023
|
-
currentPeriodStart: string | null;
|
|
9024
|
-
/** @nullable */
|
|
9025
|
-
currentPeriodEnd: string | null;
|
|
9026
|
-
/** @nullable */
|
|
9027
|
-
insuranceId: string | null;
|
|
9028
|
-
createdAt: string;
|
|
9029
|
-
updatedAt: string;
|
|
9420
|
+
'en-GB'?: string | null;
|
|
9421
|
+
/**
|
|
9422
|
+
* Omitted or null: the platform's text in this locale.
|
|
9423
|
+
* @maxLength 119
|
|
9424
|
+
* @nullable
|
|
9425
|
+
*/
|
|
9426
|
+
'fi-FI'?: string | null;
|
|
9030
9427
|
}
|
|
9031
|
-
export interface
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9428
|
+
export interface ClawbackInvoiceTextLocalesInputDto {
|
|
9429
|
+
/**
|
|
9430
|
+
* Omitted or null: the platform's text in this locale.
|
|
9431
|
+
* @maxLength 38
|
|
9432
|
+
* @nullable
|
|
9433
|
+
*/
|
|
9434
|
+
'sv-SE'?: string | null;
|
|
9435
|
+
/**
|
|
9436
|
+
* Omitted or null: the platform's text in this locale.
|
|
9437
|
+
* @maxLength 38
|
|
9438
|
+
* @nullable
|
|
9439
|
+
*/
|
|
9440
|
+
'en-GB'?: string | null;
|
|
9441
|
+
/**
|
|
9442
|
+
* Omitted or null: the platform's text in this locale.
|
|
9443
|
+
* @maxLength 38
|
|
9444
|
+
* @nullable
|
|
9445
|
+
*/
|
|
9446
|
+
'fi-FI'?: string | null;
|
|
9045
9447
|
}
|
|
9046
|
-
export interface
|
|
9448
|
+
export interface InvoiceTextsInputDto {
|
|
9449
|
+
/**
|
|
9450
|
+
* Omitted or null: the platform's text in every locale.
|
|
9451
|
+
* @nullable
|
|
9452
|
+
*/
|
|
9453
|
+
floor_quantity?: InvoiceTextLocalesInputDto | null;
|
|
9454
|
+
/**
|
|
9455
|
+
* Omitted or null: the platform's text in every locale.
|
|
9456
|
+
* @nullable
|
|
9457
|
+
*/
|
|
9458
|
+
floor_fee?: InvoiceTextLocalesInputDto | null;
|
|
9459
|
+
/**
|
|
9460
|
+
* Omitted or null: the platform's text in every locale.
|
|
9461
|
+
* @nullable
|
|
9462
|
+
*/
|
|
9463
|
+
minimum_period?: InvoiceTextLocalesInputDto | null;
|
|
9464
|
+
/**
|
|
9465
|
+
* Omitted or null: the platform's text in every locale.
|
|
9466
|
+
* @nullable
|
|
9467
|
+
*/
|
|
9468
|
+
carried?: InvoiceTextLocalesInputDto | null;
|
|
9469
|
+
/**
|
|
9470
|
+
* Omitted or null: the platform's text in every locale.
|
|
9471
|
+
* @nullable
|
|
9472
|
+
*/
|
|
9473
|
+
clawback?: ClawbackInvoiceTextLocalesInputDto | null;
|
|
9474
|
+
/**
|
|
9475
|
+
* Omitted or null: the platform's text in every locale.
|
|
9476
|
+
* @nullable
|
|
9477
|
+
*/
|
|
9478
|
+
minimum_monthly_fee?: InvoiceTextLocalesInputDto | null;
|
|
9479
|
+
}
|
|
9480
|
+
export interface ReplaceInvoiceTextsDto {
|
|
9481
|
+
/** 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. */
|
|
9482
|
+
texts: InvoiceTextsInputDto;
|
|
9483
|
+
}
|
|
9484
|
+
/**
|
|
9485
|
+
* How the tenant's prices are presented to its customers. `detailed` (the default): the pricing engine's lines, each minimum and surcharge on a line of its own. `category_with_discounts`: one row per price category (storage, transport, the start fee, packing materials, insurance, services) at its price before every campaign, binding discount and code, then a discount row per category one of them reduced. `category_net`: one row per category at its price after them. Every minimum folds into its category and the window and zone surcharges into transport; nothing is priced differently.
|
|
9486
|
+
*/
|
|
9487
|
+
export type PricePresentationDtoMode = typeof PricePresentationDtoMode[keyof typeof PricePresentationDtoMode];
|
|
9488
|
+
export declare const PricePresentationDtoMode: {
|
|
9489
|
+
readonly detailed: "detailed";
|
|
9490
|
+
readonly category_with_discounts: "category_with_discounts";
|
|
9491
|
+
readonly category_net: "category_net";
|
|
9492
|
+
};
|
|
9493
|
+
export interface PricePresentationDto {
|
|
9494
|
+
/** How the tenant's prices are presented to its customers. `detailed` (the default): the pricing engine's lines, each minimum and surcharge on a line of its own. `category_with_discounts`: one row per price category (storage, transport, the start fee, packing materials, insurance, services) at its price before every campaign, binding discount and code, then a discount row per category one of them reduced. `category_net`: one row per category at its price after them. Every minimum folds into its category and the window and zone surcharges into transport; nothing is priced differently. */
|
|
9495
|
+
mode: PricePresentationDtoMode;
|
|
9496
|
+
}
|
|
9497
|
+
/**
|
|
9498
|
+
* 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.
|
|
9499
|
+
*/
|
|
9500
|
+
export type InvoiceAutoChargeModeDtoMode = typeof InvoiceAutoChargeModeDtoMode[keyof typeof InvoiceAutoChargeModeDtoMode];
|
|
9501
|
+
export declare const InvoiceAutoChargeModeDtoMode: {
|
|
9502
|
+
readonly off: "off";
|
|
9503
|
+
readonly shadow: "shadow";
|
|
9504
|
+
readonly live: "live";
|
|
9505
|
+
};
|
|
9506
|
+
export interface InvoiceAutoChargeModeDto {
|
|
9507
|
+
/** 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. */
|
|
9508
|
+
mode: InvoiceAutoChargeModeDtoMode;
|
|
9509
|
+
/** Whether the tenant has a stored mode. False means `mode` is the `shadow` default, which nobody has chosen. */
|
|
9510
|
+
configured: boolean;
|
|
9511
|
+
/**
|
|
9512
|
+
* 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.
|
|
9513
|
+
* @nullable
|
|
9514
|
+
*/
|
|
9515
|
+
changedByUserSub: string | null;
|
|
9516
|
+
/**
|
|
9517
|
+
* When that change was made. Null whenever `changedByUserSub` is.
|
|
9518
|
+
* @nullable
|
|
9519
|
+
*/
|
|
9520
|
+
changedAt: string | null;
|
|
9521
|
+
/**
|
|
9522
|
+
* The reason recorded with that change. Null whenever `changedByUserSub` is.
|
|
9523
|
+
* @nullable
|
|
9524
|
+
*/
|
|
9525
|
+
changeReason: string | null;
|
|
9526
|
+
}
|
|
9527
|
+
/**
|
|
9528
|
+
* `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.
|
|
9529
|
+
*/
|
|
9530
|
+
export type SetInvoiceAutoChargeModeDtoMode = typeof SetInvoiceAutoChargeModeDtoMode[keyof typeof SetInvoiceAutoChargeModeDtoMode];
|
|
9531
|
+
export declare const SetInvoiceAutoChargeModeDtoMode: {
|
|
9532
|
+
readonly off: "off";
|
|
9533
|
+
readonly shadow: "shadow";
|
|
9534
|
+
readonly live: "live";
|
|
9535
|
+
};
|
|
9536
|
+
export interface SetInvoiceAutoChargeModeDto {
|
|
9537
|
+
/** `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. */
|
|
9538
|
+
mode: SetInvoiceAutoChargeModeDtoMode;
|
|
9539
|
+
/** Why the mode is changing. Recorded in the admin action. */
|
|
9540
|
+
reason: string;
|
|
9541
|
+
}
|
|
9542
|
+
/**
|
|
9543
|
+
* 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.
|
|
9544
|
+
*/
|
|
9545
|
+
export type SetInvoiceAutoChargeModeResultDtoMode = typeof SetInvoiceAutoChargeModeResultDtoMode[keyof typeof SetInvoiceAutoChargeModeResultDtoMode];
|
|
9546
|
+
export declare const SetInvoiceAutoChargeModeResultDtoMode: {
|
|
9547
|
+
readonly off: "off";
|
|
9548
|
+
readonly shadow: "shadow";
|
|
9549
|
+
readonly live: "live";
|
|
9550
|
+
};
|
|
9551
|
+
/**
|
|
9552
|
+
* The mode this call replaced. Null when the tenant had no stored mode, i.e. it was on the `shadow` default.
|
|
9553
|
+
* @nullable
|
|
9554
|
+
*/
|
|
9555
|
+
export type SetInvoiceAutoChargeModeResultDtoPreviousMode = typeof SetInvoiceAutoChargeModeResultDtoPreviousMode[keyof typeof SetInvoiceAutoChargeModeResultDtoPreviousMode] | null;
|
|
9556
|
+
export declare const SetInvoiceAutoChargeModeResultDtoPreviousMode: {
|
|
9557
|
+
readonly off: "off";
|
|
9558
|
+
readonly shadow: "shadow";
|
|
9559
|
+
readonly live: "live";
|
|
9560
|
+
};
|
|
9561
|
+
export interface SetInvoiceAutoChargeModeResultDto {
|
|
9562
|
+
/** 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. */
|
|
9563
|
+
mode: SetInvoiceAutoChargeModeResultDtoMode;
|
|
9564
|
+
/** Whether the tenant has a stored mode. False means `mode` is the `shadow` default, which nobody has chosen. */
|
|
9565
|
+
configured: boolean;
|
|
9566
|
+
/**
|
|
9567
|
+
* 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.
|
|
9568
|
+
* @nullable
|
|
9569
|
+
*/
|
|
9570
|
+
changedByUserSub: string | null;
|
|
9571
|
+
/**
|
|
9572
|
+
* When that change was made. Null whenever `changedByUserSub` is.
|
|
9573
|
+
* @nullable
|
|
9574
|
+
*/
|
|
9575
|
+
changedAt: string | null;
|
|
9576
|
+
/**
|
|
9577
|
+
* The reason recorded with that change. Null whenever `changedByUserSub` is.
|
|
9578
|
+
* @nullable
|
|
9579
|
+
*/
|
|
9580
|
+
changeReason: string | null;
|
|
9581
|
+
/**
|
|
9582
|
+
* The mode this call replaced. Null when the tenant had no stored mode, i.e. it was on the `shadow` default.
|
|
9583
|
+
* @nullable
|
|
9584
|
+
*/
|
|
9585
|
+
previousMode: SetInvoiceAutoChargeModeResultDtoPreviousMode;
|
|
9586
|
+
/** True when this call replayed a prior result for the same Idempotency-Key and wrote nothing. */
|
|
9587
|
+
idempotent: boolean;
|
|
9588
|
+
}
|
|
9589
|
+
export interface CustomerSubscriptionConfigDto {
|
|
9590
|
+
customerSubscriptionConfigId: string;
|
|
9591
|
+
tenantId: string;
|
|
9592
|
+
organizationId: string;
|
|
9593
|
+
billingAccountId: string;
|
|
9594
|
+
/** @nullable */
|
|
9595
|
+
billingFrequencyId: string | null;
|
|
9596
|
+
/** @nullable */
|
|
9597
|
+
bindingPlanId: string | null;
|
|
9598
|
+
/**
|
|
9599
|
+
* Engine-managed binding discount snapshot (basis points).
|
|
9600
|
+
* @nullable
|
|
9601
|
+
*/
|
|
9602
|
+
bindingDiscountSnapshotBps: number | null;
|
|
9603
|
+
/**
|
|
9604
|
+
* Engine-managed binding discount snapshot timestamp.
|
|
9605
|
+
* @nullable
|
|
9606
|
+
*/
|
|
9607
|
+
bindingDiscountSnapshotAt: string | null;
|
|
9608
|
+
/** @nullable */
|
|
9609
|
+
volume: number | null;
|
|
9610
|
+
/** @nullable */
|
|
9611
|
+
billableVolume: number | null;
|
|
9612
|
+
/** @nullable */
|
|
9613
|
+
bindingPeriodEnd: string | null;
|
|
9614
|
+
/** @nullable */
|
|
9615
|
+
bindingVolume: number | null;
|
|
9616
|
+
/** @nullable */
|
|
9617
|
+
currentPeriodStart: string | null;
|
|
9618
|
+
/** @nullable */
|
|
9619
|
+
currentPeriodEnd: string | null;
|
|
9620
|
+
/** @nullable */
|
|
9621
|
+
insuranceId: string | null;
|
|
9622
|
+
createdAt: string;
|
|
9623
|
+
updatedAt: string;
|
|
9624
|
+
}
|
|
9625
|
+
export interface CreateCustomerSubscriptionConfigDto {
|
|
9626
|
+
billingAccountId: string;
|
|
9627
|
+
billingFrequencyId?: string;
|
|
9628
|
+
bindingPlanId?: string;
|
|
9629
|
+
/** Bigint volume (>= 0). */
|
|
9630
|
+
volume?: number;
|
|
9631
|
+
/** Bigint billable volume (>= 0). */
|
|
9632
|
+
billableVolume?: number;
|
|
9633
|
+
/** Bigint binding volume (>= 0). */
|
|
9634
|
+
bindingVolume?: number;
|
|
9635
|
+
bindingPeriodEnd?: string;
|
|
9636
|
+
currentPeriodStart?: string;
|
|
9637
|
+
currentPeriodEnd?: string;
|
|
9638
|
+
insuranceId?: string;
|
|
9639
|
+
}
|
|
9640
|
+
export interface UpdateCustomerSubscriptionConfigDto {
|
|
9047
9641
|
billingFrequencyId?: string;
|
|
9048
9642
|
bindingPlanId?: string;
|
|
9049
9643
|
/** Bigint volume (>= 0). */
|
|
@@ -9946,6 +10540,8 @@ export interface PricingRuleDto {
|
|
|
9946
10540
|
calculationMethod: string;
|
|
9947
10541
|
/** Method-specific parameters (JSON). */
|
|
9948
10542
|
parameters: PricingRuleDtoParameters;
|
|
10543
|
+
/** 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. */
|
|
10544
|
+
pricesIncludeVat: boolean;
|
|
9949
10545
|
/** Rule scope: order / product / shipment / storage / time / material. */
|
|
9950
10546
|
ruleScope: string;
|
|
9951
10547
|
/** Engine stage (lower runs first; layered rules differ). */
|
|
@@ -10067,7 +10663,10 @@ export interface SimulatedBasisRowDto {
|
|
|
10067
10663
|
quantity: number;
|
|
10068
10664
|
unitOfMeasureId: string;
|
|
10069
10665
|
unitCode: string;
|
|
10070
|
-
/**
|
|
10666
|
+
/**
|
|
10667
|
+
* The rule's unit price, in the row's basis (`pricesIncludeVat`).
|
|
10668
|
+
* @nullable
|
|
10669
|
+
*/
|
|
10071
10670
|
unitPriceMinor: number | null;
|
|
10072
10671
|
/** Amount excl. VAT in minor currency units. */
|
|
10073
10672
|
amountExVatMinor: number;
|
|
@@ -10075,6 +10674,8 @@ export interface SimulatedBasisRowDto {
|
|
|
10075
10674
|
vatRate: number;
|
|
10076
10675
|
/** Pre-discount VAT in minor currency units. */
|
|
10077
10676
|
vatAmountMinor: number;
|
|
10677
|
+
/** 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. */
|
|
10678
|
+
pricesIncludeVat: boolean;
|
|
10078
10679
|
currencyCode: string;
|
|
10079
10680
|
ruleScope: string;
|
|
10080
10681
|
componentCode: string;
|
|
@@ -10092,6 +10693,8 @@ export interface ProjectedInvoiceRowDto {
|
|
|
10092
10693
|
amountExVatMinor: number;
|
|
10093
10694
|
/** VAT amount in minor currency units, BEFORE discounts. */
|
|
10094
10695
|
vatAmountMinor: number;
|
|
10696
|
+
/** 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. */
|
|
10697
|
+
pricesIncludeVat: boolean;
|
|
10095
10698
|
rutEligible: boolean;
|
|
10096
10699
|
/** @nullable */
|
|
10097
10700
|
periodStart: string | null;
|
|
@@ -10192,7 +10795,7 @@ export interface SimulatedQuoteDeferralDto {
|
|
|
10192
10795
|
export interface SimulatedQuoteDto {
|
|
10193
10796
|
/** ISO 4217 — the currency all amounts are expressed in */
|
|
10194
10797
|
currencyCode: string;
|
|
10195
|
-
/** 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`). */
|
|
10798
|
+
/** 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`. */
|
|
10196
10799
|
lines: QuoteLineDto[];
|
|
10197
10800
|
volume: QuoteVolumeDto;
|
|
10198
10801
|
/** The automatic campaigns applied (newCustomerInCampaignWindow); status is qualifies. */
|
|
@@ -10654,6 +11257,8 @@ export interface PriceBookDto {
|
|
|
10654
11257
|
* @nullable
|
|
10655
11258
|
*/
|
|
10656
11259
|
currencyCode: string | null;
|
|
11260
|
+
/** 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. */
|
|
11261
|
+
pricesIncludeVat: boolean;
|
|
10657
11262
|
sections: PriceBookSectionDto[];
|
|
10658
11263
|
/**
|
|
10659
11264
|
* The tenant's open draft, or null.
|
|
@@ -11048,6 +11653,11 @@ export interface ExportedProfileDto {
|
|
|
11048
11653
|
deletedAt: string | null;
|
|
11049
11654
|
/** @nullable */
|
|
11050
11655
|
forgottenAt: string | null;
|
|
11656
|
+
/**
|
|
11657
|
+
* The personnummer, null when none is held. Absent when `notIncluded` lists `personal_identity_number`: the tenant has no credential to read it with.
|
|
11658
|
+
* @nullable
|
|
11659
|
+
*/
|
|
11660
|
+
personalIdentityNumber?: string | null;
|
|
11051
11661
|
}
|
|
11052
11662
|
export interface ExportedMembershipDto {
|
|
11053
11663
|
organizationId: string;
|
|
@@ -11099,6 +11709,209 @@ export interface ExportedConsentDto {
|
|
|
11099
11709
|
consentVersion: string;
|
|
11100
11710
|
acceptedAt: string;
|
|
11101
11711
|
}
|
|
11712
|
+
export type ExportedOrdersDtoOrderGroupsItem = {
|
|
11713
|
+
[key: string]: unknown;
|
|
11714
|
+
};
|
|
11715
|
+
export type ExportedOrdersDtoSalesOrdersItem = {
|
|
11716
|
+
[key: string]: unknown;
|
|
11717
|
+
};
|
|
11718
|
+
export type ExportedOrdersDtoEstimatesItem = {
|
|
11719
|
+
[key: string]: unknown;
|
|
11720
|
+
};
|
|
11721
|
+
export type ExportedOrdersDtoProductsItem = {
|
|
11722
|
+
[key: string]: unknown;
|
|
11723
|
+
};
|
|
11724
|
+
export type ExportedOrdersDtoMerchandiseItem = {
|
|
11725
|
+
[key: string]: unknown;
|
|
11726
|
+
};
|
|
11727
|
+
export type ExportedOrdersDtoTransportLegsItem = {
|
|
11728
|
+
[key: string]: unknown;
|
|
11729
|
+
};
|
|
11730
|
+
export type ExportedOrdersDtoCarrierBookingsItem = {
|
|
11731
|
+
[key: string]: unknown;
|
|
11732
|
+
};
|
|
11733
|
+
export type ExportedOrdersDtoWarehouseOrdersItem = {
|
|
11734
|
+
[key: string]: unknown;
|
|
11735
|
+
};
|
|
11736
|
+
export type ExportedOrdersDtoWarehouseOrderProductsItem = {
|
|
11737
|
+
[key: string]: unknown;
|
|
11738
|
+
};
|
|
11739
|
+
export type ExportedOrdersDtoWarehouseOrderContainersItem = {
|
|
11740
|
+
[key: string]: unknown;
|
|
11741
|
+
};
|
|
11742
|
+
export interface ExportedOrdersDto {
|
|
11743
|
+
/** `public.order_group` rows, live and soft-deleted. */
|
|
11744
|
+
orderGroups: ExportedOrdersDtoOrderGroupsItem[];
|
|
11745
|
+
/** `public.sales_order` rows, live and soft-deleted. */
|
|
11746
|
+
salesOrders: ExportedOrdersDtoSalesOrdersItem[];
|
|
11747
|
+
/** `public.sales_order_estimate` rows, live and soft-deleted. */
|
|
11748
|
+
estimates: ExportedOrdersDtoEstimatesItem[];
|
|
11749
|
+
/** `public.sales_order_product` rows, live and soft-deleted. */
|
|
11750
|
+
products: ExportedOrdersDtoProductsItem[];
|
|
11751
|
+
/** `public.sales_order_merchandise` rows, live and soft-deleted. */
|
|
11752
|
+
merchandise: ExportedOrdersDtoMerchandiseItem[];
|
|
11753
|
+
/** `public.order_transport_leg` rows, live and soft-deleted. */
|
|
11754
|
+
transportLegs: ExportedOrdersDtoTransportLegsItem[];
|
|
11755
|
+
/** `public.carrier_booking` rows, live and soft-deleted. */
|
|
11756
|
+
carrierBookings: ExportedOrdersDtoCarrierBookingsItem[];
|
|
11757
|
+
/** `public.warehouse_order` rows, live and soft-deleted. */
|
|
11758
|
+
warehouseOrders: ExportedOrdersDtoWarehouseOrdersItem[];
|
|
11759
|
+
/** `public.warehouse_order_product` rows, live and soft-deleted. */
|
|
11760
|
+
warehouseOrderProducts: ExportedOrdersDtoWarehouseOrderProductsItem[];
|
|
11761
|
+
/** `public.warehouse_order_container` rows, live and soft-deleted. */
|
|
11762
|
+
warehouseOrderContainers: ExportedOrdersDtoWarehouseOrderContainersItem[];
|
|
11763
|
+
}
|
|
11764
|
+
export type ExportedCartsDtoCartsItem = {
|
|
11765
|
+
[key: string]: unknown;
|
|
11766
|
+
};
|
|
11767
|
+
export type ExportedCartsDtoProductsItem = {
|
|
11768
|
+
[key: string]: unknown;
|
|
11769
|
+
};
|
|
11770
|
+
export type ExportedCartsDtoMerchandiseItem = {
|
|
11771
|
+
[key: string]: unknown;
|
|
11772
|
+
};
|
|
11773
|
+
export interface ExportedCartsDto {
|
|
11774
|
+
/** `public.cart` rows, placed or not, live and soft-deleted. */
|
|
11775
|
+
carts: ExportedCartsDtoCartsItem[];
|
|
11776
|
+
/** `public.cart_product` rows, live and soft-deleted. */
|
|
11777
|
+
products: ExportedCartsDtoProductsItem[];
|
|
11778
|
+
/** `public.cart_merchandise` rows, live and soft-deleted. */
|
|
11779
|
+
merchandise: ExportedCartsDtoMerchandiseItem[];
|
|
11780
|
+
}
|
|
11781
|
+
export type ExportedStoredGoodsDtoProductsItem = {
|
|
11782
|
+
[key: string]: unknown;
|
|
11783
|
+
};
|
|
11784
|
+
export type ExportedStoredGoodsDtoFoldersItem = {
|
|
11785
|
+
[key: string]: unknown;
|
|
11786
|
+
};
|
|
11787
|
+
export type ExportedStoredGoodsDtoProductImagesItem = {
|
|
11788
|
+
[key: string]: unknown;
|
|
11789
|
+
};
|
|
11790
|
+
export type ExportedStoredGoodsDtoItemsItem = {
|
|
11791
|
+
[key: string]: unknown;
|
|
11792
|
+
};
|
|
11793
|
+
export type ExportedStoredGoodsDtoPodsItem = {
|
|
11794
|
+
[key: string]: unknown;
|
|
11795
|
+
};
|
|
11796
|
+
export type ExportedStoredGoodsDtoDamageReportsItem = {
|
|
11797
|
+
[key: string]: unknown;
|
|
11798
|
+
};
|
|
11799
|
+
export type ExportedStoredGoodsDtoDamageReportImagesItem = {
|
|
11800
|
+
[key: string]: unknown;
|
|
11801
|
+
};
|
|
11802
|
+
export type ExportedStoredGoodsDtoFileAssetsItem = {
|
|
11803
|
+
[key: string]: unknown;
|
|
11804
|
+
};
|
|
11805
|
+
export type ExportedStoredGoodsDtoFileLinksItem = {
|
|
11806
|
+
[key: string]: unknown;
|
|
11807
|
+
};
|
|
11808
|
+
export interface ExportedStoredGoodsDto {
|
|
11809
|
+
/** `public.product` rows, live and soft-deleted. */
|
|
11810
|
+
products: ExportedStoredGoodsDtoProductsItem[];
|
|
11811
|
+
/** `public.folder` rows, live and soft-deleted: the product folders, nested by `parentFolderId`. A product's `folderId` names one. */
|
|
11812
|
+
folders: ExportedStoredGoodsDtoFoldersItem[];
|
|
11813
|
+
/** `public.product_image` rows the customer can see, live and soft-deleted. Files are storage keys, served by `GET /v1/images`. */
|
|
11814
|
+
productImages: ExportedStoredGoodsDtoProductImagesItem[];
|
|
11815
|
+
/** `public.item` rows, live and soft-deleted. */
|
|
11816
|
+
items: ExportedStoredGoodsDtoItemsItem[];
|
|
11817
|
+
/** `public.pod` rows, live and soft-deleted. */
|
|
11818
|
+
pods: ExportedStoredGoodsDtoPodsItem[];
|
|
11819
|
+
/** `public.damage_report` rows, live and soft-deleted. */
|
|
11820
|
+
damageReports: ExportedStoredGoodsDtoDamageReportsItem[];
|
|
11821
|
+
/** `public.damage_report_image` rows, live and soft-deleted. */
|
|
11822
|
+
damageReportImages: ExportedStoredGoodsDtoDamageReportImagesItem[];
|
|
11823
|
+
/** `public.file_asset` rows, live and soft-deleted. */
|
|
11824
|
+
fileAssets: ExportedStoredGoodsDtoFileAssetsItem[];
|
|
11825
|
+
/** `public.entity_file` rows: which record each file asset is attached to. */
|
|
11826
|
+
fileLinks: ExportedStoredGoodsDtoFileLinksItem[];
|
|
11827
|
+
}
|
|
11828
|
+
export type ExportedBillingDtoBillingAccountsItem = {
|
|
11829
|
+
[key: string]: unknown;
|
|
11830
|
+
};
|
|
11831
|
+
export type ExportedBillingDtoInvoicesItem = {
|
|
11832
|
+
[key: string]: unknown;
|
|
11833
|
+
};
|
|
11834
|
+
export type ExportedBillingDtoInvoiceRowsItem = {
|
|
11835
|
+
[key: string]: unknown;
|
|
11836
|
+
};
|
|
11837
|
+
export type ExportedBillingDtoPaymentInstrumentsItem = {
|
|
11838
|
+
[key: string]: unknown;
|
|
11839
|
+
};
|
|
11840
|
+
export type ExportedBillingDtoSubscriptionConfigsItem = {
|
|
11841
|
+
[key: string]: unknown;
|
|
11842
|
+
};
|
|
11843
|
+
export type ExportedBillingDtoContractsItem = {
|
|
11844
|
+
[key: string]: unknown;
|
|
11845
|
+
};
|
|
11846
|
+
export type ExportedBillingDtoAccountCreditsItem = {
|
|
11847
|
+
[key: string]: unknown;
|
|
11848
|
+
};
|
|
11849
|
+
export type ExportedBillingDtoCouponRedemptionsItem = {
|
|
11850
|
+
[key: string]: unknown;
|
|
11851
|
+
};
|
|
11852
|
+
export interface ExportedBillingDto {
|
|
11853
|
+
/** `billing.billing_account` rows, live and soft-deleted. */
|
|
11854
|
+
billingAccounts: ExportedBillingDtoBillingAccountsItem[];
|
|
11855
|
+
/** `billing.invoice` rows, credit notes included (`invoiceType` `credit_note`, naming the invoice in `correctsInvoiceId`). */
|
|
11856
|
+
invoices: ExportedBillingDtoInvoicesItem[];
|
|
11857
|
+
/** `billing.invoice_row` rows, live and soft-deleted. */
|
|
11858
|
+
invoiceRows: ExportedBillingDtoInvoiceRowsItem[];
|
|
11859
|
+
/** `billing.payment_instrument` rows: saved cards, as brand, last four digits and expiry. */
|
|
11860
|
+
paymentInstruments: ExportedBillingDtoPaymentInstrumentsItem[];
|
|
11861
|
+
/** `billing.customer_subscription_config` rows, live and soft-deleted. */
|
|
11862
|
+
subscriptionConfigs: ExportedBillingDtoSubscriptionConfigsItem[];
|
|
11863
|
+
/** `public.organization_contract` rows, live and soft-deleted. */
|
|
11864
|
+
contracts: ExportedBillingDtoContractsItem[];
|
|
11865
|
+
/** `billing.account_credit` rows, live and soft-deleted. */
|
|
11866
|
+
accountCredits: ExportedBillingDtoAccountCreditsItem[];
|
|
11867
|
+
/** `billing.coupon_redemption` rows, live and soft-deleted. */
|
|
11868
|
+
couponRedemptions: ExportedBillingDtoCouponRedemptionsItem[];
|
|
11869
|
+
}
|
|
11870
|
+
/**
|
|
11871
|
+
* The `public.organization` row. Its `personalIdentityNumber` is absent when `notIncluded` lists `personal_identity_number`.
|
|
11872
|
+
* @nullable
|
|
11873
|
+
*/
|
|
11874
|
+
export type ExportedPersonalOrganizationDtoOrganization = {
|
|
11875
|
+
[key: string]: unknown;
|
|
11876
|
+
} | null;
|
|
11877
|
+
export type ExportedPersonalOrganizationDtoContactsItem = {
|
|
11878
|
+
[key: string]: unknown;
|
|
11879
|
+
};
|
|
11880
|
+
export type ExportedPersonalOrganizationDtoAddressesItem = {
|
|
11881
|
+
[key: string]: unknown;
|
|
11882
|
+
};
|
|
11883
|
+
export interface ExportedPersonalOrganizationDto {
|
|
11884
|
+
/**
|
|
11885
|
+
* The `public.organization` row. Its `personalIdentityNumber` is absent when `notIncluded` lists `personal_identity_number`.
|
|
11886
|
+
* @nullable
|
|
11887
|
+
*/
|
|
11888
|
+
organization: ExportedPersonalOrganizationDtoOrganization;
|
|
11889
|
+
/** `public.organization_contact` rows, live and soft-deleted. */
|
|
11890
|
+
contacts: ExportedPersonalOrganizationDtoContactsItem[];
|
|
11891
|
+
/** `public.address` rows, live and soft-deleted. */
|
|
11892
|
+
addresses: ExportedPersonalOrganizationDtoAddressesItem[];
|
|
11893
|
+
orders: ExportedOrdersDto;
|
|
11894
|
+
carts: ExportedCartsDto;
|
|
11895
|
+
storedGoods: ExportedStoredGoodsDto;
|
|
11896
|
+
billing: ExportedBillingDto;
|
|
11897
|
+
}
|
|
11898
|
+
export type ExportedMessagingDtoDispatchesItem = {
|
|
11899
|
+
[key: string]: unknown;
|
|
11900
|
+
};
|
|
11901
|
+
export type ExportedMessagingDtoPreferencesItem = {
|
|
11902
|
+
[key: string]: unknown;
|
|
11903
|
+
};
|
|
11904
|
+
export type ExportedMessagingDtoSuppressionsItem = {
|
|
11905
|
+
[key: string]: unknown;
|
|
11906
|
+
};
|
|
11907
|
+
export interface ExportedMessagingDto {
|
|
11908
|
+
/** `messaging.notification_dispatch` rows sent to a personal organization's own people (the customer, a recipient they entered, an organization contact), or to the target's own email from any organization; never staff alerts or tenant mailboxes. The profile phone is not matched: it is not verified. Only what the 13-month retention keeps. Each row carries `bodyRetained`: `renderedBody` follows the dispatch log's rule and is null when the tenant does not store bodies or the dispatch is older than 90 days. */
|
|
11909
|
+
dispatches: ExportedMessagingDtoDispatchesItem[];
|
|
11910
|
+
/** `messaging.notification_preference` rows by the target's sub or email. */
|
|
11911
|
+
preferences: ExportedMessagingDtoPreferencesItem[];
|
|
11912
|
+
/** `messaging.suppression` rows on the target's email. */
|
|
11913
|
+
suppressions: ExportedMessagingDtoSuppressionsItem[];
|
|
11914
|
+
}
|
|
11102
11915
|
export interface ExportUserDataResultDto {
|
|
11103
11916
|
/** The exported user's Keycloak subject. */
|
|
11104
11917
|
sub: string;
|
|
@@ -11109,7 +11922,10 @@ export interface ExportUserDataResultDto {
|
|
|
11109
11922
|
employeeAssignments: ExportedAssignmentDto[];
|
|
11110
11923
|
externalIdentities: ExportedExternalIdentityDto[];
|
|
11111
11924
|
consents: ExportedConsentDto[];
|
|
11112
|
-
/**
|
|
11925
|
+
/** One entry per personal organization of the target's. Empty for a person with none, such as a staff member. */
|
|
11926
|
+
personalOrganizations: ExportedPersonalOrganizationDto[];
|
|
11927
|
+
messaging: ExportedMessagingDto;
|
|
11928
|
+
/** Personal data categories this export does NOT include: audit history, the records business organizations hold about the target, and the notes staff write for staff. Staff identifiers are left out too: they are other people's data. `personal_identity_number` is listed when the tenant has no credential to read the personnummer on the profile and the personal organizations; the billing accounts' and invoices' are included either way, as are the RUT identity numbers on carts and orders. */
|
|
11113
11929
|
notIncluded: string[];
|
|
11114
11930
|
}
|
|
11115
11931
|
export type EmployeeAssignmentDtoKind = typeof EmployeeAssignmentDtoKind[keyof typeof EmployeeAssignmentDtoKind];
|
|
@@ -12954,10 +13770,20 @@ export interface TenantGoodsDto {
|
|
|
12954
13770
|
/** 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. */
|
|
12955
13771
|
translations: TenantGoodsTranslationsDto;
|
|
12956
13772
|
/**
|
|
12957
|
-
* 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.
|
|
13773
|
+
* 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.
|
|
12958
13774
|
* @nullable
|
|
12959
13775
|
*/
|
|
12960
13776
|
retailPriceExVat?: string | null;
|
|
13777
|
+
/**
|
|
13778
|
+
* 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.
|
|
13779
|
+
* @nullable
|
|
13780
|
+
*/
|
|
13781
|
+
retailPriceIncVat?: string | null;
|
|
13782
|
+
/**
|
|
13783
|
+
* Whether the price was entered including VAT (`unitPriceIncVatMinor`). Null when the SKU has no open-ended price.
|
|
13784
|
+
* @nullable
|
|
13785
|
+
*/
|
|
13786
|
+
pricesIncludeVat?: boolean | null;
|
|
12961
13787
|
/** @nullable */
|
|
12962
13788
|
currencyCode?: string | null;
|
|
12963
13789
|
/** The billing.article this SKU prices through. Created by the SKU command; not caller-supplied. */
|
|
@@ -13022,10 +13848,15 @@ export interface CreateTenantGoodsDto {
|
|
|
13022
13848
|
/** 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. */
|
|
13023
13849
|
translations?: TenantGoodsTranslationsInputDto;
|
|
13024
13850
|
/**
|
|
13025
|
-
* 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.
|
|
13851
|
+
* 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.
|
|
13026
13852
|
* @minimum 0
|
|
13027
13853
|
*/
|
|
13028
|
-
unitPriceExVatMinor
|
|
13854
|
+
unitPriceExVatMinor?: number;
|
|
13855
|
+
/**
|
|
13856
|
+
* 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.
|
|
13857
|
+
* @minimum 0
|
|
13858
|
+
*/
|
|
13859
|
+
unitPriceIncVatMinor?: number;
|
|
13029
13860
|
/** 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. */
|
|
13030
13861
|
currencyCode: string;
|
|
13031
13862
|
/** 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. */
|
|
@@ -13067,10 +13898,15 @@ export interface UpdateTenantGoodsDto {
|
|
|
13067
13898
|
/** Replaces the SKU's per-locale texts WHOLE: a locale left out loses its entry, and `{}` removes them all. Omitted leaves them alone. */
|
|
13068
13899
|
translations?: TenantGoodsTranslationsInputDto;
|
|
13069
13900
|
/**
|
|
13070
|
-
* 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.
|
|
13901
|
+
* 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.
|
|
13071
13902
|
* @minimum 0
|
|
13072
13903
|
*/
|
|
13073
13904
|
unitPriceExVatMinor?: number;
|
|
13905
|
+
/**
|
|
13906
|
+
* 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.
|
|
13907
|
+
* @minimum 0
|
|
13908
|
+
*/
|
|
13909
|
+
unitPriceIncVatMinor?: number;
|
|
13074
13910
|
/** 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. */
|
|
13075
13911
|
effectiveFrom?: string;
|
|
13076
13912
|
category?: string;
|
|
@@ -13222,10 +14058,15 @@ export interface CheckoutMerchandiseDto {
|
|
|
13222
14058
|
/** 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. */
|
|
13223
14059
|
translations: TenantGoodsTranslationsDto;
|
|
13224
14060
|
/**
|
|
13225
|
-
* 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.
|
|
14061
|
+
* 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.
|
|
13226
14062
|
* @nullable
|
|
13227
14063
|
*/
|
|
13228
14064
|
retailPriceExVat?: string | null;
|
|
14065
|
+
/**
|
|
14066
|
+
* 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.
|
|
14067
|
+
* @nullable
|
|
14068
|
+
*/
|
|
14069
|
+
retailPriceIncVat?: string | null;
|
|
13229
14070
|
/** @nullable */
|
|
13230
14071
|
currencyCode?: string | null;
|
|
13231
14072
|
/** @nullable */
|
|
@@ -13260,10 +14101,15 @@ export interface MerchandiseEstimateLineDto {
|
|
|
13260
14101
|
/** 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. */
|
|
13261
14102
|
translations: TenantGoodsTranslationsDto;
|
|
13262
14103
|
/**
|
|
13263
|
-
* 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.
|
|
14104
|
+
* 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.
|
|
13264
14105
|
* @nullable
|
|
13265
14106
|
*/
|
|
13266
14107
|
retailPriceExVat?: string | null;
|
|
14108
|
+
/**
|
|
14109
|
+
* 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.
|
|
14110
|
+
* @nullable
|
|
14111
|
+
*/
|
|
14112
|
+
retailPriceIncVat?: string | null;
|
|
13267
14113
|
/** @nullable */
|
|
13268
14114
|
currencyCode?: string | null;
|
|
13269
14115
|
/** @nullable */
|
|
@@ -13589,6 +14435,28 @@ export interface AnalyticsVolumePerCustomerDto {
|
|
|
13589
14435
|
/** @nullable */
|
|
13590
14436
|
estimatedM3: number | null;
|
|
13591
14437
|
}
|
|
14438
|
+
export interface AnalyticsVolumeBucketDto {
|
|
14439
|
+
/** Customers in the bucket. */
|
|
14440
|
+
count: number;
|
|
14441
|
+
/**
|
|
14442
|
+
* Average over the bucket's customers of the measured m³ each held over their stored nights. Null for an empty bucket.
|
|
14443
|
+
* @nullable
|
|
14444
|
+
*/
|
|
14445
|
+
measuredM3: number | null;
|
|
14446
|
+
/**
|
|
14447
|
+
* 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.
|
|
14448
|
+
* @nullable
|
|
14449
|
+
*/
|
|
14450
|
+
estimatedM3: number | null;
|
|
14451
|
+
}
|
|
14452
|
+
export interface AnalyticsVolumeByStatusDto {
|
|
14453
|
+
/** Latest stay stored on the night. */
|
|
14454
|
+
active: AnalyticsVolumeBucketDto;
|
|
14455
|
+
/** Latest stay ended: empty for `stayGapNights` consecutive nights. */
|
|
14456
|
+
ended: AnalyticsVolumeBucketDto;
|
|
14457
|
+
/** Every customer who has stored, including those between stays, who are in neither bucket above. */
|
|
14458
|
+
all: AnalyticsVolumeBucketDto;
|
|
14459
|
+
}
|
|
13592
14460
|
export interface AnalyticsNightsBucketDto {
|
|
13593
14461
|
/** Stays, or customers, in the bucket. */
|
|
13594
14462
|
count: number;
|
|
@@ -13630,12 +14498,17 @@ export interface AnalyticsLifetimeValueDto {
|
|
|
13630
14498
|
*/
|
|
13631
14499
|
currencyCode: string | null;
|
|
13632
14500
|
/**
|
|
13633
|
-
* Average invoiced revenue ex VAT, minor units, of the customers whose latest stay
|
|
14501
|
+
* Average invoiced revenue ex VAT, minor units, of the customers whose latest stay is stored on the night.
|
|
14502
|
+
* @nullable
|
|
14503
|
+
*/
|
|
14504
|
+
activeCustomersMinor: number | null;
|
|
14505
|
+
/**
|
|
14506
|
+
* The same over the customers whose latest stay has ended.
|
|
13634
14507
|
* @nullable
|
|
13635
14508
|
*/
|
|
13636
14509
|
endedCustomersMinor: number | null;
|
|
13637
14510
|
/**
|
|
13638
|
-
* The same over every customer who has stored.
|
|
14511
|
+
* The same over every customer who has stored, including those between stays.
|
|
13639
14512
|
* @nullable
|
|
13640
14513
|
*/
|
|
13641
14514
|
storingCustomersMinor: number | null;
|
|
@@ -13647,6 +14520,8 @@ export interface AnalyticsPointInTimeDto {
|
|
|
13647
14520
|
activeCustomers: number;
|
|
13648
14521
|
storedVolume: AnalyticsStoredVolumeDto;
|
|
13649
14522
|
averageVolumePerActiveCustomer: AnalyticsVolumePerCustomerDto;
|
|
14523
|
+
/** 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. */
|
|
14524
|
+
averageVolumeWhileStoring: AnalyticsVolumeByStatusDto;
|
|
13650
14525
|
/** Customers registered on or before the night, cumulative. */
|
|
13651
14526
|
registeredCustomers: number;
|
|
13652
14527
|
/** Customers who had stored by the night, cumulative. */
|
|
@@ -13661,6 +14536,8 @@ export interface AnalyticsPointInTimeSetDto {
|
|
|
13661
14536
|
previousMonthEnd: AnalyticsPointInTimeDto;
|
|
13662
14537
|
/** asOf a month earlier, clamped to that month's last day (31 Oct → 30 Sep). */
|
|
13663
14538
|
sameDayLastMonth: AnalyticsPointInTimeDto;
|
|
14539
|
+
/** 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. */
|
|
14540
|
+
previousRangeEnd: AnalyticsPointInTimeDto;
|
|
13664
14541
|
}
|
|
13665
14542
|
export interface AnalyticsRevenueCategoryDto {
|
|
13666
14543
|
/**
|
|
@@ -13679,7 +14556,10 @@ export interface AnalyticsRevenueArticleDto {
|
|
|
13679
14556
|
articleId: string | null;
|
|
13680
14557
|
/** @nullable */
|
|
13681
14558
|
code: string | null;
|
|
13682
|
-
/**
|
|
14559
|
+
/**
|
|
14560
|
+
* The article's name in the requested `locale`, else its default name. Null for a row with no article.
|
|
14561
|
+
* @nullable
|
|
14562
|
+
*/
|
|
13683
14563
|
name: string | null;
|
|
13684
14564
|
/** @nullable */
|
|
13685
14565
|
category: string | null;
|
|
@@ -13714,6 +14594,46 @@ export interface AnalyticsPeriodSetDto {
|
|
|
13714
14594
|
/** The month before that. */
|
|
13715
14595
|
monthBefore: AnalyticsPeriodDto;
|
|
13716
14596
|
}
|
|
14597
|
+
export interface AnalyticsCohortLifetimeValueDto {
|
|
14598
|
+
/**
|
|
14599
|
+
* 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.
|
|
14600
|
+
* @nullable
|
|
14601
|
+
*/
|
|
14602
|
+
currencyCode: string | null;
|
|
14603
|
+
/**
|
|
14604
|
+
* 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.
|
|
14605
|
+
* @nullable
|
|
14606
|
+
*/
|
|
14607
|
+
activeCustomersMinor: number | null;
|
|
14608
|
+
/**
|
|
14609
|
+
* The same over the cohort's customers whose latest stay has ended.
|
|
14610
|
+
* @nullable
|
|
14611
|
+
*/
|
|
14612
|
+
endedCustomersMinor: number | null;
|
|
14613
|
+
/**
|
|
14614
|
+
* The same over the whole cohort, including customers between stays. Null when the cohort is empty.
|
|
14615
|
+
* @nullable
|
|
14616
|
+
*/
|
|
14617
|
+
storingCustomersMinor: number | null;
|
|
14618
|
+
}
|
|
14619
|
+
export interface AnalyticsRangePeriodDto {
|
|
14620
|
+
from: string;
|
|
14621
|
+
/** Included. */
|
|
14622
|
+
to: string;
|
|
14623
|
+
/** Customers registered in the window. */
|
|
14624
|
+
newRegisteredCustomers: number;
|
|
14625
|
+
/** Customers whose first stay started in the window. */
|
|
14626
|
+
newStoringCustomers: number;
|
|
14627
|
+
/** 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. */
|
|
14628
|
+
revenue: AnalyticsRevenueDto[];
|
|
14629
|
+
cohortLifetimeValue: AnalyticsCohortLifetimeValueDto;
|
|
14630
|
+
}
|
|
14631
|
+
export interface AnalyticsRangeSetDto {
|
|
14632
|
+
/** The range asked for, `from` through `to`. */
|
|
14633
|
+
current: AnalyticsRangePeriodDto;
|
|
14634
|
+
/** 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. */
|
|
14635
|
+
previous: AnalyticsRangePeriodDto;
|
|
14636
|
+
}
|
|
13717
14637
|
export interface AnalyticsRevenueTotalDto {
|
|
13718
14638
|
currencyCode: string;
|
|
13719
14639
|
/** Revenue ex VAT, minor units. */
|
|
@@ -13757,6 +14677,36 @@ export interface AnalyticsPricePerM3Dto {
|
|
|
13757
14677
|
/** The service month before it. */
|
|
13758
14678
|
monthBefore: AnalyticsPricePerM3MonthDto;
|
|
13759
14679
|
}
|
|
14680
|
+
export interface AnalyticsPricePerM3TrendMonthDto {
|
|
14681
|
+
/** First day of the service month. */
|
|
14682
|
+
serviceMonth: string;
|
|
14683
|
+
/** Storage-category revenue ex VAT for the service month, minor units. */
|
|
14684
|
+
storageRevenueMinor: number;
|
|
14685
|
+
/** Average m³ stored over the month's nights, measured. */
|
|
14686
|
+
averageMeasuredM3: number;
|
|
14687
|
+
/**
|
|
14688
|
+
* The same, estimated; null when no night of the month carries an estimate.
|
|
14689
|
+
* @nullable
|
|
14690
|
+
*/
|
|
14691
|
+
averageEstimatedM3: number | null;
|
|
14692
|
+
/**
|
|
14693
|
+
* Minor units per measured m³; null when nothing measured was stored.
|
|
14694
|
+
* @nullable
|
|
14695
|
+
*/
|
|
14696
|
+
pricePerMeasuredM3Minor: number | null;
|
|
14697
|
+
/**
|
|
14698
|
+
* Minor units per estimated m³.
|
|
14699
|
+
* @nullable
|
|
14700
|
+
*/
|
|
14701
|
+
pricePerEstimatedM3Minor: number | null;
|
|
14702
|
+
/** 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. */
|
|
14703
|
+
fullyInvoiced: boolean;
|
|
14704
|
+
}
|
|
14705
|
+
export interface AnalyticsPricePerM3TrendDto {
|
|
14706
|
+
currencyCode: string;
|
|
14707
|
+
/** The twelve service months before asOf's, oldest first, every one listed. averagePricePerM3's lastInvoicedServiceMonth can be older than all of them. */
|
|
14708
|
+
months: AnalyticsPricePerM3TrendMonthDto[];
|
|
14709
|
+
}
|
|
13760
14710
|
export interface AnalyticsEstimateCategoryDto {
|
|
13761
14711
|
/** @nullable */
|
|
13762
14712
|
category: string | null;
|
|
@@ -13787,6 +14737,57 @@ export interface AnalyticsEstimateCurrencyDto {
|
|
|
13787
14737
|
lastMonthActualMinor: number;
|
|
13788
14738
|
byCategory: AnalyticsEstimateCategoryDto[];
|
|
13789
14739
|
}
|
|
14740
|
+
/**
|
|
14741
|
+
* `cold_start` when fewer than `minPods` pods were measured in the window, so the ratio is 1 and no correction was applied.
|
|
14742
|
+
*/
|
|
14743
|
+
export type AnalyticsForecastRatioDtoSource = typeof AnalyticsForecastRatioDtoSource[keyof typeof AnalyticsForecastRatioDtoSource];
|
|
14744
|
+
export declare const AnalyticsForecastRatioDtoSource: {
|
|
14745
|
+
readonly measured: "measured";
|
|
14746
|
+
readonly cold_start: "cold_start";
|
|
14747
|
+
};
|
|
14748
|
+
export interface AnalyticsForecastRatioDto {
|
|
14749
|
+
/** 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`. */
|
|
14750
|
+
value: number;
|
|
14751
|
+
/** `cold_start` when fewer than `minPods` pods were measured in the window, so the ratio is 1 and no correction was applied. */
|
|
14752
|
+
source: AnalyticsForecastRatioDtoSource;
|
|
14753
|
+
/** Pods measured in the window that carry both a measurement and an estimate. */
|
|
14754
|
+
measuredPods: number;
|
|
14755
|
+
/** The fewest measured pods the ratio is computed from. */
|
|
14756
|
+
minPods: number;
|
|
14757
|
+
/** Days of measurements the ratio reads, ending at `windowTo`. */
|
|
14758
|
+
windowDays: number;
|
|
14759
|
+
windowFrom: string;
|
|
14760
|
+
windowTo: string;
|
|
14761
|
+
}
|
|
14762
|
+
export interface AnalyticsInvoiceForecastCategoryDto {
|
|
14763
|
+
/** @nullable */
|
|
14764
|
+
category: string | null;
|
|
14765
|
+
/** Net ex-VAT of the booked pickups' charges in this category, minor units, after campaigns, binding discounts and codes. */
|
|
14766
|
+
bookedPickupsMinor: number;
|
|
14767
|
+
}
|
|
14768
|
+
export interface AnalyticsInvoiceForecastCurrencyDto {
|
|
14769
|
+
currencyCode: string;
|
|
14770
|
+
/** 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`. */
|
|
14771
|
+
bookedPickupsMinor: number;
|
|
14772
|
+
/** Pickups priced into this currency. */
|
|
14773
|
+
pickupsPriced: number;
|
|
14774
|
+
byCategory: AnalyticsInvoiceForecastCategoryDto[];
|
|
14775
|
+
}
|
|
14776
|
+
export interface AnalyticsInvoiceForecastDto {
|
|
14777
|
+
/** 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. */
|
|
14778
|
+
isForecast: boolean;
|
|
14779
|
+
ratio: AnalyticsForecastRatioDto;
|
|
14780
|
+
/** 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`. */
|
|
14781
|
+
pickupsBooked: number;
|
|
14782
|
+
/** How many of them are priced into `currencies`. */
|
|
14783
|
+
pickupsPriced: number;
|
|
14784
|
+
/** 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`). */
|
|
14785
|
+
pickupsUnpriced: number;
|
|
14786
|
+
/** True when pricing stopped at the limit on pickups or on time, so `currencies` is short by the pickups it did not reach. */
|
|
14787
|
+
truncated: boolean;
|
|
14788
|
+
/** One entry per currency. */
|
|
14789
|
+
currencies: AnalyticsInvoiceForecastCurrencyDto[];
|
|
14790
|
+
}
|
|
13790
14791
|
export interface AnalyticsInvoiceEstimateDto {
|
|
13791
14792
|
/** Always true: these are projections, not invoices. */
|
|
13792
14793
|
isEstimate: boolean;
|
|
@@ -13804,9 +14805,11 @@ export interface AnalyticsInvoiceEstimateDto {
|
|
|
13804
14805
|
lastMonthComplete: boolean;
|
|
13805
14806
|
/** One entry per currency. */
|
|
13806
14807
|
currencies: AnalyticsEstimateCurrencyDto[];
|
|
14808
|
+
/** 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. */
|
|
14809
|
+
forecast: AnalyticsInvoiceForecastDto;
|
|
13807
14810
|
}
|
|
13808
14811
|
export interface AnalyticsOverviewDto {
|
|
13809
|
-
/** The night the figures describe
|
|
14812
|
+
/** The night the figures describe: the range's last night, `to`. */
|
|
13810
14813
|
asOf: string;
|
|
13811
14814
|
/**
|
|
13812
14815
|
* When the nightly analytics build these figures read was computed; null before the first.
|
|
@@ -13817,11 +14820,54 @@ export interface AnalyticsOverviewDto {
|
|
|
13817
14820
|
stayGapNights: number;
|
|
13818
14821
|
pointInTime: AnalyticsPointInTimeSetDto;
|
|
13819
14822
|
periods: AnalyticsPeriodSetDto;
|
|
14823
|
+
/** The period figures over the requested range and the range it is compared with, each with the lifetime value of its acquisition cohort. */
|
|
14824
|
+
range: AnalyticsRangeSetDto;
|
|
13820
14825
|
revenueYearToDate: AnalyticsRevenueYearToDateDto;
|
|
13821
14826
|
/** One entry per currency with a fully invoiced storage month. */
|
|
13822
14827
|
averagePricePerM3: AnalyticsPricePerM3Dto[];
|
|
14828
|
+
/** 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. */
|
|
14829
|
+
averagePricePerM3Trend: AnalyticsPricePerM3TrendDto[];
|
|
13823
14830
|
estimatedInvoicesThisMonth: AnalyticsInvoiceEstimateDto;
|
|
13824
14831
|
}
|
|
14832
|
+
export interface AnalyticsStorageForecastDayDto {
|
|
14833
|
+
date: string;
|
|
14834
|
+
/** 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. */
|
|
14835
|
+
projectedM3: number;
|
|
14836
|
+
/** m³ the pickups planned on the day bring in, estimated volume times the correction ratio. */
|
|
14837
|
+
incomingM3: number;
|
|
14838
|
+
/** m³ the deliveries planned on the day take out. */
|
|
14839
|
+
outgoingM3: number;
|
|
14840
|
+
/** Pickups planned on the day. */
|
|
14841
|
+
bookedPickups: number;
|
|
14842
|
+
/** Deliveries planned on the day. */
|
|
14843
|
+
bookedDeliveries: number;
|
|
14844
|
+
}
|
|
14845
|
+
/**
|
|
14846
|
+
* Which volume `startM3` is: the estimated volume the dashboard charts, or the measured volume when no night carries an estimate.
|
|
14847
|
+
*/
|
|
14848
|
+
export type AnalyticsStorageForecastDtoStartBasis = typeof AnalyticsStorageForecastDtoStartBasis[keyof typeof AnalyticsStorageForecastDtoStartBasis];
|
|
14849
|
+
export declare const AnalyticsStorageForecastDtoStartBasis: {
|
|
14850
|
+
readonly estimated: "estimated";
|
|
14851
|
+
readonly measured: "measured";
|
|
14852
|
+
};
|
|
14853
|
+
export interface AnalyticsStorageForecastDto {
|
|
14854
|
+
/** The latest night built: the forecast starts from how it ended. */
|
|
14855
|
+
asOf: string;
|
|
14856
|
+
/**
|
|
14857
|
+
* When the nightly analytics build these figures read was computed; null before the first.
|
|
14858
|
+
* @nullable
|
|
14859
|
+
*/
|
|
14860
|
+
computedAt: string | null;
|
|
14861
|
+
/** Days forecast, from the day after `asOf`. */
|
|
14862
|
+
horizonDays: number;
|
|
14863
|
+
/** m³ in storage when `asOf` ended, the figure the forecast continues from. */
|
|
14864
|
+
startM3: number;
|
|
14865
|
+
/** Which volume `startM3` is: the estimated volume the dashboard charts, or the measured volume when no night carries an estimate. */
|
|
14866
|
+
startBasis: AnalyticsStorageForecastDtoStartBasis;
|
|
14867
|
+
ratio: AnalyticsForecastRatioDto;
|
|
14868
|
+
/** One entry per day, in date order, every day listed. */
|
|
14869
|
+
days: AnalyticsStorageForecastDayDto[];
|
|
14870
|
+
}
|
|
13825
14871
|
export interface AnalyticsDailyRowDto {
|
|
13826
14872
|
date: string;
|
|
13827
14873
|
/** Customers with goods in storage that night. */
|
|
@@ -13954,6 +15000,103 @@ export interface AnalyticsCustomerMonthPageDto {
|
|
|
13954
15000
|
*/
|
|
13955
15001
|
nextCursor: string | null;
|
|
13956
15002
|
}
|
|
15003
|
+
export type AnalyticsOrderRowDtoType = typeof AnalyticsOrderRowDtoType[keyof typeof AnalyticsOrderRowDtoType];
|
|
15004
|
+
export declare const AnalyticsOrderRowDtoType: {
|
|
15005
|
+
readonly PICKUP: "PICKUP";
|
|
15006
|
+
readonly DELIVERY: "DELIVERY";
|
|
15007
|
+
readonly MOVE: "MOVE";
|
|
15008
|
+
readonly DROP_OFF: "DROP_OFF";
|
|
15009
|
+
readonly TRANSFER: "TRANSFER";
|
|
15010
|
+
readonly PICKING: "PICKING";
|
|
15011
|
+
readonly MERCHANDISE_SALE: "MERCHANDISE_SALE";
|
|
15012
|
+
};
|
|
15013
|
+
/**
|
|
15014
|
+
* The order's status today, not mapped to the pilot's values.
|
|
15015
|
+
*/
|
|
15016
|
+
export type AnalyticsOrderRowDtoStatus = typeof AnalyticsOrderRowDtoStatus[keyof typeof AnalyticsOrderRowDtoStatus];
|
|
15017
|
+
export declare const AnalyticsOrderRowDtoStatus: {
|
|
15018
|
+
readonly CREATED: "CREATED";
|
|
15019
|
+
readonly CONFIRMED: "CONFIRMED";
|
|
15020
|
+
readonly REQUESTED: "REQUESTED";
|
|
15021
|
+
readonly PROCESSING: "PROCESSING";
|
|
15022
|
+
readonly PROCESSED: "PROCESSED";
|
|
15023
|
+
readonly IN_TRANSIT: "IN_TRANSIT";
|
|
15024
|
+
readonly AT_CUSTOMER: "AT_CUSTOMER";
|
|
15025
|
+
readonly RECEIVED: "RECEIVED";
|
|
15026
|
+
readonly COMPLETED: "COMPLETED";
|
|
15027
|
+
readonly CANCELLED: "CANCELLED";
|
|
15028
|
+
readonly FAILED: "FAILED";
|
|
15029
|
+
};
|
|
15030
|
+
export interface AnalyticsOrderRowDto {
|
|
15031
|
+
/** Pilot `user/customer_number`. */
|
|
15032
|
+
customerKey: string;
|
|
15033
|
+
/** The order's job number, unique per order. Pilot `order_id`. */
|
|
15034
|
+
jobNumber: number;
|
|
15035
|
+
type: AnalyticsOrderRowDtoType;
|
|
15036
|
+
/** When the order was placed. */
|
|
15037
|
+
createdAt: string;
|
|
15038
|
+
/**
|
|
15039
|
+
* Start of the customer leg's booked window. Pilot `preferred_transport_from`.
|
|
15040
|
+
* @nullable
|
|
15041
|
+
*/
|
|
15042
|
+
plannedWindowStart: string | null;
|
|
15043
|
+
/**
|
|
15044
|
+
* End of the customer leg's booked window. Pilot `preferred_transport_to`.
|
|
15045
|
+
* @nullable
|
|
15046
|
+
*/
|
|
15047
|
+
plannedWindowEnd: string | null;
|
|
15048
|
+
/** The order's status today, not mapped to the pilot's values. */
|
|
15049
|
+
status: AnalyticsOrderRowDtoStatus;
|
|
15050
|
+
/**
|
|
15051
|
+
* Minutes the driver spent at the customer leg's stop, from arriving to completing it. Null until measured. Pilot `sales_order_transports/0/handle_time_at_customer`.
|
|
15052
|
+
* @nullable
|
|
15053
|
+
*/
|
|
15054
|
+
handleTimeAtCustomerMinutes: number | null;
|
|
15055
|
+
/** Product lines on the order. Pilot `product_count`. */
|
|
15056
|
+
productCount: number;
|
|
15057
|
+
/**
|
|
15058
|
+
* Measured volume, cm³, set when the order completes. Pilot `actual_volume`.
|
|
15059
|
+
* @nullable
|
|
15060
|
+
*/
|
|
15061
|
+
actualVolumeCm3: number | null;
|
|
15062
|
+
/**
|
|
15063
|
+
* Billable volume, cm³, set when the order completes. Pilot `billable_volume`.
|
|
15064
|
+
* @nullable
|
|
15065
|
+
*/
|
|
15066
|
+
billableVolumeCm3: number | null;
|
|
15067
|
+
/** Units on the product lines whose product is a moving box. Pilot `movingBoxes/aggregate/count`. */
|
|
15068
|
+
movingBoxCount: number;
|
|
15069
|
+
/** Units over the product lines. Pilot `totalItems/aggregate/count`. */
|
|
15070
|
+
itemCount: number;
|
|
15071
|
+
/**
|
|
15072
|
+
* Items the customer estimated at booking. Pilot `sales_order_estimates/0/items`.
|
|
15073
|
+
* @nullable
|
|
15074
|
+
*/
|
|
15075
|
+
estimatedItemCount: number | null;
|
|
15076
|
+
/**
|
|
15077
|
+
* Volume the customer estimated at booking, cm³. Pilot `sales_order_estimates/0/volume`.
|
|
15078
|
+
* @nullable
|
|
15079
|
+
*/
|
|
15080
|
+
estimatedVolumeCm3: number | null;
|
|
15081
|
+
/**
|
|
15082
|
+
* The customer's stay the goods arrived in or left, as the `stays` dataset numbers it. Joins to it on (`customerKey`, `stayNumber`).
|
|
15083
|
+
* @nullable
|
|
15084
|
+
*/
|
|
15085
|
+
stayNumber: number | null;
|
|
15086
|
+
/**
|
|
15087
|
+
* When the order's goods arrived in storage or left it.
|
|
15088
|
+
* @nullable
|
|
15089
|
+
*/
|
|
15090
|
+
goodsMovedAt: string | null;
|
|
15091
|
+
}
|
|
15092
|
+
export interface AnalyticsOrderPageDto {
|
|
15093
|
+
items: AnalyticsOrderRowDto[];
|
|
15094
|
+
/**
|
|
15095
|
+
* Pass as `cursor` for the next page; null on the last page.
|
|
15096
|
+
* @nullable
|
|
15097
|
+
*/
|
|
15098
|
+
nextCursor: string | null;
|
|
15099
|
+
}
|
|
13957
15100
|
export interface AnalyticsRevenueRowDto {
|
|
13958
15101
|
/** First day of the invoice's month. */
|
|
13959
15102
|
invoiceMonth: string;
|
|
@@ -14156,7 +15299,34 @@ export type OrganizationsControllerListV1Params = {
|
|
|
14156
15299
|
*/
|
|
14157
15300
|
search?: string;
|
|
14158
15301
|
/**
|
|
14159
|
-
*
|
|
15302
|
+
* 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.
|
|
15303
|
+
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
|
|
15304
|
+
*/
|
|
15305
|
+
createdFrom?: string;
|
|
15306
|
+
/**
|
|
15307
|
+
* 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.
|
|
15308
|
+
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
|
|
15309
|
+
*/
|
|
15310
|
+
createdTo?: string;
|
|
15311
|
+
/**
|
|
15312
|
+
* Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
|
|
15313
|
+
*/
|
|
15314
|
+
warehouseId?: string;
|
|
15315
|
+
/**
|
|
15316
|
+
* 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`.
|
|
15317
|
+
* @pattern ^[a-z0-9_]{1,64}$
|
|
15318
|
+
*/
|
|
15319
|
+
paymentMethod?: string;
|
|
15320
|
+
/**
|
|
15321
|
+
* Sort key. Rows that tie on it are ordered by organization id, in the same direction.
|
|
15322
|
+
*/
|
|
15323
|
+
sort?: OrganizationsControllerListV1Sort;
|
|
15324
|
+
/**
|
|
15325
|
+
* Sort direction. When omitted: `asc` for `sort=name`, `desc` for `sort=createdAt` (newest first). Without `sort`, it applies to `createdAt`.
|
|
15326
|
+
*/
|
|
15327
|
+
order?: OrganizationsControllerListV1Order;
|
|
15328
|
+
/**
|
|
15329
|
+
* 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.
|
|
14160
15330
|
*/
|
|
14161
15331
|
ids?: string[];
|
|
14162
15332
|
};
|
|
@@ -14165,16 +15335,45 @@ export declare const OrganizationsControllerListV1Type: {
|
|
|
14165
15335
|
readonly business: "business";
|
|
14166
15336
|
readonly personal: "personal";
|
|
14167
15337
|
};
|
|
15338
|
+
export type OrganizationsControllerListV1Sort = typeof OrganizationsControllerListV1Sort[keyof typeof OrganizationsControllerListV1Sort];
|
|
15339
|
+
export declare const OrganizationsControllerListV1Sort: {
|
|
15340
|
+
readonly name: "name";
|
|
15341
|
+
readonly createdAt: "createdAt";
|
|
15342
|
+
};
|
|
15343
|
+
export type OrganizationsControllerListV1Order = typeof OrganizationsControllerListV1Order[keyof typeof OrganizationsControllerListV1Order];
|
|
15344
|
+
export declare const OrganizationsControllerListV1Order: {
|
|
15345
|
+
readonly asc: "asc";
|
|
15346
|
+
readonly desc: "desc";
|
|
15347
|
+
};
|
|
14168
15348
|
export type OrganizationsControllerStatsV1Params = {
|
|
14169
15349
|
/**
|
|
14170
15350
|
* Filter by organization type.
|
|
14171
15351
|
*/
|
|
14172
15352
|
type?: OrganizationsControllerStatsV1Type;
|
|
14173
15353
|
/**
|
|
14174
|
-
* 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.
|
|
15354
|
+
* 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.
|
|
14175
15355
|
* @maxLength 200
|
|
14176
15356
|
*/
|
|
14177
15357
|
search?: string;
|
|
15358
|
+
/**
|
|
15359
|
+
* 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.
|
|
15360
|
+
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
|
|
15361
|
+
*/
|
|
15362
|
+
createdFrom?: string;
|
|
15363
|
+
/**
|
|
15364
|
+
* 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.
|
|
15365
|
+
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
|
|
15366
|
+
*/
|
|
15367
|
+
createdTo?: string;
|
|
15368
|
+
/**
|
|
15369
|
+
* Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
|
|
15370
|
+
*/
|
|
15371
|
+
warehouseId?: string;
|
|
15372
|
+
/**
|
|
15373
|
+
* 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`.
|
|
15374
|
+
* @pattern ^[a-z0-9_]{1,64}$
|
|
15375
|
+
*/
|
|
15376
|
+
paymentMethod?: string;
|
|
14178
15377
|
};
|
|
14179
15378
|
export type OrganizationsControllerStatsV1Type = typeof OrganizationsControllerStatsV1Type[keyof typeof OrganizationsControllerStatsV1Type];
|
|
14180
15379
|
export declare const OrganizationsControllerStatsV1Type: {
|
|
@@ -15071,6 +16270,28 @@ export type InvoicesControllerListCorrectionsV1Params = {
|
|
|
15071
16270
|
*/
|
|
15072
16271
|
offset?: number;
|
|
15073
16272
|
};
|
|
16273
|
+
export type CollectionHoldsControllerListCollectionHoldsV1Params = {
|
|
16274
|
+
/**
|
|
16275
|
+
* Max rows to return (1–100).
|
|
16276
|
+
* @minimum 1
|
|
16277
|
+
* @maximum 100
|
|
16278
|
+
*/
|
|
16279
|
+
limit?: number;
|
|
16280
|
+
/**
|
|
16281
|
+
* Rows to skip.
|
|
16282
|
+
* @minimum 0
|
|
16283
|
+
*/
|
|
16284
|
+
offset?: number;
|
|
16285
|
+
/**
|
|
16286
|
+
* Only the invoices held for this reason.
|
|
16287
|
+
*/
|
|
16288
|
+
reason?: CollectionHoldsControllerListCollectionHoldsV1Reason;
|
|
16289
|
+
};
|
|
16290
|
+
export type CollectionHoldsControllerListCollectionHoldsV1Reason = typeof CollectionHoldsControllerListCollectionHoldsV1Reason[keyof typeof CollectionHoldsControllerListCollectionHoldsV1Reason];
|
|
16291
|
+
export declare const CollectionHoldsControllerListCollectionHoldsV1Reason: {
|
|
16292
|
+
readonly DRAFT_CREDIT_NOTE: "DRAFT_CREDIT_NOTE";
|
|
16293
|
+
readonly CREDITED: "CREDITED";
|
|
16294
|
+
};
|
|
15074
16295
|
export type ArticlesControllerListArticlesV1Params = {
|
|
15075
16296
|
/**
|
|
15076
16297
|
* Max rows to return (1–100).
|
|
@@ -15797,9 +17018,35 @@ export type TransportOptionsControllerListV1Params = {
|
|
|
15797
17018
|
};
|
|
15798
17019
|
export type AnalyticsControllerOverviewV1Params = {
|
|
15799
17020
|
/**
|
|
15800
|
-
* 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.
|
|
17021
|
+
* 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.
|
|
15801
17022
|
*/
|
|
15802
17023
|
asOf?: string;
|
|
17024
|
+
/**
|
|
17025
|
+
* 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).
|
|
17026
|
+
*/
|
|
17027
|
+
from?: string;
|
|
17028
|
+
/**
|
|
17029
|
+
* 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).
|
|
17030
|
+
*/
|
|
17031
|
+
to?: string;
|
|
17032
|
+
/**
|
|
17033
|
+
* 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.
|
|
17034
|
+
*/
|
|
17035
|
+
locale?: AnalyticsControllerOverviewV1Locale;
|
|
17036
|
+
};
|
|
17037
|
+
export type AnalyticsControllerOverviewV1Locale = typeof AnalyticsControllerOverviewV1Locale[keyof typeof AnalyticsControllerOverviewV1Locale];
|
|
17038
|
+
export declare const AnalyticsControllerOverviewV1Locale: {
|
|
17039
|
+
readonly 'sv-SE': "sv-SE";
|
|
17040
|
+
readonly 'en-GB': "en-GB";
|
|
17041
|
+
readonly 'fi-FI': "fi-FI";
|
|
17042
|
+
};
|
|
17043
|
+
export type AnalyticsControllerStorageForecastV1Params = {
|
|
17044
|
+
/**
|
|
17045
|
+
* Days to forecast, from the day after the latest night built (1–60).
|
|
17046
|
+
* @minimum 1
|
|
17047
|
+
* @maximum 60
|
|
17048
|
+
*/
|
|
17049
|
+
days?: number;
|
|
15803
17050
|
};
|
|
15804
17051
|
export type AnalyticsControllerDailyV1Params = {
|
|
15805
17052
|
/**
|
|
@@ -15865,6 +17112,26 @@ export type AnalyticsControllerCustomerMonthsV1Params = {
|
|
|
15865
17112
|
*/
|
|
15866
17113
|
to?: string;
|
|
15867
17114
|
};
|
|
17115
|
+
export type AnalyticsControllerOrdersV1Params = {
|
|
17116
|
+
/**
|
|
17117
|
+
* The `nextCursor` of the previous page. Omit for the first page.
|
|
17118
|
+
*/
|
|
17119
|
+
cursor?: string;
|
|
17120
|
+
/**
|
|
17121
|
+
* Rows per page (1–5000).
|
|
17122
|
+
* @minimum 1
|
|
17123
|
+
* @maximum 5000
|
|
17124
|
+
*/
|
|
17125
|
+
limit?: number;
|
|
17126
|
+
/**
|
|
17127
|
+
* First day (YYYY-MM-DD), in the billing calendar. Defaults to the 1st of the month twelve months before `to`'s. A monthly dataset covers `from`'s month.
|
|
17128
|
+
*/
|
|
17129
|
+
from?: string;
|
|
17130
|
+
/**
|
|
17131
|
+
* Last day, included. Defaults to, and may not be after, the latest night the nightly build covers. The range may span at most 25 calendar months.
|
|
17132
|
+
*/
|
|
17133
|
+
to?: string;
|
|
17134
|
+
};
|
|
15868
17135
|
export type AnalyticsControllerRevenueV1Params = {
|
|
15869
17136
|
/**
|
|
15870
17137
|
* The `nextCursor` of the previous page. Omit for the first page.
|