Class: Stripe::Order::UpdateParams::ShippingDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/order.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.



2897
2898
2899
2900
2901
# File 'lib/stripe/resources/order.rb', line 2897

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.



2889
2890
2891
# File 'lib/stripe/resources/order.rb', line 2889

def address
  @address
end

#nameObject

The name of the recipient of the order.



2892
2893
2894
# File 'lib/stripe/resources/order.rb', line 2892

def name
  @name
end

#phoneObject

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



2895
2896
2897
# File 'lib/stripe/resources/order.rb', line 2895

def phone
  @phone
end