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