Class: Stripe::PaymentIntent::UpdateParams::Shipping::Address
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntent::UpdateParams::Shipping::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.
6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 |
# File 'lib/stripe/resources/payment_intent.rb', line 6000 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.
5988 5989 5990 |
# File 'lib/stripe/resources/payment_intent.rb', line 5988 def city @city end |
#country ⇒ Object
Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
5990 5991 5992 |
# File 'lib/stripe/resources/payment_intent.rb', line 5990 def country @country end |
#line1 ⇒ Object
Address line 1 (e.g., street, PO Box, or company name).
5992 5993 5994 |
# File 'lib/stripe/resources/payment_intent.rb', line 5992 def line1 @line1 end |
#line2 ⇒ Object
Address line 2 (e.g., apartment, suite, unit, or building).
5994 5995 5996 |
# File 'lib/stripe/resources/payment_intent.rb', line 5994 def line2 @line2 end |
#postal_code ⇒ Object
ZIP or postal code.
5996 5997 5998 |
# File 'lib/stripe/resources/payment_intent.rb', line 5996 def postal_code @postal_code end |
#state ⇒ Object
State, county, province, or region.
5998 5999 6000 |
# File 'lib/stripe/resources/payment_intent.rb', line 5998 def state @state end |