Class BlotterPartsDef.CommonBlotterFields.Builder

java.lang.Object
com.caplin.generated.motif.mm.blotter.BlotterPartsDef.CommonBlotterFields.Builder
Enclosing class:
BlotterPartsDef.CommonBlotterFields

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

    • addField

      @NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value)
    • build

      @NotNull public @NotNull BlotterPartsDef.CommonBlotterFields build()
    • toString

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

      @NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setStatus(@NotNull @NotNull String status)
      Returns:
      Indicates the actual status of the trade from the trade model.
    • setStatusCategory

      @NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setStatusCategory(@NotNull @NotNull String statusCategory)
      Parameters:
      statusCategory - e.g. SUCCESS
      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.
    • setStatusIsFinal

      @NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setStatusIsFinal(boolean statusIsFinal)
      Parameters:
      statusIsFinal - e.g. true
      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.
    • setStatusIsFinal

      @NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setStatusIsFinal(@NotNull @NotNull String statusIsFinal)
      Parameters:
      statusIsFinal - e.g. true
      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.
    • setSettlementStatus

      @NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setSettlementStatus(@NotNull @NotNull String settlementStatus)
      Returns:
      Caplin supported statuses are [PENDING, AFFIRMED, CONFIRMED, DISPUTED, CANCELLED, REPLACED, AUTO_CONFIRMED, OVERDUE, REJECTED]
    • setCanLaunchTradeConfirmation

      @NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setCanLaunchTradeConfirmation(boolean canLaunchTradeConfirmation)
      Parameters:
      canLaunchTradeConfirmation - e.g. true
      Returns:
      Indicates whether the user can launch the trade confirmation ticket
    • setCanLaunchTradeConfirmation

      @NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setCanLaunchTradeConfirmation(@NotNull @NotNull String canLaunchTradeConfirmation)
      Parameters:
      canLaunchTradeConfirmation - e.g. true
      Returns:
      Indicates whether the user can launch the trade confirmation ticket
    • setAmountDPS

      @NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setAmountDPS(int amountDPS)
      Parameters:
      amountDPS - e.g. 2
      Returns:
      The precision for a specified currency
    • setAmountDPS

      @NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setAmountDPS(@NotNull @NotNull String amountDPS)
      Parameters:
      amountDPS - e.g. 2
      Returns:
      The precision for a specified currency