Skip to content

Commit

Permalink
Merge branch 'main' into f/email_templates
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Nov 22, 2024
2 parents a1f3e2b + 7dc894f commit 55e5ec3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions api/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@ This request can be made only by organization admins.
"id":1,
"name":"Basic",
"stripeID":"stripe_123",
"startingPrice": "9900",
"organization":{
"memberships":1,
"subOrgs":1
Expand Down Expand Up @@ -879,6 +880,7 @@ This request can be made only by organization admins.
"id":1,
"name":"Basic",
"stripeID":"stripe_123",
"startingPrice": "9900",
"organization":{
"memberships":1,
"subOrgs":1
Expand Down
6 changes: 3 additions & 3 deletions assets/plans.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"ID": 1,
"ID": 0,
"Name": "Essential Annual Plan",
"StripeID": "price_1QBEmzDW6VLep8WGpkwjynXV",
"StartingPrice": 9900,
Expand All @@ -22,7 +22,7 @@
}
},
{
"ID": 2,
"ID": 1,
"Name": "Premium Annual Plan",
"StripeID": "price_1Q8iyUDW6VLep8WGWXdjC78r",
"StartingPrice": 30000,
Expand All @@ -44,7 +44,7 @@
}
},
{
"ID": 3,
"ID": 2,
"Name": "Free Plan",
"StripeID": "price_1QMtoJDW6VLep8WGC2vsJ2CV",
"StartingPrice": 0,
Expand Down
1 change: 1 addition & 0 deletions db/organizations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func TestAddOrganizationPlan(t *testing.T) {
active := true
stripeID := "stripeID"
orgSubscription := &OrganizationSubscription{
PlanID: 100,
StartDate: startDate,
EndDate: endDate,
Active: true,
Expand Down
2 changes: 1 addition & 1 deletion db/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type Plan struct {
}

type PlanTier struct {
Amount int64 `json:"Amount" bson:"Amount"`
Amount int64 `json:"amount" bson:"amount"`
UpTo int64 `json:"upTo" bson:"upTo"`
}

Expand Down

0 comments on commit 55e5ec3

Please sign in to comment.