mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
307 lines
9.3 KiB
Go
307 lines
9.3 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the CaptableCaptableTotals type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &CaptableCaptableTotals{}
|
|
|
|
// CaptableCaptableTotals struct for CaptableCaptableTotals
|
|
type CaptableCaptableTotals struct {
|
|
// FullyDilutedShares is outstandingShares plus grantedOptions.
|
|
FullyDilutedShares *int64 `json:"fullyDilutedShares,omitempty"`
|
|
// GrantedOptions is the shares under non-terminal option grants — grants that are EXERCISED, EXPIRED or CANCELLED are excluded, so nothing double-counts.
|
|
GrantedOptions *int64 `json:"grantedOptions,omitempty"`
|
|
// OutstandingShares is the sum of every issued share certificate.
|
|
OutstandingShares *int64 `json:"outstandingShares,omitempty"`
|
|
// ShareClasses is how many share classes the company has authorized.
|
|
ShareClasses *int64 `json:"shareClasses,omitempty"`
|
|
// Stakeholders is how many stakeholders the company has.
|
|
Stakeholders *int64 `json:"stakeholders,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _CaptableCaptableTotals CaptableCaptableTotals
|
|
|
|
// NewCaptableCaptableTotals instantiates a new CaptableCaptableTotals 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 NewCaptableCaptableTotals() *CaptableCaptableTotals {
|
|
this := CaptableCaptableTotals{}
|
|
return &this
|
|
}
|
|
|
|
// NewCaptableCaptableTotalsWithDefaults instantiates a new CaptableCaptableTotals 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 NewCaptableCaptableTotalsWithDefaults() *CaptableCaptableTotals {
|
|
this := CaptableCaptableTotals{}
|
|
return &this
|
|
}
|
|
|
|
// GetFullyDilutedShares returns the FullyDilutedShares field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableTotals) GetFullyDilutedShares() int64 {
|
|
if o == nil || IsNil(o.FullyDilutedShares) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.FullyDilutedShares
|
|
}
|
|
|
|
// GetFullyDilutedSharesOk returns a tuple with the FullyDilutedShares field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableTotals) GetFullyDilutedSharesOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.FullyDilutedShares) {
|
|
return nil, false
|
|
}
|
|
return o.FullyDilutedShares, true
|
|
}
|
|
|
|
// HasFullyDilutedShares returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableTotals) HasFullyDilutedShares() bool {
|
|
if o != nil && !IsNil(o.FullyDilutedShares) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFullyDilutedShares gets a reference to the given int64 and assigns it to the FullyDilutedShares field.
|
|
func (o *CaptableCaptableTotals) SetFullyDilutedShares(v int64) {
|
|
o.FullyDilutedShares = &v
|
|
}
|
|
|
|
// GetGrantedOptions returns the GrantedOptions field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableTotals) GetGrantedOptions() int64 {
|
|
if o == nil || IsNil(o.GrantedOptions) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.GrantedOptions
|
|
}
|
|
|
|
// GetGrantedOptionsOk returns a tuple with the GrantedOptions field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableTotals) GetGrantedOptionsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.GrantedOptions) {
|
|
return nil, false
|
|
}
|
|
return o.GrantedOptions, true
|
|
}
|
|
|
|
// HasGrantedOptions returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableTotals) HasGrantedOptions() bool {
|
|
if o != nil && !IsNil(o.GrantedOptions) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGrantedOptions gets a reference to the given int64 and assigns it to the GrantedOptions field.
|
|
func (o *CaptableCaptableTotals) SetGrantedOptions(v int64) {
|
|
o.GrantedOptions = &v
|
|
}
|
|
|
|
// GetOutstandingShares returns the OutstandingShares field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableTotals) GetOutstandingShares() int64 {
|
|
if o == nil || IsNil(o.OutstandingShares) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.OutstandingShares
|
|
}
|
|
|
|
// GetOutstandingSharesOk returns a tuple with the OutstandingShares field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableTotals) GetOutstandingSharesOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.OutstandingShares) {
|
|
return nil, false
|
|
}
|
|
return o.OutstandingShares, true
|
|
}
|
|
|
|
// HasOutstandingShares returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableTotals) HasOutstandingShares() bool {
|
|
if o != nil && !IsNil(o.OutstandingShares) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOutstandingShares gets a reference to the given int64 and assigns it to the OutstandingShares field.
|
|
func (o *CaptableCaptableTotals) SetOutstandingShares(v int64) {
|
|
o.OutstandingShares = &v
|
|
}
|
|
|
|
// GetShareClasses returns the ShareClasses field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableTotals) GetShareClasses() int64 {
|
|
if o == nil || IsNil(o.ShareClasses) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.ShareClasses
|
|
}
|
|
|
|
// GetShareClassesOk returns a tuple with the ShareClasses field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableTotals) GetShareClassesOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.ShareClasses) {
|
|
return nil, false
|
|
}
|
|
return o.ShareClasses, true
|
|
}
|
|
|
|
// HasShareClasses returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableTotals) HasShareClasses() bool {
|
|
if o != nil && !IsNil(o.ShareClasses) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetShareClasses gets a reference to the given int64 and assigns it to the ShareClasses field.
|
|
func (o *CaptableCaptableTotals) SetShareClasses(v int64) {
|
|
o.ShareClasses = &v
|
|
}
|
|
|
|
// GetStakeholders returns the Stakeholders field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableTotals) GetStakeholders() int64 {
|
|
if o == nil || IsNil(o.Stakeholders) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Stakeholders
|
|
}
|
|
|
|
// GetStakeholdersOk returns a tuple with the Stakeholders field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableTotals) GetStakeholdersOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Stakeholders) {
|
|
return nil, false
|
|
}
|
|
return o.Stakeholders, true
|
|
}
|
|
|
|
// HasStakeholders returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableTotals) HasStakeholders() bool {
|
|
if o != nil && !IsNil(o.Stakeholders) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStakeholders gets a reference to the given int64 and assigns it to the Stakeholders field.
|
|
func (o *CaptableCaptableTotals) SetStakeholders(v int64) {
|
|
o.Stakeholders = &v
|
|
}
|
|
|
|
func (o CaptableCaptableTotals) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o CaptableCaptableTotals) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.FullyDilutedShares) {
|
|
toSerialize["fullyDilutedShares"] = o.FullyDilutedShares
|
|
}
|
|
if !IsNil(o.GrantedOptions) {
|
|
toSerialize["grantedOptions"] = o.GrantedOptions
|
|
}
|
|
if !IsNil(o.OutstandingShares) {
|
|
toSerialize["outstandingShares"] = o.OutstandingShares
|
|
}
|
|
if !IsNil(o.ShareClasses) {
|
|
toSerialize["shareClasses"] = o.ShareClasses
|
|
}
|
|
if !IsNil(o.Stakeholders) {
|
|
toSerialize["stakeholders"] = o.Stakeholders
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *CaptableCaptableTotals) UnmarshalJSON(data []byte) (err error) {
|
|
varCaptableCaptableTotals := _CaptableCaptableTotals{}
|
|
|
|
err = json.Unmarshal(data, &varCaptableCaptableTotals)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = CaptableCaptableTotals(varCaptableCaptableTotals)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "fullyDilutedShares")
|
|
delete(additionalProperties, "grantedOptions")
|
|
delete(additionalProperties, "outstandingShares")
|
|
delete(additionalProperties, "shareClasses")
|
|
delete(additionalProperties, "stakeholders")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableCaptableCaptableTotals struct {
|
|
value *CaptableCaptableTotals
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableCaptableCaptableTotals) Get() *CaptableCaptableTotals {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableTotals) Set(val *CaptableCaptableTotals) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableCaptableCaptableTotals) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableTotals) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableCaptableCaptableTotals(val *CaptableCaptableTotals) *NullableCaptableCaptableTotals {
|
|
return &NullableCaptableCaptableTotals{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableCaptableCaptableTotals) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableTotals) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|