Class TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder
java.lang.Object
com.caplin.generated.motif.fx.tradeconfirmation.TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder
- Enclosing class:
- TradeConfPartsDef.SalesLegTradeConfirmationFields
-
Method Summary
Modifier and TypeMethodDescriptionaddAllTraderRemarks
(@NotNull Collection<TradeConfPartsDef.RemarksEntry> traderRemarks) addTraderRemarks
(@NotNull TradeConfPartsDef.RemarksEntry traderRemarks) build()
setAdjustedSwapMargin
(@NotNull String adjustedSwapMargin) setAdjustedSwapMargin
(@NotNull BigDecimal adjustedSwapMargin) setAdjustedTraderSwapPoints
(@NotNull String adjustedTraderSwapPoints) setAdjustedTraderSwapPoints
(@NotNull BigDecimal adjustedTraderSwapPoints) setAllInMargin
(@NotNull String allInMargin) setAllInMargin
(@NotNull String allInMargin, boolean isEditable) setAllInMargin
(@NotNull BigDecimal allInMargin) setAllInMargin
(@NotNull BigDecimal allInMargin, boolean isEditable) setComponent1
(@NotNull TradeConfPartsDef.SalesSyntheticComponentLegTradeConfirmationFields component1) setComponent2
(@NotNull TradeConfPartsDef.SalesSyntheticComponentLegTradeConfirmationFields component2) setFwdMargin
(@NotNull String fwdMargin) setFwdMargin
(@NotNull String fwdMargin, boolean isEditable) setFwdMargin
(@NotNull BigDecimal fwdMargin) setFwdMargin
(@NotNull BigDecimal fwdMargin, boolean isEditable) setOriginalMargin
(@NotNull String originalMargin) setOriginalMargin
(@NotNull BigDecimal originalMargin) setTOBOUser
(@NotNull String tOBOUser) setTOBOUser
(@NotNull String tOBOUser, boolean isEditable, boolean isRisk) setTraderAllInRate
(@NotNull String traderAllInRate) setTraderAllInRate
(@NotNull BigDecimal traderAllInRate) setTraderFwdPoints
(@NotNull String traderFwdPoints) setTraderFwdPoints
(@NotNull BigDecimal traderFwdPoints) setTraderOriginalRate
(@NotNull String traderOriginalRate) setTraderOriginalRate
(@NotNull BigDecimal traderOriginalRate) setTraderRemarks
(@NotNull TradeConfPartsDef.RemarksEntry traderRemarks, int id) @NotNull String
toString()
-
Method Details
-
addField
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
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() -
setTraderOriginalRate
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderOriginalRate(@NotNull @NotNull BigDecimal traderOriginalRate) - Returns:
- The TraderRate of the trade that this trade was created from.
-
setTraderOriginalRate
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderOriginalRate(@NotNull @NotNull String traderOriginalRate) - Returns:
- The TraderRate of the trade that this trade was created from.
-
setOriginalMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setOriginalMargin(@NotNull @NotNull BigDecimal originalMargin) - Returns:
- The Margin of the trade that this trade was created from.
-
setOriginalMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setOriginalMargin(@NotNull @NotNull String originalMargin) - Returns:
- The Margin of the trade that this trade was created from.
-
setAdjustedTraderSwapPoints
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAdjustedTraderSwapPoints(@NotNull @NotNull BigDecimal adjustedTraderSwapPoints) - Returns:
- The trader swap points adjusted for this repriced trade
-
setAdjustedTraderSwapPoints
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAdjustedTraderSwapPoints(@NotNull @NotNull String adjustedTraderSwapPoints) - Returns:
- The trader swap points adjusted for this repriced trade
-
setAdjustedSwapMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAdjustedSwapMargin(@NotNull @NotNull BigDecimal adjustedSwapMargin) - Returns:
- The swap margin adjusted for this repriced trade
-
setAdjustedSwapMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAdjustedSwapMargin(@NotNull @NotNull String adjustedSwapMargin) - Returns:
- The swap margin adjusted for this repriced trade
-
setComponent1
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setComponent1(@NotNull @NotNull TradeConfPartsDef.SalesSyntheticComponentLegTradeConfirmationFields component1) - Returns:
- component1
-
setComponent2
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setComponent2(@NotNull @NotNull TradeConfPartsDef.SalesSyntheticComponentLegTradeConfirmationFields component2) - Returns:
- component2
-
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
-