-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel_contract.go
More file actions
1015 lines (866 loc) · 27.9 KB
/
model_contract.go
File metadata and controls
1015 lines (866 loc) · 27.9 KB
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
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
External API
## Date type fields API endpoints expected date in UTC±0:00 timezone. Timezones in ISO8601 format will be ignored. API endpoints support date in two formats (one of): ISO8601 ('YYYY-MM-DDTHH:mm:SSZ') or Unix Timestamp (seconds count since January 1st, 1970 at UTC). ## Dropdown fields Some fields are configured as dropdown fields with a dedicated list of values within Oomnitza. You can review the list of available dropdown values within the customization page in Oomnitza. In case you want to be able to post any data into these fields, you should switch them to dropdown without value within the customization page.
API version: 3.0.3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package oomnitza
import (
"encoding/json"
)
// Contract struct for Contract
type Contract struct {
ContractName *string `json:"contract_name,omitempty"`
ContractType *string `json:"contract_type,omitempty"`
SoftwareId *string `json:"software_id,omitempty"`
SaasId *string `json:"saas_id,omitempty"`
DefaultSaasContract *bool `json:"default_saas_contract,omitempty"`
Price *float32 `json:"price,omitempty"`
PaymentSchedule *string `json:"payment_schedule,omitempty"`
RenewalDate *int32 `json:"renewal_date,omitempty"`
ResponsiblePerson *string `json:"responsible_person,omitempty"`
PaymentDate *int32 `json:"payment_date,omitempty"`
Autorenewal *bool `json:"autorenewal,omitempty"`
LimitNumberOfLicenses *bool `json:"limit_number_of_licenses,omitempty"`
NumberOfLicenses *int32 `json:"number_of_licenses,omitempty"`
NumberOfSeats *int32 `json:"number_of_seats,omitempty"`
OversubscribeLicenses *bool `json:"oversubscribe_licenses,omitempty"`
LicenseKey *string `json:"license_key,omitempty"`
CalculatePerUserPrice *bool `json:"calculate_per_user_price,omitempty"`
ChangeDate *int32 `json:"change_date,omitempty"`
Version *string `json:"version,omitempty"`
ChangedBy *string `json:"changed_by,omitempty"`
CreationDate *int32 `json:"creation_date,omitempty"`
CreatedBy *string `json:"created_by,omitempty"`
LicensesInUse *int32 `json:"licenses_in_use,omitempty"`
ContractId *string `json:"contract_id,omitempty"`
Deleted *string `json:"deleted,omitempty"`
Uid *int32 `json:"uid,omitempty"`
}
// NewContract instantiates a new Contract 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 NewContract() *Contract {
this := Contract{}
return &this
}
// NewContractWithDefaults instantiates a new Contract 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 NewContractWithDefaults() *Contract {
this := Contract{}
return &this
}
// GetContractName returns the ContractName field value if set, zero value otherwise.
func (o *Contract) GetContractName() string {
if o == nil || o.ContractName == nil {
var ret string
return ret
}
return *o.ContractName
}
// GetContractNameOk returns a tuple with the ContractName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetContractNameOk() (*string, bool) {
if o == nil || o.ContractName == nil {
return nil, false
}
return o.ContractName, true
}
// HasContractName returns a boolean if a field has been set.
func (o *Contract) HasContractName() bool {
if o != nil && o.ContractName != nil {
return true
}
return false
}
// SetContractName gets a reference to the given string and assigns it to the ContractName field.
func (o *Contract) SetContractName(v string) {
o.ContractName = &v
}
// GetContractType returns the ContractType field value if set, zero value otherwise.
func (o *Contract) GetContractType() string {
if o == nil || o.ContractType == nil {
var ret string
return ret
}
return *o.ContractType
}
// GetContractTypeOk returns a tuple with the ContractType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetContractTypeOk() (*string, bool) {
if o == nil || o.ContractType == nil {
return nil, false
}
return o.ContractType, true
}
// HasContractType returns a boolean if a field has been set.
func (o *Contract) HasContractType() bool {
if o != nil && o.ContractType != nil {
return true
}
return false
}
// SetContractType gets a reference to the given string and assigns it to the ContractType field.
func (o *Contract) SetContractType(v string) {
o.ContractType = &v
}
// GetSoftwareId returns the SoftwareId field value if set, zero value otherwise.
func (o *Contract) GetSoftwareId() string {
if o == nil || o.SoftwareId == nil {
var ret string
return ret
}
return *o.SoftwareId
}
// GetSoftwareIdOk returns a tuple with the SoftwareId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetSoftwareIdOk() (*string, bool) {
if o == nil || o.SoftwareId == nil {
return nil, false
}
return o.SoftwareId, true
}
// HasSoftwareId returns a boolean if a field has been set.
func (o *Contract) HasSoftwareId() bool {
if o != nil && o.SoftwareId != nil {
return true
}
return false
}
// SetSoftwareId gets a reference to the given string and assigns it to the SoftwareId field.
func (o *Contract) SetSoftwareId(v string) {
o.SoftwareId = &v
}
// GetSaasId returns the SaasId field value if set, zero value otherwise.
func (o *Contract) GetSaasId() string {
if o == nil || o.SaasId == nil {
var ret string
return ret
}
return *o.SaasId
}
// GetSaasIdOk returns a tuple with the SaasId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetSaasIdOk() (*string, bool) {
if o == nil || o.SaasId == nil {
return nil, false
}
return o.SaasId, true
}
// HasSaasId returns a boolean if a field has been set.
func (o *Contract) HasSaasId() bool {
if o != nil && o.SaasId != nil {
return true
}
return false
}
// SetSaasId gets a reference to the given string and assigns it to the SaasId field.
func (o *Contract) SetSaasId(v string) {
o.SaasId = &v
}
// GetDefaultSaasContract returns the DefaultSaasContract field value if set, zero value otherwise.
func (o *Contract) GetDefaultSaasContract() bool {
if o == nil || o.DefaultSaasContract == nil {
var ret bool
return ret
}
return *o.DefaultSaasContract
}
// GetDefaultSaasContractOk returns a tuple with the DefaultSaasContract field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetDefaultSaasContractOk() (*bool, bool) {
if o == nil || o.DefaultSaasContract == nil {
return nil, false
}
return o.DefaultSaasContract, true
}
// HasDefaultSaasContract returns a boolean if a field has been set.
func (o *Contract) HasDefaultSaasContract() bool {
if o != nil && o.DefaultSaasContract != nil {
return true
}
return false
}
// SetDefaultSaasContract gets a reference to the given bool and assigns it to the DefaultSaasContract field.
func (o *Contract) SetDefaultSaasContract(v bool) {
o.DefaultSaasContract = &v
}
// GetPrice returns the Price field value if set, zero value otherwise.
func (o *Contract) GetPrice() float32 {
if o == nil || o.Price == nil {
var ret float32
return ret
}
return *o.Price
}
// GetPriceOk returns a tuple with the Price field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetPriceOk() (*float32, bool) {
if o == nil || o.Price == nil {
return nil, false
}
return o.Price, true
}
// HasPrice returns a boolean if a field has been set.
func (o *Contract) HasPrice() bool {
if o != nil && o.Price != nil {
return true
}
return false
}
// SetPrice gets a reference to the given float32 and assigns it to the Price field.
func (o *Contract) SetPrice(v float32) {
o.Price = &v
}
// GetPaymentSchedule returns the PaymentSchedule field value if set, zero value otherwise.
func (o *Contract) GetPaymentSchedule() string {
if o == nil || o.PaymentSchedule == nil {
var ret string
return ret
}
return *o.PaymentSchedule
}
// GetPaymentScheduleOk returns a tuple with the PaymentSchedule field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetPaymentScheduleOk() (*string, bool) {
if o == nil || o.PaymentSchedule == nil {
return nil, false
}
return o.PaymentSchedule, true
}
// HasPaymentSchedule returns a boolean if a field has been set.
func (o *Contract) HasPaymentSchedule() bool {
if o != nil && o.PaymentSchedule != nil {
return true
}
return false
}
// SetPaymentSchedule gets a reference to the given string and assigns it to the PaymentSchedule field.
func (o *Contract) SetPaymentSchedule(v string) {
o.PaymentSchedule = &v
}
// GetRenewalDate returns the RenewalDate field value if set, zero value otherwise.
func (o *Contract) GetRenewalDate() int32 {
if o == nil || o.RenewalDate == nil {
var ret int32
return ret
}
return *o.RenewalDate
}
// GetRenewalDateOk returns a tuple with the RenewalDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetRenewalDateOk() (*int32, bool) {
if o == nil || o.RenewalDate == nil {
return nil, false
}
return o.RenewalDate, true
}
// HasRenewalDate returns a boolean if a field has been set.
func (o *Contract) HasRenewalDate() bool {
if o != nil && o.RenewalDate != nil {
return true
}
return false
}
// SetRenewalDate gets a reference to the given int32 and assigns it to the RenewalDate field.
func (o *Contract) SetRenewalDate(v int32) {
o.RenewalDate = &v
}
// GetResponsiblePerson returns the ResponsiblePerson field value if set, zero value otherwise.
func (o *Contract) GetResponsiblePerson() string {
if o == nil || o.ResponsiblePerson == nil {
var ret string
return ret
}
return *o.ResponsiblePerson
}
// GetResponsiblePersonOk returns a tuple with the ResponsiblePerson field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetResponsiblePersonOk() (*string, bool) {
if o == nil || o.ResponsiblePerson == nil {
return nil, false
}
return o.ResponsiblePerson, true
}
// HasResponsiblePerson returns a boolean if a field has been set.
func (o *Contract) HasResponsiblePerson() bool {
if o != nil && o.ResponsiblePerson != nil {
return true
}
return false
}
// SetResponsiblePerson gets a reference to the given string and assigns it to the ResponsiblePerson field.
func (o *Contract) SetResponsiblePerson(v string) {
o.ResponsiblePerson = &v
}
// GetPaymentDate returns the PaymentDate field value if set, zero value otherwise.
func (o *Contract) GetPaymentDate() int32 {
if o == nil || o.PaymentDate == nil {
var ret int32
return ret
}
return *o.PaymentDate
}
// GetPaymentDateOk returns a tuple with the PaymentDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetPaymentDateOk() (*int32, bool) {
if o == nil || o.PaymentDate == nil {
return nil, false
}
return o.PaymentDate, true
}
// HasPaymentDate returns a boolean if a field has been set.
func (o *Contract) HasPaymentDate() bool {
if o != nil && o.PaymentDate != nil {
return true
}
return false
}
// SetPaymentDate gets a reference to the given int32 and assigns it to the PaymentDate field.
func (o *Contract) SetPaymentDate(v int32) {
o.PaymentDate = &v
}
// GetAutorenewal returns the Autorenewal field value if set, zero value otherwise.
func (o *Contract) GetAutorenewal() bool {
if o == nil || o.Autorenewal == nil {
var ret bool
return ret
}
return *o.Autorenewal
}
// GetAutorenewalOk returns a tuple with the Autorenewal field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetAutorenewalOk() (*bool, bool) {
if o == nil || o.Autorenewal == nil {
return nil, false
}
return o.Autorenewal, true
}
// HasAutorenewal returns a boolean if a field has been set.
func (o *Contract) HasAutorenewal() bool {
if o != nil && o.Autorenewal != nil {
return true
}
return false
}
// SetAutorenewal gets a reference to the given bool and assigns it to the Autorenewal field.
func (o *Contract) SetAutorenewal(v bool) {
o.Autorenewal = &v
}
// GetLimitNumberOfLicenses returns the LimitNumberOfLicenses field value if set, zero value otherwise.
func (o *Contract) GetLimitNumberOfLicenses() bool {
if o == nil || o.LimitNumberOfLicenses == nil {
var ret bool
return ret
}
return *o.LimitNumberOfLicenses
}
// GetLimitNumberOfLicensesOk returns a tuple with the LimitNumberOfLicenses field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetLimitNumberOfLicensesOk() (*bool, bool) {
if o == nil || o.LimitNumberOfLicenses == nil {
return nil, false
}
return o.LimitNumberOfLicenses, true
}
// HasLimitNumberOfLicenses returns a boolean if a field has been set.
func (o *Contract) HasLimitNumberOfLicenses() bool {
if o != nil && o.LimitNumberOfLicenses != nil {
return true
}
return false
}
// SetLimitNumberOfLicenses gets a reference to the given bool and assigns it to the LimitNumberOfLicenses field.
func (o *Contract) SetLimitNumberOfLicenses(v bool) {
o.LimitNumberOfLicenses = &v
}
// GetNumberOfLicenses returns the NumberOfLicenses field value if set, zero value otherwise.
func (o *Contract) GetNumberOfLicenses() int32 {
if o == nil || o.NumberOfLicenses == nil {
var ret int32
return ret
}
return *o.NumberOfLicenses
}
// GetNumberOfLicensesOk returns a tuple with the NumberOfLicenses field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetNumberOfLicensesOk() (*int32, bool) {
if o == nil || o.NumberOfLicenses == nil {
return nil, false
}
return o.NumberOfLicenses, true
}
// HasNumberOfLicenses returns a boolean if a field has been set.
func (o *Contract) HasNumberOfLicenses() bool {
if o != nil && o.NumberOfLicenses != nil {
return true
}
return false
}
// SetNumberOfLicenses gets a reference to the given int32 and assigns it to the NumberOfLicenses field.
func (o *Contract) SetNumberOfLicenses(v int32) {
o.NumberOfLicenses = &v
}
// GetNumberOfSeats returns the NumberOfSeats field value if set, zero value otherwise.
func (o *Contract) GetNumberOfSeats() int32 {
if o == nil || o.NumberOfSeats == nil {
var ret int32
return ret
}
return *o.NumberOfSeats
}
// GetNumberOfSeatsOk returns a tuple with the NumberOfSeats field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetNumberOfSeatsOk() (*int32, bool) {
if o == nil || o.NumberOfSeats == nil {
return nil, false
}
return o.NumberOfSeats, true
}
// HasNumberOfSeats returns a boolean if a field has been set.
func (o *Contract) HasNumberOfSeats() bool {
if o != nil && o.NumberOfSeats != nil {
return true
}
return false
}
// SetNumberOfSeats gets a reference to the given int32 and assigns it to the NumberOfSeats field.
func (o *Contract) SetNumberOfSeats(v int32) {
o.NumberOfSeats = &v
}
// GetOversubscribeLicenses returns the OversubscribeLicenses field value if set, zero value otherwise.
func (o *Contract) GetOversubscribeLicenses() bool {
if o == nil || o.OversubscribeLicenses == nil {
var ret bool
return ret
}
return *o.OversubscribeLicenses
}
// GetOversubscribeLicensesOk returns a tuple with the OversubscribeLicenses field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetOversubscribeLicensesOk() (*bool, bool) {
if o == nil || o.OversubscribeLicenses == nil {
return nil, false
}
return o.OversubscribeLicenses, true
}
// HasOversubscribeLicenses returns a boolean if a field has been set.
func (o *Contract) HasOversubscribeLicenses() bool {
if o != nil && o.OversubscribeLicenses != nil {
return true
}
return false
}
// SetOversubscribeLicenses gets a reference to the given bool and assigns it to the OversubscribeLicenses field.
func (o *Contract) SetOversubscribeLicenses(v bool) {
o.OversubscribeLicenses = &v
}
// GetLicenseKey returns the LicenseKey field value if set, zero value otherwise.
func (o *Contract) GetLicenseKey() string {
if o == nil || o.LicenseKey == nil {
var ret string
return ret
}
return *o.LicenseKey
}
// GetLicenseKeyOk returns a tuple with the LicenseKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetLicenseKeyOk() (*string, bool) {
if o == nil || o.LicenseKey == nil {
return nil, false
}
return o.LicenseKey, true
}
// HasLicenseKey returns a boolean if a field has been set.
func (o *Contract) HasLicenseKey() bool {
if o != nil && o.LicenseKey != nil {
return true
}
return false
}
// SetLicenseKey gets a reference to the given string and assigns it to the LicenseKey field.
func (o *Contract) SetLicenseKey(v string) {
o.LicenseKey = &v
}
// GetCalculatePerUserPrice returns the CalculatePerUserPrice field value if set, zero value otherwise.
func (o *Contract) GetCalculatePerUserPrice() bool {
if o == nil || o.CalculatePerUserPrice == nil {
var ret bool
return ret
}
return *o.CalculatePerUserPrice
}
// GetCalculatePerUserPriceOk returns a tuple with the CalculatePerUserPrice field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetCalculatePerUserPriceOk() (*bool, bool) {
if o == nil || o.CalculatePerUserPrice == nil {
return nil, false
}
return o.CalculatePerUserPrice, true
}
// HasCalculatePerUserPrice returns a boolean if a field has been set.
func (o *Contract) HasCalculatePerUserPrice() bool {
if o != nil && o.CalculatePerUserPrice != nil {
return true
}
return false
}
// SetCalculatePerUserPrice gets a reference to the given bool and assigns it to the CalculatePerUserPrice field.
func (o *Contract) SetCalculatePerUserPrice(v bool) {
o.CalculatePerUserPrice = &v
}
// GetChangeDate returns the ChangeDate field value if set, zero value otherwise.
func (o *Contract) GetChangeDate() int32 {
if o == nil || o.ChangeDate == nil {
var ret int32
return ret
}
return *o.ChangeDate
}
// GetChangeDateOk returns a tuple with the ChangeDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetChangeDateOk() (*int32, bool) {
if o == nil || o.ChangeDate == nil {
return nil, false
}
return o.ChangeDate, true
}
// HasChangeDate returns a boolean if a field has been set.
func (o *Contract) HasChangeDate() bool {
if o != nil && o.ChangeDate != nil {
return true
}
return false
}
// SetChangeDate gets a reference to the given int32 and assigns it to the ChangeDate field.
func (o *Contract) SetChangeDate(v int32) {
o.ChangeDate = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *Contract) GetVersion() string {
if o == nil || o.Version == nil {
var ret string
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetVersionOk() (*string, bool) {
if o == nil || o.Version == nil {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *Contract) HasVersion() bool {
if o != nil && o.Version != nil {
return true
}
return false
}
// SetVersion gets a reference to the given string and assigns it to the Version field.
func (o *Contract) SetVersion(v string) {
o.Version = &v
}
// GetChangedBy returns the ChangedBy field value if set, zero value otherwise.
func (o *Contract) GetChangedBy() string {
if o == nil || o.ChangedBy == nil {
var ret string
return ret
}
return *o.ChangedBy
}
// GetChangedByOk returns a tuple with the ChangedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetChangedByOk() (*string, bool) {
if o == nil || o.ChangedBy == nil {
return nil, false
}
return o.ChangedBy, true
}
// HasChangedBy returns a boolean if a field has been set.
func (o *Contract) HasChangedBy() bool {
if o != nil && o.ChangedBy != nil {
return true
}
return false
}
// SetChangedBy gets a reference to the given string and assigns it to the ChangedBy field.
func (o *Contract) SetChangedBy(v string) {
o.ChangedBy = &v
}
// GetCreationDate returns the CreationDate field value if set, zero value otherwise.
func (o *Contract) GetCreationDate() int32 {
if o == nil || o.CreationDate == nil {
var ret int32
return ret
}
return *o.CreationDate
}
// GetCreationDateOk returns a tuple with the CreationDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetCreationDateOk() (*int32, bool) {
if o == nil || o.CreationDate == nil {
return nil, false
}
return o.CreationDate, true
}
// HasCreationDate returns a boolean if a field has been set.
func (o *Contract) HasCreationDate() bool {
if o != nil && o.CreationDate != nil {
return true
}
return false
}
// SetCreationDate gets a reference to the given int32 and assigns it to the CreationDate field.
func (o *Contract) SetCreationDate(v int32) {
o.CreationDate = &v
}
// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *Contract) GetCreatedBy() string {
if o == nil || o.CreatedBy == nil {
var ret string
return ret
}
return *o.CreatedBy
}
// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetCreatedByOk() (*string, bool) {
if o == nil || o.CreatedBy == nil {
return nil, false
}
return o.CreatedBy, true
}
// HasCreatedBy returns a boolean if a field has been set.
func (o *Contract) HasCreatedBy() bool {
if o != nil && o.CreatedBy != nil {
return true
}
return false
}
// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field.
func (o *Contract) SetCreatedBy(v string) {
o.CreatedBy = &v
}
// GetLicensesInUse returns the LicensesInUse field value if set, zero value otherwise.
func (o *Contract) GetLicensesInUse() int32 {
if o == nil || o.LicensesInUse == nil {
var ret int32
return ret
}
return *o.LicensesInUse
}
// GetLicensesInUseOk returns a tuple with the LicensesInUse field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetLicensesInUseOk() (*int32, bool) {
if o == nil || o.LicensesInUse == nil {
return nil, false
}
return o.LicensesInUse, true
}
// HasLicensesInUse returns a boolean if a field has been set.
func (o *Contract) HasLicensesInUse() bool {
if o != nil && o.LicensesInUse != nil {
return true
}
return false
}
// SetLicensesInUse gets a reference to the given int32 and assigns it to the LicensesInUse field.
func (o *Contract) SetLicensesInUse(v int32) {
o.LicensesInUse = &v
}
// GetContractId returns the ContractId field value if set, zero value otherwise.
func (o *Contract) GetContractId() string {
if o == nil || o.ContractId == nil {
var ret string
return ret
}
return *o.ContractId
}
// GetContractIdOk returns a tuple with the ContractId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetContractIdOk() (*string, bool) {
if o == nil || o.ContractId == nil {
return nil, false
}
return o.ContractId, true
}
// HasContractId returns a boolean if a field has been set.
func (o *Contract) HasContractId() bool {
if o != nil && o.ContractId != nil {
return true
}
return false
}
// SetContractId gets a reference to the given string and assigns it to the ContractId field.
func (o *Contract) SetContractId(v string) {
o.ContractId = &v
}
// GetDeleted returns the Deleted field value if set, zero value otherwise.
func (o *Contract) GetDeleted() string {
if o == nil || o.Deleted == nil {
var ret string
return ret
}
return *o.Deleted
}
// GetDeletedOk returns a tuple with the Deleted field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetDeletedOk() (*string, bool) {
if o == nil || o.Deleted == nil {
return nil, false
}
return o.Deleted, true
}
// HasDeleted returns a boolean if a field has been set.
func (o *Contract) HasDeleted() bool {
if o != nil && o.Deleted != nil {
return true
}
return false
}
// SetDeleted gets a reference to the given string and assigns it to the Deleted field.
func (o *Contract) SetDeleted(v string) {
o.Deleted = &v
}
// GetUid returns the Uid field value if set, zero value otherwise.
func (o *Contract) GetUid() int32 {
if o == nil || o.Uid == nil {
var ret int32
return ret
}
return *o.Uid
}
// GetUidOk returns a tuple with the Uid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Contract) GetUidOk() (*int32, bool) {
if o == nil || o.Uid == nil {
return nil, false
}
return o.Uid, true
}
// HasUid returns a boolean if a field has been set.
func (o *Contract) HasUid() bool {
if o != nil && o.Uid != nil {
return true
}
return false
}
// SetUid gets a reference to the given int32 and assigns it to the Uid field.
func (o *Contract) SetUid(v int32) {
o.Uid = &v
}
func (o Contract) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.ContractName != nil {
toSerialize["contract_name"] = o.ContractName
}
if o.ContractType != nil {
toSerialize["contract_type"] = o.ContractType
}
if o.SoftwareId != nil {
toSerialize["software_id"] = o.SoftwareId
}
if o.SaasId != nil {
toSerialize["saas_id"] = o.SaasId
}
if o.DefaultSaasContract != nil {
toSerialize["default_saas_contract"] = o.DefaultSaasContract
}
if o.Price != nil {
toSerialize["price"] = o.Price
}
if o.PaymentSchedule != nil {
toSerialize["payment_schedule"] = o.PaymentSchedule
}
if o.RenewalDate != nil {
toSerialize["renewal_date"] = o.RenewalDate
}
if o.ResponsiblePerson != nil {
toSerialize["responsible_person"] = o.ResponsiblePerson
}
if o.PaymentDate != nil {
toSerialize["payment_date"] = o.PaymentDate
}
if o.Autorenewal != nil {
toSerialize["autorenewal"] = o.Autorenewal
}
if o.LimitNumberOfLicenses != nil {
toSerialize["limit_number_of_licenses"] = o.LimitNumberOfLicenses
}
if o.NumberOfLicenses != nil {
toSerialize["number_of_licenses"] = o.NumberOfLicenses
}
if o.NumberOfSeats != nil {
toSerialize["number_of_seats"] = o.NumberOfSeats
}
if o.OversubscribeLicenses != nil {
toSerialize["oversubscribe_licenses"] = o.OversubscribeLicenses
}
if o.LicenseKey != nil {
toSerialize["license_key"] = o.LicenseKey
}
if o.CalculatePerUserPrice != nil {
toSerialize["calculate_per_user_price"] = o.CalculatePerUserPrice
}
if o.ChangeDate != nil {
toSerialize["change_date"] = o.ChangeDate
}
if o.Version != nil {
toSerialize["version"] = o.Version
}
if o.ChangedBy != nil {
toSerialize["changed_by"] = o.ChangedBy
}
if o.CreationDate != nil {
toSerialize["creation_date"] = o.CreationDate
}
if o.CreatedBy != nil {
toSerialize["created_by"] = o.CreatedBy
}
if o.LicensesInUse != nil {
toSerialize["licenses_in_use"] = o.LicensesInUse
}
if o.ContractId != nil {
toSerialize["contract_id"] = o.ContractId
}
if o.Deleted != nil {
toSerialize["deleted"] = o.Deleted
}
if o.Uid != nil {
toSerialize["uid"] = o.Uid
}
return json.Marshal(toSerialize)
}
type NullableContract struct {
value *Contract
isSet bool
}
func (v NullableContract) Get() *Contract {
return v.value
}
func (v *NullableContract) Set(val *Contract) {
v.value = val
v.isSet = true
}
func (v NullableContract) IsSet() bool {
return v.isSet
}
func (v *NullableContract) Unset() {
v.value = nil
v.isSet = false
}