Class: Stripe::PaymentIntent::CreateParams::Shipping::Address

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



3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
# File 'lib/stripe/resources/payment_intent.rb', line 3851

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.



3839
3840
3841
# File 'lib/stripe/resources/payment_intent.rb', line 3839

def city
  @city
end

#countryObject

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



3841
3842
3843
# File 'lib/stripe/resources/payment_intent.rb', line 3841

def country
  @country
end

#line1Object

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



3843
3844
3845
# File 'lib/stripe/resources/payment_intent.rb', line 3843

def line1
  @line1
end

#line2Object

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



3845
3846
3847
# File 'lib/stripe/resources/payment_intent.rb', line 3845

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



3847
3848
3849
# File 'lib/stripe/resources/payment_intent.rb', line 3847

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



3849
3850
3851
# File 'lib/stripe/resources/payment_intent.rb', line 3849

def state
  @state
end