-
Notifications
You must be signed in to change notification settings - Fork 6
/
coupons.go
32 lines (29 loc) · 1.49 KB
/
coupons.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
package invoiced
type CouponRequest struct {
Currency *string `json:"currency,omitempty"`
Duration *int64 `json:"durationo,omitempty"`
Exclusive *bool `json:"exclusive,omitempty"`
ExpirationDate *int64 `json:"expiration_date,omitempty"`
Id *string `json:"id,omitempty"`
IsPercent *bool `json:"is_percent,omitempty"`
MaxRedemptions *int64 `json:"max_redemptions,omitempty"`
Metadata *map[string]interface{} `json:"metadata,omitempty"`
Name *string `json:"name,omitempty"`
Value *int64 `json:"value,omitempty"`
}
type Coupon struct {
CreatedAt int64 `json:"created_at"`
Currency *string `json:"currency"`
Duration *int64 `json:"duration"`
Exclusive bool `json:"exclusive"`
ExpirationDate *int64 `json:"expiration_date"`
Id string `json:"id"`
IsPercent bool `json:"is_percent"`
MaxRedemptions *int64 `json:"max_redemptions"`
Metadata map[string]interface{} `json:"metadata"`
Name string `json:"name"`
Object string `json:"object"`
UpdatedAt int64 `json:"updated_at"`
Value int64 `json:"value"`
}
type Coupons []*Coupon