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.



7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
# File 'lib/stripe/services/payment_intent_service.rb', line 7657

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.



7645
7646
7647
# File 'lib/stripe/services/payment_intent_service.rb', line 7645

def city
  @city
end

#countryObject

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



7647
7648
7649
# File 'lib/stripe/services/payment_intent_service.rb', line 7647

def country
  @country
end

#line1Object

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



7649
7650
7651
# File 'lib/stripe/services/payment_intent_service.rb', line 7649

def line1
  @line1
end

#line2Object

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



7651
7652
7653
# File 'lib/stripe/services/payment_intent_service.rb', line 7651

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



7653
7654
7655
# File 'lib/stripe/services/payment_intent_service.rb', line 7653

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



7655
7656
7657
# File 'lib/stripe/services/payment_intent_service.rb', line 7655

def state
  @state
end