-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_ezsignsigner_response_compound.go
312 lines (255 loc) · 11.6 KB
/
model_ezsignsigner_response_compound.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
/*
eZmax API Definition (Full)
This API expose all the functionnalities for the eZmax and eZsign applications.
API version: 1.2.0
Contact: support-api@ezmax.ca
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package eZmaxApi
import (
"encoding/json"
"bytes"
"fmt"
)
// checks if the EzsignsignerResponseCompound type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &EzsignsignerResponseCompound{}
// EzsignsignerResponseCompound An Ezsignsigner Object and children to create a complete structure
type EzsignsignerResponseCompound struct {
// The unique ID of the Ezsignsigner
PkiEzsignsignerID int32 `json:"pkiEzsignsignerID"`
// The unique ID of the Taxassignment. Valid values: |Value|Description| |-|-| |1|No tax| |2|GST| |3|HST (ON)| |4|HST (NB)| |5|HST (NS)| |6|HST (NL)| |7|HST (PE)| |8|GST + QST (QC)| |9|GST + QST (QC) Non-Recoverable| |10|GST + PST (BC)| |11|GST + PST (SK)| |12|GST + RST (MB)| |13|GST + PST (BC) Non-Recoverable| |14|GST + PST (SK) Non-Recoverable| |15|GST + RST (MB) Non-Recoverable|
FkiTaxassignmentID int32 `json:"fkiTaxassignmentID"`
// The unique ID of the Secretquestion. Valid values: |Value|Description| |-|-| |1|The name of the hospital in which you were born| |2|The name of your grade school| |3|The last name of your favorite teacher| |4|Your favorite sports team| |5|Your favorite TV show| |6|Your favorite movie| |7|The name of the street on which you grew up| |8|The name of your first employer| |9|Your first car| |10|Your favorite food| |11|The name of your first pet| |12|Favorite musician/band| |13|What instrument you play| |14|Your father's middle name| |15|Your mother's maiden name| |16|Name of your eldest child| |17|Your spouse's middle name| |18|Favorite restaurant| |19|Childhood nickname| |20|Favorite vacation destination| |21|Your boat's name| |22|Date of Birth (YYYY-MM-DD)| |22|Secret Code| |22|Your reference code|
FkiSecretquestionID *int32 `json:"fkiSecretquestionID,omitempty"`
// The unique ID of the Userlogintype Valid values: |Value|Description|Detail| |-|-|-| |1|**Email Only**|The Ezsignsigner will receive a secure link by email| |2|**Email and phone or SMS**|The Ezsignsigner will receive a secure link by email and will need to authenticate using SMS or Phone call. **Additional fee applies**| |3|**Email and secret question**|The Ezsignsigner will receive a secure link by email and will need to authenticate using a predefined question and answer| |4|**In person only**|The Ezsignsigner will only be able to sign \"In-Person\" and there won't be any authentication. No email will be sent for invitation to sign. Make sure you evaluate the risk of signature denial and at minimum, we recommend you use a handwritten signature type| |5|**In person with phone or SMS**|The Ezsignsigner will only be able to sign \"In-Person\" and will need to authenticate using SMS or Phone call. No email will be sent for invitation to sign. **Additional fee applies**|
FkiUserlogintypeID int32 `json:"fkiUserlogintypeID"`
// The description of the Userlogintype in the language of the requester
SUserlogintypeDescriptionX string `json:"sUserlogintypeDescriptionX"`
ObjContact EzsignsignerResponseCompoundContact `json:"objContact"`
}
type _EzsignsignerResponseCompound EzsignsignerResponseCompound
// NewEzsignsignerResponseCompound instantiates a new EzsignsignerResponseCompound 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 NewEzsignsignerResponseCompound(pkiEzsignsignerID int32, fkiTaxassignmentID int32, fkiUserlogintypeID int32, sUserlogintypeDescriptionX string, objContact EzsignsignerResponseCompoundContact) *EzsignsignerResponseCompound {
this := EzsignsignerResponseCompound{}
this.PkiEzsignsignerID = pkiEzsignsignerID
this.FkiTaxassignmentID = fkiTaxassignmentID
this.FkiUserlogintypeID = fkiUserlogintypeID
this.SUserlogintypeDescriptionX = sUserlogintypeDescriptionX
this.ObjContact = objContact
return &this
}
// NewEzsignsignerResponseCompoundWithDefaults instantiates a new EzsignsignerResponseCompound 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 NewEzsignsignerResponseCompoundWithDefaults() *EzsignsignerResponseCompound {
this := EzsignsignerResponseCompound{}
return &this
}
// GetPkiEzsignsignerID returns the PkiEzsignsignerID field value
func (o *EzsignsignerResponseCompound) GetPkiEzsignsignerID() int32 {
if o == nil {
var ret int32
return ret
}
return o.PkiEzsignsignerID
}
// GetPkiEzsignsignerIDOk returns a tuple with the PkiEzsignsignerID field value
// and a boolean to check if the value has been set.
func (o *EzsignsignerResponseCompound) GetPkiEzsignsignerIDOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.PkiEzsignsignerID, true
}
// SetPkiEzsignsignerID sets field value
func (o *EzsignsignerResponseCompound) SetPkiEzsignsignerID(v int32) {
o.PkiEzsignsignerID = v
}
// GetFkiTaxassignmentID returns the FkiTaxassignmentID field value
func (o *EzsignsignerResponseCompound) GetFkiTaxassignmentID() int32 {
if o == nil {
var ret int32
return ret
}
return o.FkiTaxassignmentID
}
// GetFkiTaxassignmentIDOk returns a tuple with the FkiTaxassignmentID field value
// and a boolean to check if the value has been set.
func (o *EzsignsignerResponseCompound) GetFkiTaxassignmentIDOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.FkiTaxassignmentID, true
}
// SetFkiTaxassignmentID sets field value
func (o *EzsignsignerResponseCompound) SetFkiTaxassignmentID(v int32) {
o.FkiTaxassignmentID = v
}
// GetFkiSecretquestionID returns the FkiSecretquestionID field value if set, zero value otherwise.
func (o *EzsignsignerResponseCompound) GetFkiSecretquestionID() int32 {
if o == nil || IsNil(o.FkiSecretquestionID) {
var ret int32
return ret
}
return *o.FkiSecretquestionID
}
// GetFkiSecretquestionIDOk returns a tuple with the FkiSecretquestionID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EzsignsignerResponseCompound) GetFkiSecretquestionIDOk() (*int32, bool) {
if o == nil || IsNil(o.FkiSecretquestionID) {
return nil, false
}
return o.FkiSecretquestionID, true
}
// HasFkiSecretquestionID returns a boolean if a field has been set.
func (o *EzsignsignerResponseCompound) HasFkiSecretquestionID() bool {
if o != nil && !IsNil(o.FkiSecretquestionID) {
return true
}
return false
}
// SetFkiSecretquestionID gets a reference to the given int32 and assigns it to the FkiSecretquestionID field.
func (o *EzsignsignerResponseCompound) SetFkiSecretquestionID(v int32) {
o.FkiSecretquestionID = &v
}
// GetFkiUserlogintypeID returns the FkiUserlogintypeID field value
func (o *EzsignsignerResponseCompound) GetFkiUserlogintypeID() int32 {
if o == nil {
var ret int32
return ret
}
return o.FkiUserlogintypeID
}
// GetFkiUserlogintypeIDOk returns a tuple with the FkiUserlogintypeID field value
// and a boolean to check if the value has been set.
func (o *EzsignsignerResponseCompound) GetFkiUserlogintypeIDOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.FkiUserlogintypeID, true
}
// SetFkiUserlogintypeID sets field value
func (o *EzsignsignerResponseCompound) SetFkiUserlogintypeID(v int32) {
o.FkiUserlogintypeID = v
}
// GetSUserlogintypeDescriptionX returns the SUserlogintypeDescriptionX field value
func (o *EzsignsignerResponseCompound) GetSUserlogintypeDescriptionX() string {
if o == nil {
var ret string
return ret
}
return o.SUserlogintypeDescriptionX
}
// GetSUserlogintypeDescriptionXOk returns a tuple with the SUserlogintypeDescriptionX field value
// and a boolean to check if the value has been set.
func (o *EzsignsignerResponseCompound) GetSUserlogintypeDescriptionXOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SUserlogintypeDescriptionX, true
}
// SetSUserlogintypeDescriptionX sets field value
func (o *EzsignsignerResponseCompound) SetSUserlogintypeDescriptionX(v string) {
o.SUserlogintypeDescriptionX = v
}
// GetObjContact returns the ObjContact field value
func (o *EzsignsignerResponseCompound) GetObjContact() EzsignsignerResponseCompoundContact {
if o == nil {
var ret EzsignsignerResponseCompoundContact
return ret
}
return o.ObjContact
}
// GetObjContactOk returns a tuple with the ObjContact field value
// and a boolean to check if the value has been set.
func (o *EzsignsignerResponseCompound) GetObjContactOk() (*EzsignsignerResponseCompoundContact, bool) {
if o == nil {
return nil, false
}
return &o.ObjContact, true
}
// SetObjContact sets field value
func (o *EzsignsignerResponseCompound) SetObjContact(v EzsignsignerResponseCompoundContact) {
o.ObjContact = v
}
func (o EzsignsignerResponseCompound) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o EzsignsignerResponseCompound) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["pkiEzsignsignerID"] = o.PkiEzsignsignerID
toSerialize["fkiTaxassignmentID"] = o.FkiTaxassignmentID
if !IsNil(o.FkiSecretquestionID) {
toSerialize["fkiSecretquestionID"] = o.FkiSecretquestionID
}
toSerialize["fkiUserlogintypeID"] = o.FkiUserlogintypeID
toSerialize["sUserlogintypeDescriptionX"] = o.SUserlogintypeDescriptionX
toSerialize["objContact"] = o.ObjContact
return toSerialize, nil
}
func (o *EzsignsignerResponseCompound) UnmarshalJSON(data []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"pkiEzsignsignerID",
"fkiTaxassignmentID",
"fkiUserlogintypeID",
"sUserlogintypeDescriptionX",
"objContact",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err;
}
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varEzsignsignerResponseCompound := _EzsignsignerResponseCompound{}
decoder := json.NewDecoder(bytes.NewReader(data))
decoder.DisallowUnknownFields()
err = decoder.Decode(&varEzsignsignerResponseCompound)
if err != nil {
return err
}
*o = EzsignsignerResponseCompound(varEzsignsignerResponseCompound)
return err
}
type NullableEzsignsignerResponseCompound struct {
value *EzsignsignerResponseCompound
isSet bool
}
func (v NullableEzsignsignerResponseCompound) Get() *EzsignsignerResponseCompound {
return v.value
}
func (v *NullableEzsignsignerResponseCompound) Set(val *EzsignsignerResponseCompound) {
v.value = val
v.isSet = true
}
func (v NullableEzsignsignerResponseCompound) IsSet() bool {
return v.isSet
}
func (v *NullableEzsignsignerResponseCompound) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEzsignsignerResponseCompound(val *EzsignsignerResponseCompound) *NullableEzsignsignerResponseCompound {
return &NullableEzsignsignerResponseCompound{value: val, isSet: true}
}
func (v NullableEzsignsignerResponseCompound) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableEzsignsignerResponseCompound) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}