@vindentech/api-client 2.0.0-next.9 → 2.0.0
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/generated/_all.d.ts +3 -0
- package/dist/generated/_all.d.ts.map +1 -1
- package/dist/generated/_all.js +3 -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 +15 -1
- package/dist/generated/analytics/analytics.d.ts.map +1 -1
- package/dist/generated/analytics/analytics.js +21 -0
- package/dist/generated/analytics/analytics.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/coupons/coupons.d.ts +30 -1
- package/dist/generated/coupons/coupons.d.ts.map +1 -1
- package/dist/generated/coupons/coupons.js +24 -0
- package/dist/generated/coupons/coupons.js.map +1 -1
- package/dist/generated/discount-rules/discount-rules.d.ts +90 -2
- package/dist/generated/discount-rules/discount-rules.d.ts.map +1 -1
- package/dist/generated/discount-rules/discount-rules.js +97 -1
- package/dist/generated/discount-rules/discount-rules.js.map +1 -1
- package/dist/generated/index.schemas.d.ts +1004 -43
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js +118 -5
- package/dist/generated/index.schemas.js.map +1 -1
- 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/service-points/service-points.d.ts +1 -1
- package/dist/generated/service-points/service-points.js +1 -1
- package/dist/generated/users/users.d.ts +1 -1
- package/dist/generated/users/users.js +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";
|
|
@@ -2192,7 +2303,7 @@ export interface UpdateCarrierMethodDto {
|
|
|
2192
2303
|
export interface MembershipDto {
|
|
2193
2304
|
organizationId: string;
|
|
2194
2305
|
role: string;
|
|
2195
|
-
/**
|
|
2306
|
+
/** Permissions (resource:action) of this membership's stored `role`, for display, such as labelling the user's role in an organization. Permission checks never read this list; they use the top-level `capabilities`, which come from the token. The stored role can differ from the token's roles: `GET /v1/me` stores a single role picked from the token (its highest-priority organization role, when it has one) only when it creates the membership and never refreshes it, and a role set by onboarding or the organization-member endpoints reaches the token only once Keycloak is updated and the token is refreshed. */
|
|
2196
2307
|
capabilities: string[];
|
|
2197
2308
|
}
|
|
2198
2309
|
export interface AssignmentDto {
|
|
@@ -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
|
|
@@ -2348,7 +2448,7 @@ export interface MeResponseDto {
|
|
|
2348
2448
|
*/
|
|
2349
2449
|
preferences: MeResponseDtoPreferences;
|
|
2350
2450
|
memberships: MembershipDto[];
|
|
2351
|
-
/**
|
|
2451
|
+
/** Permissions (resource:action) of every role on the caller's token — realm roles and the API client's roles, organization roles (`org-billing`, `owner`, …) included. This is the set the server checks each operation's required permissions against: drive UI visibility off it (for example `hasRequiredPermissions(me.capabilities, operation)`), not off `memberships[].capabilities` or role names. An organization role's permissions apply to the token's organization. Holding a permission does not guarantee success: data stays scoped to the caller's organization, warehouses or carrier, and some operations check more (see their 403 responses). */
|
|
2352
2452
|
capabilities: string[];
|
|
2353
2453
|
/** Warehouses the caller can act for (JWT warehouse_ids claim; [] if none) — matches what RLS scopes operational reads to. */
|
|
2354
2454
|
warehouseIds: string[];
|
|
@@ -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;
|
|
@@ -2619,7 +2719,7 @@ export interface CreateCartDto {
|
|
|
2619
2719
|
customerType?: CreateCartDtoCustomerType;
|
|
2620
2720
|
/** ISO 3166-1 alpha-2. Fallback only: overridden by the target organization's active billing account, if it has one. */
|
|
2621
2721
|
countryCode: string;
|
|
2622
|
-
/** ISO 4217. Fallback only: overridden by the target organization's active billing account, if it has one. */
|
|
2722
|
+
/** ISO 4217. Fallback only: overridden by the target organization's active billing account, if it has one. When it is used (a guest, or an organization with no active billing account), it must be one of the tenant's active enabled currencies. Any other code is refused with 400 `currency_not_enabled`, and no cart is created. */
|
|
2623
2723
|
currencyCode: string;
|
|
2624
2724
|
/** Staff create-on-behalf target organization. Ignored for org users (own org). */
|
|
2625
2725
|
organizationId?: string;
|
|
@@ -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
|
/**
|
|
@@ -2958,8 +3063,10 @@ export interface QuoteLineDto {
|
|
|
2958
3063
|
reference: string | null;
|
|
2959
3064
|
description: string;
|
|
2960
3065
|
quantity: number;
|
|
2961
|
-
/** 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. */
|
|
2962
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;
|
|
2963
3070
|
/** Line total ex-VAT, integer minor units, AFTER any campaign and binding discount — the amount that reaches `totals` */
|
|
2964
3071
|
lineTotalExVatMinor: number;
|
|
2965
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. */
|
|
@@ -3126,6 +3233,93 @@ export interface QuoteBindingOptionDto {
|
|
|
3126
3233
|
/** This cart, priced under this plan */
|
|
3127
3234
|
totals: QuoteTotalsDto;
|
|
3128
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. In `detailed_with_discounts` a discount row is named after the campaign or code that took it off, where one alone did (else the category's discount), and the minimum monthly storage fee's row is named after it. */
|
|
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
|
+
* The first day the row bills. Always null on a quote, which prices each category as one period; an invoice's display line states it in `detailed_with_discounts`.
|
|
3291
|
+
* @nullable
|
|
3292
|
+
*/
|
|
3293
|
+
periodStart: string | null;
|
|
3294
|
+
/**
|
|
3295
|
+
* The last day the row bills; always null on a quote, as `periodStart`.
|
|
3296
|
+
* @nullable
|
|
3297
|
+
*/
|
|
3298
|
+
periodEnd: string | null;
|
|
3299
|
+
/**
|
|
3300
|
+
* Why the row bills more than the goods measured, in the booking's language, as the invoice writes it: the contracted minimum billable volume or minimum charge applied. In `detailed_with_discounts` only, where the minimum folds into its category's row; null otherwise.
|
|
3301
|
+
* @nullable
|
|
3302
|
+
*/
|
|
3303
|
+
note: string | null;
|
|
3304
|
+
}
|
|
3305
|
+
export interface QuoteDisplayTotalsDto {
|
|
3306
|
+
/** Sum of `displayLines[].amountExVatMinor`, minor units */
|
|
3307
|
+
exVatMinor: number;
|
|
3308
|
+
/** `incVatMinor` − `exVatMinor`, minor units */
|
|
3309
|
+
vatMinor: number;
|
|
3310
|
+
/** Sum of `displayLines[].amountIncVatMinor`, minor units: equal to `totals.payableMinor`, since the discount rows include the code. */
|
|
3311
|
+
incVatMinor: number;
|
|
3312
|
+
}
|
|
3313
|
+
/**
|
|
3314
|
+
* 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. `detailed_with_discounts`: one row per category with its quantity and the note a minimum puts on it, then one discount row per offer that reduced it, named after the offer (several offers on one line share one row with the category's discount label), and the minimum monthly storage fee on a row of its own, as billed.
|
|
3315
|
+
*/
|
|
3316
|
+
export type QuoteResponseDtoPresentationMode = typeof QuoteResponseDtoPresentationMode[keyof typeof QuoteResponseDtoPresentationMode];
|
|
3317
|
+
export declare const QuoteResponseDtoPresentationMode: {
|
|
3318
|
+
readonly detailed: "detailed";
|
|
3319
|
+
readonly category_with_discounts: "category_with_discounts";
|
|
3320
|
+
readonly category_net: "category_net";
|
|
3321
|
+
readonly detailed_with_discounts: "detailed_with_discounts";
|
|
3322
|
+
};
|
|
3129
3323
|
export interface QuoteResponseDto {
|
|
3130
3324
|
cartId: string;
|
|
3131
3325
|
/** ISO 4217 — the currency all amounts are expressed in */
|
|
@@ -3159,6 +3353,15 @@ export interface QuoteResponseDto {
|
|
|
3159
3353
|
*/
|
|
3160
3354
|
rutDeductionMinor: number | null;
|
|
3161
3355
|
totals: QuoteTotalsDto;
|
|
3356
|
+
/** 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. `detailed_with_discounts`: one row per category with its quantity and the note a minimum puts on it, then one discount row per offer that reduced it, named after the offer (several offers on one line share one row with the category's discount label), and the minimum monthly storage fee on a row of its own, as billed. */
|
|
3357
|
+
presentationMode: QuoteResponseDtoPresentationMode;
|
|
3358
|
+
/** 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. */
|
|
3359
|
+
displayLines: QuoteDisplayLineDto[];
|
|
3360
|
+
/**
|
|
3361
|
+
* What `displayLines` add up to: `incVatMinor` is `totals.payableMinor`. Null in `detailed` mode.
|
|
3362
|
+
* @nullable
|
|
3363
|
+
*/
|
|
3364
|
+
displayTotals: QuoteDisplayTotalsDto | null;
|
|
3162
3365
|
/** 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. */
|
|
3163
3366
|
deferred: string[];
|
|
3164
3367
|
}
|
|
@@ -3513,38 +3716,71 @@ export interface AvailableServiceDto {
|
|
|
3513
3716
|
* @nullable
|
|
3514
3717
|
*/
|
|
3515
3718
|
fromPrice: MoneyDto | null;
|
|
3719
|
+
/**
|
|
3720
|
+
* `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.
|
|
3721
|
+
* @nullable
|
|
3722
|
+
*/
|
|
3723
|
+
fromPriceIncVat: MoneyDto | null;
|
|
3516
3724
|
/** Whether any future capacity day/slot exists for the service+zone */
|
|
3517
3725
|
hasSlots: boolean;
|
|
3518
3726
|
}
|
|
3519
3727
|
export interface SlotPriceDto {
|
|
3520
3728
|
/** @nullable */
|
|
3521
3729
|
perM3ExVat?: string | null;
|
|
3522
|
-
/**
|
|
3730
|
+
/**
|
|
3731
|
+
* `perM3ExVat` including VAT. Null exactly when `perM3ExVat` is.
|
|
3732
|
+
* @nullable
|
|
3733
|
+
*/
|
|
3523
3734
|
perM3IncVat?: string | null;
|
|
3524
3735
|
/** @nullable */
|
|
3525
3736
|
perHourExVat?: string | null;
|
|
3526
3737
|
/** @nullable */
|
|
3527
3738
|
baseFeeExVat?: string | null;
|
|
3739
|
+
/**
|
|
3740
|
+
* `baseFeeExVat` including VAT. Null exactly when `baseFeeExVat` is.
|
|
3741
|
+
* @nullable
|
|
3742
|
+
*/
|
|
3743
|
+
baseFeeIncVat?: string | null;
|
|
3528
3744
|
/**
|
|
3529
3745
|
* 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).
|
|
3530
3746
|
* @nullable
|
|
3531
3747
|
*/
|
|
3532
3748
|
zoneSurchargeExVat: string | null;
|
|
3749
|
+
/**
|
|
3750
|
+
* `zoneSurchargeExVat` including VAT — show it as "+X". Null exactly when `zoneSurchargeExVat` is.
|
|
3751
|
+
* @nullable
|
|
3752
|
+
*/
|
|
3753
|
+
zoneSurchargeIncVat: string | null;
|
|
3533
3754
|
/**
|
|
3534
3755
|
* 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.
|
|
3535
3756
|
* @nullable
|
|
3536
3757
|
*/
|
|
3537
3758
|
zoneSurchargePerM3ExVat: string | null;
|
|
3759
|
+
/**
|
|
3760
|
+
* `zoneSurchargePerM3ExVat` including VAT — show it as "+X/m³". Null exactly when `zoneSurchargePerM3ExVat` is.
|
|
3761
|
+
* @nullable
|
|
3762
|
+
*/
|
|
3763
|
+
zoneSurchargePerM3IncVat: string | null;
|
|
3538
3764
|
/**
|
|
3539
3765
|
* 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).
|
|
3540
3766
|
* @nullable
|
|
3541
3767
|
*/
|
|
3542
3768
|
windowSurchargeExVat: string | null;
|
|
3769
|
+
/**
|
|
3770
|
+
* `windowSurchargeExVat` including VAT — show it as "+X". Null exactly when `windowSurchargeExVat` is.
|
|
3771
|
+
* @nullable
|
|
3772
|
+
*/
|
|
3773
|
+
windowSurchargeIncVat: string | null;
|
|
3543
3774
|
/**
|
|
3544
3775
|
* 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.
|
|
3545
3776
|
* @nullable
|
|
3546
3777
|
*/
|
|
3547
3778
|
windowSurchargePerM3ExVat: string | null;
|
|
3779
|
+
/**
|
|
3780
|
+
* `windowSurchargePerM3ExVat` including VAT — show it as "+X/m³". Null exactly when `windowSurchargePerM3ExVat` is.
|
|
3781
|
+
* @nullable
|
|
3782
|
+
*/
|
|
3783
|
+
windowSurchargePerM3IncVat: string | null;
|
|
3548
3784
|
/** @nullable */
|
|
3549
3785
|
vatRate: string | null;
|
|
3550
3786
|
/** @nullable */
|
|
@@ -6504,6 +6740,11 @@ export interface DisposalRequestQuoteLineDto {
|
|
|
6504
6740
|
* @nullable
|
|
6505
6741
|
*/
|
|
6506
6742
|
unitPriceExVatMinor: number | null;
|
|
6743
|
+
/**
|
|
6744
|
+
* 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.
|
|
6745
|
+
* @nullable
|
|
6746
|
+
*/
|
|
6747
|
+
unitPriceIncVatMinor: number | null;
|
|
6507
6748
|
/** Minor units, ex VAT. */
|
|
6508
6749
|
totalExVatMinor: number;
|
|
6509
6750
|
/** VAT percentage, e.g. 25.5. */
|
|
@@ -8510,6 +8751,24 @@ export interface InvoiceNowDto {
|
|
|
8510
8751
|
*/
|
|
8511
8752
|
reason: string;
|
|
8512
8753
|
}
|
|
8754
|
+
/**
|
|
8755
|
+
* Where this invoice is bookkept: `manual` until POST /sync queues its Fortnox push, `fortnox` from then on. An imported invoice carries the provider it was imported with, so `fortnox` can come with syncStatus `not_required`. The invoice's own value, not the billing account's. Whether to offer Bookkeep is still decided by syncStatus.
|
|
8756
|
+
*/
|
|
8757
|
+
export type InvoiceDtoAccountingProvider = typeof InvoiceDtoAccountingProvider[keyof typeof InvoiceDtoAccountingProvider];
|
|
8758
|
+
export declare const InvoiceDtoAccountingProvider: {
|
|
8759
|
+
readonly manual: "manual";
|
|
8760
|
+
readonly fortnox: "fortnox";
|
|
8761
|
+
readonly stripe: "stripe";
|
|
8762
|
+
};
|
|
8763
|
+
/**
|
|
8764
|
+
* The rail the invoice is sent on, frozen from the billing account when POST /send accepts it (so already set while sendStatus is `pending` or `failed`): manual = bank transfer, emailed by Fortnox; stripe = card, collected through Stripe. Null until then, except on an imported invoice, which carries its rail from the import. A later change to the billing account does not change it.
|
|
8765
|
+
* @nullable
|
|
8766
|
+
*/
|
|
8767
|
+
export type InvoiceDtoPaymentProvider = typeof InvoiceDtoPaymentProvider[keyof typeof InvoiceDtoPaymentProvider] | null;
|
|
8768
|
+
export declare const InvoiceDtoPaymentProvider: {
|
|
8769
|
+
readonly manual: "manual";
|
|
8770
|
+
readonly stripe: "stripe";
|
|
8771
|
+
};
|
|
8513
8772
|
export interface InvoiceDto {
|
|
8514
8773
|
invoiceId: string;
|
|
8515
8774
|
tenantId: string;
|
|
@@ -8550,6 +8809,18 @@ export interface InvoiceDto {
|
|
|
8550
8809
|
* @nullable
|
|
8551
8810
|
*/
|
|
8552
8811
|
paymentLinkUrl: string | null;
|
|
8812
|
+
/** Where this invoice is bookkept: `manual` until POST /sync queues its Fortnox push, `fortnox` from then on. An imported invoice carries the provider it was imported with, so `fortnox` can come with syncStatus `not_required`. The invoice's own value, not the billing account's. Whether to offer Bookkeep is still decided by syncStatus. */
|
|
8813
|
+
accountingProvider: InvoiceDtoAccountingProvider;
|
|
8814
|
+
/**
|
|
8815
|
+
* The rail the invoice is sent on, frozen from the billing account when POST /send accepts it (so already set while sendStatus is `pending` or `failed`): manual = bank transfer, emailed by Fortnox; stripe = card, collected through Stripe. Null until then, except on an imported invoice, which carries its rail from the import. A later change to the billing account does not change it.
|
|
8816
|
+
* @nullable
|
|
8817
|
+
*/
|
|
8818
|
+
paymentProvider: InvoiceDtoPaymentProvider;
|
|
8819
|
+
/**
|
|
8820
|
+
* The payment method a card-rail invoice is collected with, frozen by POST /send: the billing account's own paymentMethodId, else the tenant's default. Null on the bank rail, before POST /send, and on an imported invoice. Look it up in GET /v1/billing/payment-methods (needs billingconfig:read): its isAutoChargeable decides whether the due-date charge charges a saved card, which also takes a default saved card and the tenant's auto-charge mode `live`.
|
|
8821
|
+
* @nullable
|
|
8822
|
+
*/
|
|
8823
|
+
paymentMethodId: string | null;
|
|
8553
8824
|
/** @nullable */
|
|
8554
8825
|
snapshotCompanyName: string | null;
|
|
8555
8826
|
/** @nullable */
|
|
@@ -8617,6 +8888,8 @@ export interface InvoiceRowDto {
|
|
|
8617
8888
|
vatRate: string;
|
|
8618
8889
|
/** ISO 4217 currency code. */
|
|
8619
8890
|
currencyCode: string;
|
|
8891
|
+
/** 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. */
|
|
8892
|
+
pricesIncludeVat: boolean;
|
|
8620
8893
|
/**
|
|
8621
8894
|
* 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.
|
|
8622
8895
|
* @nullable
|
|
@@ -8652,6 +8925,111 @@ export interface InvoiceRowDto {
|
|
|
8652
8925
|
*/
|
|
8653
8926
|
servicedAt: string | null;
|
|
8654
8927
|
}
|
|
8928
|
+
/**
|
|
8929
|
+
* `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`.
|
|
8930
|
+
*/
|
|
8931
|
+
export type InvoiceDisplayLineDtoKind = typeof InvoiceDisplayLineDtoKind[keyof typeof InvoiceDisplayLineDtoKind];
|
|
8932
|
+
export declare const InvoiceDisplayLineDtoKind: {
|
|
8933
|
+
readonly category: "category";
|
|
8934
|
+
readonly start_fee: "start_fee";
|
|
8935
|
+
readonly discount: "discount";
|
|
8936
|
+
};
|
|
8937
|
+
/**
|
|
8938
|
+
* 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).
|
|
8939
|
+
*/
|
|
8940
|
+
export type InvoiceDisplayLineDtoCategory = typeof InvoiceDisplayLineDtoCategory[keyof typeof InvoiceDisplayLineDtoCategory];
|
|
8941
|
+
export declare const InvoiceDisplayLineDtoCategory: {
|
|
8942
|
+
readonly storage: "storage";
|
|
8943
|
+
readonly transport: "transport";
|
|
8944
|
+
readonly start_fee: "start_fee";
|
|
8945
|
+
readonly packing_materials: "packing_materials";
|
|
8946
|
+
readonly insurance: "insurance";
|
|
8947
|
+
readonly services: "services";
|
|
8948
|
+
};
|
|
8949
|
+
/**
|
|
8950
|
+
* `pcs`: items. `m3`: cubic metres, in `detailed_with_discounts` only. Null exactly when `quantity` is.
|
|
8951
|
+
* @nullable
|
|
8952
|
+
*/
|
|
8953
|
+
export type InvoiceDisplayLineDtoUnit = typeof InvoiceDisplayLineDtoUnit[keyof typeof InvoiceDisplayLineDtoUnit] | null;
|
|
8954
|
+
export declare const InvoiceDisplayLineDtoUnit: {
|
|
8955
|
+
readonly m3: "m3";
|
|
8956
|
+
readonly pcs: "pcs";
|
|
8957
|
+
};
|
|
8958
|
+
export interface InvoiceDisplayLineDto {
|
|
8959
|
+
/** `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`. */
|
|
8960
|
+
kind: InvoiceDisplayLineDtoKind;
|
|
8961
|
+
/** 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). */
|
|
8962
|
+
category: InvoiceDisplayLineDtoCategory;
|
|
8963
|
+
/** 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. In `detailed_with_discounts` a discount row is named after the campaign or code that took it off, where one alone did (else the category's discount), and the minimum monthly storage fee's row is named after it. */
|
|
8964
|
+
description: string;
|
|
8965
|
+
/**
|
|
8966
|
+
* The number of packing-material items. In `detailed_with_discounts` also the m³ a storage row's period or a transport row's order is billed on, past every minimum. Null on every other row: in the other modes a storage or transport row covers a month whose volume can change.
|
|
8967
|
+
* @nullable
|
|
8968
|
+
*/
|
|
8969
|
+
quantity: number | null;
|
|
8970
|
+
/**
|
|
8971
|
+
* `pcs`: items. `m3`: cubic metres, in `detailed_with_discounts` only. Null exactly when `quantity` is.
|
|
8972
|
+
* @nullable
|
|
8973
|
+
*/
|
|
8974
|
+
unit: InvoiceDisplayLineDtoUnit;
|
|
8975
|
+
/** 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. */
|
|
8976
|
+
amountExVatMinor: number;
|
|
8977
|
+
/** 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. */
|
|
8978
|
+
amountIncVatMinor: number;
|
|
8979
|
+
/** VAT rate as a percentage (25 = 25%). A category whose rows carry different rates is split into one row per rate. */
|
|
8980
|
+
vatRate: number;
|
|
8981
|
+
/**
|
|
8982
|
+
* The first day the row bills, `YYYY-MM-DD`; on a discount row, the first day of the first period it reduced. In `detailed_with_discounts` only, where each category row is one period (a constant-volume span of storage, a day's transport); null in the other modes and on a row with no period.
|
|
8983
|
+
* @nullable
|
|
8984
|
+
*/
|
|
8985
|
+
periodStart: string | null;
|
|
8986
|
+
/**
|
|
8987
|
+
* The last day the row bills, inclusive; null exactly when `periodStart` is.
|
|
8988
|
+
* @nullable
|
|
8989
|
+
*/
|
|
8990
|
+
periodEnd: string | null;
|
|
8991
|
+
/**
|
|
8992
|
+
* Why the row bills more than the goods measured, in the invoice's language, as the invoice writes it on the stored row: a minimum billable volume, a minimum charge or a minimum storage period applied; or a correction's, a charge-back's or staff's own text. In `detailed_with_discounts` only, on a category row; null otherwise.
|
|
8993
|
+
* @nullable
|
|
8994
|
+
*/
|
|
8995
|
+
note: string | null;
|
|
8996
|
+
}
|
|
8997
|
+
export interface InvoiceDisplayTotalsDto {
|
|
8998
|
+
/** Sum of `displayLines[].amountExVatMinor`, minor units */
|
|
8999
|
+
exVatMinor: number;
|
|
9000
|
+
/** `incVatMinor` − `exVatMinor`, minor units */
|
|
9001
|
+
vatMinor: number;
|
|
9002
|
+
/** 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. */
|
|
9003
|
+
incVatMinor: number;
|
|
9004
|
+
}
|
|
9005
|
+
/**
|
|
9006
|
+
* Where this invoice is bookkept: `manual` until POST /sync queues its Fortnox push, `fortnox` from then on. An imported invoice carries the provider it was imported with, so `fortnox` can come with syncStatus `not_required`. The invoice's own value, not the billing account's. Whether to offer Bookkeep is still decided by syncStatus.
|
|
9007
|
+
*/
|
|
9008
|
+
export type InvoiceDetailDtoAccountingProvider = typeof InvoiceDetailDtoAccountingProvider[keyof typeof InvoiceDetailDtoAccountingProvider];
|
|
9009
|
+
export declare const InvoiceDetailDtoAccountingProvider: {
|
|
9010
|
+
readonly manual: "manual";
|
|
9011
|
+
readonly fortnox: "fortnox";
|
|
9012
|
+
readonly stripe: "stripe";
|
|
9013
|
+
};
|
|
9014
|
+
/**
|
|
9015
|
+
* The rail the invoice is sent on, frozen from the billing account when POST /send accepts it (so already set while sendStatus is `pending` or `failed`): manual = bank transfer, emailed by Fortnox; stripe = card, collected through Stripe. Null until then, except on an imported invoice, which carries its rail from the import. A later change to the billing account does not change it.
|
|
9016
|
+
* @nullable
|
|
9017
|
+
*/
|
|
9018
|
+
export type InvoiceDetailDtoPaymentProvider = typeof InvoiceDetailDtoPaymentProvider[keyof typeof InvoiceDetailDtoPaymentProvider] | null;
|
|
9019
|
+
export declare const InvoiceDetailDtoPaymentProvider: {
|
|
9020
|
+
readonly manual: "manual";
|
|
9021
|
+
readonly stripe: "stripe";
|
|
9022
|
+
};
|
|
9023
|
+
/**
|
|
9024
|
+
* 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. `detailed_with_discounts`: one row per stored row (a constant-volume span of storage, a day's transport, split per order where nothing reduced it) with its period, volume and note; after a category's periods, one discount row per offer that reduced them, named after it and dated by the periods it reduced (a discount is worked out over the month, not per period; offers that reduced the same period share one row with the category's discount label); the minimum monthly storage fee on a row of its own, as billed.
|
|
9025
|
+
*/
|
|
9026
|
+
export type InvoiceDetailDtoPresentationMode = typeof InvoiceDetailDtoPresentationMode[keyof typeof InvoiceDetailDtoPresentationMode];
|
|
9027
|
+
export declare const InvoiceDetailDtoPresentationMode: {
|
|
9028
|
+
readonly detailed: "detailed";
|
|
9029
|
+
readonly category_with_discounts: "category_with_discounts";
|
|
9030
|
+
readonly category_net: "category_net";
|
|
9031
|
+
readonly detailed_with_discounts: "detailed_with_discounts";
|
|
9032
|
+
};
|
|
8655
9033
|
export interface InvoiceDetailDto {
|
|
8656
9034
|
invoiceId: string;
|
|
8657
9035
|
tenantId: string;
|
|
@@ -8692,6 +9070,18 @@ export interface InvoiceDetailDto {
|
|
|
8692
9070
|
* @nullable
|
|
8693
9071
|
*/
|
|
8694
9072
|
paymentLinkUrl: string | null;
|
|
9073
|
+
/** Where this invoice is bookkept: `manual` until POST /sync queues its Fortnox push, `fortnox` from then on. An imported invoice carries the provider it was imported with, so `fortnox` can come with syncStatus `not_required`. The invoice's own value, not the billing account's. Whether to offer Bookkeep is still decided by syncStatus. */
|
|
9074
|
+
accountingProvider: InvoiceDetailDtoAccountingProvider;
|
|
9075
|
+
/**
|
|
9076
|
+
* The rail the invoice is sent on, frozen from the billing account when POST /send accepts it (so already set while sendStatus is `pending` or `failed`): manual = bank transfer, emailed by Fortnox; stripe = card, collected through Stripe. Null until then, except on an imported invoice, which carries its rail from the import. A later change to the billing account does not change it.
|
|
9077
|
+
* @nullable
|
|
9078
|
+
*/
|
|
9079
|
+
paymentProvider: InvoiceDetailDtoPaymentProvider;
|
|
9080
|
+
/**
|
|
9081
|
+
* The payment method a card-rail invoice is collected with, frozen by POST /send: the billing account's own paymentMethodId, else the tenant's default. Null on the bank rail, before POST /send, and on an imported invoice. Look it up in GET /v1/billing/payment-methods (needs billingconfig:read): its isAutoChargeable decides whether the due-date charge charges a saved card, which also takes a default saved card and the tenant's auto-charge mode `live`.
|
|
9082
|
+
* @nullable
|
|
9083
|
+
*/
|
|
9084
|
+
paymentMethodId: string | null;
|
|
8695
9085
|
/** @nullable */
|
|
8696
9086
|
snapshotCompanyName: string | null;
|
|
8697
9087
|
/** @nullable */
|
|
@@ -8707,6 +9097,15 @@ export interface InvoiceDetailDto {
|
|
|
8707
9097
|
/** @nullable */
|
|
8708
9098
|
snapshotCorporateIdentityNumber: string | null;
|
|
8709
9099
|
rows: InvoiceRowDto[];
|
|
9100
|
+
/** 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. `detailed_with_discounts`: one row per stored row (a constant-volume span of storage, a day's transport, split per order where nothing reduced it) with its period, volume and note; after a category's periods, one discount row per offer that reduced them, named after it and dated by the periods it reduced (a discount is worked out over the month, not per period; offers that reduced the same period share one row with the category's discount label); the minimum monthly storage fee on a row of its own, as billed. */
|
|
9101
|
+
presentationMode: InvoiceDetailDtoPresentationMode;
|
|
9102
|
+
/** 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 (in `detailed_with_discounts` each category's periods by date, then its discount rows, then the minimum monthly fee). 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. In the category modes, next to the minimum monthly fee, a storage discount row shows only what a reduction took off what is paid; in `detailed_with_discounts` it shows the whole reduction and the fee is a row of its own. Packing materials state their item count; storage and transport state their m³ in `detailed_with_discounts` only. Empty in `detailed` mode. */
|
|
9103
|
+
displayLines: InvoiceDisplayLineDto[];
|
|
9104
|
+
/**
|
|
9105
|
+
* What `displayLines` add up to. Null in `detailed` mode.
|
|
9106
|
+
* @nullable
|
|
9107
|
+
*/
|
|
9108
|
+
displayTotals: InvoiceDisplayTotalsDto | null;
|
|
8710
9109
|
}
|
|
8711
9110
|
export interface VoidInvoiceDto {
|
|
8712
9111
|
/** Why the invoice is being voided (required, recorded on the row). */
|
|
@@ -8851,6 +9250,47 @@ export interface SendInvoiceResponseDto {
|
|
|
8851
9250
|
/** The routing token enqueued for the Worker's InvoiceSendProcessor — derived from paymentProvider (manual → fortnox-email, stripe → stripe-payment). */
|
|
8852
9251
|
rail: SendInvoiceResponseDtoRail;
|
|
8853
9252
|
}
|
|
9253
|
+
export interface CollectionHoldCreditNoteDto {
|
|
9254
|
+
/** The credit note's own id; read it with GET /v1/billing/invoices/{id}. */
|
|
9255
|
+
invoiceId: string;
|
|
9256
|
+
/** Invoice status enum: CREATED or READY while a draft, SENT or later once sent. */
|
|
9257
|
+
invoiceStatus: string;
|
|
9258
|
+
/** The credit note's total in minor currency units, negative as the credit note stores it. */
|
|
9259
|
+
totalMinor: number;
|
|
9260
|
+
/** When the credit note was created. */
|
|
9261
|
+
createdAt: string;
|
|
9262
|
+
}
|
|
9263
|
+
/**
|
|
9264
|
+
* 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.
|
|
9265
|
+
*/
|
|
9266
|
+
export type CollectionHoldDtoReason = typeof CollectionHoldDtoReason[keyof typeof CollectionHoldDtoReason];
|
|
9267
|
+
export declare const CollectionHoldDtoReason: {
|
|
9268
|
+
readonly DRAFT_CREDIT_NOTE: "DRAFT_CREDIT_NOTE";
|
|
9269
|
+
readonly CREDITED: "CREDITED";
|
|
9270
|
+
};
|
|
9271
|
+
export interface CollectionHoldDto {
|
|
9272
|
+
invoice: InvoiceDto;
|
|
9273
|
+
/** 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. */
|
|
9274
|
+
reason: CollectionHoldDtoReason;
|
|
9275
|
+
/** Every credit note against the invoice that is not voided, oldest first. */
|
|
9276
|
+
creditNotes: CollectionHoldCreditNoteDto[];
|
|
9277
|
+
/** What the sent credit notes credit, in minor currency units, as a positive amount. Drafts are not counted. */
|
|
9278
|
+
creditedMinor: number;
|
|
9279
|
+
/** The payments recorded against the invoice, in minor currency units. */
|
|
9280
|
+
paidMinor: number;
|
|
9281
|
+
/** invoice.totalMinor − creditedMinor − paidMinor, in minor currency units. Zero or negative when nothing is owed. */
|
|
9282
|
+
remainingMinor: number;
|
|
9283
|
+
}
|
|
9284
|
+
export interface PaginatedCollectionHoldsDto {
|
|
9285
|
+
/** The page of rows. */
|
|
9286
|
+
items: CollectionHoldDto[];
|
|
9287
|
+
/** Exact count of all rows matching the filter, pre-pagination (RLS-scoped). */
|
|
9288
|
+
total: number;
|
|
9289
|
+
/** Effective max rows applied (after defaults/clamp). */
|
|
9290
|
+
limit: number;
|
|
9291
|
+
/** Effective rows skipped applied. */
|
|
9292
|
+
offset: number;
|
|
9293
|
+
}
|
|
8854
9294
|
export interface ArticleTranslationDto {
|
|
8855
9295
|
/** @maxLength 80 */
|
|
8856
9296
|
name: string;
|
|
@@ -8983,6 +9423,8 @@ export interface TenantBillingConfigDto {
|
|
|
8983
9423
|
timezone: string;
|
|
8984
9424
|
/** 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. */
|
|
8985
9425
|
oneOffInvoicing: TenantBillingConfigDtoOneOffInvoicing;
|
|
9426
|
+
/** 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. */
|
|
9427
|
+
pricesIncludeVat: boolean;
|
|
8986
9428
|
createdAt: string;
|
|
8987
9429
|
updatedAt: string;
|
|
8988
9430
|
enabledCurrencies: EnabledCurrencyDto[];
|
|
@@ -8996,6 +9438,7 @@ export declare const UpdateTenantBillingConfigDtoOneOffInvoicing: {
|
|
|
8996
9438
|
readonly monthly: "monthly";
|
|
8997
9439
|
};
|
|
8998
9440
|
export interface UpdateTenantBillingConfigDto {
|
|
9441
|
+
/** 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. */
|
|
8999
9442
|
defaultPaymentMethodId?: string;
|
|
9000
9443
|
defaultPaymentTermId?: string;
|
|
9001
9444
|
defaultBillingFrequencyId?: string;
|
|
@@ -9006,6 +9449,8 @@ export interface UpdateTenantBillingConfigDto {
|
|
|
9006
9449
|
timezone?: string;
|
|
9007
9450
|
/** 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. */
|
|
9008
9451
|
oneOffInvoicing?: UpdateTenantBillingConfigDtoOneOffInvoicing;
|
|
9452
|
+
/** 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. */
|
|
9453
|
+
pricesIncludeVat?: boolean;
|
|
9009
9454
|
changeReason?: string;
|
|
9010
9455
|
}
|
|
9011
9456
|
export interface EnabledCurrencyInputDto {
|
|
@@ -9128,6 +9573,20 @@ export interface ReplaceInvoiceTextsDto {
|
|
|
9128
9573
|
/** 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. */
|
|
9129
9574
|
texts: InvoiceTextsInputDto;
|
|
9130
9575
|
}
|
|
9576
|
+
/**
|
|
9577
|
+
* 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. `detailed_with_discounts`: one row per category and period (on an invoice, each storage period at one volume and each pickup or delivery) with the volume billed in it and the note a minimum puts on it; after a category's periods, one discount row per campaign or code that reduced them, named after it and dated by the periods it reduced; the minimum monthly storage fee on a row of its own. Every other minimum folds into its category and the window and zone surcharges into transport; nothing is priced differently.
|
|
9578
|
+
*/
|
|
9579
|
+
export type PricePresentationDtoMode = typeof PricePresentationDtoMode[keyof typeof PricePresentationDtoMode];
|
|
9580
|
+
export declare const PricePresentationDtoMode: {
|
|
9581
|
+
readonly detailed: "detailed";
|
|
9582
|
+
readonly category_with_discounts: "category_with_discounts";
|
|
9583
|
+
readonly category_net: "category_net";
|
|
9584
|
+
readonly detailed_with_discounts: "detailed_with_discounts";
|
|
9585
|
+
};
|
|
9586
|
+
export interface PricePresentationDto {
|
|
9587
|
+
/** 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. `detailed_with_discounts`: one row per category and period (on an invoice, each storage period at one volume and each pickup or delivery) with the volume billed in it and the note a minimum puts on it; after a category's periods, one discount row per campaign or code that reduced them, named after it and dated by the periods it reduced; the minimum monthly storage fee on a row of its own. Every other minimum folds into its category and the window and zone surcharges into transport; nothing is priced differently. */
|
|
9588
|
+
mode: PricePresentationDtoMode;
|
|
9589
|
+
}
|
|
9131
9590
|
/**
|
|
9132
9591
|
* 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.
|
|
9133
9592
|
*/
|
|
@@ -9424,7 +9883,7 @@ export interface DiscountRuleDto {
|
|
|
9424
9883
|
/** @nullable */
|
|
9425
9884
|
effectiveUntil: string | null;
|
|
9426
9885
|
isActive: boolean;
|
|
9427
|
-
/** Lifecycle status
|
|
9886
|
+
/** Lifecycle status: draft / pending_approval / active / archived. Only an active rule discounts anything. */
|
|
9428
9887
|
lifecycleStatus: string;
|
|
9429
9888
|
createdAt: string;
|
|
9430
9889
|
updatedAt: string;
|
|
@@ -9475,14 +9934,46 @@ export interface CreateDiscountRuleDto {
|
|
|
9475
9934
|
effectiveUntil?: string;
|
|
9476
9935
|
changeReason?: string;
|
|
9477
9936
|
}
|
|
9478
|
-
export interface
|
|
9479
|
-
bindingPlanId: string;
|
|
9480
|
-
tenantId: string;
|
|
9481
|
-
code: string;
|
|
9482
|
-
displayName: string;
|
|
9937
|
+
export interface ApproveDiscountRulesDto {
|
|
9483
9938
|
/**
|
|
9484
|
-
*
|
|
9485
|
-
* @
|
|
9939
|
+
* Discount rule ids to approve together, atomically.
|
|
9940
|
+
* @maxItems 100
|
|
9941
|
+
*/
|
|
9942
|
+
discountRuleIds: string[];
|
|
9943
|
+
/** Optional justification for this decision. */
|
|
9944
|
+
changeReason?: string;
|
|
9945
|
+
}
|
|
9946
|
+
/**
|
|
9947
|
+
* Move between draft and pending_approval only. Activation, ending and archival are dedicated endpoints.
|
|
9948
|
+
*/
|
|
9949
|
+
export type UpdateDiscountRuleDtoLifecycleStatus = typeof UpdateDiscountRuleDtoLifecycleStatus[keyof typeof UpdateDiscountRuleDtoLifecycleStatus];
|
|
9950
|
+
export declare const UpdateDiscountRuleDtoLifecycleStatus: {
|
|
9951
|
+
readonly draft: "draft";
|
|
9952
|
+
readonly pending_approval: "pending_approval";
|
|
9953
|
+
};
|
|
9954
|
+
export interface UpdateDiscountRuleDto {
|
|
9955
|
+
/** Move between draft and pending_approval only. Activation, ending and archival are dedicated endpoints. */
|
|
9956
|
+
lifecycleStatus?: UpdateDiscountRuleDtoLifecycleStatus;
|
|
9957
|
+
changeReason?: string;
|
|
9958
|
+
}
|
|
9959
|
+
export interface EndDiscountRuleDto {
|
|
9960
|
+
/** First day the rule no longer applies (YYYY-MM-DD). Not before today in the tenant's billing calendar, not before effectiveFrom, and not after the rule's current effectiveUntil. */
|
|
9961
|
+
effectiveUntil: string;
|
|
9962
|
+
/** Optional justification for this decision. */
|
|
9963
|
+
changeReason?: string;
|
|
9964
|
+
}
|
|
9965
|
+
export interface DiscountRuleLifecycleActionDto {
|
|
9966
|
+
/** Optional justification for this decision. */
|
|
9967
|
+
changeReason?: string;
|
|
9968
|
+
}
|
|
9969
|
+
export interface BindingPlanDto {
|
|
9970
|
+
bindingPlanId: string;
|
|
9971
|
+
tenantId: string;
|
|
9972
|
+
code: string;
|
|
9973
|
+
displayName: string;
|
|
9974
|
+
/**
|
|
9975
|
+
* Binding duration in months; null or 0 = flexible / no binding.
|
|
9976
|
+
* @nullable
|
|
9486
9977
|
*/
|
|
9487
9978
|
durationMonths: number | null;
|
|
9488
9979
|
/** Whether the binding discount persists after the binding ends. */
|
|
@@ -10004,13 +10495,13 @@ export interface CouponRedemptionDto {
|
|
|
10004
10495
|
/** Date the discount starts applying. */
|
|
10005
10496
|
appliesFrom: string;
|
|
10006
10497
|
/**
|
|
10007
|
-
* Date the discount stops applying; null = forever.
|
|
10498
|
+
* Date the discount stops applying; null = no end date: a forever code, or a one-time code until the first invoice that applies it consumes it.
|
|
10008
10499
|
* @nullable
|
|
10009
10500
|
*/
|
|
10010
10501
|
appliesUntil: string | null;
|
|
10011
10502
|
/** Redemption source (manual / checkout / sales_order / migration). */
|
|
10012
10503
|
source: string;
|
|
10013
|
-
/** Status (active / consumed / expired / cancelled). */
|
|
10504
|
+
/** Status (active / consumed / expired / cancelled). `expired`: staff ended a one-time code no invoice used whose granted credit was not cancelled; it still counts toward the coupon's redemption limits, which `cancelled` does not. */
|
|
10014
10505
|
status: string;
|
|
10015
10506
|
createdAt: string;
|
|
10016
10507
|
}
|
|
@@ -10024,6 +10515,14 @@ export interface PaginatedCouponRedemptionsDto {
|
|
|
10024
10515
|
/** Effective rows skipped applied. */
|
|
10025
10516
|
offset: number;
|
|
10026
10517
|
}
|
|
10518
|
+
export interface CancelCouponRedemptionDto {
|
|
10519
|
+
/**
|
|
10520
|
+
* Why the redemption is cancelled (recorded in the admin audit; never shown to the customer).
|
|
10521
|
+
* @minLength 1
|
|
10522
|
+
* @maxLength 500
|
|
10523
|
+
*/
|
|
10524
|
+
reason: string;
|
|
10525
|
+
}
|
|
10027
10526
|
export interface UnitOfMeasureDto {
|
|
10028
10527
|
unitOfMeasureId: string;
|
|
10029
10528
|
/**
|
|
@@ -10174,6 +10673,8 @@ export interface PricingRuleDto {
|
|
|
10174
10673
|
calculationMethod: string;
|
|
10175
10674
|
/** Method-specific parameters (JSON). */
|
|
10176
10675
|
parameters: PricingRuleDtoParameters;
|
|
10676
|
+
/** 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. */
|
|
10677
|
+
pricesIncludeVat: boolean;
|
|
10177
10678
|
/** Rule scope: order / product / shipment / storage / time / material. */
|
|
10178
10679
|
ruleScope: string;
|
|
10179
10680
|
/** Engine stage (lower runs first; layered rules differ). */
|
|
@@ -10295,7 +10796,10 @@ export interface SimulatedBasisRowDto {
|
|
|
10295
10796
|
quantity: number;
|
|
10296
10797
|
unitOfMeasureId: string;
|
|
10297
10798
|
unitCode: string;
|
|
10298
|
-
/**
|
|
10799
|
+
/**
|
|
10800
|
+
* The rule's unit price, in the row's basis (`pricesIncludeVat`).
|
|
10801
|
+
* @nullable
|
|
10802
|
+
*/
|
|
10299
10803
|
unitPriceMinor: number | null;
|
|
10300
10804
|
/** Amount excl. VAT in minor currency units. */
|
|
10301
10805
|
amountExVatMinor: number;
|
|
@@ -10303,6 +10807,8 @@ export interface SimulatedBasisRowDto {
|
|
|
10303
10807
|
vatRate: number;
|
|
10304
10808
|
/** Pre-discount VAT in minor currency units. */
|
|
10305
10809
|
vatAmountMinor: number;
|
|
10810
|
+
/** 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. */
|
|
10811
|
+
pricesIncludeVat: boolean;
|
|
10306
10812
|
currencyCode: string;
|
|
10307
10813
|
ruleScope: string;
|
|
10308
10814
|
componentCode: string;
|
|
@@ -10320,6 +10826,8 @@ export interface ProjectedInvoiceRowDto {
|
|
|
10320
10826
|
amountExVatMinor: number;
|
|
10321
10827
|
/** VAT amount in minor currency units, BEFORE discounts. */
|
|
10322
10828
|
vatAmountMinor: number;
|
|
10829
|
+
/** 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. */
|
|
10830
|
+
pricesIncludeVat: boolean;
|
|
10323
10831
|
rutEligible: boolean;
|
|
10324
10832
|
/** @nullable */
|
|
10325
10833
|
periodStart: string | null;
|
|
@@ -10882,6 +11390,8 @@ export interface PriceBookDto {
|
|
|
10882
11390
|
* @nullable
|
|
10883
11391
|
*/
|
|
10884
11392
|
currencyCode: string | null;
|
|
11393
|
+
/** 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. */
|
|
11394
|
+
pricesIncludeVat: boolean;
|
|
10885
11395
|
sections: PriceBookSectionDto[];
|
|
10886
11396
|
/**
|
|
10887
11397
|
* The tenant's open draft, or null.
|
|
@@ -11276,6 +11786,11 @@ export interface ExportedProfileDto {
|
|
|
11276
11786
|
deletedAt: string | null;
|
|
11277
11787
|
/** @nullable */
|
|
11278
11788
|
forgottenAt: string | null;
|
|
11789
|
+
/**
|
|
11790
|
+
* The personnummer, null when none is held. Absent when `notIncluded` lists `personal_identity_number`: the tenant has no credential to read it with.
|
|
11791
|
+
* @nullable
|
|
11792
|
+
*/
|
|
11793
|
+
personalIdentityNumber?: string | null;
|
|
11279
11794
|
}
|
|
11280
11795
|
export interface ExportedMembershipDto {
|
|
11281
11796
|
organizationId: string;
|
|
@@ -11327,6 +11842,209 @@ export interface ExportedConsentDto {
|
|
|
11327
11842
|
consentVersion: string;
|
|
11328
11843
|
acceptedAt: string;
|
|
11329
11844
|
}
|
|
11845
|
+
export type ExportedOrdersDtoOrderGroupsItem = {
|
|
11846
|
+
[key: string]: unknown;
|
|
11847
|
+
};
|
|
11848
|
+
export type ExportedOrdersDtoSalesOrdersItem = {
|
|
11849
|
+
[key: string]: unknown;
|
|
11850
|
+
};
|
|
11851
|
+
export type ExportedOrdersDtoEstimatesItem = {
|
|
11852
|
+
[key: string]: unknown;
|
|
11853
|
+
};
|
|
11854
|
+
export type ExportedOrdersDtoProductsItem = {
|
|
11855
|
+
[key: string]: unknown;
|
|
11856
|
+
};
|
|
11857
|
+
export type ExportedOrdersDtoMerchandiseItem = {
|
|
11858
|
+
[key: string]: unknown;
|
|
11859
|
+
};
|
|
11860
|
+
export type ExportedOrdersDtoTransportLegsItem = {
|
|
11861
|
+
[key: string]: unknown;
|
|
11862
|
+
};
|
|
11863
|
+
export type ExportedOrdersDtoCarrierBookingsItem = {
|
|
11864
|
+
[key: string]: unknown;
|
|
11865
|
+
};
|
|
11866
|
+
export type ExportedOrdersDtoWarehouseOrdersItem = {
|
|
11867
|
+
[key: string]: unknown;
|
|
11868
|
+
};
|
|
11869
|
+
export type ExportedOrdersDtoWarehouseOrderProductsItem = {
|
|
11870
|
+
[key: string]: unknown;
|
|
11871
|
+
};
|
|
11872
|
+
export type ExportedOrdersDtoWarehouseOrderContainersItem = {
|
|
11873
|
+
[key: string]: unknown;
|
|
11874
|
+
};
|
|
11875
|
+
export interface ExportedOrdersDto {
|
|
11876
|
+
/** `public.order_group` rows, live and soft-deleted. */
|
|
11877
|
+
orderGroups: ExportedOrdersDtoOrderGroupsItem[];
|
|
11878
|
+
/** `public.sales_order` rows, live and soft-deleted. */
|
|
11879
|
+
salesOrders: ExportedOrdersDtoSalesOrdersItem[];
|
|
11880
|
+
/** `public.sales_order_estimate` rows, live and soft-deleted. */
|
|
11881
|
+
estimates: ExportedOrdersDtoEstimatesItem[];
|
|
11882
|
+
/** `public.sales_order_product` rows, live and soft-deleted. */
|
|
11883
|
+
products: ExportedOrdersDtoProductsItem[];
|
|
11884
|
+
/** `public.sales_order_merchandise` rows, live and soft-deleted. */
|
|
11885
|
+
merchandise: ExportedOrdersDtoMerchandiseItem[];
|
|
11886
|
+
/** `public.order_transport_leg` rows, live and soft-deleted. */
|
|
11887
|
+
transportLegs: ExportedOrdersDtoTransportLegsItem[];
|
|
11888
|
+
/** `public.carrier_booking` rows, live and soft-deleted. */
|
|
11889
|
+
carrierBookings: ExportedOrdersDtoCarrierBookingsItem[];
|
|
11890
|
+
/** `public.warehouse_order` rows, live and soft-deleted. */
|
|
11891
|
+
warehouseOrders: ExportedOrdersDtoWarehouseOrdersItem[];
|
|
11892
|
+
/** `public.warehouse_order_product` rows, live and soft-deleted. */
|
|
11893
|
+
warehouseOrderProducts: ExportedOrdersDtoWarehouseOrderProductsItem[];
|
|
11894
|
+
/** `public.warehouse_order_container` rows, live and soft-deleted. */
|
|
11895
|
+
warehouseOrderContainers: ExportedOrdersDtoWarehouseOrderContainersItem[];
|
|
11896
|
+
}
|
|
11897
|
+
export type ExportedCartsDtoCartsItem = {
|
|
11898
|
+
[key: string]: unknown;
|
|
11899
|
+
};
|
|
11900
|
+
export type ExportedCartsDtoProductsItem = {
|
|
11901
|
+
[key: string]: unknown;
|
|
11902
|
+
};
|
|
11903
|
+
export type ExportedCartsDtoMerchandiseItem = {
|
|
11904
|
+
[key: string]: unknown;
|
|
11905
|
+
};
|
|
11906
|
+
export interface ExportedCartsDto {
|
|
11907
|
+
/** `public.cart` rows, placed or not, live and soft-deleted. */
|
|
11908
|
+
carts: ExportedCartsDtoCartsItem[];
|
|
11909
|
+
/** `public.cart_product` rows, live and soft-deleted. */
|
|
11910
|
+
products: ExportedCartsDtoProductsItem[];
|
|
11911
|
+
/** `public.cart_merchandise` rows, live and soft-deleted. */
|
|
11912
|
+
merchandise: ExportedCartsDtoMerchandiseItem[];
|
|
11913
|
+
}
|
|
11914
|
+
export type ExportedStoredGoodsDtoProductsItem = {
|
|
11915
|
+
[key: string]: unknown;
|
|
11916
|
+
};
|
|
11917
|
+
export type ExportedStoredGoodsDtoFoldersItem = {
|
|
11918
|
+
[key: string]: unknown;
|
|
11919
|
+
};
|
|
11920
|
+
export type ExportedStoredGoodsDtoProductImagesItem = {
|
|
11921
|
+
[key: string]: unknown;
|
|
11922
|
+
};
|
|
11923
|
+
export type ExportedStoredGoodsDtoItemsItem = {
|
|
11924
|
+
[key: string]: unknown;
|
|
11925
|
+
};
|
|
11926
|
+
export type ExportedStoredGoodsDtoPodsItem = {
|
|
11927
|
+
[key: string]: unknown;
|
|
11928
|
+
};
|
|
11929
|
+
export type ExportedStoredGoodsDtoDamageReportsItem = {
|
|
11930
|
+
[key: string]: unknown;
|
|
11931
|
+
};
|
|
11932
|
+
export type ExportedStoredGoodsDtoDamageReportImagesItem = {
|
|
11933
|
+
[key: string]: unknown;
|
|
11934
|
+
};
|
|
11935
|
+
export type ExportedStoredGoodsDtoFileAssetsItem = {
|
|
11936
|
+
[key: string]: unknown;
|
|
11937
|
+
};
|
|
11938
|
+
export type ExportedStoredGoodsDtoFileLinksItem = {
|
|
11939
|
+
[key: string]: unknown;
|
|
11940
|
+
};
|
|
11941
|
+
export interface ExportedStoredGoodsDto {
|
|
11942
|
+
/** `public.product` rows, live and soft-deleted. */
|
|
11943
|
+
products: ExportedStoredGoodsDtoProductsItem[];
|
|
11944
|
+
/** `public.folder` rows, live and soft-deleted: the product folders, nested by `parentFolderId`. A product's `folderId` names one. */
|
|
11945
|
+
folders: ExportedStoredGoodsDtoFoldersItem[];
|
|
11946
|
+
/** `public.product_image` rows the customer can see, live and soft-deleted. Files are storage keys, served by `GET /v1/images`. */
|
|
11947
|
+
productImages: ExportedStoredGoodsDtoProductImagesItem[];
|
|
11948
|
+
/** `public.item` rows, live and soft-deleted. */
|
|
11949
|
+
items: ExportedStoredGoodsDtoItemsItem[];
|
|
11950
|
+
/** `public.pod` rows, live and soft-deleted. */
|
|
11951
|
+
pods: ExportedStoredGoodsDtoPodsItem[];
|
|
11952
|
+
/** `public.damage_report` rows, live and soft-deleted. */
|
|
11953
|
+
damageReports: ExportedStoredGoodsDtoDamageReportsItem[];
|
|
11954
|
+
/** `public.damage_report_image` rows, live and soft-deleted. */
|
|
11955
|
+
damageReportImages: ExportedStoredGoodsDtoDamageReportImagesItem[];
|
|
11956
|
+
/** `public.file_asset` rows, live and soft-deleted. */
|
|
11957
|
+
fileAssets: ExportedStoredGoodsDtoFileAssetsItem[];
|
|
11958
|
+
/** `public.entity_file` rows: which record each file asset is attached to. */
|
|
11959
|
+
fileLinks: ExportedStoredGoodsDtoFileLinksItem[];
|
|
11960
|
+
}
|
|
11961
|
+
export type ExportedBillingDtoBillingAccountsItem = {
|
|
11962
|
+
[key: string]: unknown;
|
|
11963
|
+
};
|
|
11964
|
+
export type ExportedBillingDtoInvoicesItem = {
|
|
11965
|
+
[key: string]: unknown;
|
|
11966
|
+
};
|
|
11967
|
+
export type ExportedBillingDtoInvoiceRowsItem = {
|
|
11968
|
+
[key: string]: unknown;
|
|
11969
|
+
};
|
|
11970
|
+
export type ExportedBillingDtoPaymentInstrumentsItem = {
|
|
11971
|
+
[key: string]: unknown;
|
|
11972
|
+
};
|
|
11973
|
+
export type ExportedBillingDtoSubscriptionConfigsItem = {
|
|
11974
|
+
[key: string]: unknown;
|
|
11975
|
+
};
|
|
11976
|
+
export type ExportedBillingDtoContractsItem = {
|
|
11977
|
+
[key: string]: unknown;
|
|
11978
|
+
};
|
|
11979
|
+
export type ExportedBillingDtoAccountCreditsItem = {
|
|
11980
|
+
[key: string]: unknown;
|
|
11981
|
+
};
|
|
11982
|
+
export type ExportedBillingDtoCouponRedemptionsItem = {
|
|
11983
|
+
[key: string]: unknown;
|
|
11984
|
+
};
|
|
11985
|
+
export interface ExportedBillingDto {
|
|
11986
|
+
/** `billing.billing_account` rows, live and soft-deleted. */
|
|
11987
|
+
billingAccounts: ExportedBillingDtoBillingAccountsItem[];
|
|
11988
|
+
/** `billing.invoice` rows, credit notes included (`invoiceType` `credit_note`, naming the invoice in `correctsInvoiceId`). */
|
|
11989
|
+
invoices: ExportedBillingDtoInvoicesItem[];
|
|
11990
|
+
/** `billing.invoice_row` rows, live and soft-deleted. */
|
|
11991
|
+
invoiceRows: ExportedBillingDtoInvoiceRowsItem[];
|
|
11992
|
+
/** `billing.payment_instrument` rows: saved cards, as brand, last four digits and expiry. */
|
|
11993
|
+
paymentInstruments: ExportedBillingDtoPaymentInstrumentsItem[];
|
|
11994
|
+
/** `billing.customer_subscription_config` rows, live and soft-deleted. */
|
|
11995
|
+
subscriptionConfigs: ExportedBillingDtoSubscriptionConfigsItem[];
|
|
11996
|
+
/** `public.organization_contract` rows, live and soft-deleted. */
|
|
11997
|
+
contracts: ExportedBillingDtoContractsItem[];
|
|
11998
|
+
/** `billing.account_credit` rows, live and soft-deleted. */
|
|
11999
|
+
accountCredits: ExportedBillingDtoAccountCreditsItem[];
|
|
12000
|
+
/** `billing.coupon_redemption` rows, live and soft-deleted. */
|
|
12001
|
+
couponRedemptions: ExportedBillingDtoCouponRedemptionsItem[];
|
|
12002
|
+
}
|
|
12003
|
+
/**
|
|
12004
|
+
* The `public.organization` row. Its `personalIdentityNumber` is absent when `notIncluded` lists `personal_identity_number`.
|
|
12005
|
+
* @nullable
|
|
12006
|
+
*/
|
|
12007
|
+
export type ExportedPersonalOrganizationDtoOrganization = {
|
|
12008
|
+
[key: string]: unknown;
|
|
12009
|
+
} | null;
|
|
12010
|
+
export type ExportedPersonalOrganizationDtoContactsItem = {
|
|
12011
|
+
[key: string]: unknown;
|
|
12012
|
+
};
|
|
12013
|
+
export type ExportedPersonalOrganizationDtoAddressesItem = {
|
|
12014
|
+
[key: string]: unknown;
|
|
12015
|
+
};
|
|
12016
|
+
export interface ExportedPersonalOrganizationDto {
|
|
12017
|
+
/**
|
|
12018
|
+
* The `public.organization` row. Its `personalIdentityNumber` is absent when `notIncluded` lists `personal_identity_number`.
|
|
12019
|
+
* @nullable
|
|
12020
|
+
*/
|
|
12021
|
+
organization: ExportedPersonalOrganizationDtoOrganization;
|
|
12022
|
+
/** `public.organization_contact` rows, live and soft-deleted. */
|
|
12023
|
+
contacts: ExportedPersonalOrganizationDtoContactsItem[];
|
|
12024
|
+
/** `public.address` rows, live and soft-deleted. */
|
|
12025
|
+
addresses: ExportedPersonalOrganizationDtoAddressesItem[];
|
|
12026
|
+
orders: ExportedOrdersDto;
|
|
12027
|
+
carts: ExportedCartsDto;
|
|
12028
|
+
storedGoods: ExportedStoredGoodsDto;
|
|
12029
|
+
billing: ExportedBillingDto;
|
|
12030
|
+
}
|
|
12031
|
+
export type ExportedMessagingDtoDispatchesItem = {
|
|
12032
|
+
[key: string]: unknown;
|
|
12033
|
+
};
|
|
12034
|
+
export type ExportedMessagingDtoPreferencesItem = {
|
|
12035
|
+
[key: string]: unknown;
|
|
12036
|
+
};
|
|
12037
|
+
export type ExportedMessagingDtoSuppressionsItem = {
|
|
12038
|
+
[key: string]: unknown;
|
|
12039
|
+
};
|
|
12040
|
+
export interface ExportedMessagingDto {
|
|
12041
|
+
/** `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. */
|
|
12042
|
+
dispatches: ExportedMessagingDtoDispatchesItem[];
|
|
12043
|
+
/** `messaging.notification_preference` rows by the target's sub or email. */
|
|
12044
|
+
preferences: ExportedMessagingDtoPreferencesItem[];
|
|
12045
|
+
/** `messaging.suppression` rows on the target's email. */
|
|
12046
|
+
suppressions: ExportedMessagingDtoSuppressionsItem[];
|
|
12047
|
+
}
|
|
11330
12048
|
export interface ExportUserDataResultDto {
|
|
11331
12049
|
/** The exported user's Keycloak subject. */
|
|
11332
12050
|
sub: string;
|
|
@@ -11337,7 +12055,10 @@ export interface ExportUserDataResultDto {
|
|
|
11337
12055
|
employeeAssignments: ExportedAssignmentDto[];
|
|
11338
12056
|
externalIdentities: ExportedExternalIdentityDto[];
|
|
11339
12057
|
consents: ExportedConsentDto[];
|
|
11340
|
-
/**
|
|
12058
|
+
/** One entry per personal organization of the target's. Empty for a person with none, such as a staff member. */
|
|
12059
|
+
personalOrganizations: ExportedPersonalOrganizationDto[];
|
|
12060
|
+
messaging: ExportedMessagingDto;
|
|
12061
|
+
/** 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. */
|
|
11341
12062
|
notIncluded: string[];
|
|
11342
12063
|
}
|
|
11343
12064
|
export type EmployeeAssignmentDtoKind = typeof EmployeeAssignmentDtoKind[keyof typeof EmployeeAssignmentDtoKind];
|
|
@@ -13182,10 +13903,20 @@ export interface TenantGoodsDto {
|
|
|
13182
13903
|
/** 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. */
|
|
13183
13904
|
translations: TenantGoodsTranslationsDto;
|
|
13184
13905
|
/**
|
|
13185
|
-
* 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.
|
|
13906
|
+
* 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.
|
|
13186
13907
|
* @nullable
|
|
13187
13908
|
*/
|
|
13188
13909
|
retailPriceExVat?: string | null;
|
|
13910
|
+
/**
|
|
13911
|
+
* 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.
|
|
13912
|
+
* @nullable
|
|
13913
|
+
*/
|
|
13914
|
+
retailPriceIncVat?: string | null;
|
|
13915
|
+
/**
|
|
13916
|
+
* Whether the price was entered including VAT (`unitPriceIncVatMinor`). Null when the SKU has no open-ended price.
|
|
13917
|
+
* @nullable
|
|
13918
|
+
*/
|
|
13919
|
+
pricesIncludeVat?: boolean | null;
|
|
13189
13920
|
/** @nullable */
|
|
13190
13921
|
currencyCode?: string | null;
|
|
13191
13922
|
/** The billing.article this SKU prices through. Created by the SKU command; not caller-supplied. */
|
|
@@ -13250,10 +13981,15 @@ export interface CreateTenantGoodsDto {
|
|
|
13250
13981
|
/** 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. */
|
|
13251
13982
|
translations?: TenantGoodsTranslationsInputDto;
|
|
13252
13983
|
/**
|
|
13253
|
-
* 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.
|
|
13984
|
+
* 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.
|
|
13254
13985
|
* @minimum 0
|
|
13255
13986
|
*/
|
|
13256
|
-
unitPriceExVatMinor
|
|
13987
|
+
unitPriceExVatMinor?: number;
|
|
13988
|
+
/**
|
|
13989
|
+
* 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.
|
|
13990
|
+
* @minimum 0
|
|
13991
|
+
*/
|
|
13992
|
+
unitPriceIncVatMinor?: number;
|
|
13257
13993
|
/** 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. */
|
|
13258
13994
|
currencyCode: string;
|
|
13259
13995
|
/** 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. */
|
|
@@ -13295,10 +14031,15 @@ export interface UpdateTenantGoodsDto {
|
|
|
13295
14031
|
/** Replaces the SKU's per-locale texts WHOLE: a locale left out loses its entry, and `{}` removes them all. Omitted leaves them alone. */
|
|
13296
14032
|
translations?: TenantGoodsTranslationsInputDto;
|
|
13297
14033
|
/**
|
|
13298
|
-
* 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.
|
|
14034
|
+
* 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.
|
|
13299
14035
|
* @minimum 0
|
|
13300
14036
|
*/
|
|
13301
14037
|
unitPriceExVatMinor?: number;
|
|
14038
|
+
/**
|
|
14039
|
+
* 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.
|
|
14040
|
+
* @minimum 0
|
|
14041
|
+
*/
|
|
14042
|
+
unitPriceIncVatMinor?: number;
|
|
13302
14043
|
/** 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. */
|
|
13303
14044
|
effectiveFrom?: string;
|
|
13304
14045
|
category?: string;
|
|
@@ -13450,10 +14191,15 @@ export interface CheckoutMerchandiseDto {
|
|
|
13450
14191
|
/** 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. */
|
|
13451
14192
|
translations: TenantGoodsTranslationsDto;
|
|
13452
14193
|
/**
|
|
13453
|
-
* 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.
|
|
14194
|
+
* 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.
|
|
13454
14195
|
* @nullable
|
|
13455
14196
|
*/
|
|
13456
14197
|
retailPriceExVat?: string | null;
|
|
14198
|
+
/**
|
|
14199
|
+
* 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.
|
|
14200
|
+
* @nullable
|
|
14201
|
+
*/
|
|
14202
|
+
retailPriceIncVat?: string | null;
|
|
13457
14203
|
/** @nullable */
|
|
13458
14204
|
currencyCode?: string | null;
|
|
13459
14205
|
/** @nullable */
|
|
@@ -13488,10 +14234,15 @@ export interface MerchandiseEstimateLineDto {
|
|
|
13488
14234
|
/** 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. */
|
|
13489
14235
|
translations: TenantGoodsTranslationsDto;
|
|
13490
14236
|
/**
|
|
13491
|
-
* 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.
|
|
14237
|
+
* 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.
|
|
13492
14238
|
* @nullable
|
|
13493
14239
|
*/
|
|
13494
14240
|
retailPriceExVat?: string | null;
|
|
14241
|
+
/**
|
|
14242
|
+
* 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.
|
|
14243
|
+
* @nullable
|
|
14244
|
+
*/
|
|
14245
|
+
retailPriceIncVat?: string | null;
|
|
13495
14246
|
/** @nullable */
|
|
13496
14247
|
currencyCode?: string | null;
|
|
13497
14248
|
/** @nullable */
|
|
@@ -14382,6 +15133,103 @@ export interface AnalyticsCustomerMonthPageDto {
|
|
|
14382
15133
|
*/
|
|
14383
15134
|
nextCursor: string | null;
|
|
14384
15135
|
}
|
|
15136
|
+
export type AnalyticsOrderRowDtoType = typeof AnalyticsOrderRowDtoType[keyof typeof AnalyticsOrderRowDtoType];
|
|
15137
|
+
export declare const AnalyticsOrderRowDtoType: {
|
|
15138
|
+
readonly PICKUP: "PICKUP";
|
|
15139
|
+
readonly DELIVERY: "DELIVERY";
|
|
15140
|
+
readonly MOVE: "MOVE";
|
|
15141
|
+
readonly DROP_OFF: "DROP_OFF";
|
|
15142
|
+
readonly TRANSFER: "TRANSFER";
|
|
15143
|
+
readonly PICKING: "PICKING";
|
|
15144
|
+
readonly MERCHANDISE_SALE: "MERCHANDISE_SALE";
|
|
15145
|
+
};
|
|
15146
|
+
/**
|
|
15147
|
+
* The order's status today, not mapped to the pilot's values.
|
|
15148
|
+
*/
|
|
15149
|
+
export type AnalyticsOrderRowDtoStatus = typeof AnalyticsOrderRowDtoStatus[keyof typeof AnalyticsOrderRowDtoStatus];
|
|
15150
|
+
export declare const AnalyticsOrderRowDtoStatus: {
|
|
15151
|
+
readonly CREATED: "CREATED";
|
|
15152
|
+
readonly CONFIRMED: "CONFIRMED";
|
|
15153
|
+
readonly REQUESTED: "REQUESTED";
|
|
15154
|
+
readonly PROCESSING: "PROCESSING";
|
|
15155
|
+
readonly PROCESSED: "PROCESSED";
|
|
15156
|
+
readonly IN_TRANSIT: "IN_TRANSIT";
|
|
15157
|
+
readonly AT_CUSTOMER: "AT_CUSTOMER";
|
|
15158
|
+
readonly RECEIVED: "RECEIVED";
|
|
15159
|
+
readonly COMPLETED: "COMPLETED";
|
|
15160
|
+
readonly CANCELLED: "CANCELLED";
|
|
15161
|
+
readonly FAILED: "FAILED";
|
|
15162
|
+
};
|
|
15163
|
+
export interface AnalyticsOrderRowDto {
|
|
15164
|
+
/** Pilot `user/customer_number`. */
|
|
15165
|
+
customerKey: string;
|
|
15166
|
+
/** The order's job number, unique per order. Pilot `order_id`. */
|
|
15167
|
+
jobNumber: number;
|
|
15168
|
+
type: AnalyticsOrderRowDtoType;
|
|
15169
|
+
/** When the order was placed. */
|
|
15170
|
+
createdAt: string;
|
|
15171
|
+
/**
|
|
15172
|
+
* Start of the customer leg's booked window. Pilot `preferred_transport_from`.
|
|
15173
|
+
* @nullable
|
|
15174
|
+
*/
|
|
15175
|
+
plannedWindowStart: string | null;
|
|
15176
|
+
/**
|
|
15177
|
+
* End of the customer leg's booked window. Pilot `preferred_transport_to`.
|
|
15178
|
+
* @nullable
|
|
15179
|
+
*/
|
|
15180
|
+
plannedWindowEnd: string | null;
|
|
15181
|
+
/** The order's status today, not mapped to the pilot's values. */
|
|
15182
|
+
status: AnalyticsOrderRowDtoStatus;
|
|
15183
|
+
/**
|
|
15184
|
+
* 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`.
|
|
15185
|
+
* @nullable
|
|
15186
|
+
*/
|
|
15187
|
+
handleTimeAtCustomerMinutes: number | null;
|
|
15188
|
+
/** Product lines on the order. Pilot `product_count`. */
|
|
15189
|
+
productCount: number;
|
|
15190
|
+
/**
|
|
15191
|
+
* Measured volume, cm³, set when the order completes. Pilot `actual_volume`.
|
|
15192
|
+
* @nullable
|
|
15193
|
+
*/
|
|
15194
|
+
actualVolumeCm3: number | null;
|
|
15195
|
+
/**
|
|
15196
|
+
* Billable volume, cm³, set when the order completes. Pilot `billable_volume`.
|
|
15197
|
+
* @nullable
|
|
15198
|
+
*/
|
|
15199
|
+
billableVolumeCm3: number | null;
|
|
15200
|
+
/** Units on the product lines whose product is a moving box. Pilot `movingBoxes/aggregate/count`. */
|
|
15201
|
+
movingBoxCount: number;
|
|
15202
|
+
/** Units over the product lines. Pilot `totalItems/aggregate/count`. */
|
|
15203
|
+
itemCount: number;
|
|
15204
|
+
/**
|
|
15205
|
+
* Items the customer estimated at booking. Pilot `sales_order_estimates/0/items`.
|
|
15206
|
+
* @nullable
|
|
15207
|
+
*/
|
|
15208
|
+
estimatedItemCount: number | null;
|
|
15209
|
+
/**
|
|
15210
|
+
* Volume the customer estimated at booking, cm³. Pilot `sales_order_estimates/0/volume`.
|
|
15211
|
+
* @nullable
|
|
15212
|
+
*/
|
|
15213
|
+
estimatedVolumeCm3: number | null;
|
|
15214
|
+
/**
|
|
15215
|
+
* The customer's stay the goods arrived in or left, as the `stays` dataset numbers it. Joins to it on (`customerKey`, `stayNumber`).
|
|
15216
|
+
* @nullable
|
|
15217
|
+
*/
|
|
15218
|
+
stayNumber: number | null;
|
|
15219
|
+
/**
|
|
15220
|
+
* When the order's goods arrived in storage or left it.
|
|
15221
|
+
* @nullable
|
|
15222
|
+
*/
|
|
15223
|
+
goodsMovedAt: string | null;
|
|
15224
|
+
}
|
|
15225
|
+
export interface AnalyticsOrderPageDto {
|
|
15226
|
+
items: AnalyticsOrderRowDto[];
|
|
15227
|
+
/**
|
|
15228
|
+
* Pass as `cursor` for the next page; null on the last page.
|
|
15229
|
+
* @nullable
|
|
15230
|
+
*/
|
|
15231
|
+
nextCursor: string | null;
|
|
15232
|
+
}
|
|
14385
15233
|
export interface AnalyticsRevenueRowDto {
|
|
14386
15234
|
/** First day of the invoice's month. */
|
|
14387
15235
|
invoiceMonth: string;
|
|
@@ -14584,7 +15432,34 @@ export type OrganizationsControllerListV1Params = {
|
|
|
14584
15432
|
*/
|
|
14585
15433
|
search?: string;
|
|
14586
15434
|
/**
|
|
14587
|
-
*
|
|
15435
|
+
* 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.
|
|
15436
|
+
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
|
|
15437
|
+
*/
|
|
15438
|
+
createdFrom?: string;
|
|
15439
|
+
/**
|
|
15440
|
+
* 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.
|
|
15441
|
+
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
|
|
15442
|
+
*/
|
|
15443
|
+
createdTo?: string;
|
|
15444
|
+
/**
|
|
15445
|
+
* Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
|
|
15446
|
+
*/
|
|
15447
|
+
warehouseId?: string;
|
|
15448
|
+
/**
|
|
15449
|
+
* 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`.
|
|
15450
|
+
* @pattern ^[a-z0-9_]{1,64}$
|
|
15451
|
+
*/
|
|
15452
|
+
paymentMethod?: string;
|
|
15453
|
+
/**
|
|
15454
|
+
* Sort key. Rows that tie on it are ordered by organization id, in the same direction.
|
|
15455
|
+
*/
|
|
15456
|
+
sort?: OrganizationsControllerListV1Sort;
|
|
15457
|
+
/**
|
|
15458
|
+
* Sort direction. When omitted: `asc` for `sort=name`, `desc` for `sort=createdAt` (newest first). Without `sort`, it applies to `createdAt`.
|
|
15459
|
+
*/
|
|
15460
|
+
order?: OrganizationsControllerListV1Order;
|
|
15461
|
+
/**
|
|
15462
|
+
* 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.
|
|
14588
15463
|
*/
|
|
14589
15464
|
ids?: string[];
|
|
14590
15465
|
};
|
|
@@ -14593,16 +15468,45 @@ export declare const OrganizationsControllerListV1Type: {
|
|
|
14593
15468
|
readonly business: "business";
|
|
14594
15469
|
readonly personal: "personal";
|
|
14595
15470
|
};
|
|
15471
|
+
export type OrganizationsControllerListV1Sort = typeof OrganizationsControllerListV1Sort[keyof typeof OrganizationsControllerListV1Sort];
|
|
15472
|
+
export declare const OrganizationsControllerListV1Sort: {
|
|
15473
|
+
readonly name: "name";
|
|
15474
|
+
readonly createdAt: "createdAt";
|
|
15475
|
+
};
|
|
15476
|
+
export type OrganizationsControllerListV1Order = typeof OrganizationsControllerListV1Order[keyof typeof OrganizationsControllerListV1Order];
|
|
15477
|
+
export declare const OrganizationsControllerListV1Order: {
|
|
15478
|
+
readonly asc: "asc";
|
|
15479
|
+
readonly desc: "desc";
|
|
15480
|
+
};
|
|
14596
15481
|
export type OrganizationsControllerStatsV1Params = {
|
|
14597
15482
|
/**
|
|
14598
15483
|
* Filter by organization type.
|
|
14599
15484
|
*/
|
|
14600
15485
|
type?: OrganizationsControllerStatsV1Type;
|
|
14601
15486
|
/**
|
|
14602
|
-
* 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.
|
|
15487
|
+
* 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.
|
|
14603
15488
|
* @maxLength 200
|
|
14604
15489
|
*/
|
|
14605
15490
|
search?: string;
|
|
15491
|
+
/**
|
|
15492
|
+
* 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.
|
|
15493
|
+
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
|
|
15494
|
+
*/
|
|
15495
|
+
createdFrom?: string;
|
|
15496
|
+
/**
|
|
15497
|
+
* 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.
|
|
15498
|
+
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
|
|
15499
|
+
*/
|
|
15500
|
+
createdTo?: string;
|
|
15501
|
+
/**
|
|
15502
|
+
* Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
|
|
15503
|
+
*/
|
|
15504
|
+
warehouseId?: string;
|
|
15505
|
+
/**
|
|
15506
|
+
* 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`.
|
|
15507
|
+
* @pattern ^[a-z0-9_]{1,64}$
|
|
15508
|
+
*/
|
|
15509
|
+
paymentMethod?: string;
|
|
14606
15510
|
};
|
|
14607
15511
|
export type OrganizationsControllerStatsV1Type = typeof OrganizationsControllerStatsV1Type[keyof typeof OrganizationsControllerStatsV1Type];
|
|
14608
15512
|
export declare const OrganizationsControllerStatsV1Type: {
|
|
@@ -15499,6 +16403,28 @@ export type InvoicesControllerListCorrectionsV1Params = {
|
|
|
15499
16403
|
*/
|
|
15500
16404
|
offset?: number;
|
|
15501
16405
|
};
|
|
16406
|
+
export type CollectionHoldsControllerListCollectionHoldsV1Params = {
|
|
16407
|
+
/**
|
|
16408
|
+
* Max rows to return (1–100).
|
|
16409
|
+
* @minimum 1
|
|
16410
|
+
* @maximum 100
|
|
16411
|
+
*/
|
|
16412
|
+
limit?: number;
|
|
16413
|
+
/**
|
|
16414
|
+
* Rows to skip.
|
|
16415
|
+
* @minimum 0
|
|
16416
|
+
*/
|
|
16417
|
+
offset?: number;
|
|
16418
|
+
/**
|
|
16419
|
+
* Only the invoices held for this reason.
|
|
16420
|
+
*/
|
|
16421
|
+
reason?: CollectionHoldsControllerListCollectionHoldsV1Reason;
|
|
16422
|
+
};
|
|
16423
|
+
export type CollectionHoldsControllerListCollectionHoldsV1Reason = typeof CollectionHoldsControllerListCollectionHoldsV1Reason[keyof typeof CollectionHoldsControllerListCollectionHoldsV1Reason];
|
|
16424
|
+
export declare const CollectionHoldsControllerListCollectionHoldsV1Reason: {
|
|
16425
|
+
readonly DRAFT_CREDIT_NOTE: "DRAFT_CREDIT_NOTE";
|
|
16426
|
+
readonly CREDITED: "CREDITED";
|
|
16427
|
+
};
|
|
15502
16428
|
export type ArticlesControllerListArticlesV1Params = {
|
|
15503
16429
|
/**
|
|
15504
16430
|
* Max rows to return (1–100).
|
|
@@ -15527,6 +16453,21 @@ export type DiscountRulesControllerListDiscountRulesV1Params = {
|
|
|
15527
16453
|
* @minimum 0
|
|
15528
16454
|
*/
|
|
15529
16455
|
offset?: number;
|
|
16456
|
+
/**
|
|
16457
|
+
* Restrict the list to one binding plan's rules.
|
|
16458
|
+
*/
|
|
16459
|
+
bindingPlanId?: string;
|
|
16460
|
+
/**
|
|
16461
|
+
* Restrict the list to rules in this lifecycle status.
|
|
16462
|
+
*/
|
|
16463
|
+
lifecycleStatus?: DiscountRulesControllerListDiscountRulesV1LifecycleStatus;
|
|
16464
|
+
};
|
|
16465
|
+
export type DiscountRulesControllerListDiscountRulesV1LifecycleStatus = typeof DiscountRulesControllerListDiscountRulesV1LifecycleStatus[keyof typeof DiscountRulesControllerListDiscountRulesV1LifecycleStatus];
|
|
16466
|
+
export declare const DiscountRulesControllerListDiscountRulesV1LifecycleStatus: {
|
|
16467
|
+
readonly draft: "draft";
|
|
16468
|
+
readonly pending_approval: "pending_approval";
|
|
16469
|
+
readonly active: "active";
|
|
16470
|
+
readonly archived: "archived";
|
|
15530
16471
|
};
|
|
15531
16472
|
export type BindingPlansControllerListBindingPlansV1Params = {
|
|
15532
16473
|
/**
|
|
@@ -16319,6 +17260,26 @@ export type AnalyticsControllerCustomerMonthsV1Params = {
|
|
|
16319
17260
|
*/
|
|
16320
17261
|
to?: string;
|
|
16321
17262
|
};
|
|
17263
|
+
export type AnalyticsControllerOrdersV1Params = {
|
|
17264
|
+
/**
|
|
17265
|
+
* The `nextCursor` of the previous page. Omit for the first page.
|
|
17266
|
+
*/
|
|
17267
|
+
cursor?: string;
|
|
17268
|
+
/**
|
|
17269
|
+
* Rows per page (1–5000).
|
|
17270
|
+
* @minimum 1
|
|
17271
|
+
* @maximum 5000
|
|
17272
|
+
*/
|
|
17273
|
+
limit?: number;
|
|
17274
|
+
/**
|
|
17275
|
+
* 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.
|
|
17276
|
+
*/
|
|
17277
|
+
from?: string;
|
|
17278
|
+
/**
|
|
17279
|
+
* 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.
|
|
17280
|
+
*/
|
|
17281
|
+
to?: string;
|
|
17282
|
+
};
|
|
16322
17283
|
export type AnalyticsControllerRevenueV1Params = {
|
|
16323
17284
|
/**
|
|
16324
17285
|
* The `nextCursor` of the previous page. Omit for the first page.
|