Class: Stripe::PaymentIntentService::ConfirmParams::PaymentDetails::CarRental::ReturnAddress

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_intent_service.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) ⇒ ReturnAddress

Returns a new instance of ReturnAddress.



8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
# File 'lib/stripe/services/payment_intent_service.rb', line 8850

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.



8838
8839
8840
# File 'lib/stripe/services/payment_intent_service.rb', line 8838

def city
  @city
end

#countryObject

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



8840
8841
8842
# File 'lib/stripe/services/payment_intent_service.rb', line 8840

def country
  @country
end

#line1Object

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



8842
8843
8844
# File 'lib/stripe/services/payment_intent_service.rb', line 8842

def line1
  @line1
end

#line2Object

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



8844
8845
8846
# File 'lib/stripe/services/payment_intent_service.rb', line 8844

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



8846
8847
8848
# File 'lib/stripe/services/payment_intent_service.rb', line 8846

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



8848
8849
8850
# File 'lib/stripe/services/payment_intent_service.rb', line 8848

def state
  @state
end