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 java.lang.Object implements BuilderMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TradeConfPartsDef.CommonTradeConfirmationFields.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields
from(@NotNull java.util.Map<java.lang.String,java.lang.String> fields)
static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields
from(@NotNull java.util.Map<java.lang.String,java.lang.String> fields, @NotNull java.lang.String fieldPrefix)
@Nullable java.lang.String
getAccount()
@Nullable java.lang.String
getAction()
@Nullable java.lang.String
getAllocationMode()
@Nullable java.lang.String
getCallAccount()
@Nullable java.lang.Boolean
getCanAffirm()
@Nullable java.lang.Boolean
getCanCapitalIncrease()
@Nullable java.lang.Boolean
getCanChangeSSI()
@Nullable java.lang.Boolean
getCanConfirm()
@Nullable java.lang.Boolean
getCanGiveNotice()
@Nullable java.lang.String
getCurrency()
@Nullable java.lang.String
getDisplayFields()
@Nullable java.lang.String
getEntityDescription()
@Nullable java.lang.String
getEntityId()
@Nullable java.lang.String
getExecutionDateTime()
@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.lang.String
getIndicativeProfitRate()
@Nullable java.math.BigDecimal
getInterestAmount()
@Nullable java.math.BigDecimal
getInterestRate()
@Nullable java.math.BigDecimal
getInterestRateDPS()
@Nullable java.lang.Boolean
getIsShariaTrade()
@Nullable java.time.LocalDate
getMaturityDate()
@Nullable java.lang.String
getMaturityTenor()
@Nullable java.lang.String
getNoticePeriod()
@Nullable java.lang.String
getNoticePeriodDescription()
@Nullable java.lang.String
getNumberOfDays()
@Nullable java.lang.String
getPaymentFrequency()
@Nullable java.math.BigDecimal
getPrincipalAmount()
@Nullable java.math.BigDecimal
getPrincipalPlusInterest()
@Nullable java.lang.String
getQuoteDateTime()
@Nullable java.lang.String
getQuoteID()
@Nullable java.time.LocalDate
getStartDate()
@Nullable java.lang.String
getStartTenor()
@Nullable java.lang.String
getTOBOUser()
@Nullable java.lang.String
getTradeDate()
@Nullable java.lang.String
getTradeID()
@Nullable java.lang.String
getTraderUsername()
@Nullable java.lang.String
getTradingType()
static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.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
-
getTOBOUser
@Nullable public @Nullable java.lang.String getTOBOUser()
- Returns:
- The client who the trade is for.
-
getTraderUsername
@Nullable public @Nullable java.lang.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 java.lang.String getAccount()
- Returns:
- The used account for the trade.
-
getAction
@Nullable public @Nullable java.lang.String getAction()
- Returns:
- Withdraw or deposit for Call Deposit.
-
getCallAccount
@Nullable public @Nullable java.lang.String getCallAccount()
- Returns:
- The account which is being withdrawn from or deposited to.
-
getCurrency
@Nullable public @Nullable java.lang.String getCurrency()
- Returns:
- The currency in which the trade is made.
-
getMaturityDate
@Nullable public @Nullable java.time.LocalDate getMaturityDate()
- Returns:
- The maturity date of the trade.
-
getMaturityTenor
@Nullable public @Nullable java.lang.String getMaturityTenor()
- Returns:
- The maturity tenor of the trade.
-
getStartDate
@Nullable public @Nullable java.time.LocalDate getStartDate()
- Returns:
- The start date of the trade.
-
getStartTenor
@Nullable public @Nullable java.lang.String getStartTenor()
- Returns:
- The start tenor of the trade.
-
getTradeID
@Nullable public @Nullable java.lang.String getTradeID()
- Returns:
- The unique id identifying the trade.
-
getPrincipalAmount
@Nullable public @Nullable java.math.BigDecimal getPrincipalAmount()
- Returns:
- Principal amount for the trade specified in the provided Currency.
-
getInterestRate
@Nullable public @Nullable java.math.BigDecimal getInterestRate()
- Returns:
- Interest rate on the given PrincipalAmount.
-
getIndicativeProfitRate
@Nullable public @Nullable java.lang.String getIndicativeProfitRate()
- Returns:
- Indicative profit rate on the given PrincipalAmount.
-
getInterestRateDPS
@Nullable public @Nullable java.math.BigDecimal getInterestRateDPS()
- Returns:
- The precision for a specified InterestRate.
-
getInterestAmount
@Nullable public @Nullable java.math.BigDecimal getInterestAmount()
- Returns:
- Interest amount (specified in the provided Currency) calculated from the interest rate and principal amount.
-
getPrincipalPlusInterest
@Nullable public @Nullable java.math.BigDecimal getPrincipalPlusInterest()
- Returns:
- Composite amount between principal amount and interest amount.
-
getPaymentFrequency
@Nullable public @Nullable java.lang.String getPaymentFrequency()
- Returns:
- Interest payment frequencies for term deposits, this could be ZERO-COUPON, MONTHLY, QUARTERLY, SEMI-ANNUALLY or ANNUALLY.
-
getAllocationMode
@Nullable public @Nullable java.lang.String getAllocationMode()
- Returns:
- Determines whether the amount will be alLocated to a single or multiple accounts. Supported types are [SINGLE, MULTIPLE] and is defaulted to SINGLE.
-
getNumberOfDays
@Nullable public @Nullable java.lang.String getNumberOfDays()
- Returns:
- The number of days between the start and maturity dates.
-
getExecutionDateTime
@Nullable public @Nullable java.lang.String getExecutionDateTime()
- Returns:
- executionDateTime e.g. 20160322123621
-
getEntityId
@Nullable public @Nullable java.lang.String getEntityId()
- Returns:
- The entity the trade is on behalf of. For example, if the logged in user user1@customer.co.za wishes to make a trade on behalf of entity CUSTONE, then the value of this field will be CUSTONE. If this field is absent on a leg then the default entity should be presumed.
-
getEntityDescription
@Nullable public @Nullable java.lang.String getEntityDescription()
- Returns:
- The description of a trade on behalf of entity.
-
getTradeDate
@Nullable public @Nullable java.lang.String getTradeDate()
- Returns:
- tradeDate e.g. 20160314
-
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].
-
getQuoteID
@Nullable public @Nullable java.lang.String getQuoteID()
- Returns:
- Unique id for a quote, used to determine which quote has been used for trade execution.
-
getQuoteDateTime
@Nullable public @Nullable java.lang.String getQuoteDateTime()
- Returns:
- quoteDateTime e.g. 20160314013000
-
getCanAffirm
@Nullable public @Nullable java.lang.Boolean getCanAffirm()
- Returns:
- Ability to Affirm the Trade Details are as agreed.
-
getDisplayFields
@Nullable public @Nullable java.lang.String getDisplayFields()
- Returns:
- Configuration for a frontend to display label-value pairs. Use DefaultDisplayFields builders to provide Caplin default and/or custom fields.
-
getCanCapitalIncrease
@Nullable public @Nullable java.lang.Boolean getCanCapitalIncrease()
- Returns:
- Ability to Capital Increase the Trade amount.
-
getCanChangeSSI
@Nullable public @Nullable java.lang.Boolean getCanChangeSSI()
- Returns:
- Ability to Change the Settlement Instructions.
-
getCanGiveNotice
@Nullable public @Nullable java.lang.Boolean getCanGiveNotice()
- Returns:
- Ability to Give notice for Money Market trades.
-
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.
-
getNoticePeriod
@Nullable public @Nullable java.lang.String getNoticePeriod()
- Returns:
- The notice period for the trade.
-
getIsShariaTrade
@Nullable public @Nullable java.lang.Boolean getIsShariaTrade()
- Returns:
- Indicates whether the trade is a Sharia trade
-
getCanConfirm
@Nullable public @Nullable java.lang.Boolean getCanConfirm()
- Returns:
- Ability to Confirm the Settlement Details are now final.
-
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 TradeConfPartsDef.CommonTradeConfirmationFields from(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> fields)
-
from
@NotNull public static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields from(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> fields, @NotNull @NotNull java.lang.String fieldPrefix)
-
newBuilder
@NotNull public static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder newBuilder()
-
-