Class: Stripe::PaymentIntentService::ConfirmParams::PaymentDetails::CarRental::ReturnAddress
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentService::ConfirmParams::PaymentDetails::CarRental::ReturnAddress
- 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) ⇒ ReturnAddress
constructor
A new instance of ReturnAddress.
Methods inherited from RequestParams
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
#city ⇒ Object
City, district, suburb, town, or village.
7645 7646 7647 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7645 def city @city end |
#country ⇒ Object
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 |
#line1 ⇒ Object
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 |
#line2 ⇒ Object
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_code ⇒ Object
ZIP or postal code.
7653 7654 7655 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7653 def postal_code @postal_code end |
#state ⇒ Object
State, county, province, or region.
7655 7656 7657 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7655 def state @state end |