Class: Stripe::Charge::CaptureParams::PaymentDetails::CarRental::PickupAddress
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Charge::CaptureParams::PaymentDetails::CarRental::PickupAddress
- Defined in:
- lib/stripe/resources/charge.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.
3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 |
# File 'lib/stripe/resources/charge.rb', line 3466 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.
3454 3455 3456 |
# File 'lib/stripe/resources/charge.rb', line 3454 def city @city end |
#country ⇒ Object
Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3456 3457 3458 |
# File 'lib/stripe/resources/charge.rb', line 3456 def country @country end |
#line1 ⇒ Object
Address line 1 (e.g., street, PO Box, or company name).
3458 3459 3460 |
# File 'lib/stripe/resources/charge.rb', line 3458 def line1 @line1 end |
#line2 ⇒ Object
Address line 2 (e.g., apartment, suite, unit, or building).
3460 3461 3462 |
# File 'lib/stripe/resources/charge.rb', line 3460 def line2 @line2 end |
#postal_code ⇒ Object
ZIP or postal code.
3462 3463 3464 |
# File 'lib/stripe/resources/charge.rb', line 3462 def postal_code @postal_code end |
#state ⇒ Object
State, county, province, or region.
3464 3465 3466 |
# File 'lib/stripe/resources/charge.rb', line 3464 def state @state end |