forked from alpacahq/go-onfido-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_check.go
867 lines (743 loc) · 24 KB
/
model_check.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
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
/*
Onfido API v3.6
The Onfido API is used to submit check requests.
API version: 3.6.0
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package onfido_openapi
import (
"encoding/json"
"time"
)
// checks if the Check type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Check{}
// Check struct for Check
type Check struct {
// The unique identifier for the check. Read-only.
Id *string `json:"id,omitempty"`
// The date and time when this check was created. Read-only.
CreatedAt *time.Time `json:"created_at,omitempty"`
// The uri of this resource. Read-only.
Href *string `json:"href,omitempty"`
// The current state of the check in the checking process. Read-only.
Status *string `json:"status,omitempty"`
// The overall result of the check, based on the results of the constituent reports. Read-only.
Result *string `json:"result,omitempty"`
// A link to a PDF output of the check results. Append `.pdf` to get the pdf file. Read-only.
DownloadUri *string `json:"download_uri,omitempty"`
// A link to the applicant form, if `applicant_provides_data` is `true`. Read-only.
FormUri *string `json:"form_uri,omitempty"`
// For checks where `applicant_provides_data` is `true`, redirect to this URI when the applicant has submitted their data. Read-only.
RedirectUri *string `json:"redirect_uri,omitempty"`
// A link to the corresponding results page on the Onfido dashboard.
ResultsUri *string `json:"results_uri,omitempty"`
// An array of report names (strings).
ReportNames []string `json:"report_names,omitempty"`
// The ID of the applicant to do the check on.
ApplicantId *string `json:"applicant_id,omitempty"`
// Indicates whether the privacy notices and terms of service have been read and, where specific laws require, that consent has been given for Onfido.
PrivacyNoticesReadConsentGiven *bool `json:"privacy_notices_read_consent_given,omitempty"`
// Array of tags being assigned to this check.
Tags []string `json:"tags,omitempty"`
// Send an applicant form to applicant to complete to proceed with check. Defaults to false.
ApplicantProvidesData *bool `json:"applicant_provides_data,omitempty"`
// For checks where `applicant_provides_data` is `true`, applicant form will not be automatically sent if `suppress_form_emails` is set to `true`. You can manually send the form at any time after the check has been created, using the link found in the form_uri attribute of the check object. Write-only. Defaults to false.
SuppressFormEmails *bool `json:"suppress_form_emails,omitempty"`
// Defaults to `true`. Write-only. If set to `false`, you will only receive a response when all reports in your check have completed.
Asynchronous *bool `json:"asynchronous,omitempty"`
// Optional. An array of strings describing which webhooks to trigger for this check. By default, all webhooks registered in the account will be triggered and this value will be null in the responses.
WebhookIds []string `json:"webhook_ids,omitempty"`
// An array of report ids.
ReportIds []string `json:"report_ids,omitempty"`
// Optional. Array of strings describing which document to process in checks containing a Document report or a Facial Similarity report, or both. By default, the most recently uploaded document is used. `document_ids` is only usable with Document and Facial Similarity reports.
DocumentIds []string `json:"document_ids,omitempty"`
// Returns a pre-determined consider sub-result in sandbox for the specific reports in the consider array.
Consider []string `json:"consider,omitempty"`
// Triggers a pre-determined sub-result response for sandbox Document reports.
SubResult *string `json:"sub_result,omitempty"`
}
// NewCheck instantiates a new Check 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 NewCheck() *Check {
this := Check{}
return &this
}
// NewCheckWithDefaults instantiates a new Check 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 NewCheckWithDefaults() *Check {
this := Check{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *Check) GetId() string {
if o == nil || IsNil(o.Id) {
var ret string
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetIdOk() (*string, bool) {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *Check) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *Check) SetId(v string) {
o.Id = &v
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *Check) GetCreatedAt() time.Time {
if o == nil || IsNil(o.CreatedAt) {
var ret time.Time
return ret
}
return *o.CreatedAt
}
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetCreatedAtOk() (*time.Time, bool) {
if o == nil || IsNil(o.CreatedAt) {
return nil, false
}
return o.CreatedAt, true
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *Check) HasCreatedAt() bool {
if o != nil && !IsNil(o.CreatedAt) {
return true
}
return false
}
// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *Check) SetCreatedAt(v time.Time) {
o.CreatedAt = &v
}
// GetHref returns the Href field value if set, zero value otherwise.
func (o *Check) GetHref() string {
if o == nil || IsNil(o.Href) {
var ret string
return ret
}
return *o.Href
}
// GetHrefOk returns a tuple with the Href field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetHrefOk() (*string, bool) {
if o == nil || IsNil(o.Href) {
return nil, false
}
return o.Href, true
}
// HasHref returns a boolean if a field has been set.
func (o *Check) HasHref() bool {
if o != nil && !IsNil(o.Href) {
return true
}
return false
}
// SetHref gets a reference to the given string and assigns it to the Href field.
func (o *Check) SetHref(v string) {
o.Href = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *Check) GetStatus() string {
if o == nil || IsNil(o.Status) {
var ret string
return ret
}
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetStatusOk() (*string, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *Check) HasStatus() bool {
if o != nil && !IsNil(o.Status) {
return true
}
return false
}
// SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *Check) SetStatus(v string) {
o.Status = &v
}
// GetResult returns the Result field value if set, zero value otherwise.
func (o *Check) GetResult() string {
if o == nil || IsNil(o.Result) {
var ret string
return ret
}
return *o.Result
}
// GetResultOk returns a tuple with the Result field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetResultOk() (*string, bool) {
if o == nil || IsNil(o.Result) {
return nil, false
}
return o.Result, true
}
// HasResult returns a boolean if a field has been set.
func (o *Check) HasResult() bool {
if o != nil && !IsNil(o.Result) {
return true
}
return false
}
// SetResult gets a reference to the given string and assigns it to the Result field.
func (o *Check) SetResult(v string) {
o.Result = &v
}
// GetDownloadUri returns the DownloadUri field value if set, zero value otherwise.
func (o *Check) GetDownloadUri() string {
if o == nil || IsNil(o.DownloadUri) {
var ret string
return ret
}
return *o.DownloadUri
}
// GetDownloadUriOk returns a tuple with the DownloadUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetDownloadUriOk() (*string, bool) {
if o == nil || IsNil(o.DownloadUri) {
return nil, false
}
return o.DownloadUri, true
}
// HasDownloadUri returns a boolean if a field has been set.
func (o *Check) HasDownloadUri() bool {
if o != nil && !IsNil(o.DownloadUri) {
return true
}
return false
}
// SetDownloadUri gets a reference to the given string and assigns it to the DownloadUri field.
func (o *Check) SetDownloadUri(v string) {
o.DownloadUri = &v
}
// GetFormUri returns the FormUri field value if set, zero value otherwise.
func (o *Check) GetFormUri() string {
if o == nil || IsNil(o.FormUri) {
var ret string
return ret
}
return *o.FormUri
}
// GetFormUriOk returns a tuple with the FormUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetFormUriOk() (*string, bool) {
if o == nil || IsNil(o.FormUri) {
return nil, false
}
return o.FormUri, true
}
// HasFormUri returns a boolean if a field has been set.
func (o *Check) HasFormUri() bool {
if o != nil && !IsNil(o.FormUri) {
return true
}
return false
}
// SetFormUri gets a reference to the given string and assigns it to the FormUri field.
func (o *Check) SetFormUri(v string) {
o.FormUri = &v
}
// GetRedirectUri returns the RedirectUri field value if set, zero value otherwise.
func (o *Check) GetRedirectUri() string {
if o == nil || IsNil(o.RedirectUri) {
var ret string
return ret
}
return *o.RedirectUri
}
// GetRedirectUriOk returns a tuple with the RedirectUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetRedirectUriOk() (*string, bool) {
if o == nil || IsNil(o.RedirectUri) {
return nil, false
}
return o.RedirectUri, true
}
// HasRedirectUri returns a boolean if a field has been set.
func (o *Check) HasRedirectUri() bool {
if o != nil && !IsNil(o.RedirectUri) {
return true
}
return false
}
// SetRedirectUri gets a reference to the given string and assigns it to the RedirectUri field.
func (o *Check) SetRedirectUri(v string) {
o.RedirectUri = &v
}
// GetResultsUri returns the ResultsUri field value if set, zero value otherwise.
func (o *Check) GetResultsUri() string {
if o == nil || IsNil(o.ResultsUri) {
var ret string
return ret
}
return *o.ResultsUri
}
// GetResultsUriOk returns a tuple with the ResultsUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetResultsUriOk() (*string, bool) {
if o == nil || IsNil(o.ResultsUri) {
return nil, false
}
return o.ResultsUri, true
}
// HasResultsUri returns a boolean if a field has been set.
func (o *Check) HasResultsUri() bool {
if o != nil && !IsNil(o.ResultsUri) {
return true
}
return false
}
// SetResultsUri gets a reference to the given string and assigns it to the ResultsUri field.
func (o *Check) SetResultsUri(v string) {
o.ResultsUri = &v
}
// GetReportNames returns the ReportNames field value if set, zero value otherwise.
func (o *Check) GetReportNames() []string {
if o == nil || IsNil(o.ReportNames) {
var ret []string
return ret
}
return o.ReportNames
}
// GetReportNamesOk returns a tuple with the ReportNames field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetReportNamesOk() ([]string, bool) {
if o == nil || IsNil(o.ReportNames) {
return nil, false
}
return o.ReportNames, true
}
// HasReportNames returns a boolean if a field has been set.
func (o *Check) HasReportNames() bool {
if o != nil && !IsNil(o.ReportNames) {
return true
}
return false
}
// SetReportNames gets a reference to the given []string and assigns it to the ReportNames field.
func (o *Check) SetReportNames(v []string) {
o.ReportNames = v
}
// GetApplicantId returns the ApplicantId field value if set, zero value otherwise.
func (o *Check) GetApplicantId() string {
if o == nil || IsNil(o.ApplicantId) {
var ret string
return ret
}
return *o.ApplicantId
}
// GetApplicantIdOk returns a tuple with the ApplicantId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetApplicantIdOk() (*string, bool) {
if o == nil || IsNil(o.ApplicantId) {
return nil, false
}
return o.ApplicantId, true
}
// HasApplicantId returns a boolean if a field has been set.
func (o *Check) HasApplicantId() bool {
if o != nil && !IsNil(o.ApplicantId) {
return true
}
return false
}
// SetApplicantId gets a reference to the given string and assigns it to the ApplicantId field.
func (o *Check) SetApplicantId(v string) {
o.ApplicantId = &v
}
// GetPrivacyNoticesReadConsentGiven returns the PrivacyNoticesReadConsentGiven field value if set, zero value otherwise.
func (o *Check) GetPrivacyNoticesReadConsentGiven() bool {
if o == nil || IsNil(o.PrivacyNoticesReadConsentGiven) {
var ret bool
return ret
}
return *o.PrivacyNoticesReadConsentGiven
}
// GetPrivacyNoticesReadConsentGivenOk returns a tuple with the PrivacyNoticesReadConsentGiven field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetPrivacyNoticesReadConsentGivenOk() (*bool, bool) {
if o == nil || IsNil(o.PrivacyNoticesReadConsentGiven) {
return nil, false
}
return o.PrivacyNoticesReadConsentGiven, true
}
// HasPrivacyNoticesReadConsentGiven returns a boolean if a field has been set.
func (o *Check) HasPrivacyNoticesReadConsentGiven() bool {
if o != nil && !IsNil(o.PrivacyNoticesReadConsentGiven) {
return true
}
return false
}
// SetPrivacyNoticesReadConsentGiven gets a reference to the given bool and assigns it to the PrivacyNoticesReadConsentGiven field.
func (o *Check) SetPrivacyNoticesReadConsentGiven(v bool) {
o.PrivacyNoticesReadConsentGiven = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *Check) GetTags() []string {
if o == nil || IsNil(o.Tags) {
var ret []string
return ret
}
return o.Tags
}
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetTagsOk() ([]string, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
return o.Tags, true
}
// HasTags returns a boolean if a field has been set.
func (o *Check) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
return false
}
// SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *Check) SetTags(v []string) {
o.Tags = v
}
// GetApplicantProvidesData returns the ApplicantProvidesData field value if set, zero value otherwise.
func (o *Check) GetApplicantProvidesData() bool {
if o == nil || IsNil(o.ApplicantProvidesData) {
var ret bool
return ret
}
return *o.ApplicantProvidesData
}
// GetApplicantProvidesDataOk returns a tuple with the ApplicantProvidesData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetApplicantProvidesDataOk() (*bool, bool) {
if o == nil || IsNil(o.ApplicantProvidesData) {
return nil, false
}
return o.ApplicantProvidesData, true
}
// HasApplicantProvidesData returns a boolean if a field has been set.
func (o *Check) HasApplicantProvidesData() bool {
if o != nil && !IsNil(o.ApplicantProvidesData) {
return true
}
return false
}
// SetApplicantProvidesData gets a reference to the given bool and assigns it to the ApplicantProvidesData field.
func (o *Check) SetApplicantProvidesData(v bool) {
o.ApplicantProvidesData = &v
}
// GetSuppressFormEmails returns the SuppressFormEmails field value if set, zero value otherwise.
func (o *Check) GetSuppressFormEmails() bool {
if o == nil || IsNil(o.SuppressFormEmails) {
var ret bool
return ret
}
return *o.SuppressFormEmails
}
// GetSuppressFormEmailsOk returns a tuple with the SuppressFormEmails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetSuppressFormEmailsOk() (*bool, bool) {
if o == nil || IsNil(o.SuppressFormEmails) {
return nil, false
}
return o.SuppressFormEmails, true
}
// HasSuppressFormEmails returns a boolean if a field has been set.
func (o *Check) HasSuppressFormEmails() bool {
if o != nil && !IsNil(o.SuppressFormEmails) {
return true
}
return false
}
// SetSuppressFormEmails gets a reference to the given bool and assigns it to the SuppressFormEmails field.
func (o *Check) SetSuppressFormEmails(v bool) {
o.SuppressFormEmails = &v
}
// GetAsynchronous returns the Asynchronous field value if set, zero value otherwise.
func (o *Check) GetAsynchronous() bool {
if o == nil || IsNil(o.Asynchronous) {
var ret bool
return ret
}
return *o.Asynchronous
}
// GetAsynchronousOk returns a tuple with the Asynchronous field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetAsynchronousOk() (*bool, bool) {
if o == nil || IsNil(o.Asynchronous) {
return nil, false
}
return o.Asynchronous, true
}
// HasAsynchronous returns a boolean if a field has been set.
func (o *Check) HasAsynchronous() bool {
if o != nil && !IsNil(o.Asynchronous) {
return true
}
return false
}
// SetAsynchronous gets a reference to the given bool and assigns it to the Asynchronous field.
func (o *Check) SetAsynchronous(v bool) {
o.Asynchronous = &v
}
// GetWebhookIds returns the WebhookIds field value if set, zero value otherwise.
func (o *Check) GetWebhookIds() []string {
if o == nil || IsNil(o.WebhookIds) {
var ret []string
return ret
}
return o.WebhookIds
}
// GetWebhookIdsOk returns a tuple with the WebhookIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetWebhookIdsOk() ([]string, bool) {
if o == nil || IsNil(o.WebhookIds) {
return nil, false
}
return o.WebhookIds, true
}
// HasWebhookIds returns a boolean if a field has been set.
func (o *Check) HasWebhookIds() bool {
if o != nil && !IsNil(o.WebhookIds) {
return true
}
return false
}
// SetWebhookIds gets a reference to the given []string and assigns it to the WebhookIds field.
func (o *Check) SetWebhookIds(v []string) {
o.WebhookIds = v
}
// GetReportIds returns the ReportIds field value if set, zero value otherwise.
func (o *Check) GetReportIds() []string {
if o == nil || IsNil(o.ReportIds) {
var ret []string
return ret
}
return o.ReportIds
}
// GetReportIdsOk returns a tuple with the ReportIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetReportIdsOk() ([]string, bool) {
if o == nil || IsNil(o.ReportIds) {
return nil, false
}
return o.ReportIds, true
}
// HasReportIds returns a boolean if a field has been set.
func (o *Check) HasReportIds() bool {
if o != nil && !IsNil(o.ReportIds) {
return true
}
return false
}
// SetReportIds gets a reference to the given []string and assigns it to the ReportIds field.
func (o *Check) SetReportIds(v []string) {
o.ReportIds = v
}
// GetDocumentIds returns the DocumentIds field value if set, zero value otherwise.
func (o *Check) GetDocumentIds() []string {
if o == nil || IsNil(o.DocumentIds) {
var ret []string
return ret
}
return o.DocumentIds
}
// GetDocumentIdsOk returns a tuple with the DocumentIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetDocumentIdsOk() ([]string, bool) {
if o == nil || IsNil(o.DocumentIds) {
return nil, false
}
return o.DocumentIds, true
}
// HasDocumentIds returns a boolean if a field has been set.
func (o *Check) HasDocumentIds() bool {
if o != nil && !IsNil(o.DocumentIds) {
return true
}
return false
}
// SetDocumentIds gets a reference to the given []string and assigns it to the DocumentIds field.
func (o *Check) SetDocumentIds(v []string) {
o.DocumentIds = v
}
// GetConsider returns the Consider field value if set, zero value otherwise.
func (o *Check) GetConsider() []string {
if o == nil || IsNil(o.Consider) {
var ret []string
return ret
}
return o.Consider
}
// GetConsiderOk returns a tuple with the Consider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetConsiderOk() ([]string, bool) {
if o == nil || IsNil(o.Consider) {
return nil, false
}
return o.Consider, true
}
// HasConsider returns a boolean if a field has been set.
func (o *Check) HasConsider() bool {
if o != nil && !IsNil(o.Consider) {
return true
}
return false
}
// SetConsider gets a reference to the given []string and assigns it to the Consider field.
func (o *Check) SetConsider(v []string) {
o.Consider = v
}
// GetSubResult returns the SubResult field value if set, zero value otherwise.
func (o *Check) GetSubResult() string {
if o == nil || IsNil(o.SubResult) {
var ret string
return ret
}
return *o.SubResult
}
// GetSubResultOk returns a tuple with the SubResult field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Check) GetSubResultOk() (*string, bool) {
if o == nil || IsNil(o.SubResult) {
return nil, false
}
return o.SubResult, true
}
// HasSubResult returns a boolean if a field has been set.
func (o *Check) HasSubResult() bool {
if o != nil && !IsNil(o.SubResult) {
return true
}
return false
}
// SetSubResult gets a reference to the given string and assigns it to the SubResult field.
func (o *Check) SetSubResult(v string) {
o.SubResult = &v
}
func (o Check) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o Check) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.CreatedAt) {
toSerialize["created_at"] = o.CreatedAt
}
if !IsNil(o.Href) {
toSerialize["href"] = o.Href
}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
if !IsNil(o.Result) {
toSerialize["result"] = o.Result
}
if !IsNil(o.DownloadUri) {
toSerialize["download_uri"] = o.DownloadUri
}
if !IsNil(o.FormUri) {
toSerialize["form_uri"] = o.FormUri
}
if !IsNil(o.RedirectUri) {
toSerialize["redirect_uri"] = o.RedirectUri
}
if !IsNil(o.ResultsUri) {
toSerialize["results_uri"] = o.ResultsUri
}
if !IsNil(o.ReportNames) {
toSerialize["report_names"] = o.ReportNames
}
if !IsNil(o.ApplicantId) {
toSerialize["applicant_id"] = o.ApplicantId
}
if !IsNil(o.PrivacyNoticesReadConsentGiven) {
toSerialize["privacy_notices_read_consent_given"] = o.PrivacyNoticesReadConsentGiven
}
if !IsNil(o.Tags) {
toSerialize["tags"] = o.Tags
}
if !IsNil(o.ApplicantProvidesData) {
toSerialize["applicant_provides_data"] = o.ApplicantProvidesData
}
if !IsNil(o.SuppressFormEmails) {
toSerialize["suppress_form_emails"] = o.SuppressFormEmails
}
if !IsNil(o.Asynchronous) {
toSerialize["asynchronous"] = o.Asynchronous
}
if !IsNil(o.WebhookIds) {
toSerialize["webhook_ids"] = o.WebhookIds
}
if !IsNil(o.ReportIds) {
toSerialize["report_ids"] = o.ReportIds
}
if !IsNil(o.DocumentIds) {
toSerialize["document_ids"] = o.DocumentIds
}
if !IsNil(o.Consider) {
toSerialize["consider"] = o.Consider
}
if !IsNil(o.SubResult) {
toSerialize["sub_result"] = o.SubResult
}
return toSerialize, nil
}
type NullableCheck struct {
value *Check
isSet bool
}
func (v NullableCheck) Get() *Check {
return v.value
}
func (v *NullableCheck) Set(val *Check) {
v.value = val
v.isSet = true
}
func (v NullableCheck) IsSet() bool {
return v.isSet
}
func (v *NullableCheck) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCheck(val *Check) *NullableCheck {
return &NullableCheck{value: val, isSet: true}
}
func (v NullableCheck) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCheck) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}