Skip to content

class Tourmaline::ShippingAddress
inherits Reference #

This object represents a shipping address.

Included modules

JSON::Serializable

Constructors#

.new(country_code, state, city, street_line1, street_line2, post_code) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#city : String #

City

View source

#city=(city : String) #

City

View source

#country_code : String #

Two-letter ISO 3166-1 alpha-2 country code

View source

#country_code=(country_code : String) #

Two-letter ISO 3166-1 alpha-2 country code

View source

#post_code : String #

Address post code

View source

#post_code=(post_code : String) #

Address post code

View source

#state : String #

State, if applicable

View source

#state=(state : String) #

State, if applicable

View source

#street_line1 : String #

First line for the address

View source

#street_line1=(street_line1 : String) #

First line for the address

View source

#street_line2 : String #

Second line for the address

View source

#street_line2=(street_line2 : String) #

Second line for the address

View source