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 Object implements BuilderMessage
  • Method Details

    • getTradeID

      @Nullable public @Nullable String getTradeID()
      Returns:
      The unique id identifying the trade.
    • getOriginalAmount

      @Nullable public @Nullable BigDecimal getOriginalAmount()
      Returns:
      The original principal amount for the trade in capital increase.
    • getPrincipalAmount

      @Nullable public @Nullable BigDecimal getPrincipalAmount()
      Returns:
      Principal amount for the trade specified in the provided Currency.
    • getStartDate

      @Nullable public @Nullable LocalDate getStartDate()
      Returns:
      The start date of the trade.
    • getMaturityDate

      @Nullable public @Nullable LocalDate getMaturityDate()
      Returns:
      The maturity date of the trade.
    • getNumberOfDays

      @Nullable public @Nullable String getNumberOfDays()
      Returns:
      The number of days between the start and maturity dates.
    • getInterestRate

      @Nullable public @Nullable BigDecimal getInterestRate()
      Returns:
      Interest rate on the given PrincipalAmount.
    • getInterestRateDPS

      @Nullable public @Nullable BigDecimal getInterestRateDPS()
      Returns:
      The precision for a specified InterestRate.
    • getCurrency

      @Nullable public @Nullable String getCurrency()
      Returns:
      The currency in which the trade is made.
    • getTradingType

      @Nullable public @Nullable 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 BigDecimal getIncreasedAmount()
      Returns:
      The increased principal amount for the trade in capital increase.
    • getRolledAmount

      @Nullable public @Nullable BigDecimal getRolledAmount()
      Returns:
      The rolled principal amount for the trade in roll over.
    • getNoticePeriodDescription

      @Nullable public @Nullable String getNoticePeriodDescription()
      Returns:
      The notice period description for the trade, sent as the raw display value or a translation token.
    • getTOBOUser

      @Nullable public @Nullable String getTOBOUser()
      Returns:
      The client who the trade is for.
    • getAccount

      @Nullable public @Nullable String getAccount()
      Returns:
      The used account for the trade.
    • getIsShariaTrade

      @Nullable public @Nullable Boolean getIsShariaTrade()
      Returns:
      Indicates whether the trade is a Sharia trade
    • getFields

      @NotNull public @NotNull Map<String,String> getFields()
      Specified by:
      getFields in interface Message
    • getFieldFlags

      @NotNull public @NotNull Map<String,Collection<String>> getFieldFlags()
      Specified by:
      getFieldFlags in interface BuilderMessage
      Returns:
      Get the flags for all fields.
    • getFlagFields

      @NotNull public @NotNull Map<String,Collection<String>> getFlagFields()
      Specified by:
      getFlagFields in interface BuilderMessage
      Returns:
      Get the fields for all flags.
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object
    • from

      @NotNull public static @NotNull PostTradePartsDef.PostTradeFields from(@NotNull @NotNull Map<String,String> fields)
    • from

      @NotNull public static @NotNull PostTradePartsDef.PostTradeFields from(@NotNull @NotNull Map<String,String> fields, @NotNull @NotNull String fieldPrefix)
    • newBuilder

      @NotNull public static @NotNull PostTradePartsDef.PostTradeFields.Builder newBuilder()