Class LifeCycleId.Builder

java.lang.Object
org.jpos.iso.LifeCycleId.Builder
Enclosing class:
LifeCycleId

public static final class LifeCycleId.Builder extends Object
Builder for LifeCycleId.
  • Method Details

    • supportIndicator

      public LifeCycleId.Builder supportIndicator(char indicator)
      Sets the support indicator from a literal character.
      Parameters:
      indicator - support indicator character
      Returns:
      this builder
    • supportIndicator

      Derives the support indicator from an ISO 8583 MTI string.
      Parameters:
      mti - ISO 8583 MTI (3 or 4 characters)
      Returns:
      this builder
    • traceId

      Sets the trace identifier from a jPOS TxnId. Uses TxnId.toRrn(), right-padded with spaces to 15 characters.
      Parameters:
      txnId - jPOS transaction identifier
      Returns:
      this builder
    • traceId

      Sets the trace identifier from a raw string. MUST be at most 15 characters; shorter values are right-padded with spaces.
      Parameters:
      trace - trace identifier string
      Returns:
      this builder
      Throws:
      IllegalArgumentException - when the string exceeds 15 characters
    • sequenceNumber

      Sets the life cycle transaction sequence number.
      Parameters:
      seq - sequence number (0–9999)
      Returns:
      this builder
    • authToken

      public LifeCycleId.Builder authToken(int token)
      Sets the life cycle authentication token.
      Parameters:
      token - authentication token (0–9999)
      Returns:
      this builder
    • build

      public LifeCycleId build()
      Builds the LifeCycleId.
      Returns:
      new LifeCycleId