-
Notifications
You must be signed in to change notification settings - Fork 2
/
model_holding_response.go
964 lines (829 loc) · 28.8 KB
/
model_holding_response.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
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
/*
MX Platform API
The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions.
API version: 0.1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package mxplatformgo
import (
"encoding/json"
)
// checks if the HoldingResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &HoldingResponse{}
// HoldingResponse struct for HoldingResponse
type HoldingResponse struct {
AccountGuid NullableString `json:"account_guid,omitempty"`
CostBasis NullableFloat32 `json:"cost_basis,omitempty"`
CreatedAt NullableString `json:"created_at,omitempty"`
CurrencyCode NullableString `json:"currency_code,omitempty"`
Cusip NullableString `json:"cusip,omitempty"`
DailyChange NullableFloat32 `json:"daily_change,omitempty"`
Description NullableString `json:"description,omitempty"`
Guid NullableString `json:"guid,omitempty"`
HoldingType NullableString `json:"holding_type,omitempty"`
HoldingTypeId NullableInt32 `json:"holding_type_id,omitempty"`
Id NullableString `json:"id,omitempty"`
MarketValue NullableFloat32 `json:"market_value,omitempty"`
MemberGuid NullableString `json:"member_guid,omitempty"`
Metadata NullableString `json:"metadata,omitempty"`
PurchasePrice NullableFloat32 `json:"purchase_price,omitempty"`
Shares NullableFloat32 `json:"shares,omitempty"`
Symbol NullableString `json:"symbol,omitempty"`
UpdatedAt NullableString `json:"updated_at,omitempty"`
UserGuid NullableString `json:"user_guid,omitempty"`
}
// NewHoldingResponse instantiates a new HoldingResponse 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 NewHoldingResponse() *HoldingResponse {
this := HoldingResponse{}
return &this
}
// NewHoldingResponseWithDefaults instantiates a new HoldingResponse 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 NewHoldingResponseWithDefaults() *HoldingResponse {
this := HoldingResponse{}
return &this
}
// GetAccountGuid returns the AccountGuid field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetAccountGuid() string {
if o == nil || IsNil(o.AccountGuid.Get()) {
var ret string
return ret
}
return *o.AccountGuid.Get()
}
// GetAccountGuidOk returns a tuple with the AccountGuid field value if set, nil otherwise
// 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 *HoldingResponse) GetAccountGuidOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.AccountGuid.Get(), o.AccountGuid.IsSet()
}
// HasAccountGuid returns a boolean if a field has been set.
func (o *HoldingResponse) HasAccountGuid() bool {
if o != nil && o.AccountGuid.IsSet() {
return true
}
return false
}
// SetAccountGuid gets a reference to the given NullableString and assigns it to the AccountGuid field.
func (o *HoldingResponse) SetAccountGuid(v string) {
o.AccountGuid.Set(&v)
}
// SetAccountGuidNil sets the value for AccountGuid to be an explicit nil
func (o *HoldingResponse) SetAccountGuidNil() {
o.AccountGuid.Set(nil)
}
// UnsetAccountGuid ensures that no value is present for AccountGuid, not even an explicit nil
func (o *HoldingResponse) UnsetAccountGuid() {
o.AccountGuid.Unset()
}
// GetCostBasis returns the CostBasis field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetCostBasis() float32 {
if o == nil || IsNil(o.CostBasis.Get()) {
var ret float32
return ret
}
return *o.CostBasis.Get()
}
// GetCostBasisOk returns a tuple with the CostBasis field value if set, nil otherwise
// 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 *HoldingResponse) GetCostBasisOk() (*float32, bool) {
if o == nil {
return nil, false
}
return o.CostBasis.Get(), o.CostBasis.IsSet()
}
// HasCostBasis returns a boolean if a field has been set.
func (o *HoldingResponse) HasCostBasis() bool {
if o != nil && o.CostBasis.IsSet() {
return true
}
return false
}
// SetCostBasis gets a reference to the given NullableFloat32 and assigns it to the CostBasis field.
func (o *HoldingResponse) SetCostBasis(v float32) {
o.CostBasis.Set(&v)
}
// SetCostBasisNil sets the value for CostBasis to be an explicit nil
func (o *HoldingResponse) SetCostBasisNil() {
o.CostBasis.Set(nil)
}
// UnsetCostBasis ensures that no value is present for CostBasis, not even an explicit nil
func (o *HoldingResponse) UnsetCostBasis() {
o.CostBasis.Unset()
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetCreatedAt() string {
if o == nil || IsNil(o.CreatedAt.Get()) {
var ret string
return ret
}
return *o.CreatedAt.Get()
}
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
// 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 *HoldingResponse) GetCreatedAtOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CreatedAt.Get(), o.CreatedAt.IsSet()
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *HoldingResponse) HasCreatedAt() bool {
if o != nil && o.CreatedAt.IsSet() {
return true
}
return false
}
// SetCreatedAt gets a reference to the given NullableString and assigns it to the CreatedAt field.
func (o *HoldingResponse) SetCreatedAt(v string) {
o.CreatedAt.Set(&v)
}
// SetCreatedAtNil sets the value for CreatedAt to be an explicit nil
func (o *HoldingResponse) SetCreatedAtNil() {
o.CreatedAt.Set(nil)
}
// UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil
func (o *HoldingResponse) UnsetCreatedAt() {
o.CreatedAt.Unset()
}
// GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetCurrencyCode() string {
if o == nil || IsNil(o.CurrencyCode.Get()) {
var ret string
return ret
}
return *o.CurrencyCode.Get()
}
// GetCurrencyCodeOk returns a tuple with the CurrencyCode field value if set, nil otherwise
// 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 *HoldingResponse) GetCurrencyCodeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CurrencyCode.Get(), o.CurrencyCode.IsSet()
}
// HasCurrencyCode returns a boolean if a field has been set.
func (o *HoldingResponse) HasCurrencyCode() bool {
if o != nil && o.CurrencyCode.IsSet() {
return true
}
return false
}
// SetCurrencyCode gets a reference to the given NullableString and assigns it to the CurrencyCode field.
func (o *HoldingResponse) SetCurrencyCode(v string) {
o.CurrencyCode.Set(&v)
}
// SetCurrencyCodeNil sets the value for CurrencyCode to be an explicit nil
func (o *HoldingResponse) SetCurrencyCodeNil() {
o.CurrencyCode.Set(nil)
}
// UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil
func (o *HoldingResponse) UnsetCurrencyCode() {
o.CurrencyCode.Unset()
}
// GetCusip returns the Cusip field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetCusip() string {
if o == nil || IsNil(o.Cusip.Get()) {
var ret string
return ret
}
return *o.Cusip.Get()
}
// GetCusipOk returns a tuple with the Cusip field value if set, nil otherwise
// 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 *HoldingResponse) GetCusipOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Cusip.Get(), o.Cusip.IsSet()
}
// HasCusip returns a boolean if a field has been set.
func (o *HoldingResponse) HasCusip() bool {
if o != nil && o.Cusip.IsSet() {
return true
}
return false
}
// SetCusip gets a reference to the given NullableString and assigns it to the Cusip field.
func (o *HoldingResponse) SetCusip(v string) {
o.Cusip.Set(&v)
}
// SetCusipNil sets the value for Cusip to be an explicit nil
func (o *HoldingResponse) SetCusipNil() {
o.Cusip.Set(nil)
}
// UnsetCusip ensures that no value is present for Cusip, not even an explicit nil
func (o *HoldingResponse) UnsetCusip() {
o.Cusip.Unset()
}
// GetDailyChange returns the DailyChange field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetDailyChange() float32 {
if o == nil || IsNil(o.DailyChange.Get()) {
var ret float32
return ret
}
return *o.DailyChange.Get()
}
// GetDailyChangeOk returns a tuple with the DailyChange field value if set, nil otherwise
// 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 *HoldingResponse) GetDailyChangeOk() (*float32, bool) {
if o == nil {
return nil, false
}
return o.DailyChange.Get(), o.DailyChange.IsSet()
}
// HasDailyChange returns a boolean if a field has been set.
func (o *HoldingResponse) HasDailyChange() bool {
if o != nil && o.DailyChange.IsSet() {
return true
}
return false
}
// SetDailyChange gets a reference to the given NullableFloat32 and assigns it to the DailyChange field.
func (o *HoldingResponse) SetDailyChange(v float32) {
o.DailyChange.Set(&v)
}
// SetDailyChangeNil sets the value for DailyChange to be an explicit nil
func (o *HoldingResponse) SetDailyChangeNil() {
o.DailyChange.Set(nil)
}
// UnsetDailyChange ensures that no value is present for DailyChange, not even an explicit nil
func (o *HoldingResponse) UnsetDailyChange() {
o.DailyChange.Unset()
}
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetDescription() string {
if o == nil || IsNil(o.Description.Get()) {
var ret string
return ret
}
return *o.Description.Get()
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// 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 *HoldingResponse) GetDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Description.Get(), o.Description.IsSet()
}
// HasDescription returns a boolean if a field has been set.
func (o *HoldingResponse) HasDescription() bool {
if o != nil && o.Description.IsSet() {
return true
}
return false
}
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
func (o *HoldingResponse) SetDescription(v string) {
o.Description.Set(&v)
}
// SetDescriptionNil sets the value for Description to be an explicit nil
func (o *HoldingResponse) SetDescriptionNil() {
o.Description.Set(nil)
}
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *HoldingResponse) UnsetDescription() {
o.Description.Unset()
}
// GetGuid returns the Guid field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetGuid() string {
if o == nil || IsNil(o.Guid.Get()) {
var ret string
return ret
}
return *o.Guid.Get()
}
// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise
// 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 *HoldingResponse) GetGuidOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Guid.Get(), o.Guid.IsSet()
}
// HasGuid returns a boolean if a field has been set.
func (o *HoldingResponse) HasGuid() bool {
if o != nil && o.Guid.IsSet() {
return true
}
return false
}
// SetGuid gets a reference to the given NullableString and assigns it to the Guid field.
func (o *HoldingResponse) SetGuid(v string) {
o.Guid.Set(&v)
}
// SetGuidNil sets the value for Guid to be an explicit nil
func (o *HoldingResponse) SetGuidNil() {
o.Guid.Set(nil)
}
// UnsetGuid ensures that no value is present for Guid, not even an explicit nil
func (o *HoldingResponse) UnsetGuid() {
o.Guid.Unset()
}
// GetHoldingType returns the HoldingType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetHoldingType() string {
if o == nil || IsNil(o.HoldingType.Get()) {
var ret string
return ret
}
return *o.HoldingType.Get()
}
// GetHoldingTypeOk returns a tuple with the HoldingType field value if set, nil otherwise
// 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 *HoldingResponse) GetHoldingTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.HoldingType.Get(), o.HoldingType.IsSet()
}
// HasHoldingType returns a boolean if a field has been set.
func (o *HoldingResponse) HasHoldingType() bool {
if o != nil && o.HoldingType.IsSet() {
return true
}
return false
}
// SetHoldingType gets a reference to the given NullableString and assigns it to the HoldingType field.
func (o *HoldingResponse) SetHoldingType(v string) {
o.HoldingType.Set(&v)
}
// SetHoldingTypeNil sets the value for HoldingType to be an explicit nil
func (o *HoldingResponse) SetHoldingTypeNil() {
o.HoldingType.Set(nil)
}
// UnsetHoldingType ensures that no value is present for HoldingType, not even an explicit nil
func (o *HoldingResponse) UnsetHoldingType() {
o.HoldingType.Unset()
}
// GetHoldingTypeId returns the HoldingTypeId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetHoldingTypeId() int32 {
if o == nil || IsNil(o.HoldingTypeId.Get()) {
var ret int32
return ret
}
return *o.HoldingTypeId.Get()
}
// GetHoldingTypeIdOk returns a tuple with the HoldingTypeId field value if set, nil otherwise
// 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 *HoldingResponse) GetHoldingTypeIdOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.HoldingTypeId.Get(), o.HoldingTypeId.IsSet()
}
// HasHoldingTypeId returns a boolean if a field has been set.
func (o *HoldingResponse) HasHoldingTypeId() bool {
if o != nil && o.HoldingTypeId.IsSet() {
return true
}
return false
}
// SetHoldingTypeId gets a reference to the given NullableInt32 and assigns it to the HoldingTypeId field.
func (o *HoldingResponse) SetHoldingTypeId(v int32) {
o.HoldingTypeId.Set(&v)
}
// SetHoldingTypeIdNil sets the value for HoldingTypeId to be an explicit nil
func (o *HoldingResponse) SetHoldingTypeIdNil() {
o.HoldingTypeId.Set(nil)
}
// UnsetHoldingTypeId ensures that no value is present for HoldingTypeId, not even an explicit nil
func (o *HoldingResponse) UnsetHoldingTypeId() {
o.HoldingTypeId.Unset()
}
// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetId() string {
if o == nil || IsNil(o.Id.Get()) {
var ret string
return ret
}
return *o.Id.Get()
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// 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 *HoldingResponse) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Id.Get(), o.Id.IsSet()
}
// HasId returns a boolean if a field has been set.
func (o *HoldingResponse) HasId() bool {
if o != nil && o.Id.IsSet() {
return true
}
return false
}
// SetId gets a reference to the given NullableString and assigns it to the Id field.
func (o *HoldingResponse) SetId(v string) {
o.Id.Set(&v)
}
// SetIdNil sets the value for Id to be an explicit nil
func (o *HoldingResponse) SetIdNil() {
o.Id.Set(nil)
}
// UnsetId ensures that no value is present for Id, not even an explicit nil
func (o *HoldingResponse) UnsetId() {
o.Id.Unset()
}
// GetMarketValue returns the MarketValue field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetMarketValue() float32 {
if o == nil || IsNil(o.MarketValue.Get()) {
var ret float32
return ret
}
return *o.MarketValue.Get()
}
// GetMarketValueOk returns a tuple with the MarketValue field value if set, nil otherwise
// 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 *HoldingResponse) GetMarketValueOk() (*float32, bool) {
if o == nil {
return nil, false
}
return o.MarketValue.Get(), o.MarketValue.IsSet()
}
// HasMarketValue returns a boolean if a field has been set.
func (o *HoldingResponse) HasMarketValue() bool {
if o != nil && o.MarketValue.IsSet() {
return true
}
return false
}
// SetMarketValue gets a reference to the given NullableFloat32 and assigns it to the MarketValue field.
func (o *HoldingResponse) SetMarketValue(v float32) {
o.MarketValue.Set(&v)
}
// SetMarketValueNil sets the value for MarketValue to be an explicit nil
func (o *HoldingResponse) SetMarketValueNil() {
o.MarketValue.Set(nil)
}
// UnsetMarketValue ensures that no value is present for MarketValue, not even an explicit nil
func (o *HoldingResponse) UnsetMarketValue() {
o.MarketValue.Unset()
}
// GetMemberGuid returns the MemberGuid field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetMemberGuid() string {
if o == nil || IsNil(o.MemberGuid.Get()) {
var ret string
return ret
}
return *o.MemberGuid.Get()
}
// GetMemberGuidOk returns a tuple with the MemberGuid field value if set, nil otherwise
// 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 *HoldingResponse) GetMemberGuidOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MemberGuid.Get(), o.MemberGuid.IsSet()
}
// HasMemberGuid returns a boolean if a field has been set.
func (o *HoldingResponse) HasMemberGuid() bool {
if o != nil && o.MemberGuid.IsSet() {
return true
}
return false
}
// SetMemberGuid gets a reference to the given NullableString and assigns it to the MemberGuid field.
func (o *HoldingResponse) SetMemberGuid(v string) {
o.MemberGuid.Set(&v)
}
// SetMemberGuidNil sets the value for MemberGuid to be an explicit nil
func (o *HoldingResponse) SetMemberGuidNil() {
o.MemberGuid.Set(nil)
}
// UnsetMemberGuid ensures that no value is present for MemberGuid, not even an explicit nil
func (o *HoldingResponse) UnsetMemberGuid() {
o.MemberGuid.Unset()
}
// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetMetadata() string {
if o == nil || IsNil(o.Metadata.Get()) {
var ret string
return ret
}
return *o.Metadata.Get()
}
// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise
// 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 *HoldingResponse) GetMetadataOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Metadata.Get(), o.Metadata.IsSet()
}
// HasMetadata returns a boolean if a field has been set.
func (o *HoldingResponse) HasMetadata() bool {
if o != nil && o.Metadata.IsSet() {
return true
}
return false
}
// SetMetadata gets a reference to the given NullableString and assigns it to the Metadata field.
func (o *HoldingResponse) SetMetadata(v string) {
o.Metadata.Set(&v)
}
// SetMetadataNil sets the value for Metadata to be an explicit nil
func (o *HoldingResponse) SetMetadataNil() {
o.Metadata.Set(nil)
}
// UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil
func (o *HoldingResponse) UnsetMetadata() {
o.Metadata.Unset()
}
// GetPurchasePrice returns the PurchasePrice field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetPurchasePrice() float32 {
if o == nil || IsNil(o.PurchasePrice.Get()) {
var ret float32
return ret
}
return *o.PurchasePrice.Get()
}
// GetPurchasePriceOk returns a tuple with the PurchasePrice field value if set, nil otherwise
// 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 *HoldingResponse) GetPurchasePriceOk() (*float32, bool) {
if o == nil {
return nil, false
}
return o.PurchasePrice.Get(), o.PurchasePrice.IsSet()
}
// HasPurchasePrice returns a boolean if a field has been set.
func (o *HoldingResponse) HasPurchasePrice() bool {
if o != nil && o.PurchasePrice.IsSet() {
return true
}
return false
}
// SetPurchasePrice gets a reference to the given NullableFloat32 and assigns it to the PurchasePrice field.
func (o *HoldingResponse) SetPurchasePrice(v float32) {
o.PurchasePrice.Set(&v)
}
// SetPurchasePriceNil sets the value for PurchasePrice to be an explicit nil
func (o *HoldingResponse) SetPurchasePriceNil() {
o.PurchasePrice.Set(nil)
}
// UnsetPurchasePrice ensures that no value is present for PurchasePrice, not even an explicit nil
func (o *HoldingResponse) UnsetPurchasePrice() {
o.PurchasePrice.Unset()
}
// GetShares returns the Shares field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetShares() float32 {
if o == nil || IsNil(o.Shares.Get()) {
var ret float32
return ret
}
return *o.Shares.Get()
}
// GetSharesOk returns a tuple with the Shares field value if set, nil otherwise
// 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 *HoldingResponse) GetSharesOk() (*float32, bool) {
if o == nil {
return nil, false
}
return o.Shares.Get(), o.Shares.IsSet()
}
// HasShares returns a boolean if a field has been set.
func (o *HoldingResponse) HasShares() bool {
if o != nil && o.Shares.IsSet() {
return true
}
return false
}
// SetShares gets a reference to the given NullableFloat32 and assigns it to the Shares field.
func (o *HoldingResponse) SetShares(v float32) {
o.Shares.Set(&v)
}
// SetSharesNil sets the value for Shares to be an explicit nil
func (o *HoldingResponse) SetSharesNil() {
o.Shares.Set(nil)
}
// UnsetShares ensures that no value is present for Shares, not even an explicit nil
func (o *HoldingResponse) UnsetShares() {
o.Shares.Unset()
}
// GetSymbol returns the Symbol field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetSymbol() string {
if o == nil || IsNil(o.Symbol.Get()) {
var ret string
return ret
}
return *o.Symbol.Get()
}
// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise
// 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 *HoldingResponse) GetSymbolOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Symbol.Get(), o.Symbol.IsSet()
}
// HasSymbol returns a boolean if a field has been set.
func (o *HoldingResponse) HasSymbol() bool {
if o != nil && o.Symbol.IsSet() {
return true
}
return false
}
// SetSymbol gets a reference to the given NullableString and assigns it to the Symbol field.
func (o *HoldingResponse) SetSymbol(v string) {
o.Symbol.Set(&v)
}
// SetSymbolNil sets the value for Symbol to be an explicit nil
func (o *HoldingResponse) SetSymbolNil() {
o.Symbol.Set(nil)
}
// UnsetSymbol ensures that no value is present for Symbol, not even an explicit nil
func (o *HoldingResponse) UnsetSymbol() {
o.Symbol.Unset()
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetUpdatedAt() string {
if o == nil || IsNil(o.UpdatedAt.Get()) {
var ret string
return ret
}
return *o.UpdatedAt.Get()
}
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
// 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 *HoldingResponse) GetUpdatedAtOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.UpdatedAt.Get(), o.UpdatedAt.IsSet()
}
// HasUpdatedAt returns a boolean if a field has been set.
func (o *HoldingResponse) HasUpdatedAt() bool {
if o != nil && o.UpdatedAt.IsSet() {
return true
}
return false
}
// SetUpdatedAt gets a reference to the given NullableString and assigns it to the UpdatedAt field.
func (o *HoldingResponse) SetUpdatedAt(v string) {
o.UpdatedAt.Set(&v)
}
// SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil
func (o *HoldingResponse) SetUpdatedAtNil() {
o.UpdatedAt.Set(nil)
}
// UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil
func (o *HoldingResponse) UnsetUpdatedAt() {
o.UpdatedAt.Unset()
}
// GetUserGuid returns the UserGuid field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HoldingResponse) GetUserGuid() string {
if o == nil || IsNil(o.UserGuid.Get()) {
var ret string
return ret
}
return *o.UserGuid.Get()
}
// GetUserGuidOk returns a tuple with the UserGuid field value if set, nil otherwise
// 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 *HoldingResponse) GetUserGuidOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.UserGuid.Get(), o.UserGuid.IsSet()
}
// HasUserGuid returns a boolean if a field has been set.
func (o *HoldingResponse) HasUserGuid() bool {
if o != nil && o.UserGuid.IsSet() {
return true
}
return false
}
// SetUserGuid gets a reference to the given NullableString and assigns it to the UserGuid field.
func (o *HoldingResponse) SetUserGuid(v string) {
o.UserGuid.Set(&v)
}
// SetUserGuidNil sets the value for UserGuid to be an explicit nil
func (o *HoldingResponse) SetUserGuidNil() {
o.UserGuid.Set(nil)
}
// UnsetUserGuid ensures that no value is present for UserGuid, not even an explicit nil
func (o *HoldingResponse) UnsetUserGuid() {
o.UserGuid.Unset()
}
func (o HoldingResponse) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o HoldingResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.AccountGuid.IsSet() {
toSerialize["account_guid"] = o.AccountGuid.Get()
}
if o.CostBasis.IsSet() {
toSerialize["cost_basis"] = o.CostBasis.Get()
}
if o.CreatedAt.IsSet() {
toSerialize["created_at"] = o.CreatedAt.Get()
}
if o.CurrencyCode.IsSet() {
toSerialize["currency_code"] = o.CurrencyCode.Get()
}
if o.Cusip.IsSet() {
toSerialize["cusip"] = o.Cusip.Get()
}
if o.DailyChange.IsSet() {
toSerialize["daily_change"] = o.DailyChange.Get()
}
if o.Description.IsSet() {
toSerialize["description"] = o.Description.Get()
}
if o.Guid.IsSet() {
toSerialize["guid"] = o.Guid.Get()
}
if o.HoldingType.IsSet() {
toSerialize["holding_type"] = o.HoldingType.Get()
}
if o.HoldingTypeId.IsSet() {
toSerialize["holding_type_id"] = o.HoldingTypeId.Get()
}
if o.Id.IsSet() {
toSerialize["id"] = o.Id.Get()
}
if o.MarketValue.IsSet() {
toSerialize["market_value"] = o.MarketValue.Get()
}
if o.MemberGuid.IsSet() {
toSerialize["member_guid"] = o.MemberGuid.Get()
}
if o.Metadata.IsSet() {
toSerialize["metadata"] = o.Metadata.Get()
}
if o.PurchasePrice.IsSet() {
toSerialize["purchase_price"] = o.PurchasePrice.Get()
}
if o.Shares.IsSet() {
toSerialize["shares"] = o.Shares.Get()
}
if o.Symbol.IsSet() {
toSerialize["symbol"] = o.Symbol.Get()
}
if o.UpdatedAt.IsSet() {
toSerialize["updated_at"] = o.UpdatedAt.Get()
}
if o.UserGuid.IsSet() {
toSerialize["user_guid"] = o.UserGuid.Get()
}
return toSerialize, nil
}
type NullableHoldingResponse struct {
value *HoldingResponse
isSet bool
}
func (v NullableHoldingResponse) Get() *HoldingResponse {
return v.value
}
func (v *NullableHoldingResponse) Set(val *HoldingResponse) {
v.value = val
v.isSet = true
}
func (v NullableHoldingResponse) IsSet() bool {
return v.isSet
}
func (v *NullableHoldingResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableHoldingResponse(val *HoldingResponse) *NullableHoldingResponse {
return &NullableHoldingResponse{value: val, isSet: true}
}
func (v NullableHoldingResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableHoldingResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}