/
model_ezsignfolder_list_element.go
472 lines (401 loc) · 14.5 KB
/
model_ezsignfolder_list_element.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
/*
eZmax API Definition
This API expose all the functionnalities for the eZmax and eZsign applications.
API version: 1.1.3
Contact: support-api@ezmax.ca
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package eZmaxApi
import (
"encoding/json"
)
// EzsignfolderListElement An Ezsignfolder List Element
type EzsignfolderListElement struct {
// The unique ID of the Ezsignfolder
PkiEzsignfolderID int32 `json:"pkiEzsignfolderID"`
// The unique ID of the Ezsignfoldertype.
FkiEzsignfoldertypeID int32 `json:"fkiEzsignfoldertypeID"`
EEzsignfoldertypePrivacylevel FieldEEzsignfoldertypePrivacylevel `json:"eEzsignfoldertypePrivacylevel"`
// The name of the Ezsignfoldertype in the language of the requester
SEzsignfoldertypeNameX string `json:"sEzsignfoldertypeNameX"`
// The description of the Ezsignfolder
SEzsignfolderDescription string `json:"sEzsignfolderDescription"`
EEzsignfolderStep FieldEEzsignfolderStep `json:"eEzsignfolderStep"`
// The date and time at which the object was created
DtCreatedDate string `json:"dtCreatedDate"`
// The date and time at which the Ezsign folder was sent the last time.
DtEzsignfolderSentdate NullableString `json:"dtEzsignfolderSentdate"`
// Represent a Date Time. The timezone is the one configured in the User's profile.
DtDueDate NullableString `json:"dtDueDate"`
// The total number of Ezsigndocument in the folder
IEzsigndocument int32 `json:"iEzsigndocument"`
// The total number of Ezsigndocument in the folder that were saved in the edm system
IEzsigndocumentEdm int32 `json:"iEzsigndocumentEdm"`
// The total number of signature blocks in all Ezsigndocuments in the folder
IEzsignsignature int32 `json:"iEzsignsignature"`
// The total number of already signed signature blocks in all Ezsigndocuments in the folder
IEzsignsignatureSigned int32 `json:"iEzsignsignatureSigned"`
}
// NewEzsignfolderListElement instantiates a new EzsignfolderListElement 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 NewEzsignfolderListElement(pkiEzsignfolderID int32, fkiEzsignfoldertypeID int32, eEzsignfoldertypePrivacylevel FieldEEzsignfoldertypePrivacylevel, sEzsignfoldertypeNameX string, sEzsignfolderDescription string, eEzsignfolderStep FieldEEzsignfolderStep, dtCreatedDate string, dtEzsignfolderSentdate NullableString, dtDueDate NullableString, iEzsigndocument int32, iEzsigndocumentEdm int32, iEzsignsignature int32, iEzsignsignatureSigned int32) *EzsignfolderListElement {
this := EzsignfolderListElement{}
this.PkiEzsignfolderID = pkiEzsignfolderID
this.FkiEzsignfoldertypeID = fkiEzsignfoldertypeID
this.EEzsignfoldertypePrivacylevel = eEzsignfoldertypePrivacylevel
this.SEzsignfoldertypeNameX = sEzsignfoldertypeNameX
this.SEzsignfolderDescription = sEzsignfolderDescription
this.EEzsignfolderStep = eEzsignfolderStep
this.DtCreatedDate = dtCreatedDate
this.DtEzsignfolderSentdate = dtEzsignfolderSentdate
this.DtDueDate = dtDueDate
this.IEzsigndocument = iEzsigndocument
this.IEzsigndocumentEdm = iEzsigndocumentEdm
this.IEzsignsignature = iEzsignsignature
this.IEzsignsignatureSigned = iEzsignsignatureSigned
return &this
}
// NewEzsignfolderListElementWithDefaults instantiates a new EzsignfolderListElement 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 NewEzsignfolderListElementWithDefaults() *EzsignfolderListElement {
this := EzsignfolderListElement{}
return &this
}
// GetPkiEzsignfolderID returns the PkiEzsignfolderID field value
func (o *EzsignfolderListElement) GetPkiEzsignfolderID() int32 {
if o == nil {
var ret int32
return ret
}
return o.PkiEzsignfolderID
}
// GetPkiEzsignfolderIDOk returns a tuple with the PkiEzsignfolderID field value
// and a boolean to check if the value has been set.
func (o *EzsignfolderListElement) GetPkiEzsignfolderIDOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.PkiEzsignfolderID, true
}
// SetPkiEzsignfolderID sets field value
func (o *EzsignfolderListElement) SetPkiEzsignfolderID(v int32) {
o.PkiEzsignfolderID = v
}
// GetFkiEzsignfoldertypeID returns the FkiEzsignfoldertypeID field value
func (o *EzsignfolderListElement) GetFkiEzsignfoldertypeID() int32 {
if o == nil {
var ret int32
return ret
}
return o.FkiEzsignfoldertypeID
}
// GetFkiEzsignfoldertypeIDOk returns a tuple with the FkiEzsignfoldertypeID field value
// and a boolean to check if the value has been set.
func (o *EzsignfolderListElement) GetFkiEzsignfoldertypeIDOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.FkiEzsignfoldertypeID, true
}
// SetFkiEzsignfoldertypeID sets field value
func (o *EzsignfolderListElement) SetFkiEzsignfoldertypeID(v int32) {
o.FkiEzsignfoldertypeID = v
}
// GetEEzsignfoldertypePrivacylevel returns the EEzsignfoldertypePrivacylevel field value
func (o *EzsignfolderListElement) GetEEzsignfoldertypePrivacylevel() FieldEEzsignfoldertypePrivacylevel {
if o == nil {
var ret FieldEEzsignfoldertypePrivacylevel
return ret
}
return o.EEzsignfoldertypePrivacylevel
}
// GetEEzsignfoldertypePrivacylevelOk returns a tuple with the EEzsignfoldertypePrivacylevel field value
// and a boolean to check if the value has been set.
func (o *EzsignfolderListElement) GetEEzsignfoldertypePrivacylevelOk() (*FieldEEzsignfoldertypePrivacylevel, bool) {
if o == nil {
return nil, false
}
return &o.EEzsignfoldertypePrivacylevel, true
}
// SetEEzsignfoldertypePrivacylevel sets field value
func (o *EzsignfolderListElement) SetEEzsignfoldertypePrivacylevel(v FieldEEzsignfoldertypePrivacylevel) {
o.EEzsignfoldertypePrivacylevel = v
}
// GetSEzsignfoldertypeNameX returns the SEzsignfoldertypeNameX field value
func (o *EzsignfolderListElement) GetSEzsignfoldertypeNameX() string {
if o == nil {
var ret string
return ret
}
return o.SEzsignfoldertypeNameX
}
// GetSEzsignfoldertypeNameXOk returns a tuple with the SEzsignfoldertypeNameX field value
// and a boolean to check if the value has been set.
func (o *EzsignfolderListElement) GetSEzsignfoldertypeNameXOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SEzsignfoldertypeNameX, true
}
// SetSEzsignfoldertypeNameX sets field value
func (o *EzsignfolderListElement) SetSEzsignfoldertypeNameX(v string) {
o.SEzsignfoldertypeNameX = v
}
// GetSEzsignfolderDescription returns the SEzsignfolderDescription field value
func (o *EzsignfolderListElement) GetSEzsignfolderDescription() string {
if o == nil {
var ret string
return ret
}
return o.SEzsignfolderDescription
}
// GetSEzsignfolderDescriptionOk returns a tuple with the SEzsignfolderDescription field value
// and a boolean to check if the value has been set.
func (o *EzsignfolderListElement) GetSEzsignfolderDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SEzsignfolderDescription, true
}
// SetSEzsignfolderDescription sets field value
func (o *EzsignfolderListElement) SetSEzsignfolderDescription(v string) {
o.SEzsignfolderDescription = v
}
// GetEEzsignfolderStep returns the EEzsignfolderStep field value
func (o *EzsignfolderListElement) GetEEzsignfolderStep() FieldEEzsignfolderStep {
if o == nil {
var ret FieldEEzsignfolderStep
return ret
}
return o.EEzsignfolderStep
}
// GetEEzsignfolderStepOk returns a tuple with the EEzsignfolderStep field value
// and a boolean to check if the value has been set.
func (o *EzsignfolderListElement) GetEEzsignfolderStepOk() (*FieldEEzsignfolderStep, bool) {
if o == nil {
return nil, false
}
return &o.EEzsignfolderStep, true
}
// SetEEzsignfolderStep sets field value
func (o *EzsignfolderListElement) SetEEzsignfolderStep(v FieldEEzsignfolderStep) {
o.EEzsignfolderStep = v
}
// GetDtCreatedDate returns the DtCreatedDate field value
func (o *EzsignfolderListElement) GetDtCreatedDate() string {
if o == nil {
var ret string
return ret
}
return o.DtCreatedDate
}
// GetDtCreatedDateOk returns a tuple with the DtCreatedDate field value
// and a boolean to check if the value has been set.
func (o *EzsignfolderListElement) GetDtCreatedDateOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DtCreatedDate, true
}
// SetDtCreatedDate sets field value
func (o *EzsignfolderListElement) SetDtCreatedDate(v string) {
o.DtCreatedDate = v
}
// GetDtEzsignfolderSentdate returns the DtEzsignfolderSentdate field value
// If the value is explicit nil, the zero value for string will be returned
func (o *EzsignfolderListElement) GetDtEzsignfolderSentdate() string {
if o == nil || o.DtEzsignfolderSentdate.Get() == nil {
var ret string
return ret
}
return *o.DtEzsignfolderSentdate.Get()
}
// GetDtEzsignfolderSentdateOk returns a tuple with the DtEzsignfolderSentdate field value
// 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 *EzsignfolderListElement) GetDtEzsignfolderSentdateOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.DtEzsignfolderSentdate.Get(), o.DtEzsignfolderSentdate.IsSet()
}
// SetDtEzsignfolderSentdate sets field value
func (o *EzsignfolderListElement) SetDtEzsignfolderSentdate(v string) {
o.DtEzsignfolderSentdate.Set(&v)
}
// GetDtDueDate returns the DtDueDate field value
// If the value is explicit nil, the zero value for string will be returned
func (o *EzsignfolderListElement) GetDtDueDate() string {
if o == nil || o.DtDueDate.Get() == nil {
var ret string
return ret
}
return *o.DtDueDate.Get()
}
// GetDtDueDateOk returns a tuple with the DtDueDate field value
// 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 *EzsignfolderListElement) GetDtDueDateOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.DtDueDate.Get(), o.DtDueDate.IsSet()
}
// SetDtDueDate sets field value
func (o *EzsignfolderListElement) SetDtDueDate(v string) {
o.DtDueDate.Set(&v)
}
// GetIEzsigndocument returns the IEzsigndocument field value
func (o *EzsignfolderListElement) GetIEzsigndocument() int32 {
if o == nil {
var ret int32
return ret
}
return o.IEzsigndocument
}
// GetIEzsigndocumentOk returns a tuple with the IEzsigndocument field value
// and a boolean to check if the value has been set.
func (o *EzsignfolderListElement) GetIEzsigndocumentOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.IEzsigndocument, true
}
// SetIEzsigndocument sets field value
func (o *EzsignfolderListElement) SetIEzsigndocument(v int32) {
o.IEzsigndocument = v
}
// GetIEzsigndocumentEdm returns the IEzsigndocumentEdm field value
func (o *EzsignfolderListElement) GetIEzsigndocumentEdm() int32 {
if o == nil {
var ret int32
return ret
}
return o.IEzsigndocumentEdm
}
// GetIEzsigndocumentEdmOk returns a tuple with the IEzsigndocumentEdm field value
// and a boolean to check if the value has been set.
func (o *EzsignfolderListElement) GetIEzsigndocumentEdmOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.IEzsigndocumentEdm, true
}
// SetIEzsigndocumentEdm sets field value
func (o *EzsignfolderListElement) SetIEzsigndocumentEdm(v int32) {
o.IEzsigndocumentEdm = v
}
// GetIEzsignsignature returns the IEzsignsignature field value
func (o *EzsignfolderListElement) GetIEzsignsignature() int32 {
if o == nil {
var ret int32
return ret
}
return o.IEzsignsignature
}
// GetIEzsignsignatureOk returns a tuple with the IEzsignsignature field value
// and a boolean to check if the value has been set.
func (o *EzsignfolderListElement) GetIEzsignsignatureOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.IEzsignsignature, true
}
// SetIEzsignsignature sets field value
func (o *EzsignfolderListElement) SetIEzsignsignature(v int32) {
o.IEzsignsignature = v
}
// GetIEzsignsignatureSigned returns the IEzsignsignatureSigned field value
func (o *EzsignfolderListElement) GetIEzsignsignatureSigned() int32 {
if o == nil {
var ret int32
return ret
}
return o.IEzsignsignatureSigned
}
// GetIEzsignsignatureSignedOk returns a tuple with the IEzsignsignatureSigned field value
// and a boolean to check if the value has been set.
func (o *EzsignfolderListElement) GetIEzsignsignatureSignedOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.IEzsignsignatureSigned, true
}
// SetIEzsignsignatureSigned sets field value
func (o *EzsignfolderListElement) SetIEzsignsignatureSigned(v int32) {
o.IEzsignsignatureSigned = v
}
func (o EzsignfolderListElement) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["pkiEzsignfolderID"] = o.PkiEzsignfolderID
}
if true {
toSerialize["fkiEzsignfoldertypeID"] = o.FkiEzsignfoldertypeID
}
if true {
toSerialize["eEzsignfoldertypePrivacylevel"] = o.EEzsignfoldertypePrivacylevel
}
if true {
toSerialize["sEzsignfoldertypeNameX"] = o.SEzsignfoldertypeNameX
}
if true {
toSerialize["sEzsignfolderDescription"] = o.SEzsignfolderDescription
}
if true {
toSerialize["eEzsignfolderStep"] = o.EEzsignfolderStep
}
if true {
toSerialize["dtCreatedDate"] = o.DtCreatedDate
}
if true {
toSerialize["dtEzsignfolderSentdate"] = o.DtEzsignfolderSentdate.Get()
}
if true {
toSerialize["dtDueDate"] = o.DtDueDate.Get()
}
if true {
toSerialize["iEzsigndocument"] = o.IEzsigndocument
}
if true {
toSerialize["iEzsigndocumentEdm"] = o.IEzsigndocumentEdm
}
if true {
toSerialize["iEzsignsignature"] = o.IEzsignsignature
}
if true {
toSerialize["iEzsignsignatureSigned"] = o.IEzsignsignatureSigned
}
return json.Marshal(toSerialize)
}
type NullableEzsignfolderListElement struct {
value *EzsignfolderListElement
isSet bool
}
func (v NullableEzsignfolderListElement) Get() *EzsignfolderListElement {
return v.value
}
func (v *NullableEzsignfolderListElement) Set(val *EzsignfolderListElement) {
v.value = val
v.isSet = true
}
func (v NullableEzsignfolderListElement) IsSet() bool {
return v.isSet
}
func (v *NullableEzsignfolderListElement) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEzsignfolderListElement(val *EzsignfolderListElement) *NullableEzsignfolderListElement {
return &NullableEzsignfolderListElement{value: val, isSet: true}
}
func (v NullableEzsignfolderListElement) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableEzsignfolderListElement) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}