Documentation ¶
Overview ¶
Package plan provides APIs related to plans.
Index ¶
Constants ¶
View Source
const ( BillingDaily = "day" BillingWeekly = "week" BillingMonthly = "month" BillingYearly = "year" )
A list of acceptable billing types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingType ¶
type BillingType string
BillingType represents a frequency at which the plan can be billed.
type Client ¶
Client performs API operations.
type Iter ¶
type Iter struct {
// contains filtered or unexported fields
}
Iter provides a mechanism for lazily decoding and iterating over a list of plans.
type Plan ¶
type Plan struct { ID uint64 `json:"id"` Name string `json:"name"` BillingType BillingType `json:"billing_type"` BillingPeriod uint `json:"billing_period"` InitialPrice map[paddle.Currency]float64 `json:"initial_price"` RecurringPrice map[paddle.Currency]float64 `json:"recurring_price"` TrialDays uint `json:"trial_days"` // Used to pick an InitialPrice and RecurringPrice when creating a plan. // Not part of the plan list response. MainCurrency paddle.Currency `json:"-"` }
Plan represents a subscription plan.
Click to show internal directories.
Click to hide internal directories.