Class: ChannelAdvisor::CartServiceSOAP::CartItem

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

Overview

http://api.channeladvisor.com/datacontracts/ordersCartItem abstract

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

Direct Known Subclasses

CartItemRequest, CartItemResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CartItem.



138
139
140
141
142
143
144
145
# File 'lib/channel_advisor/cart_service/types.rb', line 138

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

Instance Attribute Details

#itemSaleSourceObject

Returns the value of attribute itemSaleSource.



135
136
137
# File 'lib/channel_advisor/cart_service/types.rb', line 135

def itemSaleSource
  @itemSaleSource
end

#lineItemIDObject

Returns the value of attribute lineItemID.



133
134
135
# File 'lib/channel_advisor/cart_service/types.rb', line 133

def lineItemID
  @lineItemID
end

#quantityObject

Returns the value of attribute quantity.



134
135
136
# File 'lib/channel_advisor/cart_service/types.rb', line 134

def quantity
  @quantity
end

#sKUObject

Returns the value of attribute sKU.



131
132
133
# File 'lib/channel_advisor/cart_service/types.rb', line 131

def sKU
  @sKU
end

#titleObject

Returns the value of attribute title.



132
133
134
# File 'lib/channel_advisor/cart_service/types.rb', line 132

def title
  @title
end

#unitPriceObject

Returns the value of attribute unitPrice.



136
137
138
# File 'lib/channel_advisor/cart_service/types.rb', line 136

def unitPrice
  @unitPrice
end