hvp-shared 14.9.0 → 14.10.0

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.
@@ -65,8 +65,20 @@ export interface ApplyDiscountRequest {
65
65
  supplier: string;
66
66
  year: number;
67
67
  month: number;
68
- /** Optional override; falls back to the supplier's active rule. */
68
+ /** Percentage over the supplier's period invoice total. */
69
69
  percentage?: number;
70
+ /** Fixed discount amount (takes precedence over percentage). */
71
+ amount?: number;
72
+ }
73
+ /**
74
+ * Mark several payment items at once (e.g. "pagar todo TELVET").
75
+ * @example PATCH /api/supplier-payments/mark-bulk
76
+ */
77
+ export interface MarkPaymentsBulkRequest {
78
+ ids: string[];
79
+ status: PaymentStatus;
80
+ paidAt?: string;
81
+ paymentMethod?: string;
70
82
  }
71
83
  export interface CreateSupplierDiscountRuleRequest {
72
84
  supplier: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvp-shared",
3
- "version": "14.9.0",
3
+ "version": "14.10.0",
4
4
  "description": "Shared types and utilities for HVP backend and frontend",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",