Files
sdk/model_captable_captable_company.go

421 lines
12 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 CaptableCaptableCompany type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CaptableCaptableCompany{}
// CaptableCaptableCompany struct for CaptableCaptableCompany
type CaptableCaptableCompany struct {
// CreatedAt is when the company row was seeded, in unix milliseconds.
CreatedAt *int64 `json:"createdAt,omitempty"`
// ID is the company id, which is the tenant's own org id.
Id *string `json:"id,omitempty"`
// IncorporationCountry is the ISO country the entity is incorporated in.
IncorporationCountry *string `json:"incorporationCountry,omitempty"`
// IncorporationState is the state or province of incorporation.
IncorporationState *string `json:"incorporationState,omitempty"`
// IncorporationType is the entity kind, e.g. LLC or C_CORP.
IncorporationType *string `json:"incorporationType,omitempty"`
// Name is the company's legal name.
Name *string `json:"name,omitempty"`
// PublicID is the company's shareable public identifier.
PublicId *string `json:"publicId,omitempty"`
// UpdatedAt is when the company row last changed, in unix milliseconds.
UpdatedAt *int64 `json:"updatedAt,omitempty"`
AdditionalProperties map[string]interface{}
}
type _CaptableCaptableCompany CaptableCaptableCompany
// NewCaptableCaptableCompany instantiates a new CaptableCaptableCompany 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 NewCaptableCaptableCompany() *CaptableCaptableCompany {
this := CaptableCaptableCompany{}
return &this
}
// NewCaptableCaptableCompanyWithDefaults instantiates a new CaptableCaptableCompany 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 NewCaptableCaptableCompanyWithDefaults() *CaptableCaptableCompany {
this := CaptableCaptableCompany{}
return &this
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *CaptableCaptableCompany) GetCreatedAt() int64 {
if o == nil || IsNil(o.CreatedAt) {
var ret int64
return ret
}
return *o.CreatedAt
}
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CaptableCaptableCompany) GetCreatedAtOk() (*int64, bool) {
if o == nil || IsNil(o.CreatedAt) {
return nil, false
}
return o.CreatedAt, true
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *CaptableCaptableCompany) HasCreatedAt() bool {
if o != nil && !IsNil(o.CreatedAt) {
return true
}
return false
}
// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
func (o *CaptableCaptableCompany) SetCreatedAt(v int64) {
o.CreatedAt = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *CaptableCaptableCompany) 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 *CaptableCaptableCompany) 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 *CaptableCaptableCompany) 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 *CaptableCaptableCompany) SetId(v string) {
o.Id = &v
}
// GetIncorporationCountry returns the IncorporationCountry field value if set, zero value otherwise.
func (o *CaptableCaptableCompany) GetIncorporationCountry() string {
if o == nil || IsNil(o.IncorporationCountry) {
var ret string
return ret
}
return *o.IncorporationCountry
}
// GetIncorporationCountryOk returns a tuple with the IncorporationCountry field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CaptableCaptableCompany) GetIncorporationCountryOk() (*string, bool) {
if o == nil || IsNil(o.IncorporationCountry) {
return nil, false
}
return o.IncorporationCountry, true
}
// HasIncorporationCountry returns a boolean if a field has been set.
func (o *CaptableCaptableCompany) HasIncorporationCountry() bool {
if o != nil && !IsNil(o.IncorporationCountry) {
return true
}
return false
}
// SetIncorporationCountry gets a reference to the given string and assigns it to the IncorporationCountry field.
func (o *CaptableCaptableCompany) SetIncorporationCountry(v string) {
o.IncorporationCountry = &v
}
// GetIncorporationState returns the IncorporationState field value if set, zero value otherwise.
func (o *CaptableCaptableCompany) GetIncorporationState() string {
if o == nil || IsNil(o.IncorporationState) {
var ret string
return ret
}
return *o.IncorporationState
}
// GetIncorporationStateOk returns a tuple with the IncorporationState field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CaptableCaptableCompany) GetIncorporationStateOk() (*string, bool) {
if o == nil || IsNil(o.IncorporationState) {
return nil, false
}
return o.IncorporationState, true
}
// HasIncorporationState returns a boolean if a field has been set.
func (o *CaptableCaptableCompany) HasIncorporationState() bool {
if o != nil && !IsNil(o.IncorporationState) {
return true
}
return false
}
// SetIncorporationState gets a reference to the given string and assigns it to the IncorporationState field.
func (o *CaptableCaptableCompany) SetIncorporationState(v string) {
o.IncorporationState = &v
}
// GetIncorporationType returns the IncorporationType field value if set, zero value otherwise.
func (o *CaptableCaptableCompany) GetIncorporationType() string {
if o == nil || IsNil(o.IncorporationType) {
var ret string
return ret
}
return *o.IncorporationType
}
// GetIncorporationTypeOk returns a tuple with the IncorporationType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CaptableCaptableCompany) GetIncorporationTypeOk() (*string, bool) {
if o == nil || IsNil(o.IncorporationType) {
return nil, false
}
return o.IncorporationType, true
}
// HasIncorporationType returns a boolean if a field has been set.
func (o *CaptableCaptableCompany) HasIncorporationType() bool {
if o != nil && !IsNil(o.IncorporationType) {
return true
}
return false
}
// SetIncorporationType gets a reference to the given string and assigns it to the IncorporationType field.
func (o *CaptableCaptableCompany) SetIncorporationType(v string) {
o.IncorporationType = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *CaptableCaptableCompany) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
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.
func (o *CaptableCaptableCompany) GetNameOk() (*string, 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 *CaptableCaptableCompany) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *CaptableCaptableCompany) SetName(v string) {
o.Name = &v
}
// GetPublicId returns the PublicId field value if set, zero value otherwise.
func (o *CaptableCaptableCompany) GetPublicId() string {
if o == nil || IsNil(o.PublicId) {
var ret string
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.
func (o *CaptableCaptableCompany) GetPublicIdOk() (*string, 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 *CaptableCaptableCompany) HasPublicId() bool {
if o != nil && !IsNil(o.PublicId) {
return true
}
return false
}
// SetPublicId gets a reference to the given string and assigns it to the PublicId field.
func (o *CaptableCaptableCompany) SetPublicId(v string) {
o.PublicId = &v
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *CaptableCaptableCompany) GetUpdatedAt() int64 {
if o == nil || IsNil(o.UpdatedAt) {
var ret int64
return ret
}
return *o.UpdatedAt
}
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CaptableCaptableCompany) GetUpdatedAtOk() (*int64, bool) {
if o == nil || IsNil(o.UpdatedAt) {
return nil, false
}
return o.UpdatedAt, true
}
// HasUpdatedAt returns a boolean if a field has been set.
func (o *CaptableCaptableCompany) HasUpdatedAt() bool {
if o != nil && !IsNil(o.UpdatedAt) {
return true
}
return false
}
// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.
func (o *CaptableCaptableCompany) SetUpdatedAt(v int64) {
o.UpdatedAt = &v
}
func (o CaptableCaptableCompany) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o CaptableCaptableCompany) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.CreatedAt) {
toSerialize["createdAt"] = o.CreatedAt
}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.IncorporationCountry) {
toSerialize["incorporationCountry"] = o.IncorporationCountry
}
if !IsNil(o.IncorporationState) {
toSerialize["incorporationState"] = o.IncorporationState
}
if !IsNil(o.IncorporationType) {
toSerialize["incorporationType"] = o.IncorporationType
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.PublicId) {
toSerialize["publicId"] = o.PublicId
}
if !IsNil(o.UpdatedAt) {
toSerialize["updatedAt"] = o.UpdatedAt
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *CaptableCaptableCompany) UnmarshalJSON(data []byte) (err error) {
varCaptableCaptableCompany := _CaptableCaptableCompany{}
err = json.Unmarshal(data, &varCaptableCaptableCompany)
if err != nil {
return err
}
*o = CaptableCaptableCompany(varCaptableCaptableCompany)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "createdAt")
delete(additionalProperties, "id")
delete(additionalProperties, "incorporationCountry")
delete(additionalProperties, "incorporationState")
delete(additionalProperties, "incorporationType")
delete(additionalProperties, "name")
delete(additionalProperties, "publicId")
delete(additionalProperties, "updatedAt")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableCaptableCaptableCompany struct {
value *CaptableCaptableCompany
isSet bool
}
func (v NullableCaptableCaptableCompany) Get() *CaptableCaptableCompany {
return v.value
}
func (v *NullableCaptableCaptableCompany) Set(val *CaptableCaptableCompany) {
v.value = val
v.isSet = true
}
func (v NullableCaptableCaptableCompany) IsSet() bool {
return v.isSet
}
func (v *NullableCaptableCaptableCompany) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCaptableCaptableCompany(val *CaptableCaptableCompany) *NullableCaptableCaptableCompany {
return &NullableCaptableCaptableCompany{value: val, isSet: true}
}
func (v NullableCaptableCaptableCompany) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCaptableCaptableCompany) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}