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.



1327
1328
1329
1330
# File 'lib/stripe/resources/source.rb', line 1327

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

Instance Attribute Details

#itemsObject

List of items constituting the order.



1323
1324
1325
# File 'lib/stripe/resources/source.rb', line 1323

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.



1325
1326
1327
# File 'lib/stripe/resources/source.rb', line 1325

def shipping
  @shipping
end