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



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

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



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

def itemSaleSource
  @itemSaleSource
end

#lineItemIDObject

Returns the value of attribute lineItemID



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

def lineItemID
  @lineItemID
end

#quantityObject

Returns the value of attribute quantity



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

def quantity
  @quantity
end

#sKUObject

Returns the value of attribute sKU



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

def sKU
  @sKU
end

#titleObject

Returns the value of attribute title



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

def title
  @title
end

#unitPriceObject

Returns the value of attribute unitPrice



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

def unitPrice
  @unitPrice
end