Class: Stripe::PaymentIntent::UpdateParams::PaymentDetails::Lodging::Address
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntent::UpdateParams::PaymentDetails::Lodging::Address
- Defined in:
- lib/stripe/resources/payment_intent.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.
5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 |
# File 'lib/stripe/resources/payment_intent.rb', line 5766 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.
5754 5755 5756 |
# File 'lib/stripe/resources/payment_intent.rb', line 5754 def city @city end |
#country ⇒ Object
Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
5756 5757 5758 |
# File 'lib/stripe/resources/payment_intent.rb', line 5756 def country @country end |
#line1 ⇒ Object
Address line 1 (e.g., street, PO Box, or company name).
5758 5759 5760 |
# File 'lib/stripe/resources/payment_intent.rb', line 5758 def line1 @line1 end |
#line2 ⇒ Object
Address line 2 (e.g., apartment, suite, unit, or building).
5760 5761 5762 |
# File 'lib/stripe/resources/payment_intent.rb', line 5760 def line2 @line2 end |
#postal_code ⇒ Object
ZIP or postal code.
5762 5763 5764 |
# File 'lib/stripe/resources/payment_intent.rb', line 5762 def postal_code @postal_code end |
#state ⇒ Object
State, county, province, or region.
5764 5765 5766 |
# File 'lib/stripe/resources/payment_intent.rb', line 5764 def state @state end |