Class: ChannelAdvisor::OrderServiceSOAP::OrderLineItemItemPromo

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

Overview

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lineItemType = nil, unitPrice = nil, promoCode = nil, shippingPrice = nil) ⇒ OrderLineItemItemPromo

Returns a new instance of OrderLineItemItemPromo.



1366
1367
1368
1369
1370
1371
# File 'lib/channel_advisor/order_service/types.rb', line 1366

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

Instance Attribute Details

#lineItemTypeObject

Returns the value of attribute lineItemType.



1361
1362
1363
# File 'lib/channel_advisor/order_service/types.rb', line 1361

def lineItemType
  @lineItemType
end

#promoCodeObject

Returns the value of attribute promoCode.



1363
1364
1365
# File 'lib/channel_advisor/order_service/types.rb', line 1363

def promoCode
  @promoCode
end

#shippingPriceObject

Returns the value of attribute shippingPrice.



1364
1365
1366
# File 'lib/channel_advisor/order_service/types.rb', line 1364

def shippingPrice
  @shippingPrice
end

#unitPriceObject

Returns the value of attribute unitPrice.



1362
1363
1364
# File 'lib/channel_advisor/order_service/types.rb', line 1362

def unitPrice
  @unitPrice
end