shoal-web-sdk 1.0.136 → 1.0.138

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.
@@ -198,6 +198,13 @@ export type PaymentMethodSummary = {
198
198
  readonly isDefault: boolean;
199
199
  };
200
200
  export type CustomerStatus = 'incomplete' | 'incomplete_expired' | 'trialing' | 'active' | 'past_due' | 'canceled' | 'unpaid' | 'paused' | 'onboarding';
201
+ export type CustomerPlanGrant = {
202
+ /**
203
+ * When the granted plan ends, as a unix timestamp.
204
+ */
205
+ endsAt: number;
206
+ subscribedPlan: CustomerPlanResponse;
207
+ };
201
208
  export type CustomerResponse = {
202
209
  id: string;
203
210
  status: CustomerStatus;
@@ -213,6 +220,10 @@ export type CustomerResponse = {
213
220
  * The address Stripe Tax uses for the customer's tax location. Null when none is set.
214
221
  */
215
222
  billingAddress?: BillingAddress;
223
+ /**
224
+ * Set while a plan granted by a coupon stands in for the subscribed plan. currentPlan is then the granted plan.
225
+ */
226
+ planGrant?: CustomerPlanGrant;
216
227
  };
217
228
  export type UsageInfoResponse = {
218
229
  meters: {
@@ -291,6 +302,13 @@ export type CustomerPlanResponseWritable = {
291
302
  interval?: BillingInterval;
292
303
  features: FeaturesWritable;
293
304
  };
305
+ export type CustomerPlanGrantWritable = {
306
+ /**
307
+ * When the granted plan ends, as a unix timestamp.
308
+ */
309
+ endsAt: number;
310
+ subscribedPlan: CustomerPlanResponseWritable;
311
+ };
294
312
  export type CustomerResponseWritable = {
295
313
  id: string;
296
314
  status: CustomerStatus;