mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
345 lines
10 KiB
Go
345 lines
10 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 CaptableCaptableRoundIn type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &CaptableCaptableRoundIn{}
|
|
|
|
// CaptableCaptableRoundIn struct for CaptableCaptableRoundIn
|
|
type CaptableCaptableRoundIn struct {
|
|
Name interface{} `json:"name,omitempty"`
|
|
PreMoneyValuation interface{} `json:"preMoneyValuation,omitempty"`
|
|
PricePerShare interface{} `json:"pricePerShare,omitempty"`
|
|
RoundType interface{} `json:"roundType,omitempty"`
|
|
ShareClassId interface{} `json:"shareClassId,omitempty"`
|
|
TargetAmount interface{} `json:"targetAmount,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _CaptableCaptableRoundIn CaptableCaptableRoundIn
|
|
|
|
// NewCaptableCaptableRoundIn instantiates a new CaptableCaptableRoundIn 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 NewCaptableCaptableRoundIn() *CaptableCaptableRoundIn {
|
|
this := CaptableCaptableRoundIn{}
|
|
return &this
|
|
}
|
|
|
|
// NewCaptableCaptableRoundInWithDefaults instantiates a new CaptableCaptableRoundIn 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 NewCaptableCaptableRoundInWithDefaults() *CaptableCaptableRoundIn {
|
|
this := CaptableCaptableRoundIn{}
|
|
return &this
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableRoundIn) GetName() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
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.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableRoundIn) GetNameOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return &o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableRoundIn) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given interface{} and assigns it to the Name field.
|
|
func (o *CaptableCaptableRoundIn) SetName(v interface{}) {
|
|
o.Name = v
|
|
}
|
|
|
|
// GetPreMoneyValuation returns the PreMoneyValuation field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableRoundIn) GetPreMoneyValuation() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.PreMoneyValuation
|
|
}
|
|
|
|
// GetPreMoneyValuationOk returns a tuple with the PreMoneyValuation 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 *CaptableCaptableRoundIn) GetPreMoneyValuationOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.PreMoneyValuation) {
|
|
return nil, false
|
|
}
|
|
return &o.PreMoneyValuation, true
|
|
}
|
|
|
|
// HasPreMoneyValuation returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableRoundIn) HasPreMoneyValuation() bool {
|
|
if o != nil && !IsNil(o.PreMoneyValuation) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPreMoneyValuation gets a reference to the given interface{} and assigns it to the PreMoneyValuation field.
|
|
func (o *CaptableCaptableRoundIn) SetPreMoneyValuation(v interface{}) {
|
|
o.PreMoneyValuation = v
|
|
}
|
|
|
|
// GetPricePerShare returns the PricePerShare field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableRoundIn) GetPricePerShare() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
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.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableRoundIn) GetPricePerShareOk() (*interface{}, 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 *CaptableCaptableRoundIn) HasPricePerShare() bool {
|
|
if o != nil && !IsNil(o.PricePerShare) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPricePerShare gets a reference to the given interface{} and assigns it to the PricePerShare field.
|
|
func (o *CaptableCaptableRoundIn) SetPricePerShare(v interface{}) {
|
|
o.PricePerShare = v
|
|
}
|
|
|
|
// GetRoundType returns the RoundType field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableRoundIn) GetRoundType() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.RoundType
|
|
}
|
|
|
|
// GetRoundTypeOk returns a tuple with the RoundType 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 *CaptableCaptableRoundIn) GetRoundTypeOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.RoundType) {
|
|
return nil, false
|
|
}
|
|
return &o.RoundType, true
|
|
}
|
|
|
|
// HasRoundType returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableRoundIn) HasRoundType() bool {
|
|
if o != nil && !IsNil(o.RoundType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRoundType gets a reference to the given interface{} and assigns it to the RoundType field.
|
|
func (o *CaptableCaptableRoundIn) SetRoundType(v interface{}) {
|
|
o.RoundType = v
|
|
}
|
|
|
|
// GetShareClassId returns the ShareClassId field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableRoundIn) GetShareClassId() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
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.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableRoundIn) GetShareClassIdOk() (*interface{}, 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 *CaptableCaptableRoundIn) HasShareClassId() bool {
|
|
if o != nil && !IsNil(o.ShareClassId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetShareClassId gets a reference to the given interface{} and assigns it to the ShareClassId field.
|
|
func (o *CaptableCaptableRoundIn) SetShareClassId(v interface{}) {
|
|
o.ShareClassId = v
|
|
}
|
|
|
|
// GetTargetAmount returns the TargetAmount field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableRoundIn) GetTargetAmount() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.TargetAmount
|
|
}
|
|
|
|
// GetTargetAmountOk returns a tuple with the TargetAmount 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 *CaptableCaptableRoundIn) GetTargetAmountOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.TargetAmount) {
|
|
return nil, false
|
|
}
|
|
return &o.TargetAmount, true
|
|
}
|
|
|
|
// HasTargetAmount returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableRoundIn) HasTargetAmount() bool {
|
|
if o != nil && !IsNil(o.TargetAmount) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTargetAmount gets a reference to the given interface{} and assigns it to the TargetAmount field.
|
|
func (o *CaptableCaptableRoundIn) SetTargetAmount(v interface{}) {
|
|
o.TargetAmount = v
|
|
}
|
|
|
|
func (o CaptableCaptableRoundIn) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o CaptableCaptableRoundIn) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.Name != nil {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if o.PreMoneyValuation != nil {
|
|
toSerialize["preMoneyValuation"] = o.PreMoneyValuation
|
|
}
|
|
if o.PricePerShare != nil {
|
|
toSerialize["pricePerShare"] = o.PricePerShare
|
|
}
|
|
if o.RoundType != nil {
|
|
toSerialize["roundType"] = o.RoundType
|
|
}
|
|
if o.ShareClassId != nil {
|
|
toSerialize["shareClassId"] = o.ShareClassId
|
|
}
|
|
if o.TargetAmount != nil {
|
|
toSerialize["targetAmount"] = o.TargetAmount
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *CaptableCaptableRoundIn) UnmarshalJSON(data []byte) (err error) {
|
|
varCaptableCaptableRoundIn := _CaptableCaptableRoundIn{}
|
|
|
|
err = json.Unmarshal(data, &varCaptableCaptableRoundIn)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = CaptableCaptableRoundIn(varCaptableCaptableRoundIn)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "preMoneyValuation")
|
|
delete(additionalProperties, "pricePerShare")
|
|
delete(additionalProperties, "roundType")
|
|
delete(additionalProperties, "shareClassId")
|
|
delete(additionalProperties, "targetAmount")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableCaptableCaptableRoundIn struct {
|
|
value *CaptableCaptableRoundIn
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableCaptableCaptableRoundIn) Get() *CaptableCaptableRoundIn {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableRoundIn) Set(val *CaptableCaptableRoundIn) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableCaptableCaptableRoundIn) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableRoundIn) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableCaptableCaptableRoundIn(val *CaptableCaptableRoundIn) *NullableCaptableCaptableRoundIn {
|
|
return &NullableCaptableCaptableRoundIn{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableCaptableCaptableRoundIn) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableRoundIn) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|