Class: Stripe::PaymentIntent::ConfirmParams::PaymentDetails::CarRental::PickupAddress

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) ⇒ PickupAddress

Returns a new instance of PickupAddress.



9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
# File 'lib/stripe/resources/payment_intent.rb', line 9823

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.



9811
9812
9813
# File 'lib/stripe/resources/payment_intent.rb', line 9811

def city
  @city
end

#countryObject

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



9813
9814
9815
# File 'lib/stripe/resources/payment_intent.rb', line 9813

def country
  @country
end

#line1Object

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



9815
9816
9817
# File 'lib/stripe/resources/payment_intent.rb', line 9815

def line1
  @line1
end

#line2Object

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



9817
9818
9819
# File 'lib/stripe/resources/payment_intent.rb', line 9817

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



9819
9820
9821
# File 'lib/stripe/resources/payment_intent.rb', line 9819

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



9821
9822
9823
# File 'lib/stripe/resources/payment_intent.rb', line 9821

def state
  @state
end