@vindentech/api-client 2.0.0-next.23 → 2.0.0-next.24

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.
@@ -3268,7 +3268,7 @@ export interface QuoteDisplayLineDto {
3268
3268
  kind: QuoteDisplayLineDtoKind;
3269
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
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. */
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
3272
  description: string;
3273
3273
  /**
3274
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).
@@ -3286,6 +3286,21 @@ export interface QuoteDisplayLineDto {
3286
3286
  amountIncVatMinor: number;
3287
3287
  /** VAT rate as a percentage (25 = 25%). A category whose lines carry different rates is split into one row per rate. */
3288
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;
3289
3304
  }
3290
3305
  export interface QuoteDisplayTotalsDto {
3291
3306
  /** Sum of `displayLines[].amountExVatMinor`, minor units */
@@ -3296,13 +3311,14 @@ export interface QuoteDisplayTotalsDto {
3296
3311
  incVatMinor: number;
3297
3312
  }
3298
3313
  /**
3299
- * How the tenant presents its prices (its price presentation setting), which decides `displayLines`. `detailed`: show `lines` as they are, with the code and totals beside them; `displayLines` is empty. `category_with_discounts`: one row per price category before its reductions, then a discount row per category one reduced. `category_net`: one row per category after them.
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.
3300
3315
  */
3301
3316
  export type QuoteResponseDtoPresentationMode = typeof QuoteResponseDtoPresentationMode[keyof typeof QuoteResponseDtoPresentationMode];
3302
3317
  export declare const QuoteResponseDtoPresentationMode: {
3303
3318
  readonly detailed: "detailed";
3304
3319
  readonly category_with_discounts: "category_with_discounts";
3305
3320
  readonly category_net: "category_net";
3321
+ readonly detailed_with_discounts: "detailed_with_discounts";
3306
3322
  };
3307
3323
  export interface QuoteResponseDto {
3308
3324
  cartId: string;
@@ -3337,7 +3353,7 @@ export interface QuoteResponseDto {
3337
3353
  */
3338
3354
  rutDeductionMinor: number | null;
3339
3355
  totals: QuoteTotalsDto;
3340
- /** How the tenant presents its prices (its price presentation setting), which decides `displayLines`. `detailed`: show `lines` as they are, with the code and totals beside them; `displayLines` is empty. `category_with_discounts`: one row per price category before its reductions, then a discount row per category one reduced. `category_net`: one row per category after them. */
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. */
3341
3357
  presentationMode: QuoteResponseDtoPresentationMode;
3342
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. */
3343
3359
  displayLines: QuoteDisplayLineDto[];
@@ -8931,7 +8947,7 @@ export declare const InvoiceDisplayLineDtoCategory: {
8931
8947
  readonly services: "services";
8932
8948
  };
8933
8949
  /**
8934
- * `pcs`: items, the only unit an invoice states (`m3` is the quote's). Null exactly when `quantity` is.
8950
+ * `pcs`: items. `m3`: cubic metres, in `detailed_with_discounts` only. Null exactly when `quantity` is.
8935
8951
  * @nullable
8936
8952
  */
8937
8953
  export type InvoiceDisplayLineDtoUnit = typeof InvoiceDisplayLineDtoUnit[keyof typeof InvoiceDisplayLineDtoUnit] | null;
@@ -8944,15 +8960,15 @@ export interface InvoiceDisplayLineDto {
8944
8960
  kind: InvoiceDisplayLineDtoKind;
8945
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). */
8946
8962
  category: InvoiceDisplayLineDtoCategory;
8947
- /** 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. */
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. */
8948
8964
  description: string;
8949
8965
  /**
8950
- * The number of packing-material items. Null on every other row: an invoice states no m³ for storage or transport, whose volume can change during the month.
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.
8951
8967
  * @nullable
8952
8968
  */
8953
8969
  quantity: number | null;
8954
8970
  /**
8955
- * `pcs`: items, the only unit an invoice states (`m3` is the quote's). Null exactly when `quantity` is.
8971
+ * `pcs`: items. `m3`: cubic metres, in `detailed_with_discounts` only. Null exactly when `quantity` is.
8956
8972
  * @nullable
8957
8973
  */
8958
8974
  unit: InvoiceDisplayLineDtoUnit;
@@ -8962,6 +8978,21 @@ export interface InvoiceDisplayLineDto {
8962
8978
  amountIncVatMinor: number;
8963
8979
  /** VAT rate as a percentage (25 = 25%). A category whose rows carry different rates is split into one row per rate. */
8964
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;
8965
8996
  }
8966
8997
  export interface InvoiceDisplayTotalsDto {
8967
8998
  /** Sum of `displayLines[].amountExVatMinor`, minor units */
@@ -8990,13 +9021,14 @@ export declare const InvoiceDetailDtoPaymentProvider: {
8990
9021
  readonly stripe: "stripe";
8991
9022
  };
8992
9023
  /**
8993
- * 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.
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.
8994
9025
  */
8995
9026
  export type InvoiceDetailDtoPresentationMode = typeof InvoiceDetailDtoPresentationMode[keyof typeof InvoiceDetailDtoPresentationMode];
8996
9027
  export declare const InvoiceDetailDtoPresentationMode: {
8997
9028
  readonly detailed: "detailed";
8998
9029
  readonly category_with_discounts: "category_with_discounts";
8999
9030
  readonly category_net: "category_net";
9031
+ readonly detailed_with_discounts: "detailed_with_discounts";
9000
9032
  };
9001
9033
  export interface InvoiceDetailDto {
9002
9034
  invoiceId: string;
@@ -9065,9 +9097,9 @@ export interface InvoiceDetailDto {
9065
9097
  /** @nullable */
9066
9098
  snapshotCorporateIdentityNumber: string | null;
9067
9099
  rows: InvoiceRowDto[];
9068
- /** 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. */
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. */
9069
9101
  presentationMode: InvoiceDetailDtoPresentationMode;
9070
- /** The rows the customer's copy shows, regrouped as `presentationMode` says, in the order to show them: storage, transport, start fee, packing materials, insurance, services, each by VAT rate, each followed by its discount row. The same rows the Stripe invoice is sent with. Built from the stored rows when read; the stored rows, totals and Fortnox copy are unchanged. Next to the minimum monthly fee, a storage discount row shows only what a reduction took off what is paid. Storage and transport rows state no quantity; packing materials state their item count. Empty in `detailed` mode. */
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. */
9071
9103
  displayLines: InvoiceDisplayLineDto[];
9072
9104
  /**
9073
9105
  * What `displayLines` add up to. Null in `detailed` mode.
@@ -9542,16 +9574,17 @@ export interface ReplaceInvoiceTextsDto {
9542
9574
  texts: InvoiceTextsInputDto;
9543
9575
  }
9544
9576
  /**
9545
- * How the tenant's prices are presented to its customers. `detailed` (the default): the pricing engine's lines, each minimum and surcharge on a line of its own. `category_with_discounts`: one row per price category (storage, transport, the start fee, packing materials, insurance, services) at its price before every campaign, binding discount and code, then a discount row per category one of them reduced. `category_net`: one row per category at its price after them. Every minimum folds into its category and the window and zone surcharges into transport; nothing is priced differently.
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.
9546
9578
  */
9547
9579
  export type PricePresentationDtoMode = typeof PricePresentationDtoMode[keyof typeof PricePresentationDtoMode];
9548
9580
  export declare const PricePresentationDtoMode: {
9549
9581
  readonly detailed: "detailed";
9550
9582
  readonly category_with_discounts: "category_with_discounts";
9551
9583
  readonly category_net: "category_net";
9584
+ readonly detailed_with_discounts: "detailed_with_discounts";
9552
9585
  };
9553
9586
  export interface PricePresentationDto {
9554
- /** How the tenant's prices are presented to its customers. `detailed` (the default): the pricing engine's lines, each minimum and surcharge on a line of its own. `category_with_discounts`: one row per price category (storage, transport, the start fee, packing materials, insurance, services) at its price before every campaign, binding discount and code, then a discount row per category one of them reduced. `category_net`: one row per category at its price after them. Every minimum folds into its category and the window and zone surcharges into transport; nothing is priced differently. */
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. */
9555
9588
  mode: PricePresentationDtoMode;
9556
9589
  }
9557
9590
  /**
@@ -10462,7 +10495,7 @@ export interface CouponRedemptionDto {
10462
10495
  /** Date the discount starts applying. */
10463
10496
  appliesFrom: string;
10464
10497
  /**
10465
- * 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.
10466
10499
  * @nullable
10467
10500
  */
10468
10501
  appliesUntil: string | null;