Class: Stripe::OrderService::CreateParams::ShippingDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/order_service.rb

Defined Under Namespace

Classes: Address

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(address: nil, name: nil, phone: nil) ⇒ ShippingDetails

Returns a new instance of ShippingDetails.



998
999
1000
1001
1002
# File 'lib/stripe/services/order_service.rb', line 998

def initialize(address: nil, name: nil, phone: nil)
  @address = address
  @name = name
  @phone = phone
end

Instance Attribute Details

#addressObject

The shipping address for the order.



992
993
994
# File 'lib/stripe/services/order_service.rb', line 992

def address
  @address
end

#nameObject

The name of the recipient of the order.



994
995
996
# File 'lib/stripe/services/order_service.rb', line 994

def name
  @name
end

#phoneObject

The phone number (including extension) for the recipient of the order.



996
997
998
# File 'lib/stripe/services/order_service.rb', line 996

def phone
  @phone
end