stockpile-co / api

The API for Stockpile, an app that manages stuff for organizations.
0 stars 1 forks source link

Add endpoint for subscription webhook #280

Closed AdamVig closed 7 years ago

AdamVig commented 7 years ago
AdamVig commented 7 years ago

The new Subscription entity contains the following fields:

The new Subscription Status entity is simply a name and subscriptionStatusID. It allows the apps to use an enum for customizing behavior based on the current subscription status. The current statuses are (the list numbers represent the ID of each status):

  1. TRIAL: default state.
  2. TRIAL_EXPIRED: trial has ended, user has not paid for a subscription.
  3. VALID: user has paid for a subscription.
  4. EXPIRED: user's payment is overdue.
  5. CANCELED: user has cancelled subscription.