Class: InvoiceRequest::LineItem

Inherits:
ComplexExactorObject show all
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

Instance Method Summary collapse

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

#BillToObject

Returns the value of attribute BillTo.



37
38
39
# File 'app/helpers/exactor_api_objects.rb', line 37

def BillTo
  @BillTo
end

#DescriptionObject

Returns the value of attribute Description.



33
34
35
# File 'app/helpers/exactor_api_objects.rb', line 33

def Description
  @Description
end

#GrossAmountObject

Returns the value of attribute GrossAmount.



35
36
37
# File 'app/helpers/exactor_api_objects.rb', line 35

def GrossAmount
  @GrossAmount
end

#QuantityObject

Returns the value of attribute Quantity.



34
35
36
# File 'app/helpers/exactor_api_objects.rb', line 34

def Quantity
  @Quantity
end

#ShipFromObject

Returns the value of attribute ShipFrom.



39
40
41
# File 'app/helpers/exactor_api_objects.rb', line 39

def ShipFrom
  @ShipFrom
end

#ShipToObject

Returns the value of attribute ShipTo.



38
39
40
# File 'app/helpers/exactor_api_objects.rb', line 38

def ShipTo
  @ShipTo
end

#SKUObject

Returns the value of attribute SKU.



32
33
34
# File 'app/helpers/exactor_api_objects.rb', line 32

def SKU
  @SKU
end

#TaxDirectionObject

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

#__xmlattrObject



41
42
43
# File 'app/helpers/exactor_api_objects.rb', line 41

def __xmlattr
  @__xmlattr ||= {}
end

#xmlattr_idObject



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