Class PostTradePartsDef.PostTradeFields.Builder
java.lang.Object
com.caplin.generated.motif.mm.posttrade.PostTradePartsDef.PostTradeFields.Builder
- Enclosing class:
- PostTradePartsDef.PostTradeFields
-
Method Summary
Modifier and TypeMethodDescription@NotNull PostTradePartsDef.PostTradeFields
build()
setAccount
(@NotNull String account) setCurrency
(@NotNull String currency) setIncreasedAmount
(@NotNull String increasedAmount) setIncreasedAmount
(@NotNull BigDecimal increasedAmount) 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) setNumberOfDays
(@NotNull String numberOfDays) setOriginalAmount
(@NotNull String originalAmount) setOriginalAmount
(@NotNull BigDecimal originalAmount) setPrincipalAmount
(@NotNull String principalAmount) setPrincipalAmount
(@NotNull BigDecimal principalAmount) setRolledAmount
(@NotNull String rolledAmount) setRolledAmount
(@NotNull BigDecimal rolledAmount) setStartDate
(@NotNull String startDate) setStartDate
(@NotNull LocalDate startDate) setTOBOUser
(@NotNull String tOBOUser) setTradeID
(@NotNull String tradeID) setTradingType
(@NotNull String tradingType) @NotNull String
toString()
-
Method Details
-
addField
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
setTradeID
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setTradeID(@NotNull @NotNull String tradeID) - Returns:
- The unique id identifying the trade.
-
setOriginalAmount
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setOriginalAmount(@NotNull @NotNull BigDecimal originalAmount) - Returns:
- The original principal amount for the trade in capital increase.
-
setOriginalAmount
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setOriginalAmount(@NotNull @NotNull String originalAmount) - Returns:
- The original principal amount for the trade in capital increase.
-
setPrincipalAmount
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setPrincipalAmount(@NotNull @NotNull BigDecimal principalAmount) - Returns:
- Principal amount for the trade specified in the provided Currency.
-
setPrincipalAmount
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setPrincipalAmount(@NotNull @NotNull String principalAmount) - Returns:
- Principal amount for the trade specified in the provided Currency.
-
setStartDate
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setStartDate(@NotNull @NotNull LocalDate startDate) - Returns:
- The start date of the trade.
-
setStartDate
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setStartDate(@NotNull @NotNull String startDate) - Returns:
- The start date of the trade.
-
setMaturityDate
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setMaturityDate(@NotNull @NotNull LocalDate maturityDate) - Returns:
- The maturity date of the trade.
-
setMaturityDate
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setMaturityDate(@NotNull @NotNull String maturityDate) - Returns:
- The maturity date of the trade.
-
setNumberOfDays
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setNumberOfDays(@NotNull @NotNull String numberOfDays) - Returns:
- The number of days between the start and maturity dates.
-
setInterestRate
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setInterestRate(@NotNull @NotNull BigDecimal interestRate) - Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestRate
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setInterestRate(@NotNull @NotNull String interestRate) - Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestRateDPS
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setInterestRateDPS(@NotNull @NotNull BigDecimal interestRateDPS) - Returns:
- The precision for a specified InterestRate.
-
setInterestRateDPS
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setInterestRateDPS(@NotNull @NotNull String interestRateDPS) - Returns:
- The precision for a specified InterestRate.
-
setCurrency
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setCurrency(@NotNull @NotNull String currency) - Returns:
- The currency in which the trade is made.
-
setTradingType
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.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].
-
setIncreasedAmount
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setIncreasedAmount(@NotNull @NotNull BigDecimal increasedAmount) - Returns:
- The increased principal amount for the trade in capital increase.
-
setIncreasedAmount
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setIncreasedAmount(@NotNull @NotNull String increasedAmount) - Returns:
- The increased principal amount for the trade in capital increase.
-
setRolledAmount
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setRolledAmount(@NotNull @NotNull BigDecimal rolledAmount) - Returns:
- The rolled principal amount for the trade in roll over.
-
setRolledAmount
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setRolledAmount(@NotNull @NotNull String rolledAmount) - Returns:
- The rolled principal amount for the trade in roll over.
-
setNoticePeriodDescription
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.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.
-
setTOBOUser
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setTOBOUser(@NotNull @NotNull String tOBOUser) - Returns:
- The client who the trade is for.
-
setAccount
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setAccount(@NotNull @NotNull String account) - Returns:
- The used account for the trade.
-
setIsShariaTrade
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setIsShariaTrade(boolean isShariaTrade) - Parameters:
isShariaTrade
- e.g. true- Returns:
- Indicates whether the trade is a Sharia trade
-
setIsShariaTrade
@NotNull public @NotNull PostTradePartsDef.PostTradeFields.Builder setIsShariaTrade(@NotNull @NotNull String isShariaTrade) - Parameters:
isShariaTrade
- e.g. true- Returns:
- Indicates whether the trade is a Sharia trade
-