Class: Stripe::PaymentIntentService::ConfirmParams::Shipping::Address
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentService::ConfirmParams::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.
12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 |
# File 'lib/stripe/services/payment_intent_service.rb', line 12198 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.
12186 12187 12188 |
# File 'lib/stripe/services/payment_intent_service.rb', line 12186 def city @city end |
#country ⇒ Object
Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
12188 12189 12190 |
# File 'lib/stripe/services/payment_intent_service.rb', line 12188 def country @country end |
#line1 ⇒ Object
Address line 1 (e.g., street, PO Box, or company name).
12190 12191 12192 |
# File 'lib/stripe/services/payment_intent_service.rb', line 12190 def line1 @line1 end |
#line2 ⇒ Object
Address line 2 (e.g., apartment, suite, unit, or building).
12192 12193 12194 |
# File 'lib/stripe/services/payment_intent_service.rb', line 12192 def line2 @line2 end |
#postal_code ⇒ Object
ZIP or postal code.
12194 12195 12196 |
# File 'lib/stripe/services/payment_intent_service.rb', line 12194 def postal_code @postal_code end |
#state ⇒ Object
State, county, province, or region.
12196 12197 12198 |
# File 'lib/stripe/services/payment_intent_service.rb', line 12196 def state @state end |