Class: Stripe::Source::UpdateParams::SourceOrder

Inherits:
RequestParams show all
Defined in:
lib/stripe/resources/source.rb

Defined Under Namespace

Classes: Item, Shipping

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(items: nil, shipping: nil) ⇒ SourceOrder

Returns a new instance of SourceOrder.

[View source]

787
788
789
790
# File 'lib/stripe/resources/source.rb', line 787

def initialize(items: nil, shipping: nil)
  @items = items
  @shipping = shipping
end

Instance Attribute Details

#itemsObject

List of items constituting the order.


783
784
785
# File 'lib/stripe/resources/source.rb', line 783

def items
  @items
end

#shippingObject

Shipping address for the order. Required if any of the SKUs are for products that have ‘shippable` set to true.


785
786
787
# File 'lib/stripe/resources/source.rb', line 785

def shipping
  @shipping
end