Class: ChannelAdvisor::CartServiceSOAP::CartItemRequest
- Inherits:
-
CartItem
- Object
- InventoryItemBase
- CartItem
- ChannelAdvisor::CartServiceSOAP::CartItemRequest
- 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
-
#allowNegativeQuantity ⇒ Object
Returns the value of attribute allowNegativeQuantity.
-
#itemSaleSource ⇒ Object
Returns the value of attribute itemSaleSource.
-
#lineItemID ⇒ Object
Returns the value of attribute lineItemID.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#sKU ⇒ Object
Returns the value of attribute sKU.
-
#title ⇒ Object
Returns the value of attribute title.
-
#unitPrice ⇒ Object
Returns the value of attribute unitPrice.
Instance Method Summary collapse
-
#initialize(sKU = nil, title = nil, lineItemID = nil, quantity = nil, itemSaleSource = nil, unitPrice = nil, allowNegativeQuantity = nil) ⇒ CartItemRequest
constructor
A new instance of CartItemRequest.
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
#allowNegativeQuantity ⇒ Object
Returns the value of attribute allowNegativeQuantity.
194 195 196 |
# File 'lib/channel_advisor/cart_service/types.rb', line 194 def allowNegativeQuantity @allowNegativeQuantity end |
#itemSaleSource ⇒ Object
Returns the value of attribute itemSaleSource.
192 193 194 |
# File 'lib/channel_advisor/cart_service/types.rb', line 192 def itemSaleSource @itemSaleSource end |
#lineItemID ⇒ Object
Returns the value of attribute lineItemID.
190 191 192 |
# File 'lib/channel_advisor/cart_service/types.rb', line 190 def lineItemID @lineItemID end |
#quantity ⇒ Object
Returns the value of attribute quantity.
191 192 193 |
# File 'lib/channel_advisor/cart_service/types.rb', line 191 def quantity @quantity end |
#sKU ⇒ Object
Returns the value of attribute sKU.
188 189 190 |
# File 'lib/channel_advisor/cart_service/types.rb', line 188 def sKU @sKU end |
#title ⇒ Object
Returns the value of attribute title.
189 190 191 |
# File 'lib/channel_advisor/cart_service/types.rb', line 189 def title @title end |
#unitPrice ⇒ Object
Returns the value of attribute unitPrice.
193 194 195 |
# File 'lib/channel_advisor/cart_service/types.rb', line 193 def unitPrice @unitPrice end |