Class: Stripe::SourceCreateParams::SourceOrder

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/source_create_params.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.



243
244
245
246
# File 'lib/stripe/params/source_create_params.rb', line 243

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

Instance Attribute Details

#itemsObject

List of items constituting the order.



239
240
241
# File 'lib/stripe/params/source_create_params.rb', line 239

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.



241
242
243
# File 'lib/stripe/params/source_create_params.rb', line 241

def shipping
  @shipping
end