Class: Stripe::ChargeUpdateParams::Shipping::Address

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/charge_update_params.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.



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/stripe/params/charge_update_params.rb', line 30

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.



18
19
20
# File 'lib/stripe/params/charge_update_params.rb', line 18

def city
  @city
end

#countryObject

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



20
21
22
# File 'lib/stripe/params/charge_update_params.rb', line 20

def country
  @country
end

#line1Object

Address line 1, such as the street, PO Box, or company name.



22
23
24
# File 'lib/stripe/params/charge_update_params.rb', line 22

def line1
  @line1
end

#line2Object

Address line 2, such as the apartment, suite, unit, or building.



24
25
26
# File 'lib/stripe/params/charge_update_params.rb', line 24

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



26
27
28
# File 'lib/stripe/params/charge_update_params.rb', line 26

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



28
29
30
# File 'lib/stripe/params/charge_update_params.rb', line 28

def state
  @state
end