Class TradeDetailsPartsDef.TradeDetailsFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.mm.tradedetails.TradeDetailsPartsDef.TradeDetailsFields.Builder
-
- Enclosing class:
- TradeDetailsPartsDef.TradeDetailsFields
public static final class TradeDetailsPartsDef.TradeDetailsFields.Builder extends Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value)
-
build
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields build()
-
setCurrency
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setCurrency(@NotNull @NotNull String currency)
- Returns:
- The currency in which the trade is made.
-
setPrincipalAmount
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setPrincipalAmount(@NotNull @NotNull BigDecimal principalAmount)
- Returns:
- Principal amount for the trade specified in the provided Currency.
-
setPrincipalAmount
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setPrincipalAmount(@NotNull @NotNull String principalAmount)
- Returns:
- Principal amount for the trade specified in the provided Currency.
-
setStartDate
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setStartDate(@NotNull @NotNull LocalDate startDate)
- Returns:
- The start date of the trade.
-
setStartDate
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setStartDate(@NotNull @NotNull String startDate)
- Returns:
- The start date of the trade.
-
setMaturityDate
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setMaturityDate(@NotNull @NotNull LocalDate maturityDate)
- Returns:
- The maturity date of the trade.
-
setMaturityDate
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setMaturityDate(@NotNull @NotNull String maturityDate)
- Returns:
- The maturity date of the trade.
-
setInterestRate
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setInterestRate(@NotNull @NotNull BigDecimal interestRate)
- Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestRate
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setInterestRate(@NotNull @NotNull String interestRate)
- Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestAmount
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setInterestAmount(@NotNull @NotNull BigDecimal interestAmount)
- Returns:
- Interest amount (specified in the provided Currency) calculated from the interest rate and principal amount
-
setInterestAmount
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setInterestAmount(@NotNull @NotNull String interestAmount)
- Returns:
- Interest amount (specified in the provided Currency) calculated from the interest rate and principal amount
-
-