@usethrottle/auth 0.7.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.
- package/dist/index.d.cts +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/react/components/index.cjs +55 -9
- package/dist/react/components/index.cjs.map +1 -1
- package/dist/react/components/index.d.cts +11 -0
- package/dist/react/components/index.d.ts +11 -0
- package/dist/react/components/index.js +55 -9
- package/dist/react/components/index.js.map +1 -1
- package/dist/react/index.d.cts +27 -0
- package/dist/react/index.d.ts +27 -0
- package/package.json +1 -1
package/dist/react/index.d.cts
CHANGED
|
@@ -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;
|
|
@@ -183,6 +195,21 @@ interface Subscription {
|
|
|
183
195
|
totalPayments: number | null;
|
|
184
196
|
paymentsMade: number;
|
|
185
197
|
completedAt: string | null;
|
|
198
|
+
/** Installment plans only: every payment in order; dueAt is an estimate. */
|
|
199
|
+
paymentSchedule?: Array<{
|
|
200
|
+
index: number;
|
|
201
|
+
amount: number;
|
|
202
|
+
discount: number;
|
|
203
|
+
net: number;
|
|
204
|
+
intervalUnit: string | null;
|
|
205
|
+
intervalCount: number | null;
|
|
206
|
+
status: 'paid' | 'due' | 'upcoming';
|
|
207
|
+
dueAt: string | null;
|
|
208
|
+
}> | null;
|
|
209
|
+
/** Installment plans only: the sum of every payment's net amount. */
|
|
210
|
+
scheduleTotal?: number | null;
|
|
211
|
+
/** Installment plans only: what the next payment will charge; null once complete. */
|
|
212
|
+
nextPaymentAmount?: number | null;
|
|
186
213
|
amount: number;
|
|
187
214
|
quantity: number;
|
|
188
215
|
currency: string;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -183,6 +195,21 @@ interface Subscription {
|
|
|
183
195
|
totalPayments: number | null;
|
|
184
196
|
paymentsMade: number;
|
|
185
197
|
completedAt: string | null;
|
|
198
|
+
/** Installment plans only: every payment in order; dueAt is an estimate. */
|
|
199
|
+
paymentSchedule?: Array<{
|
|
200
|
+
index: number;
|
|
201
|
+
amount: number;
|
|
202
|
+
discount: number;
|
|
203
|
+
net: number;
|
|
204
|
+
intervalUnit: string | null;
|
|
205
|
+
intervalCount: number | null;
|
|
206
|
+
status: 'paid' | 'due' | 'upcoming';
|
|
207
|
+
dueAt: string | null;
|
|
208
|
+
}> | null;
|
|
209
|
+
/** Installment plans only: the sum of every payment's net amount. */
|
|
210
|
+
scheduleTotal?: number | null;
|
|
211
|
+
/** Installment plans only: what the next payment will charge; null once complete. */
|
|
212
|
+
nextPaymentAmount?: number | null;
|
|
186
213
|
amount: number;
|
|
187
214
|
quantity: number;
|
|
188
215
|
currency: string;
|
package/package.json
CHANGED