Class: Stripe::OrderService::CreateParams::ShippingDetails
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::OrderService::CreateParams::ShippingDetails
- Defined in:
- lib/stripe/services/order_service.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
Constructor Details
#initialize(address: nil, name: nil, phone: nil) ⇒ ShippingDetails
Returns a new instance of ShippingDetails.
1115 1116 1117 1118 1119 |
# File 'lib/stripe/services/order_service.rb', line 1115 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.
1107 1108 1109 |
# File 'lib/stripe/services/order_service.rb', line 1107 def address @address end |
#name ⇒ Object
The name of the recipient of the order.
1110 1111 1112 |
# File 'lib/stripe/services/order_service.rb', line 1110 def name @name end |
#phone ⇒ Object
The phone number (including extension) for the recipient of the order.
1113 1114 1115 |
# File 'lib/stripe/services/order_service.rb', line 1113 def phone @phone end |