Class: Stripe::ConfirmationToken::CreateParams::Shipping::Address
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ConfirmationToken::CreateParams::Shipping::Address
- Defined in:
- lib/stripe/resources/confirmation_token.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.
1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 |
# File 'lib/stripe/resources/confirmation_token.rb', line 1390 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.
1378 1379 1380 |
# File 'lib/stripe/resources/confirmation_token.rb', line 1378 def city @city end |
#country ⇒ Object
Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1380 1381 1382 |
# File 'lib/stripe/resources/confirmation_token.rb', line 1380 def country @country end |
#line1 ⇒ Object
Address line 1 (e.g., street, PO Box, or company name).
1382 1383 1384 |
# File 'lib/stripe/resources/confirmation_token.rb', line 1382 def line1 @line1 end |
#line2 ⇒ Object
Address line 2 (e.g., apartment, suite, unit, or building).
1384 1385 1386 |
# File 'lib/stripe/resources/confirmation_token.rb', line 1384 def line2 @line2 end |
#postal_code ⇒ Object
ZIP or postal code.
1386 1387 1388 |
# File 'lib/stripe/resources/confirmation_token.rb', line 1386 def postal_code @postal_code end |
#state ⇒ Object
State, county, province, or region.
1388 1389 1390 |
# File 'lib/stripe/resources/confirmation_token.rb', line 1388 def state @state end |