Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SubscriptionDoesNotExist = errors.New("subscription does not exist") PlanDoesNotExist = errors.New("plan does not exist") UserDoesNotExist = errors.New("user does not exist") PaymentCancelled = errors.New("subscription was cancelled") FailedToDecodeRequestBody = errors.New("failed to decode request body") FailedToCreateCustomer = errors.New("failed to create customer") FailedToCreateUser = errors.New("failed to create user") OnlyOneOfUserBuyerAllowed = errors.New("only one of user buyer allowed") CannotChangeUser = errors.New("subscription user cannot be changed") )
Functions ¶
func GetSubscribe ¶
func Unsubscribe ¶
func UpdateSubscribe ¶
Types ¶
type SubscriptionReq ¶
type SubscriptionReq struct {
User_ *user.User `json:"user"`
Subscription_ *subscription.Subscription `json:"subscription"`
Db *datastore.Datastore
}
func (*SubscriptionReq) Subscription ¶
func (sr *SubscriptionReq) Subscription() (*subscription.Subscription, error)
Click to show internal directories.
Click to hide internal directories.