Class Level3LineItem

    • Constructor Detail

      • Level3LineItem

        public Level3LineItem()
        Constructs a new empty instance.
      • Level3LineItem

        protected Level3LineItem​(boolean noInit)
        Constructs a new empty instance.
      • Level3LineItem

        public Level3LineItem​(JSONObject jsonObject)
        Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • Level3LineItem

        public Level3LineItem​(Level3LineItem src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getItemDescription

        public String getItemDescription()
        Level3 - Line Item Merchandise Description, upto 26 characters
      • getProductCode

        public String getProductCode()
        Item product code
      • getUnitCost

        public Long getUnitCost()
        Line item price
      • getQuantity

        public Long getQuantity()
        Line item quantity
      • getDiscountAmount

        public Long getDiscountAmount()
        Item discount
      • getTaxAmount

        public Long getTaxAmount()
        Item Local Tax Amount
      • getUnitOfMeasure

        public String getUnitOfMeasure()
        Line item unit of measure
      • getCommodityCode

        public String getCommodityCode()
        Line item commodity code
      • getDiscountRate

        public Long getDiscountRate()
        Line item discount rate
      • getTaxAmount1

        public Long getTaxAmount1()
        Specific tax amount collected in relationship to a type of tax (MasterCard) OR VAT or other tax amount.(Visa)
      • getTaxType1

        public String getTaxType1()
        Indicator used to further define tax categories of other tax amount
      • getItemTaxRate1

        public Long getItemTaxRate1()
        Specific tax rate in relationship to a type of tax collected
      • getTaxAmount1TaxId

        public String getTaxAmount1TaxId()
        Identification number used by the card acceptor with the tax authority in relationship to a specific tax amount (MasterCard)
      • getTaxAmountIndicator

        public Boolean getTaxAmountIndicator()
        Tax Included in total purchase amount (Y/N)
      • getTaxTypeIdentifier

        public TaxTypeIdentifier getTaxTypeIdentifier()
        Other Tax Type Identifier
      • getJSONObject

        public JSONObject getJSONObject()
        Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.
        Specified by:
        getJSONObject in interface JSONifiable
      • isNotNullItemDescription

        public boolean isNotNullItemDescription()
        Checks whether the 'itemDescription' field is set and is not null
      • isNotNullProductCode

        public boolean isNotNullProductCode()
        Checks whether the 'productCode' field is set and is not null
      • isNotNullUnitCost

        public boolean isNotNullUnitCost()
        Checks whether the 'unitCost' field is set and is not null
      • isNotNullQuantity

        public boolean isNotNullQuantity()
        Checks whether the 'quantity' field is set and is not null
      • isNotNullDiscountAmount

        public boolean isNotNullDiscountAmount()
        Checks whether the 'discountAmount' field is set and is not null
      • isNotNullTaxAmount

        public boolean isNotNullTaxAmount()
        Checks whether the 'taxAmount' field is set and is not null
      • isNotNullUnitOfMeasure

        public boolean isNotNullUnitOfMeasure()
        Checks whether the 'unitOfMeasure' field is set and is not null
      • isNotNullCommodityCode

        public boolean isNotNullCommodityCode()
        Checks whether the 'commodityCode' field is set and is not null
      • isNotNullDiscountRate

        public boolean isNotNullDiscountRate()
        Checks whether the 'discountRate' field is set and is not null
      • isNotNullTaxAmount1

        public boolean isNotNullTaxAmount1()
        Checks whether the 'taxAmount1' field is set and is not null
      • isNotNullTaxType1

        public boolean isNotNullTaxType1()
        Checks whether the 'taxType1' field is set and is not null
      • isNotNullItemTaxRate1

        public boolean isNotNullItemTaxRate1()
        Checks whether the 'itemTaxRate1' field is set and is not null
      • isNotNullTaxAmount1TaxId

        public boolean isNotNullTaxAmount1TaxId()
        Checks whether the 'taxAmount1TaxId' field is set and is not null
      • isNotNullTaxAmountIndicator

        public boolean isNotNullTaxAmountIndicator()
        Checks whether the 'taxAmountIndicator' field is set and is not null
      • isNotNullTaxTypeIdentifier

        public boolean isNotNullTaxTypeIdentifier()
        Checks whether the 'taxTypeIdentifier' field is set and is not null
      • hasItemDescription

        public boolean hasItemDescription()
        Checks whether the 'itemDescription' field has been set, however the value could be null
      • hasProductCode

        public boolean hasProductCode()
        Checks whether the 'productCode' field has been set, however the value could be null
      • hasUnitCost

        public boolean hasUnitCost()
        Checks whether the 'unitCost' field has been set, however the value could be null
      • hasQuantity

        public boolean hasQuantity()
        Checks whether the 'quantity' field has been set, however the value could be null
      • hasDiscountAmount

        public boolean hasDiscountAmount()
        Checks whether the 'discountAmount' field has been set, however the value could be null
      • hasTaxAmount

        public boolean hasTaxAmount()
        Checks whether the 'taxAmount' field has been set, however the value could be null
      • hasUnitOfMeasure

        public boolean hasUnitOfMeasure()
        Checks whether the 'unitOfMeasure' field has been set, however the value could be null
      • hasCommodityCode

        public boolean hasCommodityCode()
        Checks whether the 'commodityCode' field has been set, however the value could be null
      • hasDiscountRate

        public boolean hasDiscountRate()
        Checks whether the 'discountRate' field has been set, however the value could be null
      • hasTaxAmount1

        public boolean hasTaxAmount1()
        Checks whether the 'taxAmount1' field has been set, however the value could be null
      • hasTaxType1

        public boolean hasTaxType1()
        Checks whether the 'taxType1' field has been set, however the value could be null
      • hasItemTaxRate1

        public boolean hasItemTaxRate1()
        Checks whether the 'itemTaxRate1' field has been set, however the value could be null
      • hasTaxAmount1TaxId

        public boolean hasTaxAmount1TaxId()
        Checks whether the 'taxAmount1TaxId' field has been set, however the value could be null
      • hasTaxAmountIndicator

        public boolean hasTaxAmountIndicator()
        Checks whether the 'taxAmountIndicator' field has been set, however the value could be null
      • hasTaxTypeIdentifier

        public boolean hasTaxTypeIdentifier()
        Checks whether the 'taxTypeIdentifier' field has been set, however the value could be null
      • setItemDescription

        public Level3LineItem setItemDescription​(String itemDescription)
        Sets the field 'itemDescription'.
      • setProductCode

        public Level3LineItem setProductCode​(String productCode)
        Sets the field 'productCode'.
      • setUnitCost

        public Level3LineItem setUnitCost​(Long unitCost)
        Sets the field 'unitCost'.
      • setQuantity

        public Level3LineItem setQuantity​(Long quantity)
        Sets the field 'quantity'.
      • setDiscountAmount

        public Level3LineItem setDiscountAmount​(Long discountAmount)
        Sets the field 'discountAmount'.
      • setTaxAmount

        public Level3LineItem setTaxAmount​(Long taxAmount)
        Sets the field 'taxAmount'.
      • setUnitOfMeasure

        public Level3LineItem setUnitOfMeasure​(String unitOfMeasure)
        Sets the field 'unitOfMeasure'.
      • setCommodityCode

        public Level3LineItem setCommodityCode​(String commodityCode)
        Sets the field 'commodityCode'.
      • setDiscountRate

        public Level3LineItem setDiscountRate​(Long discountRate)
        Sets the field 'discountRate'.
      • setTaxAmount1

        public Level3LineItem setTaxAmount1​(Long taxAmount1)
        Sets the field 'taxAmount1'.
      • setItemTaxRate1

        public Level3LineItem setItemTaxRate1​(Long itemTaxRate1)
        Sets the field 'itemTaxRate1'.
      • setTaxAmount1TaxId

        public Level3LineItem setTaxAmount1TaxId​(String taxAmount1TaxId)
        Sets the field 'taxAmount1TaxId'.
      • setTaxAmountIndicator

        public Level3LineItem setTaxAmountIndicator​(Boolean taxAmountIndicator)
        Sets the field 'taxAmountIndicator'.
      • clearItemDescription

        public void clearItemDescription()
        Clears the 'itemDescription' field, the 'has' method for this field will now return false
      • clearProductCode

        public void clearProductCode()
        Clears the 'productCode' field, the 'has' method for this field will now return false
      • clearUnitCost

        public void clearUnitCost()
        Clears the 'unitCost' field, the 'has' method for this field will now return false
      • clearQuantity

        public void clearQuantity()
        Clears the 'quantity' field, the 'has' method for this field will now return false
      • clearDiscountAmount

        public void clearDiscountAmount()
        Clears the 'discountAmount' field, the 'has' method for this field will now return false
      • clearTaxAmount

        public void clearTaxAmount()
        Clears the 'taxAmount' field, the 'has' method for this field will now return false
      • clearUnitOfMeasure

        public void clearUnitOfMeasure()
        Clears the 'unitOfMeasure' field, the 'has' method for this field will now return false
      • clearCommodityCode

        public void clearCommodityCode()
        Clears the 'commodityCode' field, the 'has' method for this field will now return false
      • clearDiscountRate

        public void clearDiscountRate()
        Clears the 'discountRate' field, the 'has' method for this field will now return false
      • clearTaxAmount1

        public void clearTaxAmount1()
        Clears the 'taxAmount1' field, the 'has' method for this field will now return false
      • clearTaxType1

        public void clearTaxType1()
        Clears the 'taxType1' field, the 'has' method for this field will now return false
      • clearItemTaxRate1

        public void clearItemTaxRate1()
        Clears the 'itemTaxRate1' field, the 'has' method for this field will now return false
      • clearTaxAmount1TaxId

        public void clearTaxAmount1TaxId()
        Clears the 'taxAmount1TaxId' field, the 'has' method for this field will now return false
      • clearTaxAmountIndicator

        public void clearTaxAmountIndicator()
        Clears the 'taxAmountIndicator' field, the 'has' method for this field will now return false
      • clearTaxTypeIdentifier

        public void clearTaxTypeIdentifier()
        Clears the 'taxTypeIdentifier' field, the 'has' method for this field will now return false
      • containsChanges

        public boolean containsChanges()
        Returns true if this instance has any changes.
      • resetChangeLog

        public void resetChangeLog()
        Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
      • copyChanges

        public Level3LineItem copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(Level3LineItem src)
        Copy all the changed fields from the given source to this instance.