Class: Stripe::PaymentIntentService::UpdateParams::PaymentDetails::CarRental::PickupAddress
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentService::UpdateParams::PaymentDetails::CarRental::PickupAddress
- Defined in:
- lib/stripe/services/payment_intent_service.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
City, district, suburb, town, or village.
-
#country ⇒ Object
Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
-
#line1 ⇒ Object
Address line 1 (e.g., street, PO Box, or company name).
-
#line2 ⇒ Object
Address line 2 (e.g., apartment, suite, unit, or building).
-
#postal_code ⇒ Object
ZIP or postal code.
-
#state ⇒ Object
State, county, province, or region.
Instance Method Summary collapse
-
#initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) ⇒ PickupAddress
constructor
A new instance of PickupAddress.
Methods inherited from RequestParams
Constructor Details
#initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) ⇒ PickupAddress
Returns a new instance of PickupAddress.
3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 |
# File 'lib/stripe/services/payment_intent_service.rb', line 3529 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
#city ⇒ Object
City, district, suburb, town, or village.
3517 3518 3519 |
# File 'lib/stripe/services/payment_intent_service.rb', line 3517 def city @city end |
#country ⇒ Object
Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3519 3520 3521 |
# File 'lib/stripe/services/payment_intent_service.rb', line 3519 def country @country end |
#line1 ⇒ Object
Address line 1 (e.g., street, PO Box, or company name).
3521 3522 3523 |
# File 'lib/stripe/services/payment_intent_service.rb', line 3521 def line1 @line1 end |
#line2 ⇒ Object
Address line 2 (e.g., apartment, suite, unit, or building).
3523 3524 3525 |
# File 'lib/stripe/services/payment_intent_service.rb', line 3523 def line2 @line2 end |
#postal_code ⇒ Object
ZIP or postal code.
3525 3526 3527 |
# File 'lib/stripe/services/payment_intent_service.rb', line 3525 def postal_code @postal_code end |
#state ⇒ Object
State, county, province, or region.
3527 3528 3529 |
# File 'lib/stripe/services/payment_intent_service.rb', line 3527 def state @state end |