@vindentech/api-client 0.3.0-next.59 → 0.3.0-next.60

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.
@@ -2609,6 +2609,11 @@ export interface QuoteLineDto {
2609
2609
  * @nullable
2610
2610
  */
2611
2611
  discountExVatMinor: number | null;
2612
+ /**
2613
+ * How much the coupon took off this line, INC-VAT, integer minor units. Null when the cart carries no coupon, or when the coupon's benefits are scoped to other articles — every coupon benefit names an article or an article category, so a coupon reduces only the lines it targets. Unlike `discountExVatMinor` this is NOT already subtracted from `lineTotalExVatMinor`: these sum to `coupon.discountMinor`, which comes off `totals.payableMinor`.
2614
+ * @nullable
2615
+ */
2616
+ couponDiscountIncVatMinor: number | null;
2612
2617
  /** VAT rate as a percentage, per the platform-wide NUMERIC(6,4) convention (25 = 25%) */
2613
2618
  vatRate: number;
2614
2619
  /** Whether this line qualifies for the RUT labour deduction */
@@ -2624,7 +2629,7 @@ export interface QuoteVolumeDto {
2624
2629
  }
2625
2630
  export interface QuoteCouponDto {
2626
2631
  code: string;
2627
- /** Discount applied to the payable total, integer minor units */
2632
+ /** Discount applied to the payable total, integer minor units — the sum of `lines[].couponDiscountIncVatMinor`, which is only the lines the coupon's benefits are scoped to. Read that field for which lines they were. */
2628
2633
  discountMinor: number;
2629
2634
  }
2630
2635
  export interface QuoteBindingDto {