-
Notifications
You must be signed in to change notification settings - Fork 6
/
model_institutional_ownership_info.go
449 lines (380 loc) · 12.1 KB
/
model_institutional_ownership_info.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
/*
Finnhub API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package finnhub
import (
"encoding/json"
)
// InstitutionalOwnershipInfo struct for InstitutionalOwnershipInfo
type InstitutionalOwnershipInfo struct {
// Investor's company CIK.
Cik *string `json:"cik,omitempty"`
// Firm's name.
Name *string `json:"name,omitempty"`
// <code>put</code> or <code>call</code> for options.
PutCall *string `json:"putCall,omitempty"`
// Number of shares change.
Change *float32 `json:"change,omitempty"`
// Number of shares with no voting rights.
NoVoting *float32 `json:"noVoting,omitempty"`
// Percentage of portfolio.
Percentage *float32 `json:"percentage,omitempty"`
// News score.
Share *float32 `json:"share,omitempty"`
// Number of shares with shared voting rights.
SharedVoting *float32 `json:"sharedVoting,omitempty"`
// Number of shares with sole voting rights.
SoleVoting *float32 `json:"soleVoting,omitempty"`
// Position value.
Value *float32 `json:"value,omitempty"`
}
// NewInstitutionalOwnershipInfo instantiates a new InstitutionalOwnershipInfo 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 NewInstitutionalOwnershipInfo() *InstitutionalOwnershipInfo {
this := InstitutionalOwnershipInfo{}
return &this
}
// NewInstitutionalOwnershipInfoWithDefaults instantiates a new InstitutionalOwnershipInfo 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 NewInstitutionalOwnershipInfoWithDefaults() *InstitutionalOwnershipInfo {
this := InstitutionalOwnershipInfo{}
return &this
}
// GetCik returns the Cik field value if set, zero value otherwise.
func (o *InstitutionalOwnershipInfo) GetCik() string {
if o == nil || o.Cik == nil {
var ret string
return ret
}
return *o.Cik
}
// GetCikOk returns a tuple with the Cik field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionalOwnershipInfo) GetCikOk() (*string, bool) {
if o == nil || o.Cik == nil {
return nil, false
}
return o.Cik, true
}
// HasCik returns a boolean if a field has been set.
func (o *InstitutionalOwnershipInfo) HasCik() bool {
if o != nil && o.Cik != nil {
return true
}
return false
}
// SetCik gets a reference to the given string and assigns it to the Cik field.
func (o *InstitutionalOwnershipInfo) SetCik(v string) {
o.Cik = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *InstitutionalOwnershipInfo) GetName() string {
if o == nil || o.Name == nil {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionalOwnershipInfo) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *InstitutionalOwnershipInfo) HasName() bool {
if o != nil && o.Name != nil {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *InstitutionalOwnershipInfo) SetName(v string) {
o.Name = &v
}
// GetPutCall returns the PutCall field value if set, zero value otherwise.
func (o *InstitutionalOwnershipInfo) GetPutCall() string {
if o == nil || o.PutCall == nil {
var ret string
return ret
}
return *o.PutCall
}
// GetPutCallOk returns a tuple with the PutCall field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionalOwnershipInfo) GetPutCallOk() (*string, bool) {
if o == nil || o.PutCall == nil {
return nil, false
}
return o.PutCall, true
}
// HasPutCall returns a boolean if a field has been set.
func (o *InstitutionalOwnershipInfo) HasPutCall() bool {
if o != nil && o.PutCall != nil {
return true
}
return false
}
// SetPutCall gets a reference to the given string and assigns it to the PutCall field.
func (o *InstitutionalOwnershipInfo) SetPutCall(v string) {
o.PutCall = &v
}
// GetChange returns the Change field value if set, zero value otherwise.
func (o *InstitutionalOwnershipInfo) GetChange() float32 {
if o == nil || o.Change == nil {
var ret float32
return ret
}
return *o.Change
}
// GetChangeOk returns a tuple with the Change field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionalOwnershipInfo) GetChangeOk() (*float32, bool) {
if o == nil || o.Change == nil {
return nil, false
}
return o.Change, true
}
// HasChange returns a boolean if a field has been set.
func (o *InstitutionalOwnershipInfo) HasChange() bool {
if o != nil && o.Change != nil {
return true
}
return false
}
// SetChange gets a reference to the given float32 and assigns it to the Change field.
func (o *InstitutionalOwnershipInfo) SetChange(v float32) {
o.Change = &v
}
// GetNoVoting returns the NoVoting field value if set, zero value otherwise.
func (o *InstitutionalOwnershipInfo) GetNoVoting() float32 {
if o == nil || o.NoVoting == nil {
var ret float32
return ret
}
return *o.NoVoting
}
// GetNoVotingOk returns a tuple with the NoVoting field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionalOwnershipInfo) GetNoVotingOk() (*float32, bool) {
if o == nil || o.NoVoting == nil {
return nil, false
}
return o.NoVoting, true
}
// HasNoVoting returns a boolean if a field has been set.
func (o *InstitutionalOwnershipInfo) HasNoVoting() bool {
if o != nil && o.NoVoting != nil {
return true
}
return false
}
// SetNoVoting gets a reference to the given float32 and assigns it to the NoVoting field.
func (o *InstitutionalOwnershipInfo) SetNoVoting(v float32) {
o.NoVoting = &v
}
// GetPercentage returns the Percentage field value if set, zero value otherwise.
func (o *InstitutionalOwnershipInfo) GetPercentage() float32 {
if o == nil || o.Percentage == nil {
var ret float32
return ret
}
return *o.Percentage
}
// GetPercentageOk returns a tuple with the Percentage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionalOwnershipInfo) GetPercentageOk() (*float32, bool) {
if o == nil || o.Percentage == nil {
return nil, false
}
return o.Percentage, true
}
// HasPercentage returns a boolean if a field has been set.
func (o *InstitutionalOwnershipInfo) HasPercentage() bool {
if o != nil && o.Percentage != nil {
return true
}
return false
}
// SetPercentage gets a reference to the given float32 and assigns it to the Percentage field.
func (o *InstitutionalOwnershipInfo) SetPercentage(v float32) {
o.Percentage = &v
}
// GetShare returns the Share field value if set, zero value otherwise.
func (o *InstitutionalOwnershipInfo) GetShare() float32 {
if o == nil || o.Share == nil {
var ret float32
return ret
}
return *o.Share
}
// GetShareOk returns a tuple with the Share field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionalOwnershipInfo) GetShareOk() (*float32, bool) {
if o == nil || o.Share == nil {
return nil, false
}
return o.Share, true
}
// HasShare returns a boolean if a field has been set.
func (o *InstitutionalOwnershipInfo) HasShare() bool {
if o != nil && o.Share != nil {
return true
}
return false
}
// SetShare gets a reference to the given float32 and assigns it to the Share field.
func (o *InstitutionalOwnershipInfo) SetShare(v float32) {
o.Share = &v
}
// GetSharedVoting returns the SharedVoting field value if set, zero value otherwise.
func (o *InstitutionalOwnershipInfo) GetSharedVoting() float32 {
if o == nil || o.SharedVoting == nil {
var ret float32
return ret
}
return *o.SharedVoting
}
// GetSharedVotingOk returns a tuple with the SharedVoting field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionalOwnershipInfo) GetSharedVotingOk() (*float32, bool) {
if o == nil || o.SharedVoting == nil {
return nil, false
}
return o.SharedVoting, true
}
// HasSharedVoting returns a boolean if a field has been set.
func (o *InstitutionalOwnershipInfo) HasSharedVoting() bool {
if o != nil && o.SharedVoting != nil {
return true
}
return false
}
// SetSharedVoting gets a reference to the given float32 and assigns it to the SharedVoting field.
func (o *InstitutionalOwnershipInfo) SetSharedVoting(v float32) {
o.SharedVoting = &v
}
// GetSoleVoting returns the SoleVoting field value if set, zero value otherwise.
func (o *InstitutionalOwnershipInfo) GetSoleVoting() float32 {
if o == nil || o.SoleVoting == nil {
var ret float32
return ret
}
return *o.SoleVoting
}
// GetSoleVotingOk returns a tuple with the SoleVoting field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionalOwnershipInfo) GetSoleVotingOk() (*float32, bool) {
if o == nil || o.SoleVoting == nil {
return nil, false
}
return o.SoleVoting, true
}
// HasSoleVoting returns a boolean if a field has been set.
func (o *InstitutionalOwnershipInfo) HasSoleVoting() bool {
if o != nil && o.SoleVoting != nil {
return true
}
return false
}
// SetSoleVoting gets a reference to the given float32 and assigns it to the SoleVoting field.
func (o *InstitutionalOwnershipInfo) SetSoleVoting(v float32) {
o.SoleVoting = &v
}
// GetValue returns the Value field value if set, zero value otherwise.
func (o *InstitutionalOwnershipInfo) GetValue() float32 {
if o == nil || o.Value == nil {
var ret float32
return ret
}
return *o.Value
}
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionalOwnershipInfo) GetValueOk() (*float32, bool) {
if o == nil || o.Value == nil {
return nil, false
}
return o.Value, true
}
// HasValue returns a boolean if a field has been set.
func (o *InstitutionalOwnershipInfo) HasValue() bool {
if o != nil && o.Value != nil {
return true
}
return false
}
// SetValue gets a reference to the given float32 and assigns it to the Value field.
func (o *InstitutionalOwnershipInfo) SetValue(v float32) {
o.Value = &v
}
func (o InstitutionalOwnershipInfo) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Cik != nil {
toSerialize["cik"] = o.Cik
}
if o.Name != nil {
toSerialize["name"] = o.Name
}
if o.PutCall != nil {
toSerialize["putCall"] = o.PutCall
}
if o.Change != nil {
toSerialize["change"] = o.Change
}
if o.NoVoting != nil {
toSerialize["noVoting"] = o.NoVoting
}
if o.Percentage != nil {
toSerialize["percentage"] = o.Percentage
}
if o.Share != nil {
toSerialize["share"] = o.Share
}
if o.SharedVoting != nil {
toSerialize["sharedVoting"] = o.SharedVoting
}
if o.SoleVoting != nil {
toSerialize["soleVoting"] = o.SoleVoting
}
if o.Value != nil {
toSerialize["value"] = o.Value
}
return json.Marshal(toSerialize)
}
type NullableInstitutionalOwnershipInfo struct {
value *InstitutionalOwnershipInfo
isSet bool
}
func (v NullableInstitutionalOwnershipInfo) Get() *InstitutionalOwnershipInfo {
return v.value
}
func (v *NullableInstitutionalOwnershipInfo) Set(val *InstitutionalOwnershipInfo) {
v.value = val
v.isSet = true
}
func (v NullableInstitutionalOwnershipInfo) IsSet() bool {
return v.isSet
}
func (v *NullableInstitutionalOwnershipInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInstitutionalOwnershipInfo(val *InstitutionalOwnershipInfo) *NullableInstitutionalOwnershipInfo {
return &NullableInstitutionalOwnershipInfo{value: val, isSet: true}
}
func (v NullableInstitutionalOwnershipInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableInstitutionalOwnershipInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}