Class: Stripe::Invoice::UpdateParams::ShippingDetails::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.



944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
# File 'lib/stripe/resources/invoice.rb', line 944

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.



932
933
934
# File 'lib/stripe/resources/invoice.rb', line 932

def city
  @city
end

#countryObject

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



934
935
936
# File 'lib/stripe/resources/invoice.rb', line 934

def country
  @country
end

#line1Object

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



936
937
938
# File 'lib/stripe/resources/invoice.rb', line 936

def line1
  @line1
end

#line2Object

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



938
939
940
# File 'lib/stripe/resources/invoice.rb', line 938

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



940
941
942
# File 'lib/stripe/resources/invoice.rb', line 940

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



942
943
944
# File 'lib/stripe/resources/invoice.rb', line 942

def state
  @state
end