Class EDI824ErrorDef

java.lang.Object
com.onenetwork.platform.common.ErrorDef
com.onenetwork.platform.integ.edi.EDI824ErrorDef
All Implemented Interfaces:
StatusMessage

public class EDI824ErrorDef
extends ErrorDef
A type of ErrorDef which is exclusively used to capture the error details for EDI 824. The EDI824ErrorDef object is used to build the 824 transaction set containing the details of the business error and the parent transaction for which the business error occured.
  • Constructor Details

  • Method Details

    • getParentEdiEnvelopeInfo

      public EDIEnvelopeInfo getParentEdiEnvelopeInfo()
      Returns:
      the parentEdiEnvelopeInfo - the parent EDIEnvelope object consisting of delimiters , control numbers information for the parent envelope for which 824 is generated.
    • getParentTransactionSetCtrlNo

      public java.lang.String getParentTransactionSetCtrlNo()
      Returns:
      the parentTransactionSetCtrlNo - the transactionSet control number for the parent transaction for which the 824 is generated.
    • getParentTransactionSetId

      public java.lang.String getParentTransactionSetId()
      Returns:
      the parentTransactionSetId - the transactionSet id for the parent transaction set for which 824 is generated. For example: 855, 856, 810, etc
    • getParentfunctionalGroupId

      public java.lang.String getParentfunctionalGroupId()
      Returns:
      the parentfunctionalGroupId - the functional group id for the parent transaction set for which 824 is generated. Ex. IN, PO, SH, etc
    • setParentTransactionSetId

      public void setParentTransactionSetId​(java.lang.String parentTransactionSetId)
      Parameters:
      parentTransactionSetId - the parentTransactionSetId to set
    • getTransactionErrors

      public <T extends TransactionErrorDef> java.util.List<T> getTransactionErrors()
      Returns:
      the transactionErrors - Each TransactionErrorDef object which consists of the transaction errors which are of 2 types 1. Field errors - Field data is incorrect or not present Ex. Mandatory element is blank 2. Segment errors - If a particular segment is missing or has some missing field or other such segment error
    • setParentfunctionalGroupId

      public void setParentfunctionalGroupId​(java.lang.String parentfunctionalGroupId)
      Parameters:
      parentfunctionalGroupId - the parentfunctionalGroupId to set
    • addTransactionError

      public <T extends TransactionErrorDef> void addTransactionError​(T transactionError)
      Parameters:
      transactionError - - Adds a TransactionError to a list of transactionErrors
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • setParentEdiEnvelopeInfo

      public void setParentEdiEnvelopeInfo​(EDIEnvelopeInfo parentEdiEnvelopeInfo)
      Parameters:
      parentEdiEnvelopeInfo - the parentEdiEnvelopeInfo to set