-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_activesession_response_compound.go
787 lines (664 loc) · 26.9 KB
/
model_activesession_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
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
/*
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 ActivesessionResponseCompound type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ActivesessionResponseCompound{}
// ActivesessionResponseCompound Payload for GET /1/object/activesession/getCurrent
type ActivesessionResponseCompound struct {
EActivesessionUsertype FieldEActivesessionUsertype `json:"eActivesessionUsertype"`
EActivesessionOrigin FieldEActivesessionOrigin `json:"eActivesessionOrigin"`
EActivesessionWeekdaystart FieldEActivesessionWeekdaystart `json:"eActivesessionWeekdaystart"`
// The unique ID of the Language. Valid values: |Value|Description| |-|-| |1|French| |2|English|
FkiLanguageID int32 `json:"fkiLanguageID"`
// The Name of the Company in the language of the requester
SCompanyNameX string `json:"sCompanyNameX"`
// The Name of the Department in the language of the requester
SDepartmentNameX string `json:"sDepartmentNameX"`
// Whether the active session is in debug or not
BActivesessionDebug bool `json:"bActivesessionDebug"`
// Whether the active session is superadmin or not
BActivesessionIssuperadmin bool `json:"bActivesessionIssuperadmin"`
// The customer code assigned to your account
PksCustomerCode string `json:"pksCustomerCode"`
// The unique ID of the Systemconfigurationtype
FkiSystemconfigurationtypeID int32 `json:"fkiSystemconfigurationtypeID"`
// The unique ID of the Signature
FkiSignatureID *int32 `json:"fkiSignatureID,omitempty"`
// Whether if Ezsign is paid by the company or not
BSystemconfigurationEzsignpaidbyoffice *bool `json:"bSystemconfigurationEzsignpaidbyoffice,omitempty"`
ESystemconfigurationEzsignofficeplan *FieldESystemconfigurationEzsignofficeplan `json:"eSystemconfigurationEzsignofficeplan,omitempty"`
EUserEzsignaccess FieldEUserEzsignaccess `json:"eUserEzsignaccess"`
EUserEzsignprepaid *FieldEUserEzsignprepaid `json:"eUserEzsignprepaid,omitempty"`
// The eZsign prepaid expiration date
DtUserEzsignprepaidexpiration *string `json:"dtUserEzsignprepaidexpiration,omitempty"`
// An array of permissions granted to the user or api key
APkiPermissionID []int32 `json:"a_pkiPermissionID"`
ObjUserReal ActivesessionResponseCompoundUser `json:"objUserReal"`
ObjUserCloned *ActivesessionResponseCompoundUser `json:"objUserCloned,omitempty"`
ObjApikey *ActivesessionResponseCompoundApikey `json:"objApikey,omitempty"`
// An Array of Registered modules. These are the modules that are Licensed to be used by the User or the API Key.
AEModuleInternalname []string `json:"a_eModuleInternalname"`
}
type _ActivesessionResponseCompound ActivesessionResponseCompound
// NewActivesessionResponseCompound instantiates a new ActivesessionResponseCompound 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 NewActivesessionResponseCompound(eActivesessionUsertype FieldEActivesessionUsertype, eActivesessionOrigin FieldEActivesessionOrigin, eActivesessionWeekdaystart FieldEActivesessionWeekdaystart, fkiLanguageID int32, sCompanyNameX string, sDepartmentNameX string, bActivesessionDebug bool, bActivesessionIssuperadmin bool, pksCustomerCode string, fkiSystemconfigurationtypeID int32, eUserEzsignaccess FieldEUserEzsignaccess, aPkiPermissionID []int32, objUserReal ActivesessionResponseCompoundUser, aEModuleInternalname []string) *ActivesessionResponseCompound {
this := ActivesessionResponseCompound{}
this.EActivesessionUsertype = eActivesessionUsertype
this.EActivesessionOrigin = eActivesessionOrigin
this.EActivesessionWeekdaystart = eActivesessionWeekdaystart
this.FkiLanguageID = fkiLanguageID
this.SCompanyNameX = sCompanyNameX
this.SDepartmentNameX = sDepartmentNameX
this.BActivesessionDebug = bActivesessionDebug
this.BActivesessionIssuperadmin = bActivesessionIssuperadmin
this.PksCustomerCode = pksCustomerCode
this.FkiSystemconfigurationtypeID = fkiSystemconfigurationtypeID
this.EUserEzsignaccess = eUserEzsignaccess
this.APkiPermissionID = aPkiPermissionID
this.ObjUserReal = objUserReal
this.AEModuleInternalname = aEModuleInternalname
return &this
}
// NewActivesessionResponseCompoundWithDefaults instantiates a new ActivesessionResponseCompound 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 NewActivesessionResponseCompoundWithDefaults() *ActivesessionResponseCompound {
this := ActivesessionResponseCompound{}
return &this
}
// GetEActivesessionUsertype returns the EActivesessionUsertype field value
func (o *ActivesessionResponseCompound) GetEActivesessionUsertype() FieldEActivesessionUsertype {
if o == nil {
var ret FieldEActivesessionUsertype
return ret
}
return o.EActivesessionUsertype
}
// GetEActivesessionUsertypeOk returns a tuple with the EActivesessionUsertype field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetEActivesessionUsertypeOk() (*FieldEActivesessionUsertype, bool) {
if o == nil {
return nil, false
}
return &o.EActivesessionUsertype, true
}
// SetEActivesessionUsertype sets field value
func (o *ActivesessionResponseCompound) SetEActivesessionUsertype(v FieldEActivesessionUsertype) {
o.EActivesessionUsertype = v
}
// GetEActivesessionOrigin returns the EActivesessionOrigin field value
func (o *ActivesessionResponseCompound) GetEActivesessionOrigin() FieldEActivesessionOrigin {
if o == nil {
var ret FieldEActivesessionOrigin
return ret
}
return o.EActivesessionOrigin
}
// GetEActivesessionOriginOk returns a tuple with the EActivesessionOrigin field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetEActivesessionOriginOk() (*FieldEActivesessionOrigin, bool) {
if o == nil {
return nil, false
}
return &o.EActivesessionOrigin, true
}
// SetEActivesessionOrigin sets field value
func (o *ActivesessionResponseCompound) SetEActivesessionOrigin(v FieldEActivesessionOrigin) {
o.EActivesessionOrigin = v
}
// GetEActivesessionWeekdaystart returns the EActivesessionWeekdaystart field value
func (o *ActivesessionResponseCompound) GetEActivesessionWeekdaystart() FieldEActivesessionWeekdaystart {
if o == nil {
var ret FieldEActivesessionWeekdaystart
return ret
}
return o.EActivesessionWeekdaystart
}
// GetEActivesessionWeekdaystartOk returns a tuple with the EActivesessionWeekdaystart field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetEActivesessionWeekdaystartOk() (*FieldEActivesessionWeekdaystart, bool) {
if o == nil {
return nil, false
}
return &o.EActivesessionWeekdaystart, true
}
// SetEActivesessionWeekdaystart sets field value
func (o *ActivesessionResponseCompound) SetEActivesessionWeekdaystart(v FieldEActivesessionWeekdaystart) {
o.EActivesessionWeekdaystart = v
}
// GetFkiLanguageID returns the FkiLanguageID field value
func (o *ActivesessionResponseCompound) GetFkiLanguageID() int32 {
if o == nil {
var ret int32
return ret
}
return o.FkiLanguageID
}
// GetFkiLanguageIDOk returns a tuple with the FkiLanguageID field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetFkiLanguageIDOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.FkiLanguageID, true
}
// SetFkiLanguageID sets field value
func (o *ActivesessionResponseCompound) SetFkiLanguageID(v int32) {
o.FkiLanguageID = v
}
// GetSCompanyNameX returns the SCompanyNameX field value
func (o *ActivesessionResponseCompound) GetSCompanyNameX() string {
if o == nil {
var ret string
return ret
}
return o.SCompanyNameX
}
// GetSCompanyNameXOk returns a tuple with the SCompanyNameX field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetSCompanyNameXOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SCompanyNameX, true
}
// SetSCompanyNameX sets field value
func (o *ActivesessionResponseCompound) SetSCompanyNameX(v string) {
o.SCompanyNameX = v
}
// GetSDepartmentNameX returns the SDepartmentNameX field value
func (o *ActivesessionResponseCompound) GetSDepartmentNameX() string {
if o == nil {
var ret string
return ret
}
return o.SDepartmentNameX
}
// GetSDepartmentNameXOk returns a tuple with the SDepartmentNameX field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetSDepartmentNameXOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SDepartmentNameX, true
}
// SetSDepartmentNameX sets field value
func (o *ActivesessionResponseCompound) SetSDepartmentNameX(v string) {
o.SDepartmentNameX = v
}
// GetBActivesessionDebug returns the BActivesessionDebug field value
func (o *ActivesessionResponseCompound) GetBActivesessionDebug() bool {
if o == nil {
var ret bool
return ret
}
return o.BActivesessionDebug
}
// GetBActivesessionDebugOk returns a tuple with the BActivesessionDebug field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetBActivesessionDebugOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.BActivesessionDebug, true
}
// SetBActivesessionDebug sets field value
func (o *ActivesessionResponseCompound) SetBActivesessionDebug(v bool) {
o.BActivesessionDebug = v
}
// GetBActivesessionIssuperadmin returns the BActivesessionIssuperadmin field value
func (o *ActivesessionResponseCompound) GetBActivesessionIssuperadmin() bool {
if o == nil {
var ret bool
return ret
}
return o.BActivesessionIssuperadmin
}
// GetBActivesessionIssuperadminOk returns a tuple with the BActivesessionIssuperadmin field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetBActivesessionIssuperadminOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.BActivesessionIssuperadmin, true
}
// SetBActivesessionIssuperadmin sets field value
func (o *ActivesessionResponseCompound) SetBActivesessionIssuperadmin(v bool) {
o.BActivesessionIssuperadmin = v
}
// GetPksCustomerCode returns the PksCustomerCode field value
func (o *ActivesessionResponseCompound) GetPksCustomerCode() string {
if o == nil {
var ret string
return ret
}
return o.PksCustomerCode
}
// GetPksCustomerCodeOk returns a tuple with the PksCustomerCode field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetPksCustomerCodeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.PksCustomerCode, true
}
// SetPksCustomerCode sets field value
func (o *ActivesessionResponseCompound) SetPksCustomerCode(v string) {
o.PksCustomerCode = v
}
// GetFkiSystemconfigurationtypeID returns the FkiSystemconfigurationtypeID field value
func (o *ActivesessionResponseCompound) GetFkiSystemconfigurationtypeID() int32 {
if o == nil {
var ret int32
return ret
}
return o.FkiSystemconfigurationtypeID
}
// GetFkiSystemconfigurationtypeIDOk returns a tuple with the FkiSystemconfigurationtypeID field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetFkiSystemconfigurationtypeIDOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.FkiSystemconfigurationtypeID, true
}
// SetFkiSystemconfigurationtypeID sets field value
func (o *ActivesessionResponseCompound) SetFkiSystemconfigurationtypeID(v int32) {
o.FkiSystemconfigurationtypeID = v
}
// GetFkiSignatureID returns the FkiSignatureID field value if set, zero value otherwise.
func (o *ActivesessionResponseCompound) GetFkiSignatureID() int32 {
if o == nil || IsNil(o.FkiSignatureID) {
var ret int32
return ret
}
return *o.FkiSignatureID
}
// GetFkiSignatureIDOk returns a tuple with the FkiSignatureID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetFkiSignatureIDOk() (*int32, bool) {
if o == nil || IsNil(o.FkiSignatureID) {
return nil, false
}
return o.FkiSignatureID, true
}
// HasFkiSignatureID returns a boolean if a field has been set.
func (o *ActivesessionResponseCompound) HasFkiSignatureID() bool {
if o != nil && !IsNil(o.FkiSignatureID) {
return true
}
return false
}
// SetFkiSignatureID gets a reference to the given int32 and assigns it to the FkiSignatureID field.
func (o *ActivesessionResponseCompound) SetFkiSignatureID(v int32) {
o.FkiSignatureID = &v
}
// GetBSystemconfigurationEzsignpaidbyoffice returns the BSystemconfigurationEzsignpaidbyoffice field value if set, zero value otherwise.
func (o *ActivesessionResponseCompound) GetBSystemconfigurationEzsignpaidbyoffice() bool {
if o == nil || IsNil(o.BSystemconfigurationEzsignpaidbyoffice) {
var ret bool
return ret
}
return *o.BSystemconfigurationEzsignpaidbyoffice
}
// GetBSystemconfigurationEzsignpaidbyofficeOk returns a tuple with the BSystemconfigurationEzsignpaidbyoffice field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetBSystemconfigurationEzsignpaidbyofficeOk() (*bool, bool) {
if o == nil || IsNil(o.BSystemconfigurationEzsignpaidbyoffice) {
return nil, false
}
return o.BSystemconfigurationEzsignpaidbyoffice, true
}
// HasBSystemconfigurationEzsignpaidbyoffice returns a boolean if a field has been set.
func (o *ActivesessionResponseCompound) HasBSystemconfigurationEzsignpaidbyoffice() bool {
if o != nil && !IsNil(o.BSystemconfigurationEzsignpaidbyoffice) {
return true
}
return false
}
// SetBSystemconfigurationEzsignpaidbyoffice gets a reference to the given bool and assigns it to the BSystemconfigurationEzsignpaidbyoffice field.
func (o *ActivesessionResponseCompound) SetBSystemconfigurationEzsignpaidbyoffice(v bool) {
o.BSystemconfigurationEzsignpaidbyoffice = &v
}
// GetESystemconfigurationEzsignofficeplan returns the ESystemconfigurationEzsignofficeplan field value if set, zero value otherwise.
func (o *ActivesessionResponseCompound) GetESystemconfigurationEzsignofficeplan() FieldESystemconfigurationEzsignofficeplan {
if o == nil || IsNil(o.ESystemconfigurationEzsignofficeplan) {
var ret FieldESystemconfigurationEzsignofficeplan
return ret
}
return *o.ESystemconfigurationEzsignofficeplan
}
// GetESystemconfigurationEzsignofficeplanOk returns a tuple with the ESystemconfigurationEzsignofficeplan field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetESystemconfigurationEzsignofficeplanOk() (*FieldESystemconfigurationEzsignofficeplan, bool) {
if o == nil || IsNil(o.ESystemconfigurationEzsignofficeplan) {
return nil, false
}
return o.ESystemconfigurationEzsignofficeplan, true
}
// HasESystemconfigurationEzsignofficeplan returns a boolean if a field has been set.
func (o *ActivesessionResponseCompound) HasESystemconfigurationEzsignofficeplan() bool {
if o != nil && !IsNil(o.ESystemconfigurationEzsignofficeplan) {
return true
}
return false
}
// SetESystemconfigurationEzsignofficeplan gets a reference to the given FieldESystemconfigurationEzsignofficeplan and assigns it to the ESystemconfigurationEzsignofficeplan field.
func (o *ActivesessionResponseCompound) SetESystemconfigurationEzsignofficeplan(v FieldESystemconfigurationEzsignofficeplan) {
o.ESystemconfigurationEzsignofficeplan = &v
}
// GetEUserEzsignaccess returns the EUserEzsignaccess field value
func (o *ActivesessionResponseCompound) GetEUserEzsignaccess() FieldEUserEzsignaccess {
if o == nil {
var ret FieldEUserEzsignaccess
return ret
}
return o.EUserEzsignaccess
}
// GetEUserEzsignaccessOk returns a tuple with the EUserEzsignaccess field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetEUserEzsignaccessOk() (*FieldEUserEzsignaccess, bool) {
if o == nil {
return nil, false
}
return &o.EUserEzsignaccess, true
}
// SetEUserEzsignaccess sets field value
func (o *ActivesessionResponseCompound) SetEUserEzsignaccess(v FieldEUserEzsignaccess) {
o.EUserEzsignaccess = v
}
// GetEUserEzsignprepaid returns the EUserEzsignprepaid field value if set, zero value otherwise.
func (o *ActivesessionResponseCompound) GetEUserEzsignprepaid() FieldEUserEzsignprepaid {
if o == nil || IsNil(o.EUserEzsignprepaid) {
var ret FieldEUserEzsignprepaid
return ret
}
return *o.EUserEzsignprepaid
}
// GetEUserEzsignprepaidOk returns a tuple with the EUserEzsignprepaid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetEUserEzsignprepaidOk() (*FieldEUserEzsignprepaid, bool) {
if o == nil || IsNil(o.EUserEzsignprepaid) {
return nil, false
}
return o.EUserEzsignprepaid, true
}
// HasEUserEzsignprepaid returns a boolean if a field has been set.
func (o *ActivesessionResponseCompound) HasEUserEzsignprepaid() bool {
if o != nil && !IsNil(o.EUserEzsignprepaid) {
return true
}
return false
}
// SetEUserEzsignprepaid gets a reference to the given FieldEUserEzsignprepaid and assigns it to the EUserEzsignprepaid field.
func (o *ActivesessionResponseCompound) SetEUserEzsignprepaid(v FieldEUserEzsignprepaid) {
o.EUserEzsignprepaid = &v
}
// GetDtUserEzsignprepaidexpiration returns the DtUserEzsignprepaidexpiration field value if set, zero value otherwise.
func (o *ActivesessionResponseCompound) GetDtUserEzsignprepaidexpiration() string {
if o == nil || IsNil(o.DtUserEzsignprepaidexpiration) {
var ret string
return ret
}
return *o.DtUserEzsignprepaidexpiration
}
// GetDtUserEzsignprepaidexpirationOk returns a tuple with the DtUserEzsignprepaidexpiration field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetDtUserEzsignprepaidexpirationOk() (*string, bool) {
if o == nil || IsNil(o.DtUserEzsignprepaidexpiration) {
return nil, false
}
return o.DtUserEzsignprepaidexpiration, true
}
// HasDtUserEzsignprepaidexpiration returns a boolean if a field has been set.
func (o *ActivesessionResponseCompound) HasDtUserEzsignprepaidexpiration() bool {
if o != nil && !IsNil(o.DtUserEzsignprepaidexpiration) {
return true
}
return false
}
// SetDtUserEzsignprepaidexpiration gets a reference to the given string and assigns it to the DtUserEzsignprepaidexpiration field.
func (o *ActivesessionResponseCompound) SetDtUserEzsignprepaidexpiration(v string) {
o.DtUserEzsignprepaidexpiration = &v
}
// GetAPkiPermissionID returns the APkiPermissionID field value
func (o *ActivesessionResponseCompound) GetAPkiPermissionID() []int32 {
if o == nil {
var ret []int32
return ret
}
return o.APkiPermissionID
}
// GetAPkiPermissionIDOk returns a tuple with the APkiPermissionID field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetAPkiPermissionIDOk() ([]int32, bool) {
if o == nil {
return nil, false
}
return o.APkiPermissionID, true
}
// SetAPkiPermissionID sets field value
func (o *ActivesessionResponseCompound) SetAPkiPermissionID(v []int32) {
o.APkiPermissionID = v
}
// GetObjUserReal returns the ObjUserReal field value
func (o *ActivesessionResponseCompound) GetObjUserReal() ActivesessionResponseCompoundUser {
if o == nil {
var ret ActivesessionResponseCompoundUser
return ret
}
return o.ObjUserReal
}
// GetObjUserRealOk returns a tuple with the ObjUserReal field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetObjUserRealOk() (*ActivesessionResponseCompoundUser, bool) {
if o == nil {
return nil, false
}
return &o.ObjUserReal, true
}
// SetObjUserReal sets field value
func (o *ActivesessionResponseCompound) SetObjUserReal(v ActivesessionResponseCompoundUser) {
o.ObjUserReal = v
}
// GetObjUserCloned returns the ObjUserCloned field value if set, zero value otherwise.
func (o *ActivesessionResponseCompound) GetObjUserCloned() ActivesessionResponseCompoundUser {
if o == nil || IsNil(o.ObjUserCloned) {
var ret ActivesessionResponseCompoundUser
return ret
}
return *o.ObjUserCloned
}
// GetObjUserClonedOk returns a tuple with the ObjUserCloned field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetObjUserClonedOk() (*ActivesessionResponseCompoundUser, bool) {
if o == nil || IsNil(o.ObjUserCloned) {
return nil, false
}
return o.ObjUserCloned, true
}
// HasObjUserCloned returns a boolean if a field has been set.
func (o *ActivesessionResponseCompound) HasObjUserCloned() bool {
if o != nil && !IsNil(o.ObjUserCloned) {
return true
}
return false
}
// SetObjUserCloned gets a reference to the given ActivesessionResponseCompoundUser and assigns it to the ObjUserCloned field.
func (o *ActivesessionResponseCompound) SetObjUserCloned(v ActivesessionResponseCompoundUser) {
o.ObjUserCloned = &v
}
// GetObjApikey returns the ObjApikey field value if set, zero value otherwise.
func (o *ActivesessionResponseCompound) GetObjApikey() ActivesessionResponseCompoundApikey {
if o == nil || IsNil(o.ObjApikey) {
var ret ActivesessionResponseCompoundApikey
return ret
}
return *o.ObjApikey
}
// GetObjApikeyOk returns a tuple with the ObjApikey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetObjApikeyOk() (*ActivesessionResponseCompoundApikey, bool) {
if o == nil || IsNil(o.ObjApikey) {
return nil, false
}
return o.ObjApikey, true
}
// HasObjApikey returns a boolean if a field has been set.
func (o *ActivesessionResponseCompound) HasObjApikey() bool {
if o != nil && !IsNil(o.ObjApikey) {
return true
}
return false
}
// SetObjApikey gets a reference to the given ActivesessionResponseCompoundApikey and assigns it to the ObjApikey field.
func (o *ActivesessionResponseCompound) SetObjApikey(v ActivesessionResponseCompoundApikey) {
o.ObjApikey = &v
}
// GetAEModuleInternalname returns the AEModuleInternalname field value
func (o *ActivesessionResponseCompound) GetAEModuleInternalname() []string {
if o == nil {
var ret []string
return ret
}
return o.AEModuleInternalname
}
// GetAEModuleInternalnameOk returns a tuple with the AEModuleInternalname field value
// and a boolean to check if the value has been set.
func (o *ActivesessionResponseCompound) GetAEModuleInternalnameOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.AEModuleInternalname, true
}
// SetAEModuleInternalname sets field value
func (o *ActivesessionResponseCompound) SetAEModuleInternalname(v []string) {
o.AEModuleInternalname = v
}
func (o ActivesessionResponseCompound) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ActivesessionResponseCompound) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["eActivesessionUsertype"] = o.EActivesessionUsertype
toSerialize["eActivesessionOrigin"] = o.EActivesessionOrigin
toSerialize["eActivesessionWeekdaystart"] = o.EActivesessionWeekdaystart
toSerialize["fkiLanguageID"] = o.FkiLanguageID
toSerialize["sCompanyNameX"] = o.SCompanyNameX
toSerialize["sDepartmentNameX"] = o.SDepartmentNameX
toSerialize["bActivesessionDebug"] = o.BActivesessionDebug
toSerialize["bActivesessionIssuperadmin"] = o.BActivesessionIssuperadmin
toSerialize["pksCustomerCode"] = o.PksCustomerCode
toSerialize["fkiSystemconfigurationtypeID"] = o.FkiSystemconfigurationtypeID
if !IsNil(o.FkiSignatureID) {
toSerialize["fkiSignatureID"] = o.FkiSignatureID
}
if !IsNil(o.BSystemconfigurationEzsignpaidbyoffice) {
toSerialize["bSystemconfigurationEzsignpaidbyoffice"] = o.BSystemconfigurationEzsignpaidbyoffice
}
if !IsNil(o.ESystemconfigurationEzsignofficeplan) {
toSerialize["eSystemconfigurationEzsignofficeplan"] = o.ESystemconfigurationEzsignofficeplan
}
toSerialize["eUserEzsignaccess"] = o.EUserEzsignaccess
if !IsNil(o.EUserEzsignprepaid) {
toSerialize["eUserEzsignprepaid"] = o.EUserEzsignprepaid
}
if !IsNil(o.DtUserEzsignprepaidexpiration) {
toSerialize["dtUserEzsignprepaidexpiration"] = o.DtUserEzsignprepaidexpiration
}
toSerialize["a_pkiPermissionID"] = o.APkiPermissionID
toSerialize["objUserReal"] = o.ObjUserReal
if !IsNil(o.ObjUserCloned) {
toSerialize["objUserCloned"] = o.ObjUserCloned
}
if !IsNil(o.ObjApikey) {
toSerialize["objApikey"] = o.ObjApikey
}
toSerialize["a_eModuleInternalname"] = o.AEModuleInternalname
return toSerialize, nil
}
func (o *ActivesessionResponseCompound) 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{
"eActivesessionUsertype",
"eActivesessionOrigin",
"eActivesessionWeekdaystart",
"fkiLanguageID",
"sCompanyNameX",
"sDepartmentNameX",
"bActivesessionDebug",
"bActivesessionIssuperadmin",
"pksCustomerCode",
"fkiSystemconfigurationtypeID",
"eUserEzsignaccess",
"a_pkiPermissionID",
"objUserReal",
"a_eModuleInternalname",
}
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)
}
}
varActivesessionResponseCompound := _ActivesessionResponseCompound{}
decoder := json.NewDecoder(bytes.NewReader(data))
decoder.DisallowUnknownFields()
err = decoder.Decode(&varActivesessionResponseCompound)
if err != nil {
return err
}
*o = ActivesessionResponseCompound(varActivesessionResponseCompound)
return err
}
type NullableActivesessionResponseCompound struct {
value *ActivesessionResponseCompound
isSet bool
}
func (v NullableActivesessionResponseCompound) Get() *ActivesessionResponseCompound {
return v.value
}
func (v *NullableActivesessionResponseCompound) Set(val *ActivesessionResponseCompound) {
v.value = val
v.isSet = true
}
func (v NullableActivesessionResponseCompound) IsSet() bool {
return v.isSet
}
func (v *NullableActivesessionResponseCompound) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableActivesessionResponseCompound(val *ActivesessionResponseCompound) *NullableActivesessionResponseCompound {
return &NullableActivesessionResponseCompound{value: val, isSet: true}
}
func (v NullableActivesessionResponseCompound) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableActivesessionResponseCompound) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}