Class: Stripe::PaymentIntentService::ConfirmParams::PaymentDetails::EventDetails::Address
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentService::ConfirmParams::PaymentDetails::EventDetails::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.
8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8066 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.
8054 8055 8056 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8054 def city @city end |
#country ⇒ Object
Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
8056 8057 8058 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8056 def country @country end |
#line1 ⇒ Object
Address line 1 (e.g., street, PO Box, or company name).
8058 8059 8060 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8058 def line1 @line1 end |
#line2 ⇒ Object
Address line 2 (e.g., apartment, suite, unit, or building).
8060 8061 8062 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8060 def line2 @line2 end |
#postal_code ⇒ Object
ZIP or postal code.
8062 8063 8064 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8062 def postal_code @postal_code end |
#state ⇒ Object
State, county, province, or region.
8064 8065 8066 |
# File 'lib/stripe/services/payment_intent_service.rb', line 8064 def state @state end |