-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_bank_connection_update_task_details.go
524 lines (449 loc) · 24.1 KB
/
model_bank_connection_update_task_details.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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
/*
finAPI Web Form 2.0
The following pages give you some general information on how to use our APIs.<br/>The actual API services documentation then follows further below. You can use the menu to jump between API sections.<br/><br/>This page has a built-in HTTP(S) client, so you can test the services directly from within this page, by filling in the request parameters and/or body in the respective services, and then hitting the TRY button. Note that you need to be authorized to make a successful API call. To authorize, refer to the '<a target='_blank' href='https://docs.finapi.io/?product=access#tag--Authorization'>Authorization</a>' section of Access, or in case you already have a valid user token, just use the QUICK AUTH on the left.<br/>Please also remember that all user management functions should be looked up in <a target='_blank' href='https://docs.finapi.io/?product=access'>Access</a>.<br/><br/>You should also check out the <a target='_blank' href='https://documentation.finapi.io/webform/'>Web Form 2.0 Public Documentation</a> as well as <a target='_blank' href='https://documentation.finapi.io/access/'>Access Public Documentation</a> for more information. If you need any help with the API, contact <a href='mailto:[email protected]'>[email protected]</a>.<br/><h2 id=\"general-information\">General information</h2><h3 id=\"general-request-ids\"><strong>Request IDs</strong></h3>With any API call, you can pass a request ID via a header with name \"X-Request-Id\". The request ID can be an arbitrary string with up to 255 characters. Passing a longer string will result in an error.<br/><br/>If you don't pass a request ID for a call, finAPI will generate a random ID internally.<br/><br/>The request ID is always returned back in the response of a service, as a header with name \"X-Request-Id\".<br/><br/>We highly recommend to always pass a (preferably unique) request ID, and include it into your client application logs whenever you make a request or receive a response(especially in the case of an error response). finAPI is also logging request IDs on its end. Having a request ID can help the finAPI support team to work more efficiently and solve tickets faster.<h3 id=\"type-coercion\"><strong>Type Coercion</strong></h3>In order to ease the integration for some languages, which do not natively support high precision number representations, Web Form 2.0 API supports relax type binding for the openAPI type <code>number</code>, which is used for money amount fields. If you use one of those languages, to avoid precision errors that can appear from <code>float</code> values, you can pass the amount as a <code>string</code>.<h3 id=\"general-faq\"><strong>FAQ</strong></h3><strong>Is there a finAPI SDK?</strong><br/>Currently we do not offer a native SDK, but there is the option to generate an SDKfor almost any target language via OpenAPI. Use the 'Download SDK' button on this page for SDK generation.<br/><br/><strong>Why do I need to keep authorizing when calling services on this page?</strong><br/>This page is a \"one-page-app\". Reloading the page resets the OAuth authorization context. There is generally no need to reload the page, so just don't do it and your authorization will persist.
API version: 2.430.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package webform2
import (
"encoding/json"
)
// BankConnectionUpdateTaskDetails struct for BankConnectionUpdateTaskDetails
type BankConnectionUpdateTaskDetails struct {
// Bank connection identifier.
BankConnectionId int64 `json:"bankConnectionId"`
// Whether new accounts that have not yet been imported will be imported or not.<br/><br/>By setting this parameter to true, we will try to get new accounts the user might have at the bank. The user will have a possibility to stop the process once he finds the accounts he is interested in have been imported. The set of newly imported accounts can be limited by using \"accountTypes\" parameter.
ImportNewAccounts NullableBool `json:"importNewAccounts,omitempty"`
// It defines the account types to be added on the bank connection. If no value is given, then all new available accounts will be imported.<br/>Only applied if \"importNewAccounts\" is set to \"true\" and ignored otherwise.<br/>This parameter refers to the same parameters of \"<a target='_blank' href='https://docs.finapi.io/?product=access#post-/api/v1/bankConnections/update'>Update a bank connection</a>\" and \"<a target='_blank' href='https://docs.finapi.io/?product=access#post-/api/v1/bankConnections/connectInterface'>Connect a new interface</a>\" services in the finAPI Access API.
AccountTypes []AccountType `json:"accountTypes,omitempty"`
// Whether to skip the download of transactions and securities or not.<br/>This parameter refers to the same parameters of \"<a target='_blank' href='https://docs.finapi.io/?product=access#post-/api/v1/bankConnections/update'>Update a bank connection</a>\" and \"<a target='_blank' href='https://docs.finapi.io/?product=access#post-/api/v1/bankConnections/connectInterface'>Connect a new interface</a>\" services in the finAPI Access API.
SkipPositionsDownload NullableBool `json:"skipPositionsDownload,omitempty"`
// Whether to load information about the bank connection owner(s).<br/>This parameter refers to the same parameters of \"<a target='_blank' href='https://docs.finapi.io/?product=access#post-/api/v1/bankConnections/update'>Update a bank connection</a>\" and \"<a target='_blank' href='https://docs.finapi.io/?product=access#post-/api/v1/bankConnections/connectInterface'>Connect a new interface</a>\" services in the finAPI Access API.<br/><strong>NOTE:</strong> This feature is supported only by the WEB_SCRAPER interface.
LoadOwnerData NullableBool `json:"loadOwnerData,omitempty"`
// If users have stored bank credentials or their preferred SCA procedure in finAPI, then each time it is necessary, the web form will automatically apply the saved settings. This field will force the web form to be presented. Depending on the value you provide in the API, the end-user will have the possibility to provide new credentials, decide if he wants to store the new credentials in finAPI or delete the stored SCA procedure. He might also be able to save a different SCA procedure as preference if the workflow requires it. Use this parameter, for example, if a previous update failed because of invalid credentials, or you want to allow the end-user to reset his preferred SCA method.<br/><strong>Manage saved settings:</strong><br/>• <code>CREDENTIALS</code> - the end user can edit his stored credentials;<br/>• <code>DEFAULT_TWO_STEP_PROCEDURE</code> - the end user can edit his stored default two step procedure.
ManageSavedSettings []ManageSavedSettings `json:"manageSavedSettings,omitempty"`
Callbacks NullableTaskCallbacks `json:"callbacks,omitempty"`
// The profile to be applied to the web form.<br/>This will overwrite the default profile, if such a profile exists.
ProfileId NullableString `json:"profileId,omitempty"`
// The URL where the end-user will be redirected to after completing the bank login and (possibly) the SCA on the bank's website. Must always be provided by mandators with <code>FULLY_LICENSED</code> or <code>AISP</code> license type, and may not be provided by mandators with other license types. Find more info in the <a target='_blank' href='https://documentation.finapi.io/webform/Licensed-customers-using-the-Web-Form.2832302195.html'>Web Form 2.0 Public Documentation</a>.
RedirectUrl NullableString `json:"redirectUrl,omitempty"`
UserMetadata NullableUserMetadata `json:"userMetadata,omitempty"`
}
// NewBankConnectionUpdateTaskDetails instantiates a new BankConnectionUpdateTaskDetails 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 NewBankConnectionUpdateTaskDetails(bankConnectionId int64) *BankConnectionUpdateTaskDetails {
this := BankConnectionUpdateTaskDetails{}
this.BankConnectionId = bankConnectionId
var importNewAccounts bool = false
this.ImportNewAccounts = *NewNullableBool(&importNewAccounts)
var skipPositionsDownload bool = false
this.SkipPositionsDownload = *NewNullableBool(&skipPositionsDownload)
var loadOwnerData bool = false
this.LoadOwnerData = *NewNullableBool(&loadOwnerData)
return &this
}
// NewBankConnectionUpdateTaskDetailsWithDefaults instantiates a new BankConnectionUpdateTaskDetails 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 NewBankConnectionUpdateTaskDetailsWithDefaults() *BankConnectionUpdateTaskDetails {
this := BankConnectionUpdateTaskDetails{}
var importNewAccounts bool = false
this.ImportNewAccounts = *NewNullableBool(&importNewAccounts)
var skipPositionsDownload bool = false
this.SkipPositionsDownload = *NewNullableBool(&skipPositionsDownload)
var loadOwnerData bool = false
this.LoadOwnerData = *NewNullableBool(&loadOwnerData)
return &this
}
// GetBankConnectionId returns the BankConnectionId field value
func (o *BankConnectionUpdateTaskDetails) GetBankConnectionId() int64 {
if o == nil {
var ret int64
return ret
}
return o.BankConnectionId
}
// GetBankConnectionIdOk returns a tuple with the BankConnectionId field value
// and a boolean to check if the value has been set.
func (o *BankConnectionUpdateTaskDetails) GetBankConnectionIdOk() (*int64, bool) {
if o == nil {
return nil, false
}
return &o.BankConnectionId, true
}
// SetBankConnectionId sets field value
func (o *BankConnectionUpdateTaskDetails) SetBankConnectionId(v int64) {
o.BankConnectionId = v
}
// GetImportNewAccounts returns the ImportNewAccounts field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BankConnectionUpdateTaskDetails) GetImportNewAccounts() bool {
if o == nil || o.ImportNewAccounts.Get() == nil {
var ret bool
return ret
}
return *o.ImportNewAccounts.Get()
}
// GetImportNewAccountsOk returns a tuple with the ImportNewAccounts 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 *BankConnectionUpdateTaskDetails) GetImportNewAccountsOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.ImportNewAccounts.Get(), o.ImportNewAccounts.IsSet()
}
// HasImportNewAccounts returns a boolean if a field has been set.
func (o *BankConnectionUpdateTaskDetails) HasImportNewAccounts() bool {
if o != nil && o.ImportNewAccounts.IsSet() {
return true
}
return false
}
// SetImportNewAccounts gets a reference to the given NullableBool and assigns it to the ImportNewAccounts field.
func (o *BankConnectionUpdateTaskDetails) SetImportNewAccounts(v bool) {
o.ImportNewAccounts.Set(&v)
}
// SetImportNewAccountsNil sets the value for ImportNewAccounts to be an explicit nil
func (o *BankConnectionUpdateTaskDetails) SetImportNewAccountsNil() {
o.ImportNewAccounts.Set(nil)
}
// UnsetImportNewAccounts ensures that no value is present for ImportNewAccounts, not even an explicit nil
func (o *BankConnectionUpdateTaskDetails) UnsetImportNewAccounts() {
o.ImportNewAccounts.Unset()
}
// GetAccountTypes returns the AccountTypes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BankConnectionUpdateTaskDetails) GetAccountTypes() []AccountType {
if o == nil {
var ret []AccountType
return ret
}
return o.AccountTypes
}
// GetAccountTypesOk returns a tuple with the AccountTypes 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 *BankConnectionUpdateTaskDetails) GetAccountTypesOk() ([]AccountType, bool) {
if o == nil || o.AccountTypes == nil {
return nil, false
}
return o.AccountTypes, true
}
// HasAccountTypes returns a boolean if a field has been set.
func (o *BankConnectionUpdateTaskDetails) HasAccountTypes() bool {
if o != nil && o.AccountTypes != nil {
return true
}
return false
}
// SetAccountTypes gets a reference to the given []AccountType and assigns it to the AccountTypes field.
func (o *BankConnectionUpdateTaskDetails) SetAccountTypes(v []AccountType) {
o.AccountTypes = v
}
// GetSkipPositionsDownload returns the SkipPositionsDownload field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BankConnectionUpdateTaskDetails) GetSkipPositionsDownload() bool {
if o == nil || o.SkipPositionsDownload.Get() == nil {
var ret bool
return ret
}
return *o.SkipPositionsDownload.Get()
}
// GetSkipPositionsDownloadOk returns a tuple with the SkipPositionsDownload 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 *BankConnectionUpdateTaskDetails) GetSkipPositionsDownloadOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.SkipPositionsDownload.Get(), o.SkipPositionsDownload.IsSet()
}
// HasSkipPositionsDownload returns a boolean if a field has been set.
func (o *BankConnectionUpdateTaskDetails) HasSkipPositionsDownload() bool {
if o != nil && o.SkipPositionsDownload.IsSet() {
return true
}
return false
}
// SetSkipPositionsDownload gets a reference to the given NullableBool and assigns it to the SkipPositionsDownload field.
func (o *BankConnectionUpdateTaskDetails) SetSkipPositionsDownload(v bool) {
o.SkipPositionsDownload.Set(&v)
}
// SetSkipPositionsDownloadNil sets the value for SkipPositionsDownload to be an explicit nil
func (o *BankConnectionUpdateTaskDetails) SetSkipPositionsDownloadNil() {
o.SkipPositionsDownload.Set(nil)
}
// UnsetSkipPositionsDownload ensures that no value is present for SkipPositionsDownload, not even an explicit nil
func (o *BankConnectionUpdateTaskDetails) UnsetSkipPositionsDownload() {
o.SkipPositionsDownload.Unset()
}
// GetLoadOwnerData returns the LoadOwnerData field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BankConnectionUpdateTaskDetails) GetLoadOwnerData() bool {
if o == nil || o.LoadOwnerData.Get() == nil {
var ret bool
return ret
}
return *o.LoadOwnerData.Get()
}
// GetLoadOwnerDataOk returns a tuple with the LoadOwnerData 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 *BankConnectionUpdateTaskDetails) GetLoadOwnerDataOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.LoadOwnerData.Get(), o.LoadOwnerData.IsSet()
}
// HasLoadOwnerData returns a boolean if a field has been set.
func (o *BankConnectionUpdateTaskDetails) HasLoadOwnerData() bool {
if o != nil && o.LoadOwnerData.IsSet() {
return true
}
return false
}
// SetLoadOwnerData gets a reference to the given NullableBool and assigns it to the LoadOwnerData field.
func (o *BankConnectionUpdateTaskDetails) SetLoadOwnerData(v bool) {
o.LoadOwnerData.Set(&v)
}
// SetLoadOwnerDataNil sets the value for LoadOwnerData to be an explicit nil
func (o *BankConnectionUpdateTaskDetails) SetLoadOwnerDataNil() {
o.LoadOwnerData.Set(nil)
}
// UnsetLoadOwnerData ensures that no value is present for LoadOwnerData, not even an explicit nil
func (o *BankConnectionUpdateTaskDetails) UnsetLoadOwnerData() {
o.LoadOwnerData.Unset()
}
// GetManageSavedSettings returns the ManageSavedSettings field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BankConnectionUpdateTaskDetails) GetManageSavedSettings() []ManageSavedSettings {
if o == nil {
var ret []ManageSavedSettings
return ret
}
return o.ManageSavedSettings
}
// GetManageSavedSettingsOk returns a tuple with the ManageSavedSettings 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 *BankConnectionUpdateTaskDetails) GetManageSavedSettingsOk() ([]ManageSavedSettings, bool) {
if o == nil || o.ManageSavedSettings == nil {
return nil, false
}
return o.ManageSavedSettings, true
}
// HasManageSavedSettings returns a boolean if a field has been set.
func (o *BankConnectionUpdateTaskDetails) HasManageSavedSettings() bool {
if o != nil && o.ManageSavedSettings != nil {
return true
}
return false
}
// SetManageSavedSettings gets a reference to the given []ManageSavedSettings and assigns it to the ManageSavedSettings field.
func (o *BankConnectionUpdateTaskDetails) SetManageSavedSettings(v []ManageSavedSettings) {
o.ManageSavedSettings = v
}
// GetCallbacks returns the Callbacks field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BankConnectionUpdateTaskDetails) GetCallbacks() TaskCallbacks {
if o == nil || o.Callbacks.Get() == nil {
var ret TaskCallbacks
return ret
}
return *o.Callbacks.Get()
}
// GetCallbacksOk returns a tuple with the Callbacks 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 *BankConnectionUpdateTaskDetails) GetCallbacksOk() (*TaskCallbacks, bool) {
if o == nil {
return nil, false
}
return o.Callbacks.Get(), o.Callbacks.IsSet()
}
// HasCallbacks returns a boolean if a field has been set.
func (o *BankConnectionUpdateTaskDetails) HasCallbacks() bool {
if o != nil && o.Callbacks.IsSet() {
return true
}
return false
}
// SetCallbacks gets a reference to the given NullableTaskCallbacks and assigns it to the Callbacks field.
func (o *BankConnectionUpdateTaskDetails) SetCallbacks(v TaskCallbacks) {
o.Callbacks.Set(&v)
}
// SetCallbacksNil sets the value for Callbacks to be an explicit nil
func (o *BankConnectionUpdateTaskDetails) SetCallbacksNil() {
o.Callbacks.Set(nil)
}
// UnsetCallbacks ensures that no value is present for Callbacks, not even an explicit nil
func (o *BankConnectionUpdateTaskDetails) UnsetCallbacks() {
o.Callbacks.Unset()
}
// GetProfileId returns the ProfileId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BankConnectionUpdateTaskDetails) GetProfileId() string {
if o == nil || o.ProfileId.Get() == nil {
var ret string
return ret
}
return *o.ProfileId.Get()
}
// GetProfileIdOk returns a tuple with the ProfileId 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 *BankConnectionUpdateTaskDetails) GetProfileIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ProfileId.Get(), o.ProfileId.IsSet()
}
// HasProfileId returns a boolean if a field has been set.
func (o *BankConnectionUpdateTaskDetails) HasProfileId() bool {
if o != nil && o.ProfileId.IsSet() {
return true
}
return false
}
// SetProfileId gets a reference to the given NullableString and assigns it to the ProfileId field.
func (o *BankConnectionUpdateTaskDetails) SetProfileId(v string) {
o.ProfileId.Set(&v)
}
// SetProfileIdNil sets the value for ProfileId to be an explicit nil
func (o *BankConnectionUpdateTaskDetails) SetProfileIdNil() {
o.ProfileId.Set(nil)
}
// UnsetProfileId ensures that no value is present for ProfileId, not even an explicit nil
func (o *BankConnectionUpdateTaskDetails) UnsetProfileId() {
o.ProfileId.Unset()
}
// GetRedirectUrl returns the RedirectUrl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BankConnectionUpdateTaskDetails) GetRedirectUrl() string {
if o == nil || o.RedirectUrl.Get() == nil {
var ret string
return ret
}
return *o.RedirectUrl.Get()
}
// GetRedirectUrlOk returns a tuple with the RedirectUrl 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 *BankConnectionUpdateTaskDetails) GetRedirectUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.RedirectUrl.Get(), o.RedirectUrl.IsSet()
}
// HasRedirectUrl returns a boolean if a field has been set.
func (o *BankConnectionUpdateTaskDetails) HasRedirectUrl() bool {
if o != nil && o.RedirectUrl.IsSet() {
return true
}
return false
}
// SetRedirectUrl gets a reference to the given NullableString and assigns it to the RedirectUrl field.
func (o *BankConnectionUpdateTaskDetails) SetRedirectUrl(v string) {
o.RedirectUrl.Set(&v)
}
// SetRedirectUrlNil sets the value for RedirectUrl to be an explicit nil
func (o *BankConnectionUpdateTaskDetails) SetRedirectUrlNil() {
o.RedirectUrl.Set(nil)
}
// UnsetRedirectUrl ensures that no value is present for RedirectUrl, not even an explicit nil
func (o *BankConnectionUpdateTaskDetails) UnsetRedirectUrl() {
o.RedirectUrl.Unset()
}
// GetUserMetadata returns the UserMetadata field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BankConnectionUpdateTaskDetails) GetUserMetadata() UserMetadata {
if o == nil || o.UserMetadata.Get() == nil {
var ret UserMetadata
return ret
}
return *o.UserMetadata.Get()
}
// GetUserMetadataOk returns a tuple with the UserMetadata 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 *BankConnectionUpdateTaskDetails) GetUserMetadataOk() (*UserMetadata, bool) {
if o == nil {
return nil, false
}
return o.UserMetadata.Get(), o.UserMetadata.IsSet()
}
// HasUserMetadata returns a boolean if a field has been set.
func (o *BankConnectionUpdateTaskDetails) HasUserMetadata() bool {
if o != nil && o.UserMetadata.IsSet() {
return true
}
return false
}
// SetUserMetadata gets a reference to the given NullableUserMetadata and assigns it to the UserMetadata field.
func (o *BankConnectionUpdateTaskDetails) SetUserMetadata(v UserMetadata) {
o.UserMetadata.Set(&v)
}
// SetUserMetadataNil sets the value for UserMetadata to be an explicit nil
func (o *BankConnectionUpdateTaskDetails) SetUserMetadataNil() {
o.UserMetadata.Set(nil)
}
// UnsetUserMetadata ensures that no value is present for UserMetadata, not even an explicit nil
func (o *BankConnectionUpdateTaskDetails) UnsetUserMetadata() {
o.UserMetadata.Unset()
}
func (o BankConnectionUpdateTaskDetails) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["bankConnectionId"] = o.BankConnectionId
}
if o.ImportNewAccounts.IsSet() {
toSerialize["importNewAccounts"] = o.ImportNewAccounts.Get()
}
if o.AccountTypes != nil {
toSerialize["accountTypes"] = o.AccountTypes
}
if o.SkipPositionsDownload.IsSet() {
toSerialize["skipPositionsDownload"] = o.SkipPositionsDownload.Get()
}
if o.LoadOwnerData.IsSet() {
toSerialize["loadOwnerData"] = o.LoadOwnerData.Get()
}
if o.ManageSavedSettings != nil {
toSerialize["manageSavedSettings"] = o.ManageSavedSettings
}
if o.Callbacks.IsSet() {
toSerialize["callbacks"] = o.Callbacks.Get()
}
if o.ProfileId.IsSet() {
toSerialize["profileId"] = o.ProfileId.Get()
}
if o.RedirectUrl.IsSet() {
toSerialize["redirectUrl"] = o.RedirectUrl.Get()
}
if o.UserMetadata.IsSet() {
toSerialize["userMetadata"] = o.UserMetadata.Get()
}
return json.Marshal(toSerialize)
}
type NullableBankConnectionUpdateTaskDetails struct {
value *BankConnectionUpdateTaskDetails
isSet bool
}
func (v NullableBankConnectionUpdateTaskDetails) Get() *BankConnectionUpdateTaskDetails {
return v.value
}
func (v *NullableBankConnectionUpdateTaskDetails) Set(val *BankConnectionUpdateTaskDetails) {
v.value = val
v.isSet = true
}
func (v NullableBankConnectionUpdateTaskDetails) IsSet() bool {
return v.isSet
}
func (v *NullableBankConnectionUpdateTaskDetails) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBankConnectionUpdateTaskDetails(val *BankConnectionUpdateTaskDetails) *NullableBankConnectionUpdateTaskDetails {
return &NullableBankConnectionUpdateTaskDetails{value: val, isSet: true}
}
func (v NullableBankConnectionUpdateTaskDetails) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBankConnectionUpdateTaskDetails) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}