Class PostTradePartsDef.PostTradeDetailsUpdate.Builder
java.lang.Object
com.caplin.generated.motif.mm.posttrade.PostTradePartsDef.PostTradeDetailsUpdate.Builder
- Enclosing class:
- PostTradePartsDef.PostTradeDetailsUpdate
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setAccount(@NotNull String account) setCurrency(@NotNull String currency) setIndicativeProfitRate(@NotNull String indicativeProfitRate) setInterestRate(@NotNull String interestRate) setInterestRate(@NotNull BigDecimal interestRate) setInterestRateDPS(@NotNull String interestRateDPS) setInterestRateDPS(@NotNull BigDecimal interestRateDPS) setIsShariaTrade(boolean isShariaTrade) setIsShariaTrade(@NotNull String isShariaTrade) setMaturityDate(@NotNull String maturityDate) setMaturityDate(@NotNull LocalDate maturityDate) setNoticePeriodDescription(@NotNull String noticePeriodDescription) setRemainingAmount(@NotNull String remainingAmount) setRemainingAmount(@NotNull BigDecimal remainingAmount) setStartDate(@NotNull String startDate) setStartDate(@NotNull LocalDate startDate) setTradingType(@NotNull String tradingType) @NotNull StringtoString()
-
Method Details
-
addField
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
setInterestRate
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setInterestRate(@NotNull @NotNull BigDecimal interestRate) - Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestRate
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setInterestRate(@NotNull @NotNull String interestRate) - Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestRateDPS
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setInterestRateDPS(@NotNull @NotNull BigDecimal interestRateDPS) - Returns:
- The precision for a specified InterestRate.
-
setInterestRateDPS
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setInterestRateDPS(@NotNull @NotNull String interestRateDPS) - Returns:
- The precision for a specified InterestRate.
-
setNoticePeriodDescription
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setNoticePeriodDescription(@NotNull @NotNull String noticePeriodDescription) - Parameters:
noticePeriodDescription- e.g. 32 Days- Returns:
- The notice period description for the trade, sent as the raw display value or a translation token.
-
setTradingType
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setTradingType(@NotNull @NotNull String tradingType) - Returns:
- The type of the trade. Supported types are [LOAN, DEPOSIT, CALL-DEPOSIT, TERM-DEPOSIT, FLEXI-NOTICE-DEPOSIT, TREASURY-BILL or GOVERNMENT-BOND].
-
setStartDate
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setStartDate(@NotNull @NotNull LocalDate startDate) - Returns:
- The start date of the trade.
-
setStartDate
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setStartDate(@NotNull @NotNull String startDate) - Returns:
- The start date of the trade.
-
setMaturityDate
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setMaturityDate(@NotNull @NotNull LocalDate maturityDate) - Returns:
- The maturity date of the trade.
-
setMaturityDate
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setMaturityDate(@NotNull @NotNull String maturityDate) - Returns:
- The maturity date of the trade.
-
setRemainingAmount
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setRemainingAmount(@NotNull @NotNull BigDecimal remainingAmount) - Returns:
- The remaining amount on the trade specified in the provided Currency.
-
setRemainingAmount
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setRemainingAmount(@NotNull @NotNull String remainingAmount) - Returns:
- The remaining amount on the trade specified in the provided Currency.
-
setCurrency
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setCurrency(@NotNull @NotNull String currency) - Returns:
- The currency in which the trade is made.
-
setIsShariaTrade
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setIsShariaTrade(boolean isShariaTrade) - Parameters:
isShariaTrade- e.g. true- Returns:
- Indicates whether the trade is a Sharia trade
-
setIsShariaTrade
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setIsShariaTrade(@NotNull @NotNull String isShariaTrade) - Parameters:
isShariaTrade- e.g. true- Returns:
- Indicates whether the trade is a Sharia trade
-
setAccount
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setAccount(@NotNull @NotNull String account) - Returns:
- The used account for the trade.
-
setIndicativeProfitRate
@NotNull public @NotNull PostTradePartsDef.PostTradeDetailsUpdate.Builder setIndicativeProfitRate(@NotNull @NotNull String indicativeProfitRate) - Returns:
- Indicative profit rate on the given PrincipalAmount.
-