-
Notifications
You must be signed in to change notification settings - Fork 448
/
applepaydomain.go
54 lines (47 loc) · 1.52 KB
/
applepaydomain.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
//
// File generated from our OpenAPI spec
//
//
package stripe
// Delete an apple pay domain.
type ApplePayDomainParams struct {
Params `form:"*"`
DomainName *string `form:"domain_name"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
}
// AddExpand appends a new field to expand.
func (p *ApplePayDomainParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}
// List apple pay domains.
type ApplePayDomainListParams struct {
ListParams `form:"*"`
DomainName *string `form:"domain_name"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
}
// AddExpand appends a new field to expand.
func (p *ApplePayDomainListParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}
type ApplePayDomain struct {
APIResource
// Time at which the object was created. Measured in seconds since the Unix epoch.
Created int64 `json:"created"`
Deleted bool `json:"deleted"`
DomainName string `json:"domain_name"`
// Unique identifier for the object.
ID string `json:"id"`
// Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
Livemode bool `json:"livemode"`
// String representing the object's type. Objects of the same type share the same value.
Object string `json:"object"`
}
// ApplePayDomainList is a list of ApplePayDomains as retrieved from a list endpoint.
type ApplePayDomainList struct {
APIResource
ListMeta
Data []*ApplePayDomain `json:"data"`
}