@opencxh/domain 1.287.0 → 1.288.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.
@@ -1,4 +1,5 @@
1
1
  import { DocumentBlock } from '../../platform/document-blocks';
2
+ import { LineUsage } from '../agreement/types';
2
3
  import { DocumentSender } from '../document-template/types';
3
4
  import { Cents } from '../money/money';
4
5
  import { TaxRateKind } from '../money/tax';
@@ -182,6 +183,19 @@ export interface TransactionLine {
182
183
  * the line — not the entry — is the source of truth. Never copied to a new document.
183
184
  */
184
185
  timeEntryIds?: string[];
186
+ /** How a usage line was counted: from a meter or entered per period. Never re-priced. */
187
+ usage?: LineUsage;
188
+ /**
189
+ * The agreement line this bills, and the days it covers. Together with `correction` these are
190
+ * the whole "what was billed" state of an agreement — see `dueCharges`.
191
+ */
192
+ agreementLineId?: string;
193
+ servicePeriod?: {
194
+ from: number;
195
+ to: number;
196
+ };
197
+ /** Settles days of a window billed earlier, at the price it was billed at. */
198
+ correction?: boolean;
185
199
  /**
186
200
  * An option: priced and shown, but **not** in the total.
187
201
  *