forked from stripe/stripe-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
radar_valuelistitem.go
36 lines (32 loc) · 1.27 KB
/
radar_valuelistitem.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
36
package stripe
// RadarValueListItemParams is the set of parameters that can be used when creating a value list item.
type RadarValueListItemParams struct {
Params `form:"*"`
Value *string `form:"value"`
RadarValueList *string `form:"value_list"`
}
// RadarValueListItemListParams is the set of parameters that can be used when listing value list items.
type RadarValueListItemListParams struct {
ListParams `form:"*"`
Created *int64 `form:"created"`
CreatedRange *RangeQueryParams `form:"created"`
RadarValueList *string `form:"value_list"`
Value *string `form:"value"`
}
// RadarValueListItem is the resource representing a value list item.
type RadarValueListItem struct {
Created int64 `json:"created"`
CreatedBy string `json:"created_by"`
Deleted bool `json:"deleted"`
ID string `json:"id"`
Livemode bool `json:"livemode"`
Name string `json:"name"`
Object string `json:"object"`
Value string `json:"value"`
RadarValueList string `json:"value_list"`
}
// RadarValueListItemList is a list of value list items as retrieved from a list endpoint.
type RadarValueListItemList struct {
ListMeta
Data []*RadarValueListItem `json:"data"`
}