-
Notifications
You must be signed in to change notification settings - Fork 11
/
coupon_update.go
28 lines (20 loc) · 1.41 KB
/
coupon_update.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
// This file is automatically created by Recurly's OpenAPI generation process
// and thus any edits you make by hand will be lost. If you wish to make a
// change to this file, please create a Github issue explaining the changes you
// need and we will usher them to the appropriate places.
package recurly
import ()
type CouponUpdate struct {
// The internal name for the coupon.
Name *string `json:"name,omitempty"`
// A maximum number of redemptions for the coupon. The coupon will expire when it hits its maximum redemptions.
MaxRedemptions *int `json:"max_redemptions,omitempty"`
// Redemptions per account is the number of times a specific account can redeem the coupon. Set redemptions per account to `1` if you want to keep customers from gaming the system and getting more than one discount from the coupon campaign.
MaxRedemptionsPerAccount *int `json:"max_redemptions_per_account,omitempty"`
// This description will show up when a customer redeems a coupon on your Hosted Payment Pages, or if you choose to show the description on your own checkout page.
HostedDescription *string `json:"hosted_description,omitempty"`
// Description of the coupon on the invoice.
InvoiceDescription *string `json:"invoice_description,omitempty"`
// The date and time the coupon will expire and can no longer be redeemed. Time is always 11:59:59, the end-of-day Pacific time.
RedeemByDate *string `json:"redeem_by_date,omitempty"`
}