forked from alpacahq/go-onfido-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_document_breakdown_visual_authenticity_breakdown.go
377 lines (318 loc) · 14.9 KB
/
model_document_breakdown_visual_authenticity_breakdown.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
/*
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"
)
// checks if the DocumentBreakdownVisualAuthenticityBreakdown type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DocumentBreakdownVisualAuthenticityBreakdown{}
// DocumentBreakdownVisualAuthenticityBreakdown struct for DocumentBreakdownVisualAuthenticityBreakdown
type DocumentBreakdownVisualAuthenticityBreakdown struct {
Fonts *DocumentBreakdownVisualAuthenticityBreakdownFonts `json:"fonts,omitempty"`
PictureFaceIntegrity *DocumentBreakdownVisualAuthenticityBreakdownPictureFaceIntegrity `json:"picture_face_integrity,omitempty"`
Template *DocumentBreakdownVisualAuthenticityBreakdownTemplate `json:"template,omitempty"`
SecurityFeatures *DocumentBreakdownVisualAuthenticityBreakdownSecurityFeatures `json:"security_features,omitempty"`
OriginalDocumentPresent *DocumentBreakdownVisualAuthenticityBreakdownOriginalDocumentPresent `json:"original_document_present,omitempty"`
DigitalTampering *DocumentBreakdownVisualAuthenticityBreakdownDigitalTampering `json:"digital_tampering,omitempty"`
Other *DocumentBreakdownVisualAuthenticityBreakdownOther `json:"other,omitempty"`
FaceDetection *DocumentBreakdownVisualAuthenticityBreakdownFaceDetection `json:"face_detection,omitempty"`
}
// NewDocumentBreakdownVisualAuthenticityBreakdown instantiates a new DocumentBreakdownVisualAuthenticityBreakdown 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 NewDocumentBreakdownVisualAuthenticityBreakdown() *DocumentBreakdownVisualAuthenticityBreakdown {
this := DocumentBreakdownVisualAuthenticityBreakdown{}
return &this
}
// NewDocumentBreakdownVisualAuthenticityBreakdownWithDefaults instantiates a new DocumentBreakdownVisualAuthenticityBreakdown 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 NewDocumentBreakdownVisualAuthenticityBreakdownWithDefaults() *DocumentBreakdownVisualAuthenticityBreakdown {
this := DocumentBreakdownVisualAuthenticityBreakdown{}
return &this
}
// GetFonts returns the Fonts field value if set, zero value otherwise.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetFonts() DocumentBreakdownVisualAuthenticityBreakdownFonts {
if o == nil || IsNil(o.Fonts) {
var ret DocumentBreakdownVisualAuthenticityBreakdownFonts
return ret
}
return *o.Fonts
}
// GetFontsOk returns a tuple with the Fonts field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetFontsOk() (*DocumentBreakdownVisualAuthenticityBreakdownFonts, bool) {
if o == nil || IsNil(o.Fonts) {
return nil, false
}
return o.Fonts, true
}
// HasFonts returns a boolean if a field has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) HasFonts() bool {
if o != nil && !IsNil(o.Fonts) {
return true
}
return false
}
// SetFonts gets a reference to the given DocumentBreakdownVisualAuthenticityBreakdownFonts and assigns it to the Fonts field.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) SetFonts(v DocumentBreakdownVisualAuthenticityBreakdownFonts) {
o.Fonts = &v
}
// GetPictureFaceIntegrity returns the PictureFaceIntegrity field value if set, zero value otherwise.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetPictureFaceIntegrity() DocumentBreakdownVisualAuthenticityBreakdownPictureFaceIntegrity {
if o == nil || IsNil(o.PictureFaceIntegrity) {
var ret DocumentBreakdownVisualAuthenticityBreakdownPictureFaceIntegrity
return ret
}
return *o.PictureFaceIntegrity
}
// GetPictureFaceIntegrityOk returns a tuple with the PictureFaceIntegrity field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetPictureFaceIntegrityOk() (*DocumentBreakdownVisualAuthenticityBreakdownPictureFaceIntegrity, bool) {
if o == nil || IsNil(o.PictureFaceIntegrity) {
return nil, false
}
return o.PictureFaceIntegrity, true
}
// HasPictureFaceIntegrity returns a boolean if a field has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) HasPictureFaceIntegrity() bool {
if o != nil && !IsNil(o.PictureFaceIntegrity) {
return true
}
return false
}
// SetPictureFaceIntegrity gets a reference to the given DocumentBreakdownVisualAuthenticityBreakdownPictureFaceIntegrity and assigns it to the PictureFaceIntegrity field.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) SetPictureFaceIntegrity(v DocumentBreakdownVisualAuthenticityBreakdownPictureFaceIntegrity) {
o.PictureFaceIntegrity = &v
}
// GetTemplate returns the Template field value if set, zero value otherwise.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetTemplate() DocumentBreakdownVisualAuthenticityBreakdownTemplate {
if o == nil || IsNil(o.Template) {
var ret DocumentBreakdownVisualAuthenticityBreakdownTemplate
return ret
}
return *o.Template
}
// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetTemplateOk() (*DocumentBreakdownVisualAuthenticityBreakdownTemplate, bool) {
if o == nil || IsNil(o.Template) {
return nil, false
}
return o.Template, true
}
// HasTemplate returns a boolean if a field has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) HasTemplate() bool {
if o != nil && !IsNil(o.Template) {
return true
}
return false
}
// SetTemplate gets a reference to the given DocumentBreakdownVisualAuthenticityBreakdownTemplate and assigns it to the Template field.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) SetTemplate(v DocumentBreakdownVisualAuthenticityBreakdownTemplate) {
o.Template = &v
}
// GetSecurityFeatures returns the SecurityFeatures field value if set, zero value otherwise.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetSecurityFeatures() DocumentBreakdownVisualAuthenticityBreakdownSecurityFeatures {
if o == nil || IsNil(o.SecurityFeatures) {
var ret DocumentBreakdownVisualAuthenticityBreakdownSecurityFeatures
return ret
}
return *o.SecurityFeatures
}
// GetSecurityFeaturesOk returns a tuple with the SecurityFeatures field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetSecurityFeaturesOk() (*DocumentBreakdownVisualAuthenticityBreakdownSecurityFeatures, bool) {
if o == nil || IsNil(o.SecurityFeatures) {
return nil, false
}
return o.SecurityFeatures, true
}
// HasSecurityFeatures returns a boolean if a field has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) HasSecurityFeatures() bool {
if o != nil && !IsNil(o.SecurityFeatures) {
return true
}
return false
}
// SetSecurityFeatures gets a reference to the given DocumentBreakdownVisualAuthenticityBreakdownSecurityFeatures and assigns it to the SecurityFeatures field.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) SetSecurityFeatures(v DocumentBreakdownVisualAuthenticityBreakdownSecurityFeatures) {
o.SecurityFeatures = &v
}
// GetOriginalDocumentPresent returns the OriginalDocumentPresent field value if set, zero value otherwise.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetOriginalDocumentPresent() DocumentBreakdownVisualAuthenticityBreakdownOriginalDocumentPresent {
if o == nil || IsNil(o.OriginalDocumentPresent) {
var ret DocumentBreakdownVisualAuthenticityBreakdownOriginalDocumentPresent
return ret
}
return *o.OriginalDocumentPresent
}
// GetOriginalDocumentPresentOk returns a tuple with the OriginalDocumentPresent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetOriginalDocumentPresentOk() (*DocumentBreakdownVisualAuthenticityBreakdownOriginalDocumentPresent, bool) {
if o == nil || IsNil(o.OriginalDocumentPresent) {
return nil, false
}
return o.OriginalDocumentPresent, true
}
// HasOriginalDocumentPresent returns a boolean if a field has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) HasOriginalDocumentPresent() bool {
if o != nil && !IsNil(o.OriginalDocumentPresent) {
return true
}
return false
}
// SetOriginalDocumentPresent gets a reference to the given DocumentBreakdownVisualAuthenticityBreakdownOriginalDocumentPresent and assigns it to the OriginalDocumentPresent field.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) SetOriginalDocumentPresent(v DocumentBreakdownVisualAuthenticityBreakdownOriginalDocumentPresent) {
o.OriginalDocumentPresent = &v
}
// GetDigitalTampering returns the DigitalTampering field value if set, zero value otherwise.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetDigitalTampering() DocumentBreakdownVisualAuthenticityBreakdownDigitalTampering {
if o == nil || IsNil(o.DigitalTampering) {
var ret DocumentBreakdownVisualAuthenticityBreakdownDigitalTampering
return ret
}
return *o.DigitalTampering
}
// GetDigitalTamperingOk returns a tuple with the DigitalTampering field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetDigitalTamperingOk() (*DocumentBreakdownVisualAuthenticityBreakdownDigitalTampering, bool) {
if o == nil || IsNil(o.DigitalTampering) {
return nil, false
}
return o.DigitalTampering, true
}
// HasDigitalTampering returns a boolean if a field has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) HasDigitalTampering() bool {
if o != nil && !IsNil(o.DigitalTampering) {
return true
}
return false
}
// SetDigitalTampering gets a reference to the given DocumentBreakdownVisualAuthenticityBreakdownDigitalTampering and assigns it to the DigitalTampering field.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) SetDigitalTampering(v DocumentBreakdownVisualAuthenticityBreakdownDigitalTampering) {
o.DigitalTampering = &v
}
// GetOther returns the Other field value if set, zero value otherwise.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetOther() DocumentBreakdownVisualAuthenticityBreakdownOther {
if o == nil || IsNil(o.Other) {
var ret DocumentBreakdownVisualAuthenticityBreakdownOther
return ret
}
return *o.Other
}
// GetOtherOk returns a tuple with the Other field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetOtherOk() (*DocumentBreakdownVisualAuthenticityBreakdownOther, bool) {
if o == nil || IsNil(o.Other) {
return nil, false
}
return o.Other, true
}
// HasOther returns a boolean if a field has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) HasOther() bool {
if o != nil && !IsNil(o.Other) {
return true
}
return false
}
// SetOther gets a reference to the given DocumentBreakdownVisualAuthenticityBreakdownOther and assigns it to the Other field.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) SetOther(v DocumentBreakdownVisualAuthenticityBreakdownOther) {
o.Other = &v
}
// GetFaceDetection returns the FaceDetection field value if set, zero value otherwise.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetFaceDetection() DocumentBreakdownVisualAuthenticityBreakdownFaceDetection {
if o == nil || IsNil(o.FaceDetection) {
var ret DocumentBreakdownVisualAuthenticityBreakdownFaceDetection
return ret
}
return *o.FaceDetection
}
// GetFaceDetectionOk returns a tuple with the FaceDetection field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) GetFaceDetectionOk() (*DocumentBreakdownVisualAuthenticityBreakdownFaceDetection, bool) {
if o == nil || IsNil(o.FaceDetection) {
return nil, false
}
return o.FaceDetection, true
}
// HasFaceDetection returns a boolean if a field has been set.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) HasFaceDetection() bool {
if o != nil && !IsNil(o.FaceDetection) {
return true
}
return false
}
// SetFaceDetection gets a reference to the given DocumentBreakdownVisualAuthenticityBreakdownFaceDetection and assigns it to the FaceDetection field.
func (o *DocumentBreakdownVisualAuthenticityBreakdown) SetFaceDetection(v DocumentBreakdownVisualAuthenticityBreakdownFaceDetection) {
o.FaceDetection = &v
}
func (o DocumentBreakdownVisualAuthenticityBreakdown) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DocumentBreakdownVisualAuthenticityBreakdown) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Fonts) {
toSerialize["fonts"] = o.Fonts
}
if !IsNil(o.PictureFaceIntegrity) {
toSerialize["picture_face_integrity"] = o.PictureFaceIntegrity
}
if !IsNil(o.Template) {
toSerialize["template"] = o.Template
}
if !IsNil(o.SecurityFeatures) {
toSerialize["security_features"] = o.SecurityFeatures
}
if !IsNil(o.OriginalDocumentPresent) {
toSerialize["original_document_present"] = o.OriginalDocumentPresent
}
if !IsNil(o.DigitalTampering) {
toSerialize["digital_tampering"] = o.DigitalTampering
}
if !IsNil(o.Other) {
toSerialize["other"] = o.Other
}
if !IsNil(o.FaceDetection) {
toSerialize["face_detection"] = o.FaceDetection
}
return toSerialize, nil
}
type NullableDocumentBreakdownVisualAuthenticityBreakdown struct {
value *DocumentBreakdownVisualAuthenticityBreakdown
isSet bool
}
func (v NullableDocumentBreakdownVisualAuthenticityBreakdown) Get() *DocumentBreakdownVisualAuthenticityBreakdown {
return v.value
}
func (v *NullableDocumentBreakdownVisualAuthenticityBreakdown) Set(val *DocumentBreakdownVisualAuthenticityBreakdown) {
v.value = val
v.isSet = true
}
func (v NullableDocumentBreakdownVisualAuthenticityBreakdown) IsSet() bool {
return v.isSet
}
func (v *NullableDocumentBreakdownVisualAuthenticityBreakdown) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDocumentBreakdownVisualAuthenticityBreakdown(val *DocumentBreakdownVisualAuthenticityBreakdown) *NullableDocumentBreakdownVisualAuthenticityBreakdown {
return &NullableDocumentBreakdownVisualAuthenticityBreakdown{value: val, isSet: true}
}
func (v NullableDocumentBreakdownVisualAuthenticityBreakdown) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDocumentBreakdownVisualAuthenticityBreakdown) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}