mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
535 lines
17 KiB
Go
535 lines
17 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 CaptableCaptableConvertibleIn type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &CaptableCaptableConvertibleIn{}
|
|
|
|
// CaptableCaptableConvertibleIn struct for CaptableCaptableConvertibleIn
|
|
type CaptableCaptableConvertibleIn struct {
|
|
AdditionalTerms interface{} `json:"additionalTerms,omitempty"`
|
|
BoardApprovalDate interface{} `json:"boardApprovalDate,omitempty"`
|
|
Capital interface{} `json:"capital,omitempty"`
|
|
ConversionCap interface{} `json:"conversionCap,omitempty"`
|
|
DiscountRate interface{} `json:"discountRate,omitempty"`
|
|
InterestRate interface{} `json:"interestRate,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"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _CaptableCaptableConvertibleIn CaptableCaptableConvertibleIn
|
|
|
|
// NewCaptableCaptableConvertibleIn instantiates a new CaptableCaptableConvertibleIn 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 NewCaptableCaptableConvertibleIn() *CaptableCaptableConvertibleIn {
|
|
this := CaptableCaptableConvertibleIn{}
|
|
return &this
|
|
}
|
|
|
|
// NewCaptableCaptableConvertibleInWithDefaults instantiates a new CaptableCaptableConvertibleIn 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 NewCaptableCaptableConvertibleInWithDefaults() *CaptableCaptableConvertibleIn {
|
|
this := CaptableCaptableConvertibleIn{}
|
|
return &this
|
|
}
|
|
|
|
// GetAdditionalTerms returns the AdditionalTerms field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) SetCapital(v interface{}) {
|
|
o.Capital = v
|
|
}
|
|
|
|
// GetConversionCap returns the ConversionCap field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableConvertibleIn) GetConversionCap() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.ConversionCap
|
|
}
|
|
|
|
// GetConversionCapOk returns a tuple with the ConversionCap 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 *CaptableCaptableConvertibleIn) GetConversionCapOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.ConversionCap) {
|
|
return nil, false
|
|
}
|
|
return &o.ConversionCap, true
|
|
}
|
|
|
|
// HasConversionCap returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableConvertibleIn) HasConversionCap() bool {
|
|
if o != nil && !IsNil(o.ConversionCap) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetConversionCap gets a reference to the given interface{} and assigns it to the ConversionCap field.
|
|
func (o *CaptableCaptableConvertibleIn) SetConversionCap(v interface{}) {
|
|
o.ConversionCap = v
|
|
}
|
|
|
|
// GetDiscountRate returns the DiscountRate field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) SetDiscountRate(v interface{}) {
|
|
o.DiscountRate = v
|
|
}
|
|
|
|
// GetInterestRate returns the InterestRate field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableConvertibleIn) GetInterestRate() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.InterestRate
|
|
}
|
|
|
|
// GetInterestRateOk returns a tuple with the InterestRate 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 *CaptableCaptableConvertibleIn) GetInterestRateOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.InterestRate) {
|
|
return nil, false
|
|
}
|
|
return &o.InterestRate, true
|
|
}
|
|
|
|
// HasInterestRate returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableConvertibleIn) HasInterestRate() bool {
|
|
if o != nil && !IsNil(o.InterestRate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetInterestRate gets a reference to the given interface{} and assigns it to the InterestRate field.
|
|
func (o *CaptableCaptableConvertibleIn) SetInterestRate(v interface{}) {
|
|
o.InterestRate = v
|
|
}
|
|
|
|
// GetIssueDate returns the IssueDate field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) 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 *CaptableCaptableConvertibleIn) SetType(v interface{}) {
|
|
o.Type = v
|
|
}
|
|
|
|
func (o CaptableCaptableConvertibleIn) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o CaptableCaptableConvertibleIn) 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.ConversionCap != nil {
|
|
toSerialize["conversionCap"] = o.ConversionCap
|
|
}
|
|
if o.DiscountRate != nil {
|
|
toSerialize["discountRate"] = o.DiscountRate
|
|
}
|
|
if o.InterestRate != nil {
|
|
toSerialize["interestRate"] = o.InterestRate
|
|
}
|
|
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
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *CaptableCaptableConvertibleIn) UnmarshalJSON(data []byte) (err error) {
|
|
varCaptableCaptableConvertibleIn := _CaptableCaptableConvertibleIn{}
|
|
|
|
err = json.Unmarshal(data, &varCaptableCaptableConvertibleIn)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = CaptableCaptableConvertibleIn(varCaptableCaptableConvertibleIn)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "additionalTerms")
|
|
delete(additionalProperties, "boardApprovalDate")
|
|
delete(additionalProperties, "capital")
|
|
delete(additionalProperties, "conversionCap")
|
|
delete(additionalProperties, "discountRate")
|
|
delete(additionalProperties, "interestRate")
|
|
delete(additionalProperties, "issueDate")
|
|
delete(additionalProperties, "publicId")
|
|
delete(additionalProperties, "stakeholderId")
|
|
delete(additionalProperties, "status")
|
|
delete(additionalProperties, "type")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableCaptableCaptableConvertibleIn struct {
|
|
value *CaptableCaptableConvertibleIn
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableCaptableCaptableConvertibleIn) Get() *CaptableCaptableConvertibleIn {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableConvertibleIn) Set(val *CaptableCaptableConvertibleIn) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableCaptableCaptableConvertibleIn) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableConvertibleIn) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableCaptableCaptableConvertibleIn(val *CaptableCaptableConvertibleIn) *NullableCaptableCaptableConvertibleIn {
|
|
return &NullableCaptableCaptableConvertibleIn{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableCaptableCaptableConvertibleIn) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableConvertibleIn) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|