Class FeeQueryCommandExtensionItem

All Implemented Interfaces:
Direct Known Subclasses:
FeeCheckCommandExtensionItem, FeeInfoCommandExtensionV06

public abstract class FeeQueryCommandExtensionItem extends ImmutableObject
Abstract base class for the fee request query items used in Check and Info commands. It handles the period, which is always present. Derived classes must handle the command, which may be implemented in different ways, and the currency, which may or may not be present, depending on the version of the extension being used.
  • Constructor Details

    • FeeQueryCommandExtensionItem

      public FeeQueryCommandExtensionItem()
  • Method Details

    • getCurrency

      public abstract getCurrency()
      Three-character ISO4217 currency code.

      Returns null if this version of the fee extension doesn't specify currency at the top level.

    • getEffectiveDate

      public abstract Optional<org.joda.time.DateTime> getEffectiveDate()
      The as-of date for the fee extension to run.
    • getCommandName

      public abstract FeeQueryCommandExtensionItem.CommandName getCommandName()
      The name of the command being checked.
    • getUnparsedCommandName

      public abstract String getUnparsedCommandName()
      The command name before being parsed into an enum, for use in error strings.
    • getPhase

      public abstract String getPhase()
      The phase of the command being checked.
    • getSubphase

      public abstract String getSubphase()
      The subphase of the command being checked.
    • getPeriod

      public Period getPeriod()