Expand description
Types for billing
Structs§
- A billing account
- Account ID
- The limit of how many accounts can be associated with the subscription. None means unlimited.
- A user associated with an account
- Same as
School
but includes internal fields - Request to upgrade a subscription plan
- Represents an amount in cents
- Details of a coupon applied to a subscription
- A display-only representation of a card
- A charge to a customer for a subscription
- Local charge ID
- Request to create a new school account
- Request to create a subscription.
- Request to create a subscription.
- Create subscription response.
- Stripe customer ID
- Request to create a new school account
- Individual account response
- Stripe invoice number
- Last 4 digits of a card number
- Payment method
- Local payment method ID
- Local subscription plan ID
- An iterator over the variants of PlanType
- A school profile.
- Wrapper type around [
Uuid
], represents the ID of a School. - A known school name
- Wrapper type around [
Uuid
], represents the ID of a School Name. - Representation of a school name value
- Stripe invoice ID
- Stripe payment method ID
- Stripe price ID
- Stripe product ID
- Stripe subscription ID
- An existing subscription for a customer
- Whether to cancel a subscription at period end or to remove a cancellation status.
- Local subscription ID
- Whether a subscription is paused
- A subscription plan
- Represents a trial period length
- Request to update a school profile.
- Request to create or update a subscription plans
- Request to upgrade a subscription plan
- Summary of the user’s account. This could be a school account that a user is a member of.
Enums§
- A school account only if the user requesting the account is a system admin or an account admin.
- The type of account
- The subscriptions billing interval
- Set a subscriptions cancellation status
- Type of payment method
- Payment network associated with a Card
- Subscription plan tier
- Possible individual subscription plans
- Whether the user is creating a new school name or chosen an existing name that we know about
- Status of a subscription
- The tier a subscription is on. This would apply to any
SubscriptionType
- The type of subscription
Constants§
- Individual plan trial period in days
- Plan price annual-basic
- Plan price annual-pro
- Plan price annual-school-1
- Plan price annual-school-2
- Plan price annual-school-3
- Plan price annual-school-4
- Plan price annual-school-unlimited
- Plan price monthly-basic
- Plan price monthly-pro
- Plan price monthly-school-1
- Plan price monthly-school-2
- Plan price monthly-school-3
- Plan price monthly-school-4
- Plan price monthly-school-unlimited
- Shared billing constants.
- Level 2 max teacher count
- Level 3 max teacher count
- Level 4 max teacher count
- Schools plan trial period in days