forked from braintree-go/braintree-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plan.go
30 lines (27 loc) · 1.08 KB
/
plan.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
package braintree
import (
"time"
)
type Plan struct {
XMLName string `xml:"plan"`
Id string `xml:"id"`
MerchantId string `xml:"merchant-id"`
BillingDayOfMonth *int `xml:"billing-day-of-month"`
BillingFrequency *int `xml:"billing-frequency"`
CurrencyISOCode string `xml:"currency-iso-code"`
Description string `xml:"description"`
Name string `xml:"name"`
NumberOfBillingCycles *int `xml:"number-of-billing-cycles"`
Price *Decimal `xml:"price"`
TrialDuration *int `xml:"trial-duration"`
TrialDurationUnit string `xml:"trial-duration-unit"`
TrialPeriod bool `xml:"trial-period"`
CreatedAt *time.Time `xml:"created-at"`
UpdatedAt *time.Time `xml:"updated-at"`
AddOns AddOnList `xml:"add-ons"`
Discounts DiscountList `xml:"discounts"`
}
type Plans struct {
XMLName string `xml:"plans"`
Plan []*Plan `xml:"plan"`
}