Class: InvoiceRequest::LineItem
- Inherits:
-
ComplexExactorObject
- Object
- ComplexExactorObject
- InvoiceRequest::LineItem
- Defined in:
- app/helpers/exactor_api_objects.rb
Overview
inner class for member: LineItem http://www.exactor.com/nsLineItem
sKU - SOAP::SOAPString
description - SOAP::SOAPString
quantity - SOAP::SOAPDecimal
grossAmount - SOAP::SOAPDecimal
taxDirection - TaxDirectionType
billTo - AddressType
shipTo - AddressType
shipFrom - AddressType
xmlattr_id - SOAP::SOAPID
Constant Summary collapse
- AttrId =
"id"
Instance Attribute Summary collapse
-
#BillTo ⇒ Object
Returns the value of attribute BillTo.
-
#Description ⇒ Object
Returns the value of attribute Description.
-
#GrossAmount ⇒ Object
Returns the value of attribute GrossAmount.
-
#Quantity ⇒ Object
Returns the value of attribute Quantity.
-
#ShipFrom ⇒ Object
Returns the value of attribute ShipFrom.
-
#ShipTo ⇒ Object
Returns the value of attribute ShipTo.
-
#SKU ⇒ Object
Returns the value of attribute SKU.
-
#TaxDirection ⇒ Object
Returns the value of attribute TaxDirection.
Instance Method Summary collapse
- #__xmlattr ⇒ Object
-
#initialize(sKU = nil, description = nil, quantity = nil, grossAmount = nil, taxDirection = nil, billTo = nil, shipTo = nil, shipFrom = nil) ⇒ LineItem
constructor
A new instance of LineItem.
- #xmlattr_id ⇒ Object
- #xmlattr_id=(value) ⇒ Object
Constructor Details
#initialize(sKU = nil, description = nil, quantity = nil, grossAmount = nil, taxDirection = nil, billTo = nil, shipTo = nil, shipFrom = nil) ⇒ LineItem
Returns a new instance of LineItem.
53 54 55 56 57 58 59 60 61 62 63 |
# File 'app/helpers/exactor_api_objects.rb', line 53 def initialize(sKU = nil, description = nil, quantity = nil, grossAmount = nil, taxDirection = nil, billTo = nil, shipTo = nil, shipFrom = nil) @SKU = sKU @Description = description @Quantity = quantity @GrossAmount = grossAmount @TaxDirection = taxDirection @BillTo = billTo @ShipTo = shipTo @ShipFrom = shipFrom @__xmlattr = {} end |
Instance Attribute Details
#BillTo ⇒ Object
Returns the value of attribute BillTo.
37 38 39 |
# File 'app/helpers/exactor_api_objects.rb', line 37 def BillTo @BillTo end |
#Description ⇒ Object
Returns the value of attribute Description.
33 34 35 |
# File 'app/helpers/exactor_api_objects.rb', line 33 def Description @Description end |
#GrossAmount ⇒ Object
Returns the value of attribute GrossAmount.
35 36 37 |
# File 'app/helpers/exactor_api_objects.rb', line 35 def GrossAmount @GrossAmount end |
#Quantity ⇒ Object
Returns the value of attribute Quantity.
34 35 36 |
# File 'app/helpers/exactor_api_objects.rb', line 34 def Quantity @Quantity end |
#ShipFrom ⇒ Object
Returns the value of attribute ShipFrom.
39 40 41 |
# File 'app/helpers/exactor_api_objects.rb', line 39 def ShipFrom @ShipFrom end |
#ShipTo ⇒ Object
Returns the value of attribute ShipTo.
38 39 40 |
# File 'app/helpers/exactor_api_objects.rb', line 38 def ShipTo @ShipTo end |
#SKU ⇒ Object
Returns the value of attribute SKU.
32 33 34 |
# File 'app/helpers/exactor_api_objects.rb', line 32 def SKU @SKU end |
#TaxDirection ⇒ Object
Returns the value of attribute TaxDirection.
36 37 38 |
# File 'app/helpers/exactor_api_objects.rb', line 36 def TaxDirection @TaxDirection end |
Instance Method Details
#__xmlattr ⇒ Object
41 42 43 |
# File 'app/helpers/exactor_api_objects.rb', line 41 def __xmlattr @__xmlattr ||= {} end |
#xmlattr_id ⇒ Object
45 46 47 |
# File 'app/helpers/exactor_api_objects.rb', line 45 def xmlattr_id __xmlattr[AttrId] end |
#xmlattr_id=(value) ⇒ Object
49 50 51 |
# File 'app/helpers/exactor_api_objects.rb', line 49 def xmlattr_id=(value) __xmlattr[AttrId] = value end |