@routebot/constants 0.3.23 → 0.3.25

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/README.md CHANGED
@@ -7,3 +7,5 @@ Shared constants (FE/BE).
7
7
  ```bash
8
8
  npm i @routebot/constants
9
9
  ```
10
+
11
+ stripe listen --forward-to localhost:5001/webhooks/stripe
@@ -5,6 +5,18 @@ const SUBSCRIPTION_STATUS = {
5
5
  CANCELED: "CANCELED",
6
6
  };
7
7
 
8
+ // Stripe subscription status values (exactly as returned by Stripe API)
9
+ const STRIPE_SUBSCRIPTION_STATUS = {
10
+ TRIALING: "trialing",
11
+ ACTIVE: "active",
12
+ PAST_DUE: "past_due",
13
+ CANCELED: "canceled",
14
+ UNPAID: "unpaid",
15
+ INCOMPLETE: "incomplete",
16
+ INCOMPLETE_EXPIRED: "incomplete_expired",
17
+ PAUSED: "paused",
18
+ };
19
+
8
20
  const BILLING_PROVIDERS = {
9
21
  STRIPE: "STRIPE",
10
22
  MANUAL: "MANUAL",
@@ -17,6 +29,7 @@ const STRIPE_PRICE_KEYS = {
17
29
 
18
30
  module.exports = {
19
31
  SUBSCRIPTION_STATUS,
32
+ STRIPE_SUBSCRIPTION_STATUS,
20
33
  BILLING_PROVIDERS,
21
34
  STRIPE_PRICE_KEYS,
22
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routebot/constants",
3
- "version": "0.3.23",
3
+ "version": "0.3.25",
4
4
  "description": "Shared constants for RouteBot FE/BE",
5
5
  "main": "index.js",
6
6
  "files": [