-
Notifications
You must be signed in to change notification settings - Fork 939
/
member.go
35 lines (30 loc) · 1.07 KB
/
member.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
25
26
27
28
29
30
31
32
33
34
35
package patreonapi
type MembersResponse struct {
Data []*MemberData `json:"data"`
Included []*Include `json:"included"`
Meta Meta `json:"meta"`
}
type MemberData struct {
Type string `json:"type"`
ID string `json:"id"`
Relationships Relationships `json:"relationships"`
Attributes *MemberAttributes `json:"attributes"`
}
const (
ChargeStatusPaid = "Paid"
ChargeStatusDeclined = "Declined"
ChargeStatusDeleted = "Deleted"
ChargeStatusPending = "Pending"
ChargeStatusRefunded = "Refunded"
ChargeStatusFraud = "Fraud"
ChargeStatusOther = "Other"
)
type MemberAttributes struct {
FullName string `json:"full_name"`
IsFollower bool `json:"is_follower"`
LastChargeData string `json:"last_charge_date"`
LastChargeStatus string `json:"last_charge_status"`
LifetimeSupportCents int `json:"lifetime_support_cents"`
CurrentEntitledAmountCents int `json:"currently_entitled_amount_cents"`
PatronStatus string `json:"patron_status"`
}