Class: Stripe::PaymentIntentService::CreateParams::Shipping::Address
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentService::CreateParams::Shipping::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.
2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 |
# File 'lib/stripe/services/payment_intent_service.rb', line 2199 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.
2187 2188 2189 |
# File 'lib/stripe/services/payment_intent_service.rb', line 2187 def city @city end |
#country ⇒ Object
Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2189 2190 2191 |
# File 'lib/stripe/services/payment_intent_service.rb', line 2189 def country @country end |
#line1 ⇒ Object
Address line 1 (e.g., street, PO Box, or company name).
2191 2192 2193 |
# File 'lib/stripe/services/payment_intent_service.rb', line 2191 def line1 @line1 end |
#line2 ⇒ Object
Address line 2 (e.g., apartment, suite, unit, or building).
2193 2194 2195 |
# File 'lib/stripe/services/payment_intent_service.rb', line 2193 def line2 @line2 end |
#postal_code ⇒ Object
ZIP or postal code.
2195 2196 2197 |
# File 'lib/stripe/services/payment_intent_service.rb', line 2195 def postal_code @postal_code end |
#state ⇒ Object
State, county, province, or region.
2197 2198 2199 |
# File 'lib/stripe/services/payment_intent_service.rb', line 2197 def state @state end |