Class: Stripe::Invoice::UpcomingParams::CustomerDetails::Address

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/invoice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) ⇒ Address

Returns a new instance of Address.



2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
# File 'lib/stripe/resources/invoice.rb', line 2194

def initialize(
  city: nil,
  country: nil,
  line1: nil,
  line2: nil,
  postal_code: nil,
  state: nil
)
  @city = city
  @country = country
  @line1 = line1
  @line2 = line2
  @postal_code = postal_code
  @state = state
end

Instance Attribute Details

#cityObject

City, district, suburb, town, or village.



2177
2178
2179
# File 'lib/stripe/resources/invoice.rb', line 2177

def city
  @city
end

#countryObject

Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).



2180
2181
2182
# File 'lib/stripe/resources/invoice.rb', line 2180

def country
  @country
end

#line1Object

Address line 1 (e.g., street, PO Box, or company name).



2183
2184
2185
# File 'lib/stripe/resources/invoice.rb', line 2183

def line1
  @line1
end

#line2Object

Address line 2 (e.g., apartment, suite, unit, or building).



2186
2187
2188
# File 'lib/stripe/resources/invoice.rb', line 2186

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



2189
2190
2191
# File 'lib/stripe/resources/invoice.rb', line 2189

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



2192
2193
2194
# File 'lib/stripe/resources/invoice.rb', line 2192

def state
  @state
end