forked from blacklightcms/recurly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plans.go
31 lines (29 loc) · 1.74 KB
/
plans.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
package recurly
import "encoding/xml"
// Plan represents an individual plan on your site.
type Plan struct {
XMLName xml.Name `xml:"plan"`
Code string `xml:"plan_code,omitempty"`
Name string `xml:"name"`
Description string `xml:"description,omitempty"`
SuccessURL string `xml:"success_url,omitempty"`
CancelURL string `xml:"cancel_url,omitempty"`
DisplayDonationAmounts NullBool `xml:"display_donation_amounts,omitempty"`
DisplayQuantity NullBool `xml:"display_quantity,omitempty"`
DisplayPhoneNumber NullBool `xml:"display_phone_number,omitempty"`
BypassHostedConfirmation NullBool `xml:"bypass_hosted_confirmation,omitempty"`
UnitName string `xml:"unit_name,omitempty"`
PaymentPageTOSLink string `xml:"payment_page_tos_link,omitempty"`
IntervalUnit string `xml:"plan_interval_unit,omitempty"`
IntervalLength int `xml:"plan_interval_length,omitempty"`
TrialIntervalUnit string `xml:"trial_interval_unit,omitempty"`
TrialIntervalLength int `xml:"trial_interval_length,omitempty"`
TotalBillingCycles NullInt `xml:"total_billing_cycles,omitempty"`
AccountingCode string `xml:"accounting_code,omitempty"`
CreatedAt NullTime `xml:"created_at,omitempty"`
TaxExempt NullBool `xml:"tax_exempt,omitempty"`
TaxCode string `xml:"tax_code,omitempty"`
AutoRenew bool `xml:"auto_renew,omitempty"`
UnitAmountInCents UnitAmount `xml:"unit_amount_in_cents"`
SetupFeeInCents UnitAmount `xml:"setup_fee_in_cents,omitempty"`
}