@vindentech/api-client 0.3.0-next.64 → 0.3.0-next.66

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.
@@ -9207,7 +9207,7 @@ export interface PricingRuleDto {
9207
9207
  priceListId: string | null;
9208
9208
  /** The billable event type these rules price. */
9209
9209
  billableEventType: string;
9210
- /** Article the priced amount posts to. */
9210
+ /** The billing article this rule's basis rows post to — the ledger line on the invoice. Not a scope: the rule prices every event of its type within its billingAccountId scope, whatever goods the event concerns. */
9211
9211
  articleId: string;
9212
9212
  /** ISO 4217 currency code. */
9213
9213
  currencyCode: string;
@@ -9251,7 +9251,7 @@ export type ApplyTemplateDtoInput = {
9251
9251
  export interface ApplyTemplateDto {
9252
9252
  /** Built-in template code (see GET /billing/billing-model-templates). */
9253
9253
  templateCode: string;
9254
- /** Article the priced amount posts to. */
9254
+ /** The billing article the priced amount posts to — the ledger line on the invoice. Not a scope: the rule prices every event of the template's type within its billingAccountId scope, whatever goods the event concerns, so a storage or transport minimum-volume floor covers everything the customer stores or moves. */
9255
9255
  articleId: string;
9256
9256
  /** ISO 4217 currency code (must be enabled for the tenant). */
9257
9257
  currencyCode: string;
@@ -9286,7 +9286,7 @@ export type SimulatePricingDtoInput = {
9286
9286
  export interface SimulatePricingDto {
9287
9287
  /** Built-in template code (see GET /billing/billing-model-templates). */
9288
9288
  templateCode: string;
9289
- /** Article the priced amount would post to. */
9289
+ /** The billing article the priced amount would post to — the ledger line on the invoice. Not a scope: the expanded rule prices every supplied event, whatever goods it concerns. */
9290
9290
  articleId: string;
9291
9291
  /** ISO 4217 currency code (must be enabled for the tenant). */
9292
9292
  currencyCode: string;
@@ -11637,6 +11637,26 @@ export interface TenantGoodsDto {
11637
11637
  isActive: boolean;
11638
11638
  /** @nullable */
11639
11639
  metadata?: TenantGoodsDtoMetadata;
11640
+ /**
11641
+ * Weight of one unit in grams, as stocked. A merchandise delivery is booked with the carrier as freight, which needs weight and volume per parcel, so a SKU missing this or any dimension cannot be booked. null = not recorded.
11642
+ * @nullable
11643
+ */
11644
+ unitWeightG?: number | null;
11645
+ /**
11646
+ * Width of one unit in millimetres, as stocked. null = not recorded.
11647
+ * @nullable
11648
+ */
11649
+ unitWidthMm?: number | null;
11650
+ /**
11651
+ * Height of one unit in millimetres, as stocked. null = not recorded.
11652
+ * @nullable
11653
+ */
11654
+ unitHeightMm?: number | null;
11655
+ /**
11656
+ * Depth of one unit in millimetres, as stocked. null = not recorded.
11657
+ * @nullable
11658
+ */
11659
+ unitDepthMm?: number | null;
11640
11660
  createdAt: string;
11641
11661
  updatedAt: string;
11642
11662
  }
@@ -11667,6 +11687,26 @@ export interface CreateTenantGoodsDto {
11667
11687
  isActive?: boolean;
11668
11688
  /** Operational hints only. */
11669
11689
  metadata?: CreateTenantGoodsDtoMetadata;
11690
+ /**
11691
+ * Weight of one unit in grams, as stocked. Optional: a good never carried as freight needs none, but a merchandise delivery cannot be booked with the carrier until its SKU has a weight and all three dimensions.
11692
+ * @minimum 1
11693
+ */
11694
+ unitWeightG?: number;
11695
+ /**
11696
+ * Width of one unit in millimetres, as stocked.
11697
+ * @minimum 1
11698
+ */
11699
+ unitWidthMm?: number;
11700
+ /**
11701
+ * Height of one unit in millimetres, as stocked.
11702
+ * @minimum 1
11703
+ */
11704
+ unitHeightMm?: number;
11705
+ /**
11706
+ * Depth of one unit in millimetres, as stocked.
11707
+ * @minimum 1
11708
+ */
11709
+ unitDepthMm?: number;
11670
11710
  }
11671
11711
  export type UpdateTenantGoodsDtoMetadata = {
11672
11712
  [key: string]: unknown;
@@ -11685,6 +11725,30 @@ export interface UpdateTenantGoodsDto {
11685
11725
  /** Offered at checkout. Setting false hides the SKU and leaves its pricing rule active on purpose, so an order already placed still bills on delivery. */
11686
11726
  isActive?: boolean;
11687
11727
  metadata?: UpdateTenantGoodsDtoMetadata;
11728
+ /**
11729
+ * Weight of one unit in grams, as stocked. null clears the recorded value; omitted leaves it alone.
11730
+ * @minimum 1
11731
+ * @nullable
11732
+ */
11733
+ unitWeightG?: number | null;
11734
+ /**
11735
+ * Width of one unit in millimetres, as stocked. null clears it.
11736
+ * @minimum 1
11737
+ * @nullable
11738
+ */
11739
+ unitWidthMm?: number | null;
11740
+ /**
11741
+ * Height of one unit in millimetres, as stocked. null clears it.
11742
+ * @minimum 1
11743
+ * @nullable
11744
+ */
11745
+ unitHeightMm?: number | null;
11746
+ /**
11747
+ * Depth of one unit in millimetres, as stocked. null clears it.
11748
+ * @minimum 1
11749
+ * @nullable
11750
+ */
11751
+ unitDepthMm?: number | null;
11688
11752
  /** Recorded on the pricing rule when the price changes. */
11689
11753
  changeReason?: string;
11690
11754
  }