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.



2553
2554
2555
2556
2557
# File 'lib/stripe/resources/order.rb', line 2553

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.



2547
2548
2549
# File 'lib/stripe/resources/order.rb', line 2547

def address
  @address
end

#nameObject

The name of the recipient of the order.



2549
2550
2551
# File 'lib/stripe/resources/order.rb', line 2549

def name
  @name
end

#phoneObject

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



2551
2552
2553
# File 'lib/stripe/resources/order.rb', line 2551

def phone
  @phone
end