-
Notifications
You must be signed in to change notification settings - Fork 88
/
model_sandbox_public_token_create_request_options.go
336 lines (286 loc) · 12.4 KB
/
model_sandbox_public_token_create_request_options.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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
/*
* 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"
)
// SandboxPublicTokenCreateRequestOptions An optional set of options to be used when configuring the Item. If specified, must not be `null`.
type SandboxPublicTokenCreateRequestOptions struct {
// Specify a webhook to associate with the new Item.
Webhook *string `json:"webhook,omitempty"`
// Test username to use for the creation of the Sandbox Item. Default value is `user_good`.
OverrideUsername NullableString `json:"override_username,omitempty"`
// Test password to use for the creation of the Sandbox Item. Default value is `pass_good`.
OverridePassword NullableString `json:"override_password,omitempty"`
Transactions *SandboxPublicTokenCreateRequestOptionsTransactions `json:"transactions,omitempty"`
Statements NullableSandboxPublicTokenCreateRequestOptionsStatements `json:"statements,omitempty"`
IncomeVerification *SandboxPublicTokenCreateRequestOptionsIncomeVerification `json:"income_verification,omitempty"`
}
// NewSandboxPublicTokenCreateRequestOptions instantiates a new SandboxPublicTokenCreateRequestOptions 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 NewSandboxPublicTokenCreateRequestOptions() *SandboxPublicTokenCreateRequestOptions {
this := SandboxPublicTokenCreateRequestOptions{}
var overrideUsername string = "user_good"
this.OverrideUsername = *NewNullableString(&overrideUsername)
var overridePassword string = "pass_good"
this.OverridePassword = *NewNullableString(&overridePassword)
return &this
}
// NewSandboxPublicTokenCreateRequestOptionsWithDefaults instantiates a new SandboxPublicTokenCreateRequestOptions 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 NewSandboxPublicTokenCreateRequestOptionsWithDefaults() *SandboxPublicTokenCreateRequestOptions {
this := SandboxPublicTokenCreateRequestOptions{}
var overrideUsername string = "user_good"
this.OverrideUsername = *NewNullableString(&overrideUsername)
var overridePassword string = "pass_good"
this.OverridePassword = *NewNullableString(&overridePassword)
return &this
}
// GetWebhook returns the Webhook field value if set, zero value otherwise.
func (o *SandboxPublicTokenCreateRequestOptions) GetWebhook() string {
if o == nil || o.Webhook == nil {
var ret string
return ret
}
return *o.Webhook
}
// GetWebhookOk returns a tuple with the Webhook field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxPublicTokenCreateRequestOptions) GetWebhookOk() (*string, bool) {
if o == nil || o.Webhook == nil {
return nil, false
}
return o.Webhook, true
}
// HasWebhook returns a boolean if a field has been set.
func (o *SandboxPublicTokenCreateRequestOptions) HasWebhook() bool {
if o != nil && o.Webhook != nil {
return true
}
return false
}
// SetWebhook gets a reference to the given string and assigns it to the Webhook field.
func (o *SandboxPublicTokenCreateRequestOptions) SetWebhook(v string) {
o.Webhook = &v
}
// GetOverrideUsername returns the OverrideUsername field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SandboxPublicTokenCreateRequestOptions) GetOverrideUsername() string {
if o == nil || o.OverrideUsername.Get() == nil {
var ret string
return ret
}
return *o.OverrideUsername.Get()
}
// GetOverrideUsernameOk returns a tuple with the OverrideUsername 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 *SandboxPublicTokenCreateRequestOptions) GetOverrideUsernameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.OverrideUsername.Get(), o.OverrideUsername.IsSet()
}
// HasOverrideUsername returns a boolean if a field has been set.
func (o *SandboxPublicTokenCreateRequestOptions) HasOverrideUsername() bool {
if o != nil && o.OverrideUsername.IsSet() {
return true
}
return false
}
// SetOverrideUsername gets a reference to the given NullableString and assigns it to the OverrideUsername field.
func (o *SandboxPublicTokenCreateRequestOptions) SetOverrideUsername(v string) {
o.OverrideUsername.Set(&v)
}
// SetOverrideUsernameNil sets the value for OverrideUsername to be an explicit nil
func (o *SandboxPublicTokenCreateRequestOptions) SetOverrideUsernameNil() {
o.OverrideUsername.Set(nil)
}
// UnsetOverrideUsername ensures that no value is present for OverrideUsername, not even an explicit nil
func (o *SandboxPublicTokenCreateRequestOptions) UnsetOverrideUsername() {
o.OverrideUsername.Unset()
}
// GetOverridePassword returns the OverridePassword field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SandboxPublicTokenCreateRequestOptions) GetOverridePassword() string {
if o == nil || o.OverridePassword.Get() == nil {
var ret string
return ret
}
return *o.OverridePassword.Get()
}
// GetOverridePasswordOk returns a tuple with the OverridePassword 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 *SandboxPublicTokenCreateRequestOptions) GetOverridePasswordOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.OverridePassword.Get(), o.OverridePassword.IsSet()
}
// HasOverridePassword returns a boolean if a field has been set.
func (o *SandboxPublicTokenCreateRequestOptions) HasOverridePassword() bool {
if o != nil && o.OverridePassword.IsSet() {
return true
}
return false
}
// SetOverridePassword gets a reference to the given NullableString and assigns it to the OverridePassword field.
func (o *SandboxPublicTokenCreateRequestOptions) SetOverridePassword(v string) {
o.OverridePassword.Set(&v)
}
// SetOverridePasswordNil sets the value for OverridePassword to be an explicit nil
func (o *SandboxPublicTokenCreateRequestOptions) SetOverridePasswordNil() {
o.OverridePassword.Set(nil)
}
// UnsetOverridePassword ensures that no value is present for OverridePassword, not even an explicit nil
func (o *SandboxPublicTokenCreateRequestOptions) UnsetOverridePassword() {
o.OverridePassword.Unset()
}
// GetTransactions returns the Transactions field value if set, zero value otherwise.
func (o *SandboxPublicTokenCreateRequestOptions) GetTransactions() SandboxPublicTokenCreateRequestOptionsTransactions {
if o == nil || o.Transactions == nil {
var ret SandboxPublicTokenCreateRequestOptionsTransactions
return ret
}
return *o.Transactions
}
// GetTransactionsOk returns a tuple with the Transactions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxPublicTokenCreateRequestOptions) GetTransactionsOk() (*SandboxPublicTokenCreateRequestOptionsTransactions, bool) {
if o == nil || o.Transactions == nil {
return nil, false
}
return o.Transactions, true
}
// HasTransactions returns a boolean if a field has been set.
func (o *SandboxPublicTokenCreateRequestOptions) HasTransactions() bool {
if o != nil && o.Transactions != nil {
return true
}
return false
}
// SetTransactions gets a reference to the given SandboxPublicTokenCreateRequestOptionsTransactions and assigns it to the Transactions field.
func (o *SandboxPublicTokenCreateRequestOptions) SetTransactions(v SandboxPublicTokenCreateRequestOptionsTransactions) {
o.Transactions = &v
}
// GetStatements returns the Statements field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SandboxPublicTokenCreateRequestOptions) GetStatements() SandboxPublicTokenCreateRequestOptionsStatements {
if o == nil || o.Statements.Get() == nil {
var ret SandboxPublicTokenCreateRequestOptionsStatements
return ret
}
return *o.Statements.Get()
}
// GetStatementsOk returns a tuple with the Statements 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 *SandboxPublicTokenCreateRequestOptions) GetStatementsOk() (*SandboxPublicTokenCreateRequestOptionsStatements, bool) {
if o == nil {
return nil, false
}
return o.Statements.Get(), o.Statements.IsSet()
}
// HasStatements returns a boolean if a field has been set.
func (o *SandboxPublicTokenCreateRequestOptions) HasStatements() bool {
if o != nil && o.Statements.IsSet() {
return true
}
return false
}
// SetStatements gets a reference to the given NullableSandboxPublicTokenCreateRequestOptionsStatements and assigns it to the Statements field.
func (o *SandboxPublicTokenCreateRequestOptions) SetStatements(v SandboxPublicTokenCreateRequestOptionsStatements) {
o.Statements.Set(&v)
}
// SetStatementsNil sets the value for Statements to be an explicit nil
func (o *SandboxPublicTokenCreateRequestOptions) SetStatementsNil() {
o.Statements.Set(nil)
}
// UnsetStatements ensures that no value is present for Statements, not even an explicit nil
func (o *SandboxPublicTokenCreateRequestOptions) UnsetStatements() {
o.Statements.Unset()
}
// GetIncomeVerification returns the IncomeVerification field value if set, zero value otherwise.
func (o *SandboxPublicTokenCreateRequestOptions) GetIncomeVerification() SandboxPublicTokenCreateRequestOptionsIncomeVerification {
if o == nil || o.IncomeVerification == nil {
var ret SandboxPublicTokenCreateRequestOptionsIncomeVerification
return ret
}
return *o.IncomeVerification
}
// GetIncomeVerificationOk returns a tuple with the IncomeVerification field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxPublicTokenCreateRequestOptions) GetIncomeVerificationOk() (*SandboxPublicTokenCreateRequestOptionsIncomeVerification, bool) {
if o == nil || o.IncomeVerification == nil {
return nil, false
}
return o.IncomeVerification, true
}
// HasIncomeVerification returns a boolean if a field has been set.
func (o *SandboxPublicTokenCreateRequestOptions) HasIncomeVerification() bool {
if o != nil && o.IncomeVerification != nil {
return true
}
return false
}
// SetIncomeVerification gets a reference to the given SandboxPublicTokenCreateRequestOptionsIncomeVerification and assigns it to the IncomeVerification field.
func (o *SandboxPublicTokenCreateRequestOptions) SetIncomeVerification(v SandboxPublicTokenCreateRequestOptionsIncomeVerification) {
o.IncomeVerification = &v
}
func (o SandboxPublicTokenCreateRequestOptions) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Webhook != nil {
toSerialize["webhook"] = o.Webhook
}
if o.OverrideUsername.IsSet() {
toSerialize["override_username"] = o.OverrideUsername.Get()
}
if o.OverridePassword.IsSet() {
toSerialize["override_password"] = o.OverridePassword.Get()
}
if o.Transactions != nil {
toSerialize["transactions"] = o.Transactions
}
if o.Statements.IsSet() {
toSerialize["statements"] = o.Statements.Get()
}
if o.IncomeVerification != nil {
toSerialize["income_verification"] = o.IncomeVerification
}
return json.Marshal(toSerialize)
}
type NullableSandboxPublicTokenCreateRequestOptions struct {
value *SandboxPublicTokenCreateRequestOptions
isSet bool
}
func (v NullableSandboxPublicTokenCreateRequestOptions) Get() *SandboxPublicTokenCreateRequestOptions {
return v.value
}
func (v *NullableSandboxPublicTokenCreateRequestOptions) Set(val *SandboxPublicTokenCreateRequestOptions) {
v.value = val
v.isSet = true
}
func (v NullableSandboxPublicTokenCreateRequestOptions) IsSet() bool {
return v.isSet
}
func (v *NullableSandboxPublicTokenCreateRequestOptions) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSandboxPublicTokenCreateRequestOptions(val *SandboxPublicTokenCreateRequestOptions) *NullableSandboxPublicTokenCreateRequestOptions {
return &NullableSandboxPublicTokenCreateRequestOptions{value: val, isSet: true}
}
func (v NullableSandboxPublicTokenCreateRequestOptions) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSandboxPublicTokenCreateRequestOptions) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}