-
Notifications
You must be signed in to change notification settings - Fork 88
/
model_verification_expired_webhook.go
306 lines (255 loc) · 8.34 KB
/
model_verification_expired_webhook.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
/*
* The Plaid API
*
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* API version: 2020-09-14_1.508.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package plaid
import (
"encoding/json"
)
// VerificationExpiredWebhook Fired when an Item was not verified via automated micro-deposits after seven days since the automated micro-deposit was made.
type VerificationExpiredWebhook struct {
// `AUTH`
WebhookType string `json:"webhook_type"`
// `VERIFICATION_EXPIRED`
WebhookCode string `json:"webhook_code"`
// The `item_id` of the Item associated with this webhook, warning, or error
ItemId string `json:"item_id"`
// The `account_id` of the account associated with the webhook
AccountId string `json:"account_id"`
Environment WebhookEnvironmentValues `json:"environment"`
Error NullablePlaidError `json:"error,omitempty"`
AdditionalProperties map[string]interface{}
}
type _VerificationExpiredWebhook VerificationExpiredWebhook
// NewVerificationExpiredWebhook instantiates a new VerificationExpiredWebhook object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewVerificationExpiredWebhook(webhookType string, webhookCode string, itemId string, accountId string, environment WebhookEnvironmentValues) *VerificationExpiredWebhook {
this := VerificationExpiredWebhook{}
this.WebhookType = webhookType
this.WebhookCode = webhookCode
this.ItemId = itemId
this.AccountId = accountId
this.Environment = environment
return &this
}
// NewVerificationExpiredWebhookWithDefaults instantiates a new VerificationExpiredWebhook object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewVerificationExpiredWebhookWithDefaults() *VerificationExpiredWebhook {
this := VerificationExpiredWebhook{}
return &this
}
// GetWebhookType returns the WebhookType field value
func (o *VerificationExpiredWebhook) GetWebhookType() string {
if o == nil {
var ret string
return ret
}
return o.WebhookType
}
// GetWebhookTypeOk returns a tuple with the WebhookType field value
// and a boolean to check if the value has been set.
func (o *VerificationExpiredWebhook) GetWebhookTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.WebhookType, true
}
// SetWebhookType sets field value
func (o *VerificationExpiredWebhook) SetWebhookType(v string) {
o.WebhookType = v
}
// GetWebhookCode returns the WebhookCode field value
func (o *VerificationExpiredWebhook) GetWebhookCode() string {
if o == nil {
var ret string
return ret
}
return o.WebhookCode
}
// GetWebhookCodeOk returns a tuple with the WebhookCode field value
// and a boolean to check if the value has been set.
func (o *VerificationExpiredWebhook) GetWebhookCodeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.WebhookCode, true
}
// SetWebhookCode sets field value
func (o *VerificationExpiredWebhook) SetWebhookCode(v string) {
o.WebhookCode = v
}
// GetItemId returns the ItemId field value
func (o *VerificationExpiredWebhook) GetItemId() string {
if o == nil {
var ret string
return ret
}
return o.ItemId
}
// GetItemIdOk returns a tuple with the ItemId field value
// and a boolean to check if the value has been set.
func (o *VerificationExpiredWebhook) GetItemIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ItemId, true
}
// SetItemId sets field value
func (o *VerificationExpiredWebhook) SetItemId(v string) {
o.ItemId = v
}
// GetAccountId returns the AccountId field value
func (o *VerificationExpiredWebhook) GetAccountId() string {
if o == nil {
var ret string
return ret
}
return o.AccountId
}
// GetAccountIdOk returns a tuple with the AccountId field value
// and a boolean to check if the value has been set.
func (o *VerificationExpiredWebhook) GetAccountIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AccountId, true
}
// SetAccountId sets field value
func (o *VerificationExpiredWebhook) SetAccountId(v string) {
o.AccountId = v
}
// GetEnvironment returns the Environment field value
func (o *VerificationExpiredWebhook) GetEnvironment() WebhookEnvironmentValues {
if o == nil {
var ret WebhookEnvironmentValues
return ret
}
return o.Environment
}
// GetEnvironmentOk returns a tuple with the Environment field value
// and a boolean to check if the value has been set.
func (o *VerificationExpiredWebhook) GetEnvironmentOk() (*WebhookEnvironmentValues, bool) {
if o == nil {
return nil, false
}
return &o.Environment, true
}
// SetEnvironment sets field value
func (o *VerificationExpiredWebhook) SetEnvironment(v WebhookEnvironmentValues) {
o.Environment = v
}
// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *VerificationExpiredWebhook) GetError() PlaidError {
if o == nil || o.Error.Get() == nil {
var ret PlaidError
return ret
}
return *o.Error.Get()
}
// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *VerificationExpiredWebhook) GetErrorOk() (*PlaidError, bool) {
if o == nil {
return nil, false
}
return o.Error.Get(), o.Error.IsSet()
}
// HasError returns a boolean if a field has been set.
func (o *VerificationExpiredWebhook) HasError() bool {
if o != nil && o.Error.IsSet() {
return true
}
return false
}
// SetError gets a reference to the given NullablePlaidError and assigns it to the Error field.
func (o *VerificationExpiredWebhook) SetError(v PlaidError) {
o.Error.Set(&v)
}
// SetErrorNil sets the value for Error to be an explicit nil
func (o *VerificationExpiredWebhook) SetErrorNil() {
o.Error.Set(nil)
}
// UnsetError ensures that no value is present for Error, not even an explicit nil
func (o *VerificationExpiredWebhook) UnsetError() {
o.Error.Unset()
}
func (o VerificationExpiredWebhook) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["webhook_type"] = o.WebhookType
}
if true {
toSerialize["webhook_code"] = o.WebhookCode
}
if true {
toSerialize["item_id"] = o.ItemId
}
if true {
toSerialize["account_id"] = o.AccountId
}
if true {
toSerialize["environment"] = o.Environment
}
if o.Error.IsSet() {
toSerialize["error"] = o.Error.Get()
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return json.Marshal(toSerialize)
}
func (o *VerificationExpiredWebhook) UnmarshalJSON(bytes []byte) (err error) {
varVerificationExpiredWebhook := _VerificationExpiredWebhook{}
if err = json.Unmarshal(bytes, &varVerificationExpiredWebhook); err == nil {
*o = VerificationExpiredWebhook(varVerificationExpiredWebhook)
} else {
return err
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "webhook_type")
delete(additionalProperties, "webhook_code")
delete(additionalProperties, "item_id")
delete(additionalProperties, "account_id")
delete(additionalProperties, "environment")
delete(additionalProperties, "error")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableVerificationExpiredWebhook struct {
value *VerificationExpiredWebhook
isSet bool
}
func (v NullableVerificationExpiredWebhook) Get() *VerificationExpiredWebhook {
return v.value
}
func (v *NullableVerificationExpiredWebhook) Set(val *VerificationExpiredWebhook) {
v.value = val
v.isSet = true
}
func (v NullableVerificationExpiredWebhook) IsSet() bool {
return v.isSet
}
func (v *NullableVerificationExpiredWebhook) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableVerificationExpiredWebhook(val *VerificationExpiredWebhook) *NullableVerificationExpiredWebhook {
return &NullableVerificationExpiredWebhook{value: val, isSet: true}
}
func (v NullableVerificationExpiredWebhook) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableVerificationExpiredWebhook) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}