Class: ChannelAdvisor::CartServiceSOAP::CartItemRequest

Inherits:
CartItem show all
Defined in:
lib/channel_advisor/cart_service/types.rb

Overview

http://api.channeladvisor.com/datacontracts/ordersCartItemRequest

sKU - SOAP::SOAPString
title - SOAP::SOAPString
lineItemID - SOAP::SOAPInt
quantity - SOAP::SOAPInt
itemSaleSource - ChannelAdvisor::CartServiceSOAP::SiteToken
unitPrice - SOAP::SOAPDecimal
allowNegativeQuantity - SOAP::SOAPBoolean

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sKU = nil, title = nil, lineItemID = nil, quantity = nil, itemSaleSource = nil, unitPrice = nil, allowNegativeQuantity = nil) ⇒ CartItemRequest

Returns a new instance of CartItemRequest



197
198
199
200
201
202
203
204
205
# File 'lib/channel_advisor/cart_service/types.rb', line 197

def initialize(sKU = nil, title = nil, lineItemID = nil, quantity = nil, itemSaleSource = nil, unitPrice = nil, allowNegativeQuantity = nil)
  @sKU = sKU
  @title = title
  @lineItemID = lineItemID
  @quantity = quantity
  @itemSaleSource = itemSaleSource
  @unitPrice = unitPrice
  @allowNegativeQuantity = allowNegativeQuantity
end

Instance Attribute Details

#allowNegativeQuantityObject

Returns the value of attribute allowNegativeQuantity



195
196
197
# File 'lib/channel_advisor/cart_service/types.rb', line 195

def allowNegativeQuantity
  @allowNegativeQuantity
end

#itemSaleSourceObject

Returns the value of attribute itemSaleSource



193
194
195
# File 'lib/channel_advisor/cart_service/types.rb', line 193

def itemSaleSource
  @itemSaleSource
end

#lineItemIDObject

Returns the value of attribute lineItemID



191
192
193
# File 'lib/channel_advisor/cart_service/types.rb', line 191

def lineItemID
  @lineItemID
end

#quantityObject

Returns the value of attribute quantity



192
193
194
# File 'lib/channel_advisor/cart_service/types.rb', line 192

def quantity
  @quantity
end

#sKUObject

Returns the value of attribute sKU



189
190
191
# File 'lib/channel_advisor/cart_service/types.rb', line 189

def sKU
  @sKU
end

#titleObject

Returns the value of attribute title



190
191
192
# File 'lib/channel_advisor/cart_service/types.rb', line 190

def title
  @title
end

#unitPriceObject

Returns the value of attribute unitPrice



194
195
196
# File 'lib/channel_advisor/cart_service/types.rb', line 194

def unitPrice
  @unitPrice
end