Class TradeConfPartsDef.CommonTradeConfirmationFields
- java.lang.Object
-
- com.caplin.generated.motif.mm.tradeconfirmation.TradeConfPartsDef.CommonTradeConfirmationFields
-
- All Implemented Interfaces:
BuilderMessage
,Message
- Enclosing class:
- TradeConfPartsDef
public static final class TradeConfPartsDef.CommonTradeConfirmationFields extends Object implements BuilderMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TradeConfPartsDef.CommonTradeConfirmationFields.Builder
-
Method Summary
-
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 Detail
-
getTOBOUser
@Nullable public @Nullable String getTOBOUser()
- Returns:
- The client who the trade is for.
-
getTraderUsername
@Nullable public @Nullable String getTraderUsername()
- Returns:
- The name of the trader providing the price to the user, or NO_TRADER if there is none.
-
getAccount
@Nullable public @Nullable String getAccount()
- Returns:
- The used account for the trade.
-
getCurrency
@Nullable public @Nullable String getCurrency()
- Returns:
- The currency in which the trade is made.
-
getMaturityDate
@Nullable public @Nullable LocalDate getMaturityDate()
- Returns:
- The maturity date of the trade.
-
getEffectiveDate
@Nullable public @Nullable LocalDate getEffectiveDate()
- Returns:
- The effective date of the trade.
-
getTradeID
@Nullable public @Nullable String getTradeID()
- Returns:
- The unique id identifying the trade.
-
getPrincipalAmount
@Nullable public @Nullable BigDecimal getPrincipalAmount()
- Returns:
- Principal amount for the trade specified in the provided Currency.
-
getInterestRate
@Nullable public @Nullable BigDecimal getInterestRate()
- Returns:
- Interest rate on the given PrincipalAmount.
-
getInterestAmount
@Nullable public @Nullable BigDecimal getInterestAmount()
- Returns:
- Interest amount (specified in the provided Currency) calculated from the interest rate and principal amount
-
getPrincipalPlusInterest
@Nullable public @Nullable BigDecimal getPrincipalPlusInterest()
- Returns:
- Composite amount between principal amount and interest amount.
-
getAllocationMode
@Nullable public @Nullable String getAllocationMode()
- Returns:
- Determines whether the amount will be alocated to a single or multiple accounts. Supported types are [SINGLE, MULTIPLE] and is defaulted to SINGLE.
-
getNumberOfDays
@Nullable public @Nullable String getNumberOfDays()
- Returns:
- The number of days between the effective and maturity dates.
-
getFieldFlags
@NotNull public @NotNull Map<String,Collection<String>> getFieldFlags()
- Specified by:
getFieldFlags
in interfaceBuilderMessage
- Returns:
- Get the flags for all fields.
-
getFlagFields
@NotNull public @NotNull Map<String,Collection<String>> getFlagFields()
- Specified by:
getFlagFields
in interfaceBuilderMessage
- Returns:
- Get the fields for all flags.
-
from
@NotNull public static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields from(@NotNull @NotNull Map<String,String> fields)
-
from
@NotNull public static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields from(@NotNull @NotNull Map<String,String> fields, @NotNull @NotNull String fieldPrefix)
-
newBuilder
@NotNull public static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder newBuilder()
-
-