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 CaptableCaptableStakeholderPatch type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &CaptableCaptableStakeholderPatch{}
|
|
|
|
// CaptableCaptableStakeholderPatch struct for CaptableCaptableStakeholderPatch
|
|
type CaptableCaptableStakeholderPatch struct {
|
|
City interface{} `json:"city,omitempty"`
|
|
CurrentRelationship interface{} `json:"currentRelationship,omitempty"`
|
|
Email interface{} `json:"email,omitempty"`
|
|
// ID is the stakeholder to update. It is the path segment: the URL is the addressing authority, and the org it is resolved in comes from the caller's principal, so an id from another tenant is simply not found.
|
|
Id *string `json:"id,omitempty"`
|
|
InstitutionName interface{} `json:"institutionName,omitempty"`
|
|
Name interface{} `json:"name,omitempty"`
|
|
StakeholderType interface{} `json:"stakeholderType,omitempty"`
|
|
State interface{} `json:"state,omitempty"`
|
|
StreetAddress interface{} `json:"streetAddress,omitempty"`
|
|
TaxId interface{} `json:"taxId,omitempty"`
|
|
Zipcode interface{} `json:"zipcode,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _CaptableCaptableStakeholderPatch CaptableCaptableStakeholderPatch
|
|
|
|
// NewCaptableCaptableStakeholderPatch instantiates a new CaptableCaptableStakeholderPatch 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 NewCaptableCaptableStakeholderPatch() *CaptableCaptableStakeholderPatch {
|
|
this := CaptableCaptableStakeholderPatch{}
|
|
return &this
|
|
}
|
|
|
|
// NewCaptableCaptableStakeholderPatchWithDefaults instantiates a new CaptableCaptableStakeholderPatch 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 NewCaptableCaptableStakeholderPatchWithDefaults() *CaptableCaptableStakeholderPatch {
|
|
this := CaptableCaptableStakeholderPatch{}
|
|
return &this
|
|
}
|
|
|
|
// GetCity returns the City field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableStakeholderPatch) GetCity() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.City
|
|
}
|
|
|
|
// GetCityOk returns a tuple with the City 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 *CaptableCaptableStakeholderPatch) GetCityOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.City) {
|
|
return nil, false
|
|
}
|
|
return &o.City, true
|
|
}
|
|
|
|
// HasCity returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableStakeholderPatch) HasCity() bool {
|
|
if o != nil && !IsNil(o.City) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCity gets a reference to the given interface{} and assigns it to the City field.
|
|
func (o *CaptableCaptableStakeholderPatch) SetCity(v interface{}) {
|
|
o.City = v
|
|
}
|
|
|
|
// GetCurrentRelationship returns the CurrentRelationship field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableStakeholderPatch) GetCurrentRelationship() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.CurrentRelationship
|
|
}
|
|
|
|
// GetCurrentRelationshipOk returns a tuple with the CurrentRelationship 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 *CaptableCaptableStakeholderPatch) GetCurrentRelationshipOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.CurrentRelationship) {
|
|
return nil, false
|
|
}
|
|
return &o.CurrentRelationship, true
|
|
}
|
|
|
|
// HasCurrentRelationship returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableStakeholderPatch) HasCurrentRelationship() bool {
|
|
if o != nil && !IsNil(o.CurrentRelationship) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCurrentRelationship gets a reference to the given interface{} and assigns it to the CurrentRelationship field.
|
|
func (o *CaptableCaptableStakeholderPatch) SetCurrentRelationship(v interface{}) {
|
|
o.CurrentRelationship = v
|
|
}
|
|
|
|
// GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableStakeholderPatch) GetEmail() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.Email
|
|
}
|
|
|
|
// GetEmailOk returns a tuple with the Email 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 *CaptableCaptableStakeholderPatch) GetEmailOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.Email) {
|
|
return nil, false
|
|
}
|
|
return &o.Email, true
|
|
}
|
|
|
|
// HasEmail returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableStakeholderPatch) HasEmail() bool {
|
|
if o != nil && !IsNil(o.Email) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEmail gets a reference to the given interface{} and assigns it to the Email field.
|
|
func (o *CaptableCaptableStakeholderPatch) SetEmail(v interface{}) {
|
|
o.Email = v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableStakeholderPatch) 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 *CaptableCaptableStakeholderPatch) 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 *CaptableCaptableStakeholderPatch) 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 *CaptableCaptableStakeholderPatch) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetInstitutionName returns the InstitutionName field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableStakeholderPatch) GetInstitutionName() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.InstitutionName
|
|
}
|
|
|
|
// GetInstitutionNameOk returns a tuple with the InstitutionName 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 *CaptableCaptableStakeholderPatch) GetInstitutionNameOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.InstitutionName) {
|
|
return nil, false
|
|
}
|
|
return &o.InstitutionName, true
|
|
}
|
|
|
|
// HasInstitutionName returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableStakeholderPatch) HasInstitutionName() bool {
|
|
if o != nil && !IsNil(o.InstitutionName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetInstitutionName gets a reference to the given interface{} and assigns it to the InstitutionName field.
|
|
func (o *CaptableCaptableStakeholderPatch) SetInstitutionName(v interface{}) {
|
|
o.InstitutionName = v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableStakeholderPatch) 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 *CaptableCaptableStakeholderPatch) 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 *CaptableCaptableStakeholderPatch) 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 *CaptableCaptableStakeholderPatch) SetName(v interface{}) {
|
|
o.Name = v
|
|
}
|
|
|
|
// GetStakeholderType returns the StakeholderType field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableStakeholderPatch) GetStakeholderType() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.StakeholderType
|
|
}
|
|
|
|
// GetStakeholderTypeOk returns a tuple with the StakeholderType 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 *CaptableCaptableStakeholderPatch) GetStakeholderTypeOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.StakeholderType) {
|
|
return nil, false
|
|
}
|
|
return &o.StakeholderType, true
|
|
}
|
|
|
|
// HasStakeholderType returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableStakeholderPatch) HasStakeholderType() bool {
|
|
if o != nil && !IsNil(o.StakeholderType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStakeholderType gets a reference to the given interface{} and assigns it to the StakeholderType field.
|
|
func (o *CaptableCaptableStakeholderPatch) SetStakeholderType(v interface{}) {
|
|
o.StakeholderType = v
|
|
}
|
|
|
|
// GetState returns the State field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableStakeholderPatch) GetState() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.State
|
|
}
|
|
|
|
// GetStateOk returns a tuple with the State 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 *CaptableCaptableStakeholderPatch) GetStateOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.State) {
|
|
return nil, false
|
|
}
|
|
return &o.State, true
|
|
}
|
|
|
|
// HasState returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableStakeholderPatch) HasState() bool {
|
|
if o != nil && !IsNil(o.State) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetState gets a reference to the given interface{} and assigns it to the State field.
|
|
func (o *CaptableCaptableStakeholderPatch) SetState(v interface{}) {
|
|
o.State = v
|
|
}
|
|
|
|
// GetStreetAddress returns the StreetAddress field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableStakeholderPatch) GetStreetAddress() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.StreetAddress
|
|
}
|
|
|
|
// GetStreetAddressOk returns a tuple with the StreetAddress 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 *CaptableCaptableStakeholderPatch) GetStreetAddressOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.StreetAddress) {
|
|
return nil, false
|
|
}
|
|
return &o.StreetAddress, true
|
|
}
|
|
|
|
// HasStreetAddress returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableStakeholderPatch) HasStreetAddress() bool {
|
|
if o != nil && !IsNil(o.StreetAddress) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStreetAddress gets a reference to the given interface{} and assigns it to the StreetAddress field.
|
|
func (o *CaptableCaptableStakeholderPatch) SetStreetAddress(v interface{}) {
|
|
o.StreetAddress = v
|
|
}
|
|
|
|
// GetTaxId returns the TaxId field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableStakeholderPatch) GetTaxId() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.TaxId
|
|
}
|
|
|
|
// GetTaxIdOk returns a tuple with the TaxId 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 *CaptableCaptableStakeholderPatch) GetTaxIdOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.TaxId) {
|
|
return nil, false
|
|
}
|
|
return &o.TaxId, true
|
|
}
|
|
|
|
// HasTaxId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableStakeholderPatch) HasTaxId() bool {
|
|
if o != nil && !IsNil(o.TaxId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTaxId gets a reference to the given interface{} and assigns it to the TaxId field.
|
|
func (o *CaptableCaptableStakeholderPatch) SetTaxId(v interface{}) {
|
|
o.TaxId = v
|
|
}
|
|
|
|
// GetZipcode returns the Zipcode field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableStakeholderPatch) GetZipcode() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.Zipcode
|
|
}
|
|
|
|
// GetZipcodeOk returns a tuple with the Zipcode 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 *CaptableCaptableStakeholderPatch) GetZipcodeOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.Zipcode) {
|
|
return nil, false
|
|
}
|
|
return &o.Zipcode, true
|
|
}
|
|
|
|
// HasZipcode returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableStakeholderPatch) HasZipcode() bool {
|
|
if o != nil && !IsNil(o.Zipcode) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetZipcode gets a reference to the given interface{} and assigns it to the Zipcode field.
|
|
func (o *CaptableCaptableStakeholderPatch) SetZipcode(v interface{}) {
|
|
o.Zipcode = v
|
|
}
|
|
|
|
func (o CaptableCaptableStakeholderPatch) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o CaptableCaptableStakeholderPatch) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.City != nil {
|
|
toSerialize["city"] = o.City
|
|
}
|
|
if o.CurrentRelationship != nil {
|
|
toSerialize["currentRelationship"] = o.CurrentRelationship
|
|
}
|
|
if o.Email != nil {
|
|
toSerialize["email"] = o.Email
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if o.InstitutionName != nil {
|
|
toSerialize["institutionName"] = o.InstitutionName
|
|
}
|
|
if o.Name != nil {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if o.StakeholderType != nil {
|
|
toSerialize["stakeholderType"] = o.StakeholderType
|
|
}
|
|
if o.State != nil {
|
|
toSerialize["state"] = o.State
|
|
}
|
|
if o.StreetAddress != nil {
|
|
toSerialize["streetAddress"] = o.StreetAddress
|
|
}
|
|
if o.TaxId != nil {
|
|
toSerialize["taxId"] = o.TaxId
|
|
}
|
|
if o.Zipcode != nil {
|
|
toSerialize["zipcode"] = o.Zipcode
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *CaptableCaptableStakeholderPatch) UnmarshalJSON(data []byte) (err error) {
|
|
varCaptableCaptableStakeholderPatch := _CaptableCaptableStakeholderPatch{}
|
|
|
|
err = json.Unmarshal(data, &varCaptableCaptableStakeholderPatch)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = CaptableCaptableStakeholderPatch(varCaptableCaptableStakeholderPatch)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "city")
|
|
delete(additionalProperties, "currentRelationship")
|
|
delete(additionalProperties, "email")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "institutionName")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "stakeholderType")
|
|
delete(additionalProperties, "state")
|
|
delete(additionalProperties, "streetAddress")
|
|
delete(additionalProperties, "taxId")
|
|
delete(additionalProperties, "zipcode")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableCaptableCaptableStakeholderPatch struct {
|
|
value *CaptableCaptableStakeholderPatch
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableCaptableCaptableStakeholderPatch) Get() *CaptableCaptableStakeholderPatch {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableStakeholderPatch) Set(val *CaptableCaptableStakeholderPatch) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableCaptableCaptableStakeholderPatch) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableStakeholderPatch) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableCaptableCaptableStakeholderPatch(val *CaptableCaptableStakeholderPatch) *NullableCaptableCaptableStakeholderPatch {
|
|
return &NullableCaptableCaptableStakeholderPatch{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableCaptableCaptableStakeholderPatch) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableStakeholderPatch) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|