Class: ChannelAdvisor::OrderServiceSOAP::OrderLineItemPromo

Inherits:
OrderLineItemBase show all
Defined in:
lib/channel_advisor/order_service/types.rb

Overview

http://api.channeladvisor.com/datacontracts/ordersOrderLineItemPromo

lineItemType - ChannelAdvisor::OrderServiceSOAP::LineItemTypeCode
unitPrice - SOAP::SOAPDecimal
promoCode - SOAP::SOAPString

Direct Known Subclasses

OrderLineItemItemPromo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lineItemType = nil, unitPrice = nil, promoCode = nil) ⇒ OrderLineItemPromo

Returns a new instance of OrderLineItemPromo.



1348
1349
1350
1351
1352
# File 'lib/channel_advisor/order_service/types.rb', line 1348

def initialize(lineItemType = nil, unitPrice = nil, promoCode = nil)
  @lineItemType = lineItemType
  @unitPrice = unitPrice
  @promoCode = promoCode
end

Instance Attribute Details

#lineItemTypeObject

Returns the value of attribute lineItemType.



1344
1345
1346
# File 'lib/channel_advisor/order_service/types.rb', line 1344

def lineItemType
  @lineItemType
end

#promoCodeObject

Returns the value of attribute promoCode.



1346
1347
1348
# File 'lib/channel_advisor/order_service/types.rb', line 1346

def promoCode
  @promoCode
end

#unitPriceObject

Returns the value of attribute unitPrice.



1345
1346
1347
# File 'lib/channel_advisor/order_service/types.rb', line 1345

def unitPrice
  @unitPrice
end