• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-go / 11295426688

11 Oct 2024 03:52PM UTC coverage: 62.991% (-0.02%) from 63.015%
11295426688

Pull #1934

github

stripe-openapi[bot]
Merge upstream and update generated code for v1290
Pull Request #1934: Update generated code for beta

0 of 8 new or added lines in 2 files covered. (0.0%)

472 existing lines in 21 files now uncovered.

6209 of 9857 relevant lines covered (62.99%)

15.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/paymentmethoddomain.go
1
//
2
//
3
// File generated from our OpenAPI spec
4
//
5
//
6

7
package stripe
8

9
// The status of the payment method on the domain.
10
type PaymentMethodDomainApplePayStatus string
11

12
// List of values that PaymentMethodDomainApplePayStatus can take
13
const (
14
        PaymentMethodDomainApplePayStatusActive   PaymentMethodDomainApplePayStatus = "active"
15
        PaymentMethodDomainApplePayStatusInactive PaymentMethodDomainApplePayStatus = "inactive"
16
)
17

18
// The status of the payment method on the domain.
19
type PaymentMethodDomainGooglePayStatus string
20

21
// List of values that PaymentMethodDomainGooglePayStatus can take
22
const (
23
        PaymentMethodDomainGooglePayStatusActive   PaymentMethodDomainGooglePayStatus = "active"
24
        PaymentMethodDomainGooglePayStatusInactive PaymentMethodDomainGooglePayStatus = "inactive"
25
)
26

27
// The status of the payment method on the domain.
28
type PaymentMethodDomainLinkStatus string
29

30
// List of values that PaymentMethodDomainLinkStatus can take
31
const (
32
        PaymentMethodDomainLinkStatusActive   PaymentMethodDomainLinkStatus = "active"
33
        PaymentMethodDomainLinkStatusInactive PaymentMethodDomainLinkStatus = "inactive"
34
)
35

36
// The status of the payment method on the domain.
37
type PaymentMethodDomainPaypalStatus string
38

39
// List of values that PaymentMethodDomainPaypalStatus can take
40
const (
41
        PaymentMethodDomainPaypalStatusActive   PaymentMethodDomainPaypalStatus = "active"
42
        PaymentMethodDomainPaypalStatusInactive PaymentMethodDomainPaypalStatus = "inactive"
43
)
44

45
// Lists the details of existing payment method domains.
46
type PaymentMethodDomainListParams struct {
47
        ListParams `form:"*"`
48
        // The domain name that this payment method domain object represents.
49
        DomainName *string `form:"domain_name"`
50
        // Whether this payment method domain is enabled. If the domain is not enabled, payment methods will not appear in Elements
51
        Enabled *bool `form:"enabled"`
52
        // Specifies which fields in the response should be expanded.
53
        Expand []*string `form:"expand"`
54
}
55

56
// AddExpand appends a new field to expand.
UNCOV
57
func (p *PaymentMethodDomainListParams) AddExpand(f string) {
×
UNCOV
58
        p.Expand = append(p.Expand, &f)
×
UNCOV
59
}
×
60

61
// Creates a payment method domain.
62
type PaymentMethodDomainParams struct {
63
        Params `form:"*"`
64
        // The domain name that this payment method domain object represents.
65
        DomainName *string `form:"domain_name"`
66
        // Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements.
67
        Enabled *bool `form:"enabled"`
68
        // Specifies which fields in the response should be expanded.
69
        Expand []*string `form:"expand"`
70
}
71

72
// AddExpand appends a new field to expand.
UNCOV
73
func (p *PaymentMethodDomainParams) AddExpand(f string) {
×
UNCOV
74
        p.Expand = append(p.Expand, &f)
×
UNCOV
75
}
×
76

77
// Some payment methods such as Apple Pay require additional steps to verify a domain. If the requirements weren't satisfied when the domain was created, the payment method will be inactive on the domain.
78
// The payment method doesn't appear in Elements for this domain until it is active.
79
//
80
// To activate a payment method on an existing payment method domain, complete the required validation steps specific to the payment method, and then validate the payment method domain with this endpoint.
81
//
82
// Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
83
type PaymentMethodDomainValidateParams struct {
84
        Params `form:"*"`
85
        // Specifies which fields in the response should be expanded.
86
        Expand []*string `form:"expand"`
87
}
88

89
// AddExpand appends a new field to expand.
UNCOV
90
func (p *PaymentMethodDomainValidateParams) AddExpand(f string) {
×
UNCOV
91
        p.Expand = append(p.Expand, &f)
×
UNCOV
92
}
×
93

94
// Contains additional details about the status of a payment method for a specific payment method domain.
95
type PaymentMethodDomainApplePayStatusDetails struct {
96
        // The error message associated with the status of the payment method on the domain.
97
        ErrorMessage string `json:"error_message"`
98
}
99

100
// Indicates the status of a specific payment method on a payment method domain.
101
type PaymentMethodDomainApplePay struct {
102
        // The status of the payment method on the domain.
103
        Status PaymentMethodDomainApplePayStatus `json:"status"`
104
        // Contains additional details about the status of a payment method for a specific payment method domain.
105
        StatusDetails *PaymentMethodDomainApplePayStatusDetails `json:"status_details"`
106
}
107

108
// Contains additional details about the status of a payment method for a specific payment method domain.
109
type PaymentMethodDomainGooglePayStatusDetails struct {
110
        // The error message associated with the status of the payment method on the domain.
111
        ErrorMessage string `json:"error_message"`
112
}
113

114
// Indicates the status of a specific payment method on a payment method domain.
115
type PaymentMethodDomainGooglePay struct {
116
        // The status of the payment method on the domain.
117
        Status PaymentMethodDomainGooglePayStatus `json:"status"`
118
        // Contains additional details about the status of a payment method for a specific payment method domain.
119
        StatusDetails *PaymentMethodDomainGooglePayStatusDetails `json:"status_details"`
120
}
121

122
// Contains additional details about the status of a payment method for a specific payment method domain.
123
type PaymentMethodDomainLinkStatusDetails struct {
124
        // The error message associated with the status of the payment method on the domain.
125
        ErrorMessage string `json:"error_message"`
126
}
127

128
// Indicates the status of a specific payment method on a payment method domain.
129
type PaymentMethodDomainLink struct {
130
        // The status of the payment method on the domain.
131
        Status PaymentMethodDomainLinkStatus `json:"status"`
132
        // Contains additional details about the status of a payment method for a specific payment method domain.
133
        StatusDetails *PaymentMethodDomainLinkStatusDetails `json:"status_details"`
134
}
135

136
// Contains additional details about the status of a payment method for a specific payment method domain.
137
type PaymentMethodDomainPaypalStatusDetails struct {
138
        // The error message associated with the status of the payment method on the domain.
139
        ErrorMessage string `json:"error_message"`
140
}
141

142
// Indicates the status of a specific payment method on a payment method domain.
143
type PaymentMethodDomainPaypal struct {
144
        // The status of the payment method on the domain.
145
        Status PaymentMethodDomainPaypalStatus `json:"status"`
146
        // Contains additional details about the status of a payment method for a specific payment method domain.
147
        StatusDetails *PaymentMethodDomainPaypalStatusDetails `json:"status_details"`
148
}
149

150
// A payment method domain represents a web domain that you have registered with Stripe.
151
// Stripe Elements use registered payment method domains to control where certain payment methods are shown.
152
//
153
// Related guide: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
154
type PaymentMethodDomain struct {
155
        APIResource
156
        // Indicates the status of a specific payment method on a payment method domain.
157
        ApplePay *PaymentMethodDomainApplePay `json:"apple_pay"`
158
        // Time at which the object was created. Measured in seconds since the Unix epoch.
159
        Created int64 `json:"created"`
160
        // The domain name that this payment method domain object represents.
161
        DomainName string `json:"domain_name"`
162
        // Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements.
163
        Enabled bool `json:"enabled"`
164
        // Indicates the status of a specific payment method on a payment method domain.
165
        GooglePay *PaymentMethodDomainGooglePay `json:"google_pay"`
166
        // Unique identifier for the object.
167
        ID string `json:"id"`
168
        // Indicates the status of a specific payment method on a payment method domain.
169
        Link *PaymentMethodDomainLink `json:"link"`
170
        // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
171
        Livemode bool `json:"livemode"`
172
        // String representing the object's type. Objects of the same type share the same value.
173
        Object string `json:"object"`
174
        // Indicates the status of a specific payment method on a payment method domain.
175
        Paypal *PaymentMethodDomainPaypal `json:"paypal"`
176
}
177

178
// PaymentMethodDomainList is a list of PaymentMethodDomains as retrieved from a list endpoint.
179
type PaymentMethodDomainList struct {
180
        APIResource
181
        ListMeta
182
        Data []*PaymentMethodDomain `json:"data"`
183
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc