Class: Stripe::Source::CreateParams::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.



1099
1100
1101
1102
# File 'lib/stripe/resources/source.rb', line 1099

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

Instance Attribute Details

#itemsObject

List of items constituting the order.



1095
1096
1097
# File 'lib/stripe/resources/source.rb', line 1095

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.



1097
1098
1099
# File 'lib/stripe/resources/source.rb', line 1097

def shipping
  @shipping
end