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

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.
@@ -3249,6 +3249,77 @@ export interface QuoteBindingOptionDto {
3249
3249
  /** This cart, priced under this plan */
3250
3250
  totals: QuoteTotalsDto;
3251
3251
  }
3252
+ /**
3253
+ * `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`.
3254
+ */
3255
+ export type QuoteDisplayLineDtoKind = typeof QuoteDisplayLineDtoKind[keyof typeof QuoteDisplayLineDtoKind];
3256
+ export declare const QuoteDisplayLineDtoKind: {
3257
+ readonly category: "category";
3258
+ readonly start_fee: "start_fee";
3259
+ readonly discount: "discount";
3260
+ };
3261
+ /**
3262
+ * 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`.
3263
+ */
3264
+ export type QuoteDisplayLineDtoCategory = typeof QuoteDisplayLineDtoCategory[keyof typeof QuoteDisplayLineDtoCategory];
3265
+ export declare const QuoteDisplayLineDtoCategory: {
3266
+ readonly storage: "storage";
3267
+ readonly transport: "transport";
3268
+ readonly start_fee: "start_fee";
3269
+ readonly packing_materials: "packing_materials";
3270
+ readonly insurance: "insurance";
3271
+ readonly services: "services";
3272
+ };
3273
+ /**
3274
+ * `m3`: cubic metres. `pcs`: items. Null exactly when `quantity` is.
3275
+ * @nullable
3276
+ */
3277
+ export type QuoteDisplayLineDtoUnit = typeof QuoteDisplayLineDtoUnit[keyof typeof QuoteDisplayLineDtoUnit] | null;
3278
+ export declare const QuoteDisplayLineDtoUnit: {
3279
+ readonly m3: "m3";
3280
+ readonly pcs: "pcs";
3281
+ };
3282
+ export interface QuoteDisplayLineDto {
3283
+ /** `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`. */
3284
+ kind: QuoteDisplayLineDtoKind;
3285
+ /** 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`. */
3286
+ category: QuoteDisplayLineDtoCategory;
3287
+ /** 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. */
3288
+ description: string;
3289
+ /**
3290
+ * 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).
3291
+ * @nullable
3292
+ */
3293
+ quantity: number | null;
3294
+ /**
3295
+ * `m3`: cubic metres. `pcs`: items. Null exactly when `quantity` is.
3296
+ * @nullable
3297
+ */
3298
+ unit: QuoteDisplayLineDtoUnit;
3299
+ /** 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. */
3300
+ amountExVatMinor: number;
3301
+ /** 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. */
3302
+ amountIncVatMinor: number;
3303
+ /** VAT rate as a percentage (25 = 25%). A category whose lines carry different rates is split into one row per rate. */
3304
+ vatRate: number;
3305
+ }
3306
+ export interface QuoteDisplayTotalsDto {
3307
+ /** Sum of `displayLines[].amountExVatMinor`, minor units */
3308
+ exVatMinor: number;
3309
+ /** `incVatMinor` − `exVatMinor`, minor units */
3310
+ vatMinor: number;
3311
+ /** Sum of `displayLines[].amountIncVatMinor`, minor units: equal to `totals.payableMinor`, since the discount rows include the code. */
3312
+ incVatMinor: number;
3313
+ }
3314
+ /**
3315
+ * 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.
3316
+ */
3317
+ export type QuoteResponseDtoPresentationMode = typeof QuoteResponseDtoPresentationMode[keyof typeof QuoteResponseDtoPresentationMode];
3318
+ export declare const QuoteResponseDtoPresentationMode: {
3319
+ readonly detailed: "detailed";
3320
+ readonly category_with_discounts: "category_with_discounts";
3321
+ readonly category_net: "category_net";
3322
+ };
3252
3323
  export interface QuoteResponseDto {
3253
3324
  cartId: string;
3254
3325
  /** ISO 4217 — the currency all amounts are expressed in */
@@ -3282,6 +3353,15 @@ export interface QuoteResponseDto {
3282
3353
  */
3283
3354
  rutDeductionMinor: number | null;
3284
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. */
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;
3285
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. */
3286
3366
  deferred: string[];
3287
3367
  }
@@ -9202,6 +9282,7 @@ export declare const UpdateTenantBillingConfigDtoOneOffInvoicing: {
9202
9282
  readonly monthly: "monthly";
9203
9283
  };
9204
9284
  export interface UpdateTenantBillingConfigDto {
9285
+ /** 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. */
9205
9286
  defaultPaymentMethodId?: string;
9206
9287
  defaultPaymentTermId?: string;
9207
9288
  defaultBillingFrequencyId?: string;
@@ -9336,6 +9417,19 @@ export interface ReplaceInvoiceTextsDto {
9336
9417
  /** 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. */
9337
9418
  texts: InvoiceTextsInputDto;
9338
9419
  }
9420
+ /**
9421
+ * 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.
9422
+ */
9423
+ export type PricePresentationDtoMode = typeof PricePresentationDtoMode[keyof typeof PricePresentationDtoMode];
9424
+ export declare const PricePresentationDtoMode: {
9425
+ readonly detailed: "detailed";
9426
+ readonly category_with_discounts: "category_with_discounts";
9427
+ readonly category_net: "category_net";
9428
+ };
9429
+ export interface PricePresentationDto {
9430
+ /** 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. */
9431
+ mode: PricePresentationDtoMode;
9432
+ }
9339
9433
  /**
9340
9434
  * 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.
9341
9435
  */
@@ -14842,6 +14936,103 @@ export interface AnalyticsCustomerMonthPageDto {
14842
14936
  */
14843
14937
  nextCursor: string | null;
14844
14938
  }
14939
+ export type AnalyticsOrderRowDtoType = typeof AnalyticsOrderRowDtoType[keyof typeof AnalyticsOrderRowDtoType];
14940
+ export declare const AnalyticsOrderRowDtoType: {
14941
+ readonly PICKUP: "PICKUP";
14942
+ readonly DELIVERY: "DELIVERY";
14943
+ readonly MOVE: "MOVE";
14944
+ readonly DROP_OFF: "DROP_OFF";
14945
+ readonly TRANSFER: "TRANSFER";
14946
+ readonly PICKING: "PICKING";
14947
+ readonly MERCHANDISE_SALE: "MERCHANDISE_SALE";
14948
+ };
14949
+ /**
14950
+ * The order's status today, not mapped to the pilot's values.
14951
+ */
14952
+ export type AnalyticsOrderRowDtoStatus = typeof AnalyticsOrderRowDtoStatus[keyof typeof AnalyticsOrderRowDtoStatus];
14953
+ export declare const AnalyticsOrderRowDtoStatus: {
14954
+ readonly CREATED: "CREATED";
14955
+ readonly CONFIRMED: "CONFIRMED";
14956
+ readonly REQUESTED: "REQUESTED";
14957
+ readonly PROCESSING: "PROCESSING";
14958
+ readonly PROCESSED: "PROCESSED";
14959
+ readonly IN_TRANSIT: "IN_TRANSIT";
14960
+ readonly AT_CUSTOMER: "AT_CUSTOMER";
14961
+ readonly RECEIVED: "RECEIVED";
14962
+ readonly COMPLETED: "COMPLETED";
14963
+ readonly CANCELLED: "CANCELLED";
14964
+ readonly FAILED: "FAILED";
14965
+ };
14966
+ export interface AnalyticsOrderRowDto {
14967
+ /** Pilot `user/customer_number`. */
14968
+ customerKey: string;
14969
+ /** The order's job number, unique per order. Pilot `order_id`. */
14970
+ jobNumber: number;
14971
+ type: AnalyticsOrderRowDtoType;
14972
+ /** When the order was placed. */
14973
+ createdAt: string;
14974
+ /**
14975
+ * Start of the customer leg's booked window. Pilot `preferred_transport_from`.
14976
+ * @nullable
14977
+ */
14978
+ plannedWindowStart: string | null;
14979
+ /**
14980
+ * End of the customer leg's booked window. Pilot `preferred_transport_to`.
14981
+ * @nullable
14982
+ */
14983
+ plannedWindowEnd: string | null;
14984
+ /** The order's status today, not mapped to the pilot's values. */
14985
+ status: AnalyticsOrderRowDtoStatus;
14986
+ /**
14987
+ * 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`.
14988
+ * @nullable
14989
+ */
14990
+ handleTimeAtCustomerMinutes: number | null;
14991
+ /** Product lines on the order. Pilot `product_count`. */
14992
+ productCount: number;
14993
+ /**
14994
+ * Measured volume, cm³, set when the order completes. Pilot `actual_volume`.
14995
+ * @nullable
14996
+ */
14997
+ actualVolumeCm3: number | null;
14998
+ /**
14999
+ * Billable volume, cm³, set when the order completes. Pilot `billable_volume`.
15000
+ * @nullable
15001
+ */
15002
+ billableVolumeCm3: number | null;
15003
+ /** Units on the product lines whose product is a moving box. Pilot `movingBoxes/aggregate/count`. */
15004
+ movingBoxCount: number;
15005
+ /** Units over the product lines. Pilot `totalItems/aggregate/count`. */
15006
+ itemCount: number;
15007
+ /**
15008
+ * Items the customer estimated at booking. Pilot `sales_order_estimates/0/items`.
15009
+ * @nullable
15010
+ */
15011
+ estimatedItemCount: number | null;
15012
+ /**
15013
+ * Volume the customer estimated at booking, cm³. Pilot `sales_order_estimates/0/volume`.
15014
+ * @nullable
15015
+ */
15016
+ estimatedVolumeCm3: number | null;
15017
+ /**
15018
+ * The customer's stay the goods arrived in or left, as the `stays` dataset numbers it. Joins to it on (`customerKey`, `stayNumber`).
15019
+ * @nullable
15020
+ */
15021
+ stayNumber: number | null;
15022
+ /**
15023
+ * When the order's goods arrived in storage or left it.
15024
+ * @nullable
15025
+ */
15026
+ goodsMovedAt: string | null;
15027
+ }
15028
+ export interface AnalyticsOrderPageDto {
15029
+ items: AnalyticsOrderRowDto[];
15030
+ /**
15031
+ * Pass as `cursor` for the next page; null on the last page.
15032
+ * @nullable
15033
+ */
15034
+ nextCursor: string | null;
15035
+ }
14845
15036
  export interface AnalyticsRevenueRowDto {
14846
15037
  /** First day of the invoice's month. */
14847
15038
  invoiceMonth: string;
@@ -16877,6 +17068,26 @@ export type AnalyticsControllerCustomerMonthsV1Params = {
16877
17068
  */
16878
17069
  to?: string;
16879
17070
  };
17071
+ export type AnalyticsControllerOrdersV1Params = {
17072
+ /**
17073
+ * The `nextCursor` of the previous page. Omit for the first page.
17074
+ */
17075
+ cursor?: string;
17076
+ /**
17077
+ * Rows per page (1–5000).
17078
+ * @minimum 1
17079
+ * @maximum 5000
17080
+ */
17081
+ limit?: number;
17082
+ /**
17083
+ * 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.
17084
+ */
17085
+ from?: string;
17086
+ /**
17087
+ * 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.
17088
+ */
17089
+ to?: string;
17090
+ };
16880
17091
  export type AnalyticsControllerRevenueV1Params = {
16881
17092
  /**
16882
17093
  * The `nextCursor` of the previous page. Omit for the first page.