-
Notifications
You must be signed in to change notification settings - Fork 16
/
reward.go
24 lines (23 loc) · 908 Bytes
/
reward.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package patreon
// Reward represents a Patreon's reward.
type Reward struct {
Type string `json:"type"`
ID string `json:"id"`
Attributes struct {
Amount int `json:"amount"`
AmountCents int `json:"amount_cents"`
CreatedAt NullTime `json:"created_at"`
DeletedAt NullTime `json:"deleted_at"`
EditedAt NullTime `json:"edited_at"`
Description string `json:"description"`
ImageURL string `json:"image_url"`
PatronCount int `json:"patron_count"`
PostCount int `json:"post_count"`
Published bool `json:"published"`
PublishedAt NullTime `json:"published_at"`
RequiresShipping bool `json:"requires_shipping"`
Title string `json:"title"`
UnpublishedAt NullTime `json:"unpublished_at"`
URL string `json:"url"`
} `json:"attributes"`
}