Class: Stripe::PaymentIntentService::CaptureParams::PaymentDetails::Lodging::Address
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentService::CaptureParams::PaymentDetails::Lodging::Address
- 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) ⇒ Address
constructor
A new instance of Address.
Methods inherited from RequestParams
Constructor Details
#initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) ⇒ Address
Returns a new instance of Address.
7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7147 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.
7135 7136 7137 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7135 def city @city end |
#country ⇒ Object
Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
7137 7138 7139 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7137 def country @country end |
#line1 ⇒ Object
Address line 1 (e.g., street, PO Box, or company name).
7139 7140 7141 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7139 def line1 @line1 end |
#line2 ⇒ Object
Address line 2 (e.g., apartment, suite, unit, or building).
7141 7142 7143 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7141 def line2 @line2 end |
#postal_code ⇒ Object
ZIP or postal code.
7143 7144 7145 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7143 def postal_code @postal_code end |
#state ⇒ Object
State, county, province, or region.
7145 7146 7147 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7145 def state @state end |