Class: Stripe::OrderCreateParams::ShippingDetails
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::OrderCreateParams::ShippingDetails
- Defined in:
- lib/stripe/params/order_create_params.rb
Defined Under Namespace
Classes: Address
Instance Attribute Summary collapse
-
#address ⇒ Object
The shipping address for the order.
-
#name ⇒ Object
The name of the recipient of the order.
-
#phone ⇒ Object
The phone number (including extension) for the recipient of the order.
Instance Method Summary collapse
-
#initialize(address: nil, name: nil, phone: nil) ⇒ ShippingDetails
constructor
A new instance of ShippingDetails.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(address: nil, name: nil, phone: nil) ⇒ ShippingDetails
Returns a new instance of ShippingDetails.
2012 2013 2014 2015 2016 |
# File 'lib/stripe/params/order_create_params.rb', line 2012 def initialize(address: nil, name: nil, phone: nil) @address = address @name = name @phone = phone end |
Instance Attribute Details
#address ⇒ Object
The shipping address for the order.
2006 2007 2008 |
# File 'lib/stripe/params/order_create_params.rb', line 2006 def address @address end |
#name ⇒ Object
The name of the recipient of the order.
2008 2009 2010 |
# File 'lib/stripe/params/order_create_params.rb', line 2008 def name @name end |
#phone ⇒ Object
The phone number (including extension) for the recipient of the order.
2010 2011 2012 |
# File 'lib/stripe/params/order_create_params.rb', line 2010 def phone @phone end |