Class: Stripe::PaymentIntentService::ConfirmParams::PaymentDetails::CarRental::PickupAddress

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

Returns a new instance of PickupAddress.



8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
# File 'lib/stripe/services/payment_intent_service.rb', line 8477

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.



8460
8461
8462
# File 'lib/stripe/services/payment_intent_service.rb', line 8460

def city
  @city
end

#countryObject

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



8463
8464
8465
# File 'lib/stripe/services/payment_intent_service.rb', line 8463

def country
  @country
end

#line1Object

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



8466
8467
8468
# File 'lib/stripe/services/payment_intent_service.rb', line 8466

def line1
  @line1
end

#line2Object

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



8469
8470
8471
# File 'lib/stripe/services/payment_intent_service.rb', line 8469

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



8472
8473
8474
# File 'lib/stripe/services/payment_intent_service.rb', line 8472

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



8475
8476
8477
# File 'lib/stripe/services/payment_intent_service.rb', line 8475

def state
  @state
end