Skip to content

Latest commit

 

History

History
161 lines (86 loc) · 4.14 KB

Address.md

File metadata and controls

161 lines (86 loc) · 4.14 KB

Address

Properties

Name Type Description Notes
Address1 string
Address2 Pointer to string [optional]
City string
Country string Two-letter ISO country code to be used as a hint for target region<br/><br/> NOTE: These are sample values, there are many <a href='http://www.iso.org/iso/country_codes.htm&#39;&gt;more&lt;/a> [default to "US"]
PostalCode string Postal or zip code
State string State or province or territory

Methods

NewAddress

func NewAddress(address1 string, city string, country string, postalCode string, state string, ) *Address

NewAddress instantiates a new Address 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

NewAddressWithDefaults

func NewAddressWithDefaults() *Address

NewAddressWithDefaults instantiates a new Address 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

GetAddress1

func (o *Address) GetAddress1() string

GetAddress1 returns the Address1 field if non-nil, zero value otherwise.

GetAddress1Ok

func (o *Address) GetAddress1Ok() (*string, bool)

GetAddress1Ok returns a tuple with the Address1 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAddress1

func (o *Address) SetAddress1(v string)

SetAddress1 sets Address1 field to given value.

GetAddress2

func (o *Address) GetAddress2() string

GetAddress2 returns the Address2 field if non-nil, zero value otherwise.

GetAddress2Ok

func (o *Address) GetAddress2Ok() (*string, bool)

GetAddress2Ok returns a tuple with the Address2 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAddress2

func (o *Address) SetAddress2(v string)

SetAddress2 sets Address2 field to given value.

HasAddress2

func (o *Address) HasAddress2() bool

HasAddress2 returns a boolean if a field has been set.

GetCity

func (o *Address) GetCity() string

GetCity returns the City field if non-nil, zero value otherwise.

GetCityOk

func (o *Address) GetCityOk() (*string, bool)

GetCityOk returns a tuple with the City field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCity

func (o *Address) SetCity(v string)

SetCity sets City field to given value.

GetCountry

func (o *Address) GetCountry() string

GetCountry returns the Country field if non-nil, zero value otherwise.

GetCountryOk

func (o *Address) GetCountryOk() (*string, bool)

GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCountry

func (o *Address) SetCountry(v string)

SetCountry sets Country field to given value.

GetPostalCode

func (o *Address) GetPostalCode() string

GetPostalCode returns the PostalCode field if non-nil, zero value otherwise.

GetPostalCodeOk

func (o *Address) GetPostalCodeOk() (*string, bool)

GetPostalCodeOk returns a tuple with the PostalCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPostalCode

func (o *Address) SetPostalCode(v string)

SetPostalCode sets PostalCode field to given value.

GetState

func (o *Address) GetState() string

GetState returns the State field if non-nil, zero value otherwise.

GetStateOk

func (o *Address) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetState

func (o *Address) SetState(v string)

SetState sets State field to given value.

[Back to Model list] [Back to API list] [Back to README]