Documentation
¶
Overview ¶
Package user provides APIs related to users.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.
type Payment ¶
type Payment struct {
Amount float64 `json:"amount"`
Currency paddle.Currency `json:"currency"`
Date paddle.Time `json:"date"`
}
Payment represents a past or future payment.
type User ¶
type User struct {
ID uint64 `json:"user_id"`
Subscription uint64 `json:"subscription_id"`
Plan uint64 `json:"plan_id"`
Email string `json:"user_email"`
MarketingConsent bool `json:"marketing_consent"`
UpdateURL string `json:"update_url"`
CancelURL string `json:"cancel_url"`
State string `json:"active"`
SignupDate paddle.Time `json:"signup_date"`
LastPayment Payment `json:"last_payment"`
NextPayment Payment `json:"last_payment"`
}
User represents a single user on a subscription.
Click to show internal directories.
Click to hide internal directories.