mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
231 lines
6.3 KiB
Go
231 lines
6.3 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 StandingUpkeepIn type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &StandingUpkeepIn{}
|
|
|
|
// StandingUpkeepIn struct for StandingUpkeepIn
|
|
type StandingUpkeepIn struct {
|
|
// AgentOfRecord includes our agent fee, which most entities owe someone.
|
|
AgentOfRecord *bool `json:"agentOfRecord,omitempty"`
|
|
// Jurisdiction is the state the entity stands in.
|
|
Jurisdiction *string `json:"jurisdiction,omitempty"`
|
|
// Structure is the entity kind: c-corp, llc or dao-llc.
|
|
Structure *string `json:"structure,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _StandingUpkeepIn StandingUpkeepIn
|
|
|
|
// NewStandingUpkeepIn instantiates a new StandingUpkeepIn 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 NewStandingUpkeepIn() *StandingUpkeepIn {
|
|
this := StandingUpkeepIn{}
|
|
return &this
|
|
}
|
|
|
|
// NewStandingUpkeepInWithDefaults instantiates a new StandingUpkeepIn 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 NewStandingUpkeepInWithDefaults() *StandingUpkeepIn {
|
|
this := StandingUpkeepIn{}
|
|
return &this
|
|
}
|
|
|
|
// GetAgentOfRecord returns the AgentOfRecord field value if set, zero value otherwise.
|
|
func (o *StandingUpkeepIn) GetAgentOfRecord() bool {
|
|
if o == nil || IsNil(o.AgentOfRecord) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.AgentOfRecord
|
|
}
|
|
|
|
// GetAgentOfRecordOk returns a tuple with the AgentOfRecord field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StandingUpkeepIn) GetAgentOfRecordOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.AgentOfRecord) {
|
|
return nil, false
|
|
}
|
|
return o.AgentOfRecord, true
|
|
}
|
|
|
|
// HasAgentOfRecord returns a boolean if a field has been set.
|
|
func (o *StandingUpkeepIn) HasAgentOfRecord() bool {
|
|
if o != nil && !IsNil(o.AgentOfRecord) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAgentOfRecord gets a reference to the given bool and assigns it to the AgentOfRecord field.
|
|
func (o *StandingUpkeepIn) SetAgentOfRecord(v bool) {
|
|
o.AgentOfRecord = &v
|
|
}
|
|
|
|
// GetJurisdiction returns the Jurisdiction field value if set, zero value otherwise.
|
|
func (o *StandingUpkeepIn) GetJurisdiction() string {
|
|
if o == nil || IsNil(o.Jurisdiction) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Jurisdiction
|
|
}
|
|
|
|
// GetJurisdictionOk returns a tuple with the Jurisdiction field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StandingUpkeepIn) GetJurisdictionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Jurisdiction) {
|
|
return nil, false
|
|
}
|
|
return o.Jurisdiction, true
|
|
}
|
|
|
|
// HasJurisdiction returns a boolean if a field has been set.
|
|
func (o *StandingUpkeepIn) HasJurisdiction() bool {
|
|
if o != nil && !IsNil(o.Jurisdiction) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetJurisdiction gets a reference to the given string and assigns it to the Jurisdiction field.
|
|
func (o *StandingUpkeepIn) SetJurisdiction(v string) {
|
|
o.Jurisdiction = &v
|
|
}
|
|
|
|
// GetStructure returns the Structure field value if set, zero value otherwise.
|
|
func (o *StandingUpkeepIn) GetStructure() string {
|
|
if o == nil || IsNil(o.Structure) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Structure
|
|
}
|
|
|
|
// GetStructureOk returns a tuple with the Structure field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StandingUpkeepIn) GetStructureOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Structure) {
|
|
return nil, false
|
|
}
|
|
return o.Structure, true
|
|
}
|
|
|
|
// HasStructure returns a boolean if a field has been set.
|
|
func (o *StandingUpkeepIn) HasStructure() bool {
|
|
if o != nil && !IsNil(o.Structure) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStructure gets a reference to the given string and assigns it to the Structure field.
|
|
func (o *StandingUpkeepIn) SetStructure(v string) {
|
|
o.Structure = &v
|
|
}
|
|
|
|
func (o StandingUpkeepIn) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o StandingUpkeepIn) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.AgentOfRecord) {
|
|
toSerialize["agentOfRecord"] = o.AgentOfRecord
|
|
}
|
|
if !IsNil(o.Jurisdiction) {
|
|
toSerialize["jurisdiction"] = o.Jurisdiction
|
|
}
|
|
if !IsNil(o.Structure) {
|
|
toSerialize["structure"] = o.Structure
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *StandingUpkeepIn) UnmarshalJSON(data []byte) (err error) {
|
|
varStandingUpkeepIn := _StandingUpkeepIn{}
|
|
|
|
err = json.Unmarshal(data, &varStandingUpkeepIn)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = StandingUpkeepIn(varStandingUpkeepIn)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "agentOfRecord")
|
|
delete(additionalProperties, "jurisdiction")
|
|
delete(additionalProperties, "structure")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableStandingUpkeepIn struct {
|
|
value *StandingUpkeepIn
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableStandingUpkeepIn) Get() *StandingUpkeepIn {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableStandingUpkeepIn) Set(val *StandingUpkeepIn) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableStandingUpkeepIn) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableStandingUpkeepIn) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableStandingUpkeepIn(val *StandingUpkeepIn) *NullableStandingUpkeepIn {
|
|
return &NullableStandingUpkeepIn{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableStandingUpkeepIn) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableStandingUpkeepIn) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|