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.
7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7127 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.
7115 7116 7117 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7115 def city @city end |
#country ⇒ Object
Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
7117 7118 7119 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7117 def country @country end |
#line1 ⇒ Object
Address line 1 (e.g., street, PO Box, or company name).
7119 7120 7121 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7119 def line1 @line1 end |
#line2 ⇒ Object
Address line 2 (e.g., apartment, suite, unit, or building).
7121 7122 7123 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7121 def line2 @line2 end |
#postal_code ⇒ Object
ZIP or postal code.
7123 7124 7125 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7123 def postal_code @postal_code end |
#state ⇒ Object
State, county, province, or region.
7125 7126 7127 |
# File 'lib/stripe/services/payment_intent_service.rb', line 7125 def state @state end |