Class PostTradePartsDef.PostTradeFields
- java.lang.Object
-
- com.caplin.generated.motif.mm.posttrade.PostTradePartsDef.PostTradeFields
-
- All Implemented Interfaces:
BuilderMessage
,Message
- Enclosing class:
- PostTradePartsDef
public static final class PostTradePartsDef.PostTradeFields extends java.lang.Object implements BuilderMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PostTradePartsDef.PostTradeFields.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull PostTradePartsDef.PostTradeFields
from(@NotNull java.util.Map<java.lang.String,java.lang.String> fields)
static @NotNull PostTradePartsDef.PostTradeFields
from(@NotNull java.util.Map<java.lang.String,java.lang.String> fields, @NotNull java.lang.String fieldPrefix)
@Nullable java.lang.String
getCurrency()
@NotNull java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>
getFieldFlags()
@NotNull java.util.Map<java.lang.String,java.lang.String>
getFields()
@NotNull java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>
getFlagFields()
@Nullable java.math.BigDecimal
getIncreasedAmount()
@Nullable java.math.BigDecimal
getInterestRate()
@Nullable java.math.BigDecimal
getInterestRateDPS()
@Nullable java.time.LocalDate
getMaturityDate()
@Nullable java.lang.String
getNoticePeriodDescription()
@Nullable java.lang.String
getNumberOfDays()
@Nullable java.math.BigDecimal
getOriginalAmount()
@Nullable java.math.BigDecimal
getPrincipalAmount()
@Nullable java.math.BigDecimal
getRolledAmount()
@Nullable java.time.LocalDate
getStartDate()
@Nullable java.lang.String
getTradeID()
@Nullable java.lang.String
getTradingType()
static @NotNull PostTradePartsDef.PostTradeFields.Builder
newBuilder()
@NotNull java.lang.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 Detail
-
getTradeID
@Nullable public @Nullable java.lang.String getTradeID()
- Returns:
- The unique id identifying the trade.
-
getOriginalAmount
@Nullable public @Nullable java.math.BigDecimal getOriginalAmount()
- Returns:
- The original principal amount for the trade in capital increase.
-
getPrincipalAmount
@Nullable public @Nullable java.math.BigDecimal getPrincipalAmount()
- Returns:
- Principal amount for the trade specified in the provided Currency.
-
getStartDate
@Nullable public @Nullable java.time.LocalDate getStartDate()
- Returns:
- The start date of the trade.
-
getMaturityDate
@Nullable public @Nullable java.time.LocalDate getMaturityDate()
- Returns:
- The maturity date of the trade.
-
getNumberOfDays
@Nullable public @Nullable java.lang.String getNumberOfDays()
- Returns:
- The number of days between the start and maturity dates.
-
getInterestRate
@Nullable public @Nullable java.math.BigDecimal getInterestRate()
- Returns:
- Interest rate on the given PrincipalAmount.
-
getInterestRateDPS
@Nullable public @Nullable java.math.BigDecimal getInterestRateDPS()
- Returns:
- The precision for a specified InterestRate.
-
getCurrency
@Nullable public @Nullable java.lang.String getCurrency()
- Returns:
- The currency in which the trade is made.
-
getTradingType
@Nullable public @Nullable java.lang.String getTradingType()
- Returns:
- The type of the trade. Supported types are [LOAN, DEPOSIT, CALL-DEPOSIT, TERM-DEPOSIT, FLEXI-NOTICE-DEPOSIT, TREASURY-BILL or GOVERNMENT-BOND].
-
getIncreasedAmount
@Nullable public @Nullable java.math.BigDecimal getIncreasedAmount()
- Returns:
- The increased principal amount for the trade in capital increase.
-
getRolledAmount
@Nullable public @Nullable java.math.BigDecimal getRolledAmount()
- Returns:
- The rolled principal amount for the trade in roll over.
-
getNoticePeriodDescription
@Nullable public @Nullable java.lang.String getNoticePeriodDescription()
- Returns:
- The notice period description for the trade, sent as the raw display value or a translation token.
-
getFields
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.String> getFields()
-
getFieldFlags
@NotNull public @NotNull java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getFieldFlags()
- Specified by:
getFieldFlags
in interfaceBuilderMessage
- Returns:
- Get the flags for all fields.
-
getFlagFields
@NotNull public @NotNull java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getFlagFields()
- Specified by:
getFlagFields
in interfaceBuilderMessage
- Returns:
- Get the fields for all flags.
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
from
@NotNull public static @NotNull PostTradePartsDef.PostTradeFields from(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> fields)
-
from
@NotNull public static @NotNull PostTradePartsDef.PostTradeFields from(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> fields, @NotNull @NotNull java.lang.String fieldPrefix)
-
newBuilder
@NotNull public static @NotNull PostTradePartsDef.PostTradeFields.Builder newBuilder()
-
-