/
model_translation.go
631 lines (540 loc) · 25.6 KB
/
model_translation.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
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
/*
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:support@finapi.io'>support@finapi.io</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"
)
// Translation Set of titles and subtitles for a particular language, given in the <a target='_blank' href='https://www.iso.org/iso-639-language-codes.html'>ISO-639</a> 2 letter format code, grouped by view
type Translation struct {
BankSearchView NullableShortTranslationBlock `json:"bankSearchView,omitempty"`
BankLoginView NullableTranslationBlock `json:"bankLoginView,omitempty"`
RedirectBankLoginView NullableTranslationBlock `json:"redirectBankLoginView,omitempty"`
ScaMethodSelectionView NullableShortTranslationBlock `json:"scaMethodSelectionView,omitempty"`
ScaChallengeView NullableShortTranslationBlock `json:"scaChallengeView,omitempty"`
AccountSelectionViewAis NullableShortTranslationBlock `json:"accountSelectionViewAis,omitempty"`
AccountSelectionViewPis NullableTranslationBlock `json:"accountSelectionViewPis,omitempty"`
DataDownloadViewAis NullableShortTranslationBlock `json:"dataDownloadViewAis,omitempty"`
PartialConfirmationView NullableShortTranslationBlock `json:"partialConfirmationView,omitempty"`
UpdateSummaryView NullableShortTranslationBlock `json:"updateSummaryView,omitempty"`
ConfirmationView NullableShortTranslationBlock `json:"confirmationView,omitempty"`
ErrorView NullableShortTranslationBlock `json:"errorView,omitempty"`
}
// NewTranslation instantiates a new Translation 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 NewTranslation() *Translation {
this := Translation{}
return &this
}
// NewTranslationWithDefaults instantiates a new Translation 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 NewTranslationWithDefaults() *Translation {
this := Translation{}
return &this
}
// GetBankSearchView returns the BankSearchView field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Translation) GetBankSearchView() ShortTranslationBlock {
if o == nil || o.BankSearchView.Get() == nil {
var ret ShortTranslationBlock
return ret
}
return *o.BankSearchView.Get()
}
// GetBankSearchViewOk returns a tuple with the BankSearchView 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 *Translation) GetBankSearchViewOk() (*ShortTranslationBlock, bool) {
if o == nil {
return nil, false
}
return o.BankSearchView.Get(), o.BankSearchView.IsSet()
}
// HasBankSearchView returns a boolean if a field has been set.
func (o *Translation) HasBankSearchView() bool {
if o != nil && o.BankSearchView.IsSet() {
return true
}
return false
}
// SetBankSearchView gets a reference to the given NullableShortTranslationBlock and assigns it to the BankSearchView field.
func (o *Translation) SetBankSearchView(v ShortTranslationBlock) {
o.BankSearchView.Set(&v)
}
// SetBankSearchViewNil sets the value for BankSearchView to be an explicit nil
func (o *Translation) SetBankSearchViewNil() {
o.BankSearchView.Set(nil)
}
// UnsetBankSearchView ensures that no value is present for BankSearchView, not even an explicit nil
func (o *Translation) UnsetBankSearchView() {
o.BankSearchView.Unset()
}
// GetBankLoginView returns the BankLoginView field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Translation) GetBankLoginView() TranslationBlock {
if o == nil || o.BankLoginView.Get() == nil {
var ret TranslationBlock
return ret
}
return *o.BankLoginView.Get()
}
// GetBankLoginViewOk returns a tuple with the BankLoginView 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 *Translation) GetBankLoginViewOk() (*TranslationBlock, bool) {
if o == nil {
return nil, false
}
return o.BankLoginView.Get(), o.BankLoginView.IsSet()
}
// HasBankLoginView returns a boolean if a field has been set.
func (o *Translation) HasBankLoginView() bool {
if o != nil && o.BankLoginView.IsSet() {
return true
}
return false
}
// SetBankLoginView gets a reference to the given NullableTranslationBlock and assigns it to the BankLoginView field.
func (o *Translation) SetBankLoginView(v TranslationBlock) {
o.BankLoginView.Set(&v)
}
// SetBankLoginViewNil sets the value for BankLoginView to be an explicit nil
func (o *Translation) SetBankLoginViewNil() {
o.BankLoginView.Set(nil)
}
// UnsetBankLoginView ensures that no value is present for BankLoginView, not even an explicit nil
func (o *Translation) UnsetBankLoginView() {
o.BankLoginView.Unset()
}
// GetRedirectBankLoginView returns the RedirectBankLoginView field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Translation) GetRedirectBankLoginView() TranslationBlock {
if o == nil || o.RedirectBankLoginView.Get() == nil {
var ret TranslationBlock
return ret
}
return *o.RedirectBankLoginView.Get()
}
// GetRedirectBankLoginViewOk returns a tuple with the RedirectBankLoginView 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 *Translation) GetRedirectBankLoginViewOk() (*TranslationBlock, bool) {
if o == nil {
return nil, false
}
return o.RedirectBankLoginView.Get(), o.RedirectBankLoginView.IsSet()
}
// HasRedirectBankLoginView returns a boolean if a field has been set.
func (o *Translation) HasRedirectBankLoginView() bool {
if o != nil && o.RedirectBankLoginView.IsSet() {
return true
}
return false
}
// SetRedirectBankLoginView gets a reference to the given NullableTranslationBlock and assigns it to the RedirectBankLoginView field.
func (o *Translation) SetRedirectBankLoginView(v TranslationBlock) {
o.RedirectBankLoginView.Set(&v)
}
// SetRedirectBankLoginViewNil sets the value for RedirectBankLoginView to be an explicit nil
func (o *Translation) SetRedirectBankLoginViewNil() {
o.RedirectBankLoginView.Set(nil)
}
// UnsetRedirectBankLoginView ensures that no value is present for RedirectBankLoginView, not even an explicit nil
func (o *Translation) UnsetRedirectBankLoginView() {
o.RedirectBankLoginView.Unset()
}
// GetScaMethodSelectionView returns the ScaMethodSelectionView field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Translation) GetScaMethodSelectionView() ShortTranslationBlock {
if o == nil || o.ScaMethodSelectionView.Get() == nil {
var ret ShortTranslationBlock
return ret
}
return *o.ScaMethodSelectionView.Get()
}
// GetScaMethodSelectionViewOk returns a tuple with the ScaMethodSelectionView 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 *Translation) GetScaMethodSelectionViewOk() (*ShortTranslationBlock, bool) {
if o == nil {
return nil, false
}
return o.ScaMethodSelectionView.Get(), o.ScaMethodSelectionView.IsSet()
}
// HasScaMethodSelectionView returns a boolean if a field has been set.
func (o *Translation) HasScaMethodSelectionView() bool {
if o != nil && o.ScaMethodSelectionView.IsSet() {
return true
}
return false
}
// SetScaMethodSelectionView gets a reference to the given NullableShortTranslationBlock and assigns it to the ScaMethodSelectionView field.
func (o *Translation) SetScaMethodSelectionView(v ShortTranslationBlock) {
o.ScaMethodSelectionView.Set(&v)
}
// SetScaMethodSelectionViewNil sets the value for ScaMethodSelectionView to be an explicit nil
func (o *Translation) SetScaMethodSelectionViewNil() {
o.ScaMethodSelectionView.Set(nil)
}
// UnsetScaMethodSelectionView ensures that no value is present for ScaMethodSelectionView, not even an explicit nil
func (o *Translation) UnsetScaMethodSelectionView() {
o.ScaMethodSelectionView.Unset()
}
// GetScaChallengeView returns the ScaChallengeView field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Translation) GetScaChallengeView() ShortTranslationBlock {
if o == nil || o.ScaChallengeView.Get() == nil {
var ret ShortTranslationBlock
return ret
}
return *o.ScaChallengeView.Get()
}
// GetScaChallengeViewOk returns a tuple with the ScaChallengeView 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 *Translation) GetScaChallengeViewOk() (*ShortTranslationBlock, bool) {
if o == nil {
return nil, false
}
return o.ScaChallengeView.Get(), o.ScaChallengeView.IsSet()
}
// HasScaChallengeView returns a boolean if a field has been set.
func (o *Translation) HasScaChallengeView() bool {
if o != nil && o.ScaChallengeView.IsSet() {
return true
}
return false
}
// SetScaChallengeView gets a reference to the given NullableShortTranslationBlock and assigns it to the ScaChallengeView field.
func (o *Translation) SetScaChallengeView(v ShortTranslationBlock) {
o.ScaChallengeView.Set(&v)
}
// SetScaChallengeViewNil sets the value for ScaChallengeView to be an explicit nil
func (o *Translation) SetScaChallengeViewNil() {
o.ScaChallengeView.Set(nil)
}
// UnsetScaChallengeView ensures that no value is present for ScaChallengeView, not even an explicit nil
func (o *Translation) UnsetScaChallengeView() {
o.ScaChallengeView.Unset()
}
// GetAccountSelectionViewAis returns the AccountSelectionViewAis field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Translation) GetAccountSelectionViewAis() ShortTranslationBlock {
if o == nil || o.AccountSelectionViewAis.Get() == nil {
var ret ShortTranslationBlock
return ret
}
return *o.AccountSelectionViewAis.Get()
}
// GetAccountSelectionViewAisOk returns a tuple with the AccountSelectionViewAis 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 *Translation) GetAccountSelectionViewAisOk() (*ShortTranslationBlock, bool) {
if o == nil {
return nil, false
}
return o.AccountSelectionViewAis.Get(), o.AccountSelectionViewAis.IsSet()
}
// HasAccountSelectionViewAis returns a boolean if a field has been set.
func (o *Translation) HasAccountSelectionViewAis() bool {
if o != nil && o.AccountSelectionViewAis.IsSet() {
return true
}
return false
}
// SetAccountSelectionViewAis gets a reference to the given NullableShortTranslationBlock and assigns it to the AccountSelectionViewAis field.
func (o *Translation) SetAccountSelectionViewAis(v ShortTranslationBlock) {
o.AccountSelectionViewAis.Set(&v)
}
// SetAccountSelectionViewAisNil sets the value for AccountSelectionViewAis to be an explicit nil
func (o *Translation) SetAccountSelectionViewAisNil() {
o.AccountSelectionViewAis.Set(nil)
}
// UnsetAccountSelectionViewAis ensures that no value is present for AccountSelectionViewAis, not even an explicit nil
func (o *Translation) UnsetAccountSelectionViewAis() {
o.AccountSelectionViewAis.Unset()
}
// GetAccountSelectionViewPis returns the AccountSelectionViewPis field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Translation) GetAccountSelectionViewPis() TranslationBlock {
if o == nil || o.AccountSelectionViewPis.Get() == nil {
var ret TranslationBlock
return ret
}
return *o.AccountSelectionViewPis.Get()
}
// GetAccountSelectionViewPisOk returns a tuple with the AccountSelectionViewPis 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 *Translation) GetAccountSelectionViewPisOk() (*TranslationBlock, bool) {
if o == nil {
return nil, false
}
return o.AccountSelectionViewPis.Get(), o.AccountSelectionViewPis.IsSet()
}
// HasAccountSelectionViewPis returns a boolean if a field has been set.
func (o *Translation) HasAccountSelectionViewPis() bool {
if o != nil && o.AccountSelectionViewPis.IsSet() {
return true
}
return false
}
// SetAccountSelectionViewPis gets a reference to the given NullableTranslationBlock and assigns it to the AccountSelectionViewPis field.
func (o *Translation) SetAccountSelectionViewPis(v TranslationBlock) {
o.AccountSelectionViewPis.Set(&v)
}
// SetAccountSelectionViewPisNil sets the value for AccountSelectionViewPis to be an explicit nil
func (o *Translation) SetAccountSelectionViewPisNil() {
o.AccountSelectionViewPis.Set(nil)
}
// UnsetAccountSelectionViewPis ensures that no value is present for AccountSelectionViewPis, not even an explicit nil
func (o *Translation) UnsetAccountSelectionViewPis() {
o.AccountSelectionViewPis.Unset()
}
// GetDataDownloadViewAis returns the DataDownloadViewAis field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Translation) GetDataDownloadViewAis() ShortTranslationBlock {
if o == nil || o.DataDownloadViewAis.Get() == nil {
var ret ShortTranslationBlock
return ret
}
return *o.DataDownloadViewAis.Get()
}
// GetDataDownloadViewAisOk returns a tuple with the DataDownloadViewAis 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 *Translation) GetDataDownloadViewAisOk() (*ShortTranslationBlock, bool) {
if o == nil {
return nil, false
}
return o.DataDownloadViewAis.Get(), o.DataDownloadViewAis.IsSet()
}
// HasDataDownloadViewAis returns a boolean if a field has been set.
func (o *Translation) HasDataDownloadViewAis() bool {
if o != nil && o.DataDownloadViewAis.IsSet() {
return true
}
return false
}
// SetDataDownloadViewAis gets a reference to the given NullableShortTranslationBlock and assigns it to the DataDownloadViewAis field.
func (o *Translation) SetDataDownloadViewAis(v ShortTranslationBlock) {
o.DataDownloadViewAis.Set(&v)
}
// SetDataDownloadViewAisNil sets the value for DataDownloadViewAis to be an explicit nil
func (o *Translation) SetDataDownloadViewAisNil() {
o.DataDownloadViewAis.Set(nil)
}
// UnsetDataDownloadViewAis ensures that no value is present for DataDownloadViewAis, not even an explicit nil
func (o *Translation) UnsetDataDownloadViewAis() {
o.DataDownloadViewAis.Unset()
}
// GetPartialConfirmationView returns the PartialConfirmationView field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Translation) GetPartialConfirmationView() ShortTranslationBlock {
if o == nil || o.PartialConfirmationView.Get() == nil {
var ret ShortTranslationBlock
return ret
}
return *o.PartialConfirmationView.Get()
}
// GetPartialConfirmationViewOk returns a tuple with the PartialConfirmationView 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 *Translation) GetPartialConfirmationViewOk() (*ShortTranslationBlock, bool) {
if o == nil {
return nil, false
}
return o.PartialConfirmationView.Get(), o.PartialConfirmationView.IsSet()
}
// HasPartialConfirmationView returns a boolean if a field has been set.
func (o *Translation) HasPartialConfirmationView() bool {
if o != nil && o.PartialConfirmationView.IsSet() {
return true
}
return false
}
// SetPartialConfirmationView gets a reference to the given NullableShortTranslationBlock and assigns it to the PartialConfirmationView field.
func (o *Translation) SetPartialConfirmationView(v ShortTranslationBlock) {
o.PartialConfirmationView.Set(&v)
}
// SetPartialConfirmationViewNil sets the value for PartialConfirmationView to be an explicit nil
func (o *Translation) SetPartialConfirmationViewNil() {
o.PartialConfirmationView.Set(nil)
}
// UnsetPartialConfirmationView ensures that no value is present for PartialConfirmationView, not even an explicit nil
func (o *Translation) UnsetPartialConfirmationView() {
o.PartialConfirmationView.Unset()
}
// GetUpdateSummaryView returns the UpdateSummaryView field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Translation) GetUpdateSummaryView() ShortTranslationBlock {
if o == nil || o.UpdateSummaryView.Get() == nil {
var ret ShortTranslationBlock
return ret
}
return *o.UpdateSummaryView.Get()
}
// GetUpdateSummaryViewOk returns a tuple with the UpdateSummaryView 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 *Translation) GetUpdateSummaryViewOk() (*ShortTranslationBlock, bool) {
if o == nil {
return nil, false
}
return o.UpdateSummaryView.Get(), o.UpdateSummaryView.IsSet()
}
// HasUpdateSummaryView returns a boolean if a field has been set.
func (o *Translation) HasUpdateSummaryView() bool {
if o != nil && o.UpdateSummaryView.IsSet() {
return true
}
return false
}
// SetUpdateSummaryView gets a reference to the given NullableShortTranslationBlock and assigns it to the UpdateSummaryView field.
func (o *Translation) SetUpdateSummaryView(v ShortTranslationBlock) {
o.UpdateSummaryView.Set(&v)
}
// SetUpdateSummaryViewNil sets the value for UpdateSummaryView to be an explicit nil
func (o *Translation) SetUpdateSummaryViewNil() {
o.UpdateSummaryView.Set(nil)
}
// UnsetUpdateSummaryView ensures that no value is present for UpdateSummaryView, not even an explicit nil
func (o *Translation) UnsetUpdateSummaryView() {
o.UpdateSummaryView.Unset()
}
// GetConfirmationView returns the ConfirmationView field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Translation) GetConfirmationView() ShortTranslationBlock {
if o == nil || o.ConfirmationView.Get() == nil {
var ret ShortTranslationBlock
return ret
}
return *o.ConfirmationView.Get()
}
// GetConfirmationViewOk returns a tuple with the ConfirmationView 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 *Translation) GetConfirmationViewOk() (*ShortTranslationBlock, bool) {
if o == nil {
return nil, false
}
return o.ConfirmationView.Get(), o.ConfirmationView.IsSet()
}
// HasConfirmationView returns a boolean if a field has been set.
func (o *Translation) HasConfirmationView() bool {
if o != nil && o.ConfirmationView.IsSet() {
return true
}
return false
}
// SetConfirmationView gets a reference to the given NullableShortTranslationBlock and assigns it to the ConfirmationView field.
func (o *Translation) SetConfirmationView(v ShortTranslationBlock) {
o.ConfirmationView.Set(&v)
}
// SetConfirmationViewNil sets the value for ConfirmationView to be an explicit nil
func (o *Translation) SetConfirmationViewNil() {
o.ConfirmationView.Set(nil)
}
// UnsetConfirmationView ensures that no value is present for ConfirmationView, not even an explicit nil
func (o *Translation) UnsetConfirmationView() {
o.ConfirmationView.Unset()
}
// GetErrorView returns the ErrorView field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Translation) GetErrorView() ShortTranslationBlock {
if o == nil || o.ErrorView.Get() == nil {
var ret ShortTranslationBlock
return ret
}
return *o.ErrorView.Get()
}
// GetErrorViewOk returns a tuple with the ErrorView 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 *Translation) GetErrorViewOk() (*ShortTranslationBlock, bool) {
if o == nil {
return nil, false
}
return o.ErrorView.Get(), o.ErrorView.IsSet()
}
// HasErrorView returns a boolean if a field has been set.
func (o *Translation) HasErrorView() bool {
if o != nil && o.ErrorView.IsSet() {
return true
}
return false
}
// SetErrorView gets a reference to the given NullableShortTranslationBlock and assigns it to the ErrorView field.
func (o *Translation) SetErrorView(v ShortTranslationBlock) {
o.ErrorView.Set(&v)
}
// SetErrorViewNil sets the value for ErrorView to be an explicit nil
func (o *Translation) SetErrorViewNil() {
o.ErrorView.Set(nil)
}
// UnsetErrorView ensures that no value is present for ErrorView, not even an explicit nil
func (o *Translation) UnsetErrorView() {
o.ErrorView.Unset()
}
func (o Translation) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.BankSearchView.IsSet() {
toSerialize["bankSearchView"] = o.BankSearchView.Get()
}
if o.BankLoginView.IsSet() {
toSerialize["bankLoginView"] = o.BankLoginView.Get()
}
if o.RedirectBankLoginView.IsSet() {
toSerialize["redirectBankLoginView"] = o.RedirectBankLoginView.Get()
}
if o.ScaMethodSelectionView.IsSet() {
toSerialize["scaMethodSelectionView"] = o.ScaMethodSelectionView.Get()
}
if o.ScaChallengeView.IsSet() {
toSerialize["scaChallengeView"] = o.ScaChallengeView.Get()
}
if o.AccountSelectionViewAis.IsSet() {
toSerialize["accountSelectionViewAis"] = o.AccountSelectionViewAis.Get()
}
if o.AccountSelectionViewPis.IsSet() {
toSerialize["accountSelectionViewPis"] = o.AccountSelectionViewPis.Get()
}
if o.DataDownloadViewAis.IsSet() {
toSerialize["dataDownloadViewAis"] = o.DataDownloadViewAis.Get()
}
if o.PartialConfirmationView.IsSet() {
toSerialize["partialConfirmationView"] = o.PartialConfirmationView.Get()
}
if o.UpdateSummaryView.IsSet() {
toSerialize["updateSummaryView"] = o.UpdateSummaryView.Get()
}
if o.ConfirmationView.IsSet() {
toSerialize["confirmationView"] = o.ConfirmationView.Get()
}
if o.ErrorView.IsSet() {
toSerialize["errorView"] = o.ErrorView.Get()
}
return json.Marshal(toSerialize)
}
type NullableTranslation struct {
value *Translation
isSet bool
}
func (v NullableTranslation) Get() *Translation {
return v.value
}
func (v *NullableTranslation) Set(val *Translation) {
v.value = val
v.isSet = true
}
func (v NullableTranslation) IsSet() bool {
return v.isSet
}
func (v *NullableTranslation) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTranslation(val *Translation) *NullableTranslation {
return &NullableTranslation{value: val, isSet: true}
}
func (v NullableTranslation) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTranslation) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}