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 - SOAP::SOAPString
unitPrice - SOAP::SOAPDecimal

Direct Known Subclasses

CartItemRequest, CartItemResponse

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

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

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

- (Object) itemSaleSource

Returns the value of attribute itemSaleSource



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

def itemSaleSource
  @itemSaleSource
end

- (Object) lineItemID

Returns the value of attribute lineItemID



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

def lineItemID
  @lineItemID
end

- (Object) quantity

Returns the value of attribute quantity



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

def quantity
  @quantity
end

- (Object) sKU

Returns the value of attribute sKU



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

def sKU
  @sKU
end

- (Object) title

Returns the value of attribute title



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

def title
  @title
end

- (Object) unitPrice

Returns the value of attribute unitPrice



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

def unitPrice
  @unitPrice
end