@usethrottle/auth 0.8.0 → 0.9.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.
@@ -167,6 +167,18 @@ interface Invoice {
167
167
  sourceType: string | null;
168
168
  /** Frozen at issue — the lines actually billed, not the order's lines today. */
169
169
  lineItems: InvoiceLineItem[];
170
+ /**
171
+ * Set when the invoice bills less than the order: the order total its lines
172
+ * add up to. `total` is then the amount due (Net-N invoice) or the amount
173
+ * paid (a deposit receipt). Null when the invoice bills the whole order.
174
+ */
175
+ orderTotal: number | null;
176
+ /** Net-N invoices: paid on the order before this invoice (e.g. a deposit). */
177
+ amountPaid: number | null;
178
+ /** Net-N invoices: waived by a comp. */
179
+ compWaived: number | null;
180
+ /** Deposit receipts: the balance still due, billed on the Net-N invoice. */
181
+ balanceDue: number | null;
170
182
  /** Resolved on the detail read only; null on list rows and when the hop fails. */
171
183
  orderId: string | null;
172
184
  orderNumber: string | null;
@@ -167,6 +167,18 @@ interface Invoice {
167
167
  sourceType: string | null;
168
168
  /** Frozen at issue — the lines actually billed, not the order's lines today. */
169
169
  lineItems: InvoiceLineItem[];
170
+ /**
171
+ * Set when the invoice bills less than the order: the order total its lines
172
+ * add up to. `total` is then the amount due (Net-N invoice) or the amount
173
+ * paid (a deposit receipt). Null when the invoice bills the whole order.
174
+ */
175
+ orderTotal: number | null;
176
+ /** Net-N invoices: paid on the order before this invoice (e.g. a deposit). */
177
+ amountPaid: number | null;
178
+ /** Net-N invoices: waived by a comp. */
179
+ compWaived: number | null;
180
+ /** Deposit receipts: the balance still due, billed on the Net-N invoice. */
181
+ balanceDue: number | null;
170
182
  /** Resolved on the detail read only; null on list rows and when the hop fails. */
171
183
  orderId: string | null;
172
184
  orderNumber: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usethrottle/auth",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Buyer authentication for Throttle storefronts — headless core, React hooks, and drop-in forms.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",