@usethrottle/auth 0.7.0 → 0.8.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.
@@ -183,6 +183,21 @@ interface Subscription {
183
183
  totalPayments: number | null;
184
184
  paymentsMade: number;
185
185
  completedAt: string | null;
186
+ /** Installment plans only: every payment in order; dueAt is an estimate. */
187
+ paymentSchedule?: Array<{
188
+ index: number;
189
+ amount: number;
190
+ discount: number;
191
+ net: number;
192
+ intervalUnit: string | null;
193
+ intervalCount: number | null;
194
+ status: 'paid' | 'due' | 'upcoming';
195
+ dueAt: string | null;
196
+ }> | null;
197
+ /** Installment plans only: the sum of every payment's net amount. */
198
+ scheduleTotal?: number | null;
199
+ /** Installment plans only: what the next payment will charge; null once complete. */
200
+ nextPaymentAmount?: number | null;
186
201
  amount: number;
187
202
  quantity: number;
188
203
  currency: string;
@@ -183,6 +183,21 @@ interface Subscription {
183
183
  totalPayments: number | null;
184
184
  paymentsMade: number;
185
185
  completedAt: string | null;
186
+ /** Installment plans only: every payment in order; dueAt is an estimate. */
187
+ paymentSchedule?: Array<{
188
+ index: number;
189
+ amount: number;
190
+ discount: number;
191
+ net: number;
192
+ intervalUnit: string | null;
193
+ intervalCount: number | null;
194
+ status: 'paid' | 'due' | 'upcoming';
195
+ dueAt: string | null;
196
+ }> | null;
197
+ /** Installment plans only: the sum of every payment's net amount. */
198
+ scheduleTotal?: number | null;
199
+ /** Installment plans only: what the next payment will charge; null once complete. */
200
+ nextPaymentAmount?: number | null;
186
201
  amount: number;
187
202
  quantity: number;
188
203
  currency: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usethrottle/auth",
3
- "version": "0.7.0",
3
+ "version": "0.8.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",