Class BlotterPartsDef.CommonBlotterFields.Builder
java.lang.Object
com.caplin.generated.motif.mm.blotter.BlotterPartsDef.CommonBlotterFields.Builder
- Enclosing class:
- BlotterPartsDef.CommonBlotterFields
-
Method Summary
Modifier and TypeMethodDescription@NotNull BlotterPartsDef.CommonBlotterFieldsbuild()setAmountDPS(int amountDPS) setAmountDPS(@NotNull String amountDPS) setCanLaunchTradeConfirmation(boolean canLaunchTradeConfirmation) setCanLaunchTradeConfirmation(@NotNull String canLaunchTradeConfirmation) setSettlementStatus(@NotNull String settlementStatus) setStatusCategory(@NotNull String statusCategory) setStatusIsFinal(boolean statusIsFinal) setStatusIsFinal(@NotNull String statusIsFinal) @NotNull StringtoString()
-
Method Details
-
addField
@NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
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
- 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
-