Class TradeDetailsPartsDef.TradeDetailsFields
java.lang.Object
com.caplin.generated.motif.mm.tradedetails.TradeDetailsPartsDef.TradeDetailsFields
- All Implemented Interfaces:
BuilderMessage
,Message
- Enclosing class:
- TradeDetailsPartsDef
public static final class TradeDetailsPartsDef.TradeDetailsFields
extends Object
implements BuilderMessage
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull TradeDetailsPartsDef.TradeDetailsFields
static @NotNull TradeDetailsPartsDef.TradeDetailsFields
@Nullable String
@NotNull Map<String,
Collection<String>> @NotNull Map<String,
Collection<String>> @Nullable BigDecimal
@Nullable BigDecimal
@Nullable LocalDate
@Nullable BigDecimal
@Nullable LocalDate
static @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder
@NotNull String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.caplin.motif.datasource.BuilderMessage
getFieldFlags, getFlagFields
-
Method Details
-
getCurrency
- Returns:
- The currency in which the trade is made.
-
getPrincipalAmount
- Returns:
- Principal amount for the trade specified in the provided Currency.
-
getStartDate
- Returns:
- The start date of the trade.
-
getMaturityDate
- Returns:
- The maturity date of the trade.
-
getInterestRate
- Returns:
- Interest rate on the given PrincipalAmount.
-
getInterestAmount
- Returns:
- Interest amount (specified in the provided Currency) calculated from the interest rate and principal amount.
-
getFields
-
getFieldFlags
- Specified by:
getFieldFlags
in interfaceBuilderMessage
- Returns:
- Get the flags for all fields.
-
getFlagFields
- Specified by:
getFlagFields
in interfaceBuilderMessage
- Returns:
- Get the fields for all flags.
-
toString
-
from
@NotNull public static @NotNull TradeDetailsPartsDef.TradeDetailsFields from(@NotNull @NotNull Map<String, String> fields) -
from
@NotNull public static @NotNull TradeDetailsPartsDef.TradeDetailsFields from(@NotNull @NotNull Map<String, String> fields, @NotNull @NotNull String fieldPrefix) -
newBuilder
-