Class TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.tradeconfirmation.TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder
-
- Enclosing class:
- TradeConfPartsDef.SalesLegTradeConfirmationFields
public static final class TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder extends Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value)
-
build
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields build()
-
setTraderAllInRate
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderAllInRate(@NotNull @NotNull BigDecimal traderAllInRate)
- Parameters:
traderAllInRate
- e.g. 1.005390- Returns:
- The all-in rate, with no client margin applied to it
-
setTraderAllInRate
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderAllInRate(@NotNull @NotNull String traderAllInRate)
- Parameters:
traderAllInRate
- e.g. 1.005390- Returns:
- The all-in rate, with no client margin applied to it
-
setTraderFwdPoints
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderFwdPoints(@NotNull @NotNull BigDecimal traderFwdPoints)
- Parameters:
traderFwdPoints
- e.g. 0.005390- Returns:
- The forward points with no client margin applied to them.
-
setTraderFwdPoints
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderFwdPoints(@NotNull @NotNull String traderFwdPoints)
- Parameters:
traderFwdPoints
- e.g. 0.005390- Returns:
- The forward points with no client margin applied to them.
-
setFwdMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setFwdMargin(@NotNull @NotNull BigDecimal fwdMargin, boolean isEditable)
- Parameters:
fwdMargin
- e.g. 0.000019- Returns:
- The Forward margin that the user has selected. This field should be sent raw and unformatted.
-
setFwdMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setFwdMargin(@NotNull @NotNull BigDecimal fwdMargin)
- Parameters:
fwdMargin
- e.g. 0.000019- Returns:
- The Forward margin that the user has selected. This field should be sent raw and unformatted.
-
setFwdMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setFwdMargin(@NotNull @NotNull String fwdMargin, boolean isEditable)
- Parameters:
fwdMargin
- e.g. 0.000019- Returns:
- The Forward margin that the user has selected. This field should be sent raw and unformatted.
-
setFwdMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setFwdMargin(@NotNull @NotNull String fwdMargin)
- Parameters:
fwdMargin
- e.g. 0.000019- Returns:
- The Forward margin that the user has selected. This field should be sent raw and unformatted.
-
setFwdMarginEditable
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setFwdMarginEditable()
-
setAllInMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAllInMargin(@NotNull @NotNull BigDecimal allInMargin, boolean isEditable)
- Parameters:
allInMargin
- e.g. 0.00054- Returns:
- The sales user's selected SpotMargin added to the sales user's selected L1_FwdMargin.
-
setAllInMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAllInMargin(@NotNull @NotNull BigDecimal allInMargin)
- Parameters:
allInMargin
- e.g. 0.00054- Returns:
- The sales user's selected SpotMargin added to the sales user's selected L1_FwdMargin.
-
setAllInMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAllInMargin(@NotNull @NotNull String allInMargin, boolean isEditable)
- Parameters:
allInMargin
- e.g. 0.00054- Returns:
- The sales user's selected SpotMargin added to the sales user's selected L1_FwdMargin.
-
setAllInMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAllInMargin(@NotNull @NotNull String allInMargin)
- Parameters:
allInMargin
- e.g. 0.00054- Returns:
- The sales user's selected SpotMargin added to the sales user's selected L1_FwdMargin.
-
setAllInMarginEditable
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAllInMarginEditable()
-
setTOBOUser
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTOBOUser(@NotNull @NotNull String tOBOUser, boolean isEditable, boolean isRisk)
- Parameters:
tOBOUser
- e.g. client@customer.co.za- Returns:
- The user the trade is on behalf of. For example, if the logged in user dealer1@novobank.co.za wishes to make a trade on behalf of user client@customer.co.za, then the value of this field will be client@customer.co.za.
-
setTOBOUser
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTOBOUser(@NotNull @NotNull String tOBOUser)
- Parameters:
tOBOUser
- e.g. client@customer.co.za- Returns:
- The user the trade is on behalf of. For example, if the logged in user dealer1@novobank.co.za wishes to make a trade on behalf of user client@customer.co.za, then the value of this field will be client@customer.co.za.
-
setTOBOUserEditable
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTOBOUserEditable()
-
setTOBOUserRisk
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTOBOUserRisk()
-
addTraderRemarks
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder addTraderRemarks(@NotNull @NotNull TradeConfPartsDef.RemarksEntry traderRemarks)
- Returns:
- traderRemarks
-
setTraderRemarks
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderRemarks(@NotNull @NotNull TradeConfPartsDef.RemarksEntry traderRemarks, int id)
- Returns:
- traderRemarks
-
addAllTraderRemarks
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder addAllTraderRemarks(@NotNull @NotNull Collection<TradeConfPartsDef.RemarksEntry> traderRemarks)
- Returns:
- traderRemarks
-
-