mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
497 lines
15 KiB
Go
497 lines
15 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 CaptableCaptableSafeIn type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &CaptableCaptableSafeIn{}
|
|
|
|
// CaptableCaptableSafeIn struct for CaptableCaptableSafeIn
|
|
type CaptableCaptableSafeIn struct {
|
|
AdditionalTerms interface{} `json:"additionalTerms,omitempty"`
|
|
BoardApprovalDate interface{} `json:"boardApprovalDate,omitempty"`
|
|
Capital interface{} `json:"capital,omitempty"`
|
|
DiscountRate interface{} `json:"discountRate,omitempty"`
|
|
IssueDate interface{} `json:"issueDate,omitempty"`
|
|
PublicId interface{} `json:"publicId,omitempty"`
|
|
StakeholderId interface{} `json:"stakeholderId,omitempty"`
|
|
Status interface{} `json:"status,omitempty"`
|
|
Type interface{} `json:"type,omitempty"`
|
|
ValuationCap interface{} `json:"valuationCap,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _CaptableCaptableSafeIn CaptableCaptableSafeIn
|
|
|
|
// NewCaptableCaptableSafeIn instantiates a new CaptableCaptableSafeIn 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 NewCaptableCaptableSafeIn() *CaptableCaptableSafeIn {
|
|
this := CaptableCaptableSafeIn{}
|
|
return &this
|
|
}
|
|
|
|
// NewCaptableCaptableSafeInWithDefaults instantiates a new CaptableCaptableSafeIn 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 NewCaptableCaptableSafeInWithDefaults() *CaptableCaptableSafeIn {
|
|
this := CaptableCaptableSafeIn{}
|
|
return &this
|
|
}
|
|
|
|
// GetAdditionalTerms returns the AdditionalTerms field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableSafeIn) GetAdditionalTerms() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.AdditionalTerms
|
|
}
|
|
|
|
// GetAdditionalTermsOk returns a tuple with the AdditionalTerms 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 *CaptableCaptableSafeIn) GetAdditionalTermsOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.AdditionalTerms) {
|
|
return nil, false
|
|
}
|
|
return &o.AdditionalTerms, true
|
|
}
|
|
|
|
// HasAdditionalTerms returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableSafeIn) HasAdditionalTerms() bool {
|
|
if o != nil && !IsNil(o.AdditionalTerms) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAdditionalTerms gets a reference to the given interface{} and assigns it to the AdditionalTerms field.
|
|
func (o *CaptableCaptableSafeIn) SetAdditionalTerms(v interface{}) {
|
|
o.AdditionalTerms = v
|
|
}
|
|
|
|
// GetBoardApprovalDate returns the BoardApprovalDate field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableSafeIn) GetBoardApprovalDate() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.BoardApprovalDate
|
|
}
|
|
|
|
// GetBoardApprovalDateOk returns a tuple with the BoardApprovalDate 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 *CaptableCaptableSafeIn) GetBoardApprovalDateOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.BoardApprovalDate) {
|
|
return nil, false
|
|
}
|
|
return &o.BoardApprovalDate, true
|
|
}
|
|
|
|
// HasBoardApprovalDate returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableSafeIn) HasBoardApprovalDate() bool {
|
|
if o != nil && !IsNil(o.BoardApprovalDate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBoardApprovalDate gets a reference to the given interface{} and assigns it to the BoardApprovalDate field.
|
|
func (o *CaptableCaptableSafeIn) SetBoardApprovalDate(v interface{}) {
|
|
o.BoardApprovalDate = v
|
|
}
|
|
|
|
// GetCapital returns the Capital field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableSafeIn) GetCapital() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.Capital
|
|
}
|
|
|
|
// GetCapitalOk returns a tuple with the Capital 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 *CaptableCaptableSafeIn) GetCapitalOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.Capital) {
|
|
return nil, false
|
|
}
|
|
return &o.Capital, true
|
|
}
|
|
|
|
// HasCapital returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableSafeIn) HasCapital() bool {
|
|
if o != nil && !IsNil(o.Capital) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCapital gets a reference to the given interface{} and assigns it to the Capital field.
|
|
func (o *CaptableCaptableSafeIn) SetCapital(v interface{}) {
|
|
o.Capital = v
|
|
}
|
|
|
|
// GetDiscountRate returns the DiscountRate field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableSafeIn) GetDiscountRate() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.DiscountRate
|
|
}
|
|
|
|
// GetDiscountRateOk returns a tuple with the DiscountRate 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 *CaptableCaptableSafeIn) GetDiscountRateOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.DiscountRate) {
|
|
return nil, false
|
|
}
|
|
return &o.DiscountRate, true
|
|
}
|
|
|
|
// HasDiscountRate returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableSafeIn) HasDiscountRate() bool {
|
|
if o != nil && !IsNil(o.DiscountRate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDiscountRate gets a reference to the given interface{} and assigns it to the DiscountRate field.
|
|
func (o *CaptableCaptableSafeIn) SetDiscountRate(v interface{}) {
|
|
o.DiscountRate = v
|
|
}
|
|
|
|
// GetIssueDate returns the IssueDate field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableSafeIn) GetIssueDate() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
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.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableSafeIn) GetIssueDateOk() (*interface{}, 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 *CaptableCaptableSafeIn) HasIssueDate() bool {
|
|
if o != nil && !IsNil(o.IssueDate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIssueDate gets a reference to the given interface{} and assigns it to the IssueDate field.
|
|
func (o *CaptableCaptableSafeIn) SetIssueDate(v interface{}) {
|
|
o.IssueDate = v
|
|
}
|
|
|
|
// GetPublicId returns the PublicId field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableSafeIn) GetPublicId() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.PublicId
|
|
}
|
|
|
|
// GetPublicIdOk returns a tuple with the PublicId 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 *CaptableCaptableSafeIn) GetPublicIdOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.PublicId) {
|
|
return nil, false
|
|
}
|
|
return &o.PublicId, true
|
|
}
|
|
|
|
// HasPublicId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableSafeIn) HasPublicId() bool {
|
|
if o != nil && !IsNil(o.PublicId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPublicId gets a reference to the given interface{} and assigns it to the PublicId field.
|
|
func (o *CaptableCaptableSafeIn) SetPublicId(v interface{}) {
|
|
o.PublicId = v
|
|
}
|
|
|
|
// GetStakeholderId returns the StakeholderId field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableSafeIn) GetStakeholderId() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
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.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableSafeIn) GetStakeholderIdOk() (*interface{}, 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 *CaptableCaptableSafeIn) HasStakeholderId() bool {
|
|
if o != nil && !IsNil(o.StakeholderId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStakeholderId gets a reference to the given interface{} and assigns it to the StakeholderId field.
|
|
func (o *CaptableCaptableSafeIn) SetStakeholderId(v interface{}) {
|
|
o.StakeholderId = v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableSafeIn) GetStatus() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
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.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableSafeIn) GetStatusOk() (*interface{}, 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 *CaptableCaptableSafeIn) HasStatus() bool {
|
|
if o != nil && !IsNil(o.Status) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStatus gets a reference to the given interface{} and assigns it to the Status field.
|
|
func (o *CaptableCaptableSafeIn) SetStatus(v interface{}) {
|
|
o.Status = v
|
|
}
|
|
|
|
// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableSafeIn) GetType() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.Type
|
|
}
|
|
|
|
// GetTypeOk returns a tuple with the Type 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 *CaptableCaptableSafeIn) GetTypeOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.Type) {
|
|
return nil, false
|
|
}
|
|
return &o.Type, true
|
|
}
|
|
|
|
// HasType returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableSafeIn) HasType() bool {
|
|
if o != nil && !IsNil(o.Type) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetType gets a reference to the given interface{} and assigns it to the Type field.
|
|
func (o *CaptableCaptableSafeIn) SetType(v interface{}) {
|
|
o.Type = v
|
|
}
|
|
|
|
// GetValuationCap returns the ValuationCap field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableSafeIn) GetValuationCap() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.ValuationCap
|
|
}
|
|
|
|
// GetValuationCapOk returns a tuple with the ValuationCap 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 *CaptableCaptableSafeIn) GetValuationCapOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.ValuationCap) {
|
|
return nil, false
|
|
}
|
|
return &o.ValuationCap, true
|
|
}
|
|
|
|
// HasValuationCap returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableSafeIn) HasValuationCap() bool {
|
|
if o != nil && !IsNil(o.ValuationCap) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetValuationCap gets a reference to the given interface{} and assigns it to the ValuationCap field.
|
|
func (o *CaptableCaptableSafeIn) SetValuationCap(v interface{}) {
|
|
o.ValuationCap = v
|
|
}
|
|
|
|
func (o CaptableCaptableSafeIn) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o CaptableCaptableSafeIn) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.AdditionalTerms != nil {
|
|
toSerialize["additionalTerms"] = o.AdditionalTerms
|
|
}
|
|
if o.BoardApprovalDate != nil {
|
|
toSerialize["boardApprovalDate"] = o.BoardApprovalDate
|
|
}
|
|
if o.Capital != nil {
|
|
toSerialize["capital"] = o.Capital
|
|
}
|
|
if o.DiscountRate != nil {
|
|
toSerialize["discountRate"] = o.DiscountRate
|
|
}
|
|
if o.IssueDate != nil {
|
|
toSerialize["issueDate"] = o.IssueDate
|
|
}
|
|
if o.PublicId != nil {
|
|
toSerialize["publicId"] = o.PublicId
|
|
}
|
|
if o.StakeholderId != nil {
|
|
toSerialize["stakeholderId"] = o.StakeholderId
|
|
}
|
|
if o.Status != nil {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
if o.Type != nil {
|
|
toSerialize["type"] = o.Type
|
|
}
|
|
if o.ValuationCap != nil {
|
|
toSerialize["valuationCap"] = o.ValuationCap
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *CaptableCaptableSafeIn) UnmarshalJSON(data []byte) (err error) {
|
|
varCaptableCaptableSafeIn := _CaptableCaptableSafeIn{}
|
|
|
|
err = json.Unmarshal(data, &varCaptableCaptableSafeIn)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = CaptableCaptableSafeIn(varCaptableCaptableSafeIn)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "additionalTerms")
|
|
delete(additionalProperties, "boardApprovalDate")
|
|
delete(additionalProperties, "capital")
|
|
delete(additionalProperties, "discountRate")
|
|
delete(additionalProperties, "issueDate")
|
|
delete(additionalProperties, "publicId")
|
|
delete(additionalProperties, "stakeholderId")
|
|
delete(additionalProperties, "status")
|
|
delete(additionalProperties, "type")
|
|
delete(additionalProperties, "valuationCap")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableCaptableCaptableSafeIn struct {
|
|
value *CaptableCaptableSafeIn
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableCaptableCaptableSafeIn) Get() *CaptableCaptableSafeIn {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableSafeIn) Set(val *CaptableCaptableSafeIn) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableCaptableCaptableSafeIn) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableSafeIn) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableCaptableCaptableSafeIn(val *CaptableCaptableSafeIn) *NullableCaptableCaptableSafeIn {
|
|
return &NullableCaptableCaptableSafeIn{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableCaptableCaptableSafeIn) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableSafeIn) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|