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 java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setCurrency
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setCurrency(@NotNull @NotNull java.lang.String currency)
- Returns:
- The currency in which the trade is made.
-
setPrincipalAmount
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setPrincipalAmount(@NotNull @NotNull java.math.BigDecimal principalAmount)
- Returns:
- Principal amount for the trade specified in the provided Currency.
-
setPrincipalAmount
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setPrincipalAmount(@NotNull @NotNull java.lang.String principalAmount)
- Returns:
- Principal amount for the trade specified in the provided Currency.
-
setEffectiveDate
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setEffectiveDate(@NotNull @NotNull java.time.LocalDate effectiveDate)
- Returns:
- The effective date of the trade.
-
setEffectiveDate
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setEffectiveDate(@NotNull @NotNull java.lang.String effectiveDate)
- Returns:
- The effective date of the trade.
-
setMaturityDate
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setMaturityDate(@NotNull @NotNull java.time.LocalDate maturityDate)
- Returns:
- The maturity date of the trade.
-
setMaturityDate
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setMaturityDate(@NotNull @NotNull java.lang.String maturityDate)
- Returns:
- The maturity date of the trade.
-
setInterestRate
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setInterestRate(@NotNull @NotNull java.math.BigDecimal interestRate)
- Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestRate
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setInterestRate(@NotNull @NotNull java.lang.String interestRate)
- Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestAmount
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setInterestAmount(@NotNull @NotNull java.math.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 java.lang.String interestAmount)
- Returns:
- Interest amount (specified in the provided Currency) calculated from the interest rate and principal amount
-
-