mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
611 lines
18 KiB
Go
611 lines
18 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 CaptableCaptableShare type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &CaptableCaptableShare{}
|
|
|
|
// CaptableCaptableShare struct for CaptableCaptableShare
|
|
type CaptableCaptableShare struct {
|
|
// CapitalContribution is the cash paid for the certificate, if recorded.
|
|
CapitalContribution *float64 `json:"capitalContribution,omitempty"`
|
|
// CertificateID is the certificate number, unique within the company.
|
|
CertificateId *string `json:"certificateId,omitempty"`
|
|
// CompanyLegends are the restrictive legends printed on the certificate.
|
|
CompanyLegends []string `json:"companyLegends,omitempty"`
|
|
// ID is the share id.
|
|
Id *string `json:"id,omitempty"`
|
|
// IssueDate is the ISO date the certificate was issued.
|
|
IssueDate *string `json:"issueDate,omitempty"`
|
|
// PricePerShare is the price paid per share, if recorded.
|
|
PricePerShare *float64 `json:"pricePerShare,omitempty"`
|
|
// Quantity is how many shares the certificate covers.
|
|
Quantity *int64 `json:"quantity,omitempty"`
|
|
// ShareClassID is the class the shares belong to.
|
|
ShareClassId *string `json:"shareClassId,omitempty"`
|
|
// ShareClassName is that class's name.
|
|
ShareClassName *string `json:"shareClassName,omitempty"`
|
|
// ShareClassType is that class's type, COMMON or PREFERRED.
|
|
ShareClassType *string `json:"shareClassType,omitempty"`
|
|
// StakeholderID is the holder of the certificate.
|
|
StakeholderId *string `json:"stakeholderId,omitempty"`
|
|
// StakeholderName is that holder's name.
|
|
StakeholderName *string `json:"stakeholderName,omitempty"`
|
|
// Status is ACTIVE or DRAFT.
|
|
Status *string `json:"status,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _CaptableCaptableShare CaptableCaptableShare
|
|
|
|
// NewCaptableCaptableShare instantiates a new CaptableCaptableShare 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 NewCaptableCaptableShare() *CaptableCaptableShare {
|
|
this := CaptableCaptableShare{}
|
|
return &this
|
|
}
|
|
|
|
// NewCaptableCaptableShareWithDefaults instantiates a new CaptableCaptableShare 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 NewCaptableCaptableShareWithDefaults() *CaptableCaptableShare {
|
|
this := CaptableCaptableShare{}
|
|
return &this
|
|
}
|
|
|
|
// GetCapitalContribution returns the CapitalContribution field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetCapitalContribution() float64 {
|
|
if o == nil || IsNil(o.CapitalContribution) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.CapitalContribution
|
|
}
|
|
|
|
// GetCapitalContributionOk returns a tuple with the CapitalContribution field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetCapitalContributionOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.CapitalContribution) {
|
|
return nil, false
|
|
}
|
|
return o.CapitalContribution, true
|
|
}
|
|
|
|
// HasCapitalContribution returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasCapitalContribution() bool {
|
|
if o != nil && !IsNil(o.CapitalContribution) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCapitalContribution gets a reference to the given float64 and assigns it to the CapitalContribution field.
|
|
func (o *CaptableCaptableShare) SetCapitalContribution(v float64) {
|
|
o.CapitalContribution = &v
|
|
}
|
|
|
|
// GetCertificateId returns the CertificateId field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetCertificateId() string {
|
|
if o == nil || IsNil(o.CertificateId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CertificateId
|
|
}
|
|
|
|
// GetCertificateIdOk returns a tuple with the CertificateId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetCertificateIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CertificateId) {
|
|
return nil, false
|
|
}
|
|
return o.CertificateId, true
|
|
}
|
|
|
|
// HasCertificateId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasCertificateId() bool {
|
|
if o != nil && !IsNil(o.CertificateId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCertificateId gets a reference to the given string and assigns it to the CertificateId field.
|
|
func (o *CaptableCaptableShare) SetCertificateId(v string) {
|
|
o.CertificateId = &v
|
|
}
|
|
|
|
// GetCompanyLegends returns the CompanyLegends field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetCompanyLegends() []string {
|
|
if o == nil || IsNil(o.CompanyLegends) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.CompanyLegends
|
|
}
|
|
|
|
// GetCompanyLegendsOk returns a tuple with the CompanyLegends field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetCompanyLegendsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.CompanyLegends) {
|
|
return nil, false
|
|
}
|
|
return o.CompanyLegends, true
|
|
}
|
|
|
|
// HasCompanyLegends returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasCompanyLegends() bool {
|
|
if o != nil && !IsNil(o.CompanyLegends) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCompanyLegends gets a reference to the given []string and assigns it to the CompanyLegends field.
|
|
func (o *CaptableCaptableShare) SetCompanyLegends(v []string) {
|
|
o.CompanyLegends = v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *CaptableCaptableShare) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetIssueDate returns the IssueDate field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetIssueDate() string {
|
|
if o == nil || IsNil(o.IssueDate) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.IssueDate
|
|
}
|
|
|
|
// GetIssueDateOk returns a tuple with the IssueDate field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetIssueDateOk() (*string, bool) {
|
|
if o == nil || IsNil(o.IssueDate) {
|
|
return nil, false
|
|
}
|
|
return o.IssueDate, true
|
|
}
|
|
|
|
// HasIssueDate returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasIssueDate() bool {
|
|
if o != nil && !IsNil(o.IssueDate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIssueDate gets a reference to the given string and assigns it to the IssueDate field.
|
|
func (o *CaptableCaptableShare) SetIssueDate(v string) {
|
|
o.IssueDate = &v
|
|
}
|
|
|
|
// GetPricePerShare returns the PricePerShare field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetPricePerShare() float64 {
|
|
if o == nil || IsNil(o.PricePerShare) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.PricePerShare
|
|
}
|
|
|
|
// GetPricePerShareOk returns a tuple with the PricePerShare field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetPricePerShareOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.PricePerShare) {
|
|
return nil, false
|
|
}
|
|
return o.PricePerShare, true
|
|
}
|
|
|
|
// HasPricePerShare returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasPricePerShare() bool {
|
|
if o != nil && !IsNil(o.PricePerShare) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPricePerShare gets a reference to the given float64 and assigns it to the PricePerShare field.
|
|
func (o *CaptableCaptableShare) SetPricePerShare(v float64) {
|
|
o.PricePerShare = &v
|
|
}
|
|
|
|
// GetQuantity returns the Quantity field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetQuantity() int64 {
|
|
if o == nil || IsNil(o.Quantity) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Quantity
|
|
}
|
|
|
|
// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetQuantityOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Quantity) {
|
|
return nil, false
|
|
}
|
|
return o.Quantity, true
|
|
}
|
|
|
|
// HasQuantity returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasQuantity() bool {
|
|
if o != nil && !IsNil(o.Quantity) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetQuantity gets a reference to the given int64 and assigns it to the Quantity field.
|
|
func (o *CaptableCaptableShare) SetQuantity(v int64) {
|
|
o.Quantity = &v
|
|
}
|
|
|
|
// GetShareClassId returns the ShareClassId field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetShareClassId() string {
|
|
if o == nil || IsNil(o.ShareClassId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ShareClassId
|
|
}
|
|
|
|
// GetShareClassIdOk returns a tuple with the ShareClassId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetShareClassIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ShareClassId) {
|
|
return nil, false
|
|
}
|
|
return o.ShareClassId, true
|
|
}
|
|
|
|
// HasShareClassId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasShareClassId() bool {
|
|
if o != nil && !IsNil(o.ShareClassId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetShareClassId gets a reference to the given string and assigns it to the ShareClassId field.
|
|
func (o *CaptableCaptableShare) SetShareClassId(v string) {
|
|
o.ShareClassId = &v
|
|
}
|
|
|
|
// GetShareClassName returns the ShareClassName field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetShareClassName() string {
|
|
if o == nil || IsNil(o.ShareClassName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ShareClassName
|
|
}
|
|
|
|
// GetShareClassNameOk returns a tuple with the ShareClassName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetShareClassNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ShareClassName) {
|
|
return nil, false
|
|
}
|
|
return o.ShareClassName, true
|
|
}
|
|
|
|
// HasShareClassName returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasShareClassName() bool {
|
|
if o != nil && !IsNil(o.ShareClassName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetShareClassName gets a reference to the given string and assigns it to the ShareClassName field.
|
|
func (o *CaptableCaptableShare) SetShareClassName(v string) {
|
|
o.ShareClassName = &v
|
|
}
|
|
|
|
// GetShareClassType returns the ShareClassType field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetShareClassType() string {
|
|
if o == nil || IsNil(o.ShareClassType) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ShareClassType
|
|
}
|
|
|
|
// GetShareClassTypeOk returns a tuple with the ShareClassType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetShareClassTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ShareClassType) {
|
|
return nil, false
|
|
}
|
|
return o.ShareClassType, true
|
|
}
|
|
|
|
// HasShareClassType returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasShareClassType() bool {
|
|
if o != nil && !IsNil(o.ShareClassType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetShareClassType gets a reference to the given string and assigns it to the ShareClassType field.
|
|
func (o *CaptableCaptableShare) SetShareClassType(v string) {
|
|
o.ShareClassType = &v
|
|
}
|
|
|
|
// GetStakeholderId returns the StakeholderId field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetStakeholderId() string {
|
|
if o == nil || IsNil(o.StakeholderId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.StakeholderId
|
|
}
|
|
|
|
// GetStakeholderIdOk returns a tuple with the StakeholderId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetStakeholderIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.StakeholderId) {
|
|
return nil, false
|
|
}
|
|
return o.StakeholderId, true
|
|
}
|
|
|
|
// HasStakeholderId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasStakeholderId() bool {
|
|
if o != nil && !IsNil(o.StakeholderId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStakeholderId gets a reference to the given string and assigns it to the StakeholderId field.
|
|
func (o *CaptableCaptableShare) SetStakeholderId(v string) {
|
|
o.StakeholderId = &v
|
|
}
|
|
|
|
// GetStakeholderName returns the StakeholderName field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetStakeholderName() string {
|
|
if o == nil || IsNil(o.StakeholderName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.StakeholderName
|
|
}
|
|
|
|
// GetStakeholderNameOk returns a tuple with the StakeholderName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetStakeholderNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.StakeholderName) {
|
|
return nil, false
|
|
}
|
|
return o.StakeholderName, true
|
|
}
|
|
|
|
// HasStakeholderName returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasStakeholderName() bool {
|
|
if o != nil && !IsNil(o.StakeholderName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStakeholderName gets a reference to the given string and assigns it to the StakeholderName field.
|
|
func (o *CaptableCaptableShare) SetStakeholderName(v string) {
|
|
o.StakeholderName = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableShare) GetStatus() string {
|
|
if o == nil || IsNil(o.Status) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Status
|
|
}
|
|
|
|
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableShare) GetStatusOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Status) {
|
|
return nil, false
|
|
}
|
|
return o.Status, true
|
|
}
|
|
|
|
// HasStatus returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableShare) HasStatus() bool {
|
|
if o != nil && !IsNil(o.Status) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
|
func (o *CaptableCaptableShare) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
func (o CaptableCaptableShare) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o CaptableCaptableShare) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.CapitalContribution) {
|
|
toSerialize["capitalContribution"] = o.CapitalContribution
|
|
}
|
|
if !IsNil(o.CertificateId) {
|
|
toSerialize["certificateId"] = o.CertificateId
|
|
}
|
|
if !IsNil(o.CompanyLegends) {
|
|
toSerialize["companyLegends"] = o.CompanyLegends
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.IssueDate) {
|
|
toSerialize["issueDate"] = o.IssueDate
|
|
}
|
|
if !IsNil(o.PricePerShare) {
|
|
toSerialize["pricePerShare"] = o.PricePerShare
|
|
}
|
|
if !IsNil(o.Quantity) {
|
|
toSerialize["quantity"] = o.Quantity
|
|
}
|
|
if !IsNil(o.ShareClassId) {
|
|
toSerialize["shareClassId"] = o.ShareClassId
|
|
}
|
|
if !IsNil(o.ShareClassName) {
|
|
toSerialize["shareClassName"] = o.ShareClassName
|
|
}
|
|
if !IsNil(o.ShareClassType) {
|
|
toSerialize["shareClassType"] = o.ShareClassType
|
|
}
|
|
if !IsNil(o.StakeholderId) {
|
|
toSerialize["stakeholderId"] = o.StakeholderId
|
|
}
|
|
if !IsNil(o.StakeholderName) {
|
|
toSerialize["stakeholderName"] = o.StakeholderName
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *CaptableCaptableShare) UnmarshalJSON(data []byte) (err error) {
|
|
varCaptableCaptableShare := _CaptableCaptableShare{}
|
|
|
|
err = json.Unmarshal(data, &varCaptableCaptableShare)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = CaptableCaptableShare(varCaptableCaptableShare)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "capitalContribution")
|
|
delete(additionalProperties, "certificateId")
|
|
delete(additionalProperties, "companyLegends")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "issueDate")
|
|
delete(additionalProperties, "pricePerShare")
|
|
delete(additionalProperties, "quantity")
|
|
delete(additionalProperties, "shareClassId")
|
|
delete(additionalProperties, "shareClassName")
|
|
delete(additionalProperties, "shareClassType")
|
|
delete(additionalProperties, "stakeholderId")
|
|
delete(additionalProperties, "stakeholderName")
|
|
delete(additionalProperties, "status")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableCaptableCaptableShare struct {
|
|
value *CaptableCaptableShare
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableCaptableCaptableShare) Get() *CaptableCaptableShare {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableShare) Set(val *CaptableCaptableShare) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableCaptableCaptableShare) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableShare) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableCaptableCaptableShare(val *CaptableCaptableShare) *NullableCaptableCaptableShare {
|
|
return &NullableCaptableCaptableShare{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableCaptableCaptableShare) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableShare) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|