@vindentech/api-client 2.0.0-next.17 → 2.0.0-next.18

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.
@@ -8895,6 +8895,77 @@ export interface InvoiceRowDto {
8895
8895
  */
8896
8896
  servicedAt: string | null;
8897
8897
  }
8898
+ /**
8899
+ * `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`.
8900
+ */
8901
+ export type InvoiceDisplayLineDtoKind = typeof InvoiceDisplayLineDtoKind[keyof typeof InvoiceDisplayLineDtoKind];
8902
+ export declare const InvoiceDisplayLineDtoKind: {
8903
+ readonly category: "category";
8904
+ readonly start_fee: "start_fee";
8905
+ readonly discount: "discount";
8906
+ };
8907
+ /**
8908
+ * 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).
8909
+ */
8910
+ export type InvoiceDisplayLineDtoCategory = typeof InvoiceDisplayLineDtoCategory[keyof typeof InvoiceDisplayLineDtoCategory];
8911
+ export declare const InvoiceDisplayLineDtoCategory: {
8912
+ readonly storage: "storage";
8913
+ readonly transport: "transport";
8914
+ readonly start_fee: "start_fee";
8915
+ readonly packing_materials: "packing_materials";
8916
+ readonly insurance: "insurance";
8917
+ readonly services: "services";
8918
+ };
8919
+ /**
8920
+ * `pcs`: items, the only unit an invoice states (`m3` is the quote's). Null exactly when `quantity` is.
8921
+ * @nullable
8922
+ */
8923
+ export type InvoiceDisplayLineDtoUnit = typeof InvoiceDisplayLineDtoUnit[keyof typeof InvoiceDisplayLineDtoUnit] | null;
8924
+ export declare const InvoiceDisplayLineDtoUnit: {
8925
+ readonly m3: "m3";
8926
+ readonly pcs: "pcs";
8927
+ };
8928
+ export interface InvoiceDisplayLineDto {
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
+ kind: InvoiceDisplayLineDtoKind;
8931
+ /** 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). */
8932
+ category: InvoiceDisplayLineDtoCategory;
8933
+ /** 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. */
8934
+ description: string;
8935
+ /**
8936
+ * 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.
8937
+ * @nullable
8938
+ */
8939
+ quantity: number | null;
8940
+ /**
8941
+ * `pcs`: items, the only unit an invoice states (`m3` is the quote's). Null exactly when `quantity` is.
8942
+ * @nullable
8943
+ */
8944
+ unit: InvoiceDisplayLineDtoUnit;
8945
+ /** 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. */
8946
+ amountExVatMinor: number;
8947
+ /** 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. */
8948
+ amountIncVatMinor: number;
8949
+ /** VAT rate as a percentage (25 = 25%). A category whose rows carry different rates is split into one row per rate. */
8950
+ vatRate: number;
8951
+ }
8952
+ export interface InvoiceDisplayTotalsDto {
8953
+ /** Sum of `displayLines[].amountExVatMinor`, minor units */
8954
+ exVatMinor: number;
8955
+ /** `incVatMinor` − `exVatMinor`, minor units */
8956
+ vatMinor: number;
8957
+ /** 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. */
8958
+ incVatMinor: number;
8959
+ }
8960
+ /**
8961
+ * 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.
8962
+ */
8963
+ export type InvoiceDetailDtoPresentationMode = typeof InvoiceDetailDtoPresentationMode[keyof typeof InvoiceDetailDtoPresentationMode];
8964
+ export declare const InvoiceDetailDtoPresentationMode: {
8965
+ readonly detailed: "detailed";
8966
+ readonly category_with_discounts: "category_with_discounts";
8967
+ readonly category_net: "category_net";
8968
+ };
8898
8969
  export interface InvoiceDetailDto {
8899
8970
  invoiceId: string;
8900
8971
  tenantId: string;
@@ -8950,6 +9021,15 @@ export interface InvoiceDetailDto {
8950
9021
  /** @nullable */
8951
9022
  snapshotCorporateIdentityNumber: string | null;
8952
9023
  rows: InvoiceRowDto[];
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. */
9025
+ presentationMode: InvoiceDetailDtoPresentationMode;
9026
+ /** 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. */
9027
+ displayLines: InvoiceDisplayLineDto[];
9028
+ /**
9029
+ * What `displayLines` add up to. Null in `detailed` mode.
9030
+ * @nullable
9031
+ */
9032
+ displayTotals: InvoiceDisplayTotalsDto | null;
8953
9033
  }
8954
9034
  export interface VoidInvoiceDto {
8955
9035
  /** Why the invoice is being voided (required, recorded on the row). */