/
model_analyze_document_response_entity_document_images.go
187 lines (153 loc) · 6.03 KB
/
model_analyze_document_response_entity_document_images.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
/*
DOJAH Publilc APIs
Use Dojah to verify, onboard and manage user identity across Africa!
API version: 1.0.0
*/
// Code generated by Konfig (https://konfigthis.com); DO NOT EDIT.
package dojah
import (
"encoding/json"
)
// AnalyzeDocumentResponseEntityDocumentImages struct for AnalyzeDocumentResponseEntityDocumentImages
type AnalyzeDocumentResponseEntityDocumentImages struct {
DocumentFrontSide *string `json:"Document front side,omitempty"`
Fingerprint *string `json:"Fingerprint,omitempty"`
Portrait *string `json:"Portrait,omitempty"`
}
// NewAnalyzeDocumentResponseEntityDocumentImages instantiates a new AnalyzeDocumentResponseEntityDocumentImages 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 NewAnalyzeDocumentResponseEntityDocumentImages() *AnalyzeDocumentResponseEntityDocumentImages {
this := AnalyzeDocumentResponseEntityDocumentImages{}
return &this
}
// NewAnalyzeDocumentResponseEntityDocumentImagesWithDefaults instantiates a new AnalyzeDocumentResponseEntityDocumentImages 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 NewAnalyzeDocumentResponseEntityDocumentImagesWithDefaults() *AnalyzeDocumentResponseEntityDocumentImages {
this := AnalyzeDocumentResponseEntityDocumentImages{}
return &this
}
// GetDocumentFrontSide returns the DocumentFrontSide field value if set, zero value otherwise.
func (o *AnalyzeDocumentResponseEntityDocumentImages) GetDocumentFrontSide() string {
if o == nil || isNil(o.DocumentFrontSide) {
var ret string
return ret
}
return *o.DocumentFrontSide
}
// GetDocumentFrontSideOk returns a tuple with the DocumentFrontSide field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AnalyzeDocumentResponseEntityDocumentImages) GetDocumentFrontSideOk() (*string, bool) {
if o == nil || isNil(o.DocumentFrontSide) {
return nil, false
}
return o.DocumentFrontSide, true
}
// HasDocumentFrontSide returns a boolean if a field has been set.
func (o *AnalyzeDocumentResponseEntityDocumentImages) HasDocumentFrontSide() bool {
if o != nil && !isNil(o.DocumentFrontSide) {
return true
}
return false
}
// SetDocumentFrontSide gets a reference to the given string and assigns it to the DocumentFrontSide field.
func (o *AnalyzeDocumentResponseEntityDocumentImages) SetDocumentFrontSide(v string) {
o.DocumentFrontSide = &v
}
// GetFingerprint returns the Fingerprint field value if set, zero value otherwise.
func (o *AnalyzeDocumentResponseEntityDocumentImages) GetFingerprint() string {
if o == nil || isNil(o.Fingerprint) {
var ret string
return ret
}
return *o.Fingerprint
}
// GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AnalyzeDocumentResponseEntityDocumentImages) GetFingerprintOk() (*string, bool) {
if o == nil || isNil(o.Fingerprint) {
return nil, false
}
return o.Fingerprint, true
}
// HasFingerprint returns a boolean if a field has been set.
func (o *AnalyzeDocumentResponseEntityDocumentImages) HasFingerprint() bool {
if o != nil && !isNil(o.Fingerprint) {
return true
}
return false
}
// SetFingerprint gets a reference to the given string and assigns it to the Fingerprint field.
func (o *AnalyzeDocumentResponseEntityDocumentImages) SetFingerprint(v string) {
o.Fingerprint = &v
}
// GetPortrait returns the Portrait field value if set, zero value otherwise.
func (o *AnalyzeDocumentResponseEntityDocumentImages) GetPortrait() string {
if o == nil || isNil(o.Portrait) {
var ret string
return ret
}
return *o.Portrait
}
// GetPortraitOk returns a tuple with the Portrait field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AnalyzeDocumentResponseEntityDocumentImages) GetPortraitOk() (*string, bool) {
if o == nil || isNil(o.Portrait) {
return nil, false
}
return o.Portrait, true
}
// HasPortrait returns a boolean if a field has been set.
func (o *AnalyzeDocumentResponseEntityDocumentImages) HasPortrait() bool {
if o != nil && !isNil(o.Portrait) {
return true
}
return false
}
// SetPortrait gets a reference to the given string and assigns it to the Portrait field.
func (o *AnalyzeDocumentResponseEntityDocumentImages) SetPortrait(v string) {
o.Portrait = &v
}
func (o AnalyzeDocumentResponseEntityDocumentImages) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.DocumentFrontSide) {
toSerialize["Document front side"] = o.DocumentFrontSide
}
if !isNil(o.Fingerprint) {
toSerialize["Fingerprint"] = o.Fingerprint
}
if !isNil(o.Portrait) {
toSerialize["Portrait"] = o.Portrait
}
return json.Marshal(toSerialize)
}
type NullableAnalyzeDocumentResponseEntityDocumentImages struct {
value *AnalyzeDocumentResponseEntityDocumentImages
isSet bool
}
func (v NullableAnalyzeDocumentResponseEntityDocumentImages) Get() *AnalyzeDocumentResponseEntityDocumentImages {
return v.value
}
func (v *NullableAnalyzeDocumentResponseEntityDocumentImages) Set(val *AnalyzeDocumentResponseEntityDocumentImages) {
v.value = val
v.isSet = true
}
func (v NullableAnalyzeDocumentResponseEntityDocumentImages) IsSet() bool {
return v.isSet
}
func (v *NullableAnalyzeDocumentResponseEntityDocumentImages) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAnalyzeDocumentResponseEntityDocumentImages(val *AnalyzeDocumentResponseEntityDocumentImages) *NullableAnalyzeDocumentResponseEntityDocumentImages {
return &NullableAnalyzeDocumentResponseEntityDocumentImages{value: val, isSet: true}
}
func (v NullableAnalyzeDocumentResponseEntityDocumentImages) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAnalyzeDocumentResponseEntityDocumentImages) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}