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.



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

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.



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

def allowNegativeQuantity
  @allowNegativeQuantity
end

#itemSaleSourceObject

Returns the value of attribute itemSaleSource.



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

def itemSaleSource
  @itemSaleSource
end

#lineItemIDObject

Returns the value of attribute lineItemID.



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

def lineItemID
  @lineItemID
end

#quantityObject

Returns the value of attribute quantity.



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

def quantity
  @quantity
end

#sKUObject

Returns the value of attribute sKU.



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

def sKU
  @sKU
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

#unitPriceObject

Returns the value of attribute unitPrice.



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

def unitPrice
  @unitPrice
end