Class: Stripe::PaymentIntentService::ConfirmParams::PaymentDetails::CarRental::PickupAddress
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentService::ConfirmParams::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.
8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8923 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.
8911 8912 8913 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8911 def city @city end |
#country ⇒ Object
Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
8913 8914 8915 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8913 def country @country end |
#line1 ⇒ Object
Address line 1 (e.g., street, PO Box, or company name).
8915 8916 8917 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8915 def line1 @line1 end |
#line2 ⇒ Object
Address line 2 (e.g., apartment, suite, unit, or building).
8917 8918 8919 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8917 def line2 @line2 end |
#postal_code ⇒ Object
ZIP or postal code.
8919 8920 8921 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8919 def postal_code @postal_code end |
#state ⇒ Object
State, county, province, or region.
8921 8922 8923 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8921 def state @state end |