Class BlotterPartsDef.CommonBlotterFields

java.lang.Object
com.caplin.generated.motif.mm.blotter.BlotterPartsDef.CommonBlotterFields
All Implemented Interfaces:
BuilderMessage, Message
Enclosing class:
BlotterPartsDef

public static final class BlotterPartsDef.CommonBlotterFields extends Object implements BuilderMessage
  • Method Details

    • getStatus

      @Nullable public @Nullable String getStatus()
      Returns:
      Indicates the actual status of the trade from the trade model.
    • getStatusCategory

      @Nullable public @Nullable String getStatusCategory()
      Returns:
      StatusCategory can be NEUTRAL, SUCCESS, WARNING, ERROR. If missing, frontend treats it as NEUTRAL. Used in frontends to color code `Status` text e.g. whether to color a status badge green or red.
    • getStatusIsFinal

      @Nullable public @Nullable Boolean getStatusIsFinal()
      Returns:
      StatusIsFinal can be true or false. Assumed false if missing or empty string. Used in frontends to color code `Status` text e.g. whether to color a status badge background dark green or light green.
    • getSettlementStatus

      @Nullable public @Nullable String getSettlementStatus()
      Returns:
      Caplin supported statuses are [PENDING, AFFIRMED, CONFIRMED, DISPUTED, CANCELLED, REPLACED, AUTO_CONFIRMED, OVERDUE, REJECTED]
    • getCanLaunchTradeConfirmation

      @Nullable public @Nullable Boolean getCanLaunchTradeConfirmation()
      Returns:
      Indicates whether the user can launch the trade confirmation ticket
    • getAmountDPS

      @Nullable public @Nullable Integer getAmountDPS()
      Returns:
      The precision for a specified currency
    • getFields

      @NotNull public @NotNull Map<String,String> getFields()
      Specified by:
      getFields in interface Message
    • getFieldFlags

      @NotNull public @NotNull Map<String,Collection<String>> getFieldFlags()
      Specified by:
      getFieldFlags in interface BuilderMessage
      Returns:
      Get the flags for all fields.
    • getFlagFields

      @NotNull public @NotNull Map<String,Collection<String>> getFlagFields()
      Specified by:
      getFlagFields in interface BuilderMessage
      Returns:
      Get the fields for all flags.
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object
    • from

      @NotNull public static @NotNull BlotterPartsDef.CommonBlotterFields from(@NotNull @NotNull Map<String,String> fields)
    • from

      @NotNull public static @NotNull BlotterPartsDef.CommonBlotterFields from(@NotNull @NotNull Map<String,String> fields, @NotNull @NotNull String fieldPrefix)
    • newBuilder

      @NotNull public static @NotNull BlotterPartsDef.CommonBlotterFields.Builder newBuilder()