Package com.caplin.motif.mm.config
Class DefaultDisplayFields
- java.lang.Object
-
- com.caplin.motif.mm.config.DefaultDisplayFields
-
public final class DefaultDisplayFields extends java.lang.Object
Static builder methods to build standard DisplayField items
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DisplayFields
addAccount(DisplayFields displayFields, java.lang.String account)
Adds the Account field to your display-fields configurationstatic DisplayFields
addAction(DisplayFields displayFields, java.lang.String action)
Adds the Action field to your display-fields configurationstatic DisplayFields
addCallAccount(DisplayFields displayFields, java.lang.String callAccount)
Adds the Call Account field to your display-fields configurationstatic DisplayFields
addCurrency(DisplayFields displayFields, java.lang.String currency)
Adds the Currency field to your display-fields configurationstatic DisplayFields
addDefaultMMCallSummaryDisplayFields(java.lang.String tradeId, java.lang.String account, @NotNull java.time.Instant executionDateTime, java.lang.String depositType, java.lang.String submittedBy, FormattedAmount principalAmount, java.lang.String currency, java.time.LocalDate valueDate, java.lang.String action, java.lang.String callAccount, java.lang.Boolean shariaTrade)
Adds the Action field to your display-fields configuration.static DisplayFields
addDefaultMMFlexiDepositSummaryDisplayFields(java.lang.String tradeId, java.lang.String account, @NotNull java.time.Instant executionDateTime, java.lang.String submittedBy, java.lang.String currency, FormattedAmount principalAmount, FormattedRate rate, java.time.LocalDate startDate, TextOrToken noticePeriod)
Adds the Action field to your display-fields configuration.static DisplayFields
addDefaultMMTermSummaryDisplayFields(java.lang.String tradeId, java.lang.String account, @NotNull java.time.Instant executionDateTime, java.lang.String depositType, java.lang.String submittedBy, FormattedRate rate, java.time.LocalDate startDate, java.time.LocalDate endDate, FormattedAmount principalAmount, FormattedAmount interestAmount, FormattedAmount principalPlusInterestAmount, java.lang.String currency, java.lang.String paymentFrequency, java.lang.Boolean shariaTrade)
Adds the Action field to your display-fields configuration.static DisplayFields
addDepositType(DisplayFields DisplayFields, java.lang.String depositType)
Adds the Trade ID field to your display-fields configurationstatic DisplayFields
addEndDate(DisplayFields displayFields, java.time.LocalDate endDate)
Adds the End date field to your display-fields configurationstatic DisplayFields
addExecutionDateTime(DisplayFields DisplayFields, java.time.Instant executionDateTime)
Adds the Execution time field to your display-fields configurationstatic DisplayFields
addNoticePeriod(DisplayFields displayFields, TextOrToken noticePeriod)
Adds the Notice period field to your display-fields configurationstatic DisplayFields
addPaymentFrequency(DisplayFields displayFields, java.lang.String paymentFrequency)
Adds the PaymentFrequency field to your display-fields configurationstatic DisplayFields
addPaymentFrequency(DisplayFields displayFields, java.lang.String paymentFrequency, boolean shariaTrade)
Adds the PaymentFrequency field to your display-fields configurationstatic DisplayFields
addRate(DisplayFields displayFields, FormattedRate rate)
Adds the Rate field to your display-fields configurationstatic DisplayFields
addRate(DisplayFields displayFields, FormattedRate rate, boolean shariaTrade)
Adds the Rate field to your display-fields configurationstatic DisplayFields
addShariaTrade(DisplayFields displayFields, boolean shariaTrade)
Adds the Sharia field to your display-fields configurationstatic DisplayFields
addStartDate(DisplayFields displayFields, java.time.LocalDate startDate)
Adds the Start date field to your display-fields configurationstatic DisplayFields
addSubmittedBy(DisplayFields displayFields, java.lang.String user)
Adds the Submitted by field to your display-fields configurationstatic DisplayFields
addTradeID(DisplayFields DisplayFields, java.lang.String tradeID)
Adds the Trade ID field to your display-fields configurationstatic DisplayFields
addValueDate(DisplayFields displayFields, java.time.LocalDate valueDate)
Adds a Value Date field to your display-fields configuration
-
-
-
Method Detail
-
addValueDate
public static DisplayFields addValueDate(DisplayFields displayFields, @Nullable java.time.LocalDate valueDate)
Adds a Value Date field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tovalueDate
- The Value Date
-
addAccount
public static DisplayFields addAccount(DisplayFields displayFields, @Nullable java.lang.String account)
Adds the Account field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field toaccount
- The account description
-
addCallAccount
public static DisplayFields addCallAccount(DisplayFields displayFields, @Nullable java.lang.String callAccount)
Adds the Call Account field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tocallAccount
- The call account description
-
addTradeID
public static DisplayFields addTradeID(DisplayFields DisplayFields, java.lang.String tradeID)
Adds the Trade ID field to your display-fields configuration- Parameters:
DisplayFields
- The DisplayFields to add the field totradeID
- The Trade ID, e.g. "75e4073d040f"
-
addSubmittedBy
public static DisplayFields addSubmittedBy(DisplayFields displayFields, @Nullable java.lang.String user)
Adds the Submitted by field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field touser
- The user that submitted the trade, e.g. "Autotrader"
-
addStartDate
public static DisplayFields addStartDate(DisplayFields displayFields, @Nullable java.time.LocalDate startDate)
Adds the Start date field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tostartDate
- The Start date.
-
addEndDate
public static DisplayFields addEndDate(DisplayFields displayFields, java.time.LocalDate endDate)
Adds the End date field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field toendDate
- The End date.
-
addExecutionDateTime
public static DisplayFields addExecutionDateTime(DisplayFields DisplayFields, java.time.Instant executionDateTime)
Adds the Execution time field to your display-fields configuration- Parameters:
DisplayFields
- The DisplayFields to add the field toexecutionDateTime
- The date and time of the trade, e.g. "12/07/2022 10:21:46"
-
addDepositType
public static DisplayFields addDepositType(DisplayFields DisplayFields, java.lang.String depositType)
Adds the Trade ID field to your display-fields configuration- Parameters:
DisplayFields
- The DisplayFields to add the field todepositType
- The Deposit type, e.g. TERM-DEPOSIT
-
addRate
public static DisplayFields addRate(DisplayFields displayFields, FormattedRate rate)
Adds the Rate field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field torate
- The rate value
-
addRate
public static DisplayFields addRate(DisplayFields displayFields, FormattedRate rate, boolean shariaTrade)
Adds the Rate field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field torate
- The rate valueshariaTrade
- The flag stating if the trade is a Sharia trade
-
addCurrency
public static DisplayFields addCurrency(DisplayFields displayFields, java.lang.String currency)
Adds the Currency field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tocurrency
- The base and term currency e.g. GBPUSD
-
addPaymentFrequency
public static DisplayFields addPaymentFrequency(DisplayFields displayFields, java.lang.String paymentFrequency)
Adds the PaymentFrequency field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field topaymentFrequency
- The frequency e.g. ZERO-COUPON
-
addPaymentFrequency
public static DisplayFields addPaymentFrequency(DisplayFields displayFields, java.lang.String paymentFrequency, boolean shariaTrade)
Adds the PaymentFrequency field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field topaymentFrequency
- The frequency e.g. ZERO-COUPONshariaTrade
- The flag stating if the trade is a Sharia trade
-
addShariaTrade
public static DisplayFields addShariaTrade(DisplayFields displayFields, boolean shariaTrade)
Adds the Sharia field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field toshariaTrade
- The flag stating if the trade is a Sharia trade
-
addAction
public static DisplayFields addAction(DisplayFields displayFields, java.lang.String action)
Adds the Action field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field toaction
- The action e.g. Deposit
-
addNoticePeriod
public static DisplayFields addNoticePeriod(DisplayFields displayFields, TextOrToken noticePeriod)
Adds the Notice period field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tonoticePeriod
- The notice period e.g. 30 Days
-
addDefaultMMTermSummaryDisplayFields
public static DisplayFields addDefaultMMTermSummaryDisplayFields(@Nullable java.lang.String tradeId, @Nullable java.lang.String account, @NotNull @NotNull java.time.Instant executionDateTime, @Nullable java.lang.String depositType, @Nullable java.lang.String submittedBy, @Nullable FormattedRate rate, @Nullable java.time.LocalDate startDate, @Nullable java.time.LocalDate endDate, @Nullable FormattedAmount principalAmount, @Nullable FormattedAmount interestAmount, @Nullable FormattedAmount principalPlusInterestAmount, @Nullable java.lang.String currency, @Nullable java.lang.String paymentFrequency, @Nullable java.lang.Boolean shariaTrade)
Adds the Action field to your display-fields configuration. Any Nullable parameters that are null, will not be displayed- Parameters:
tradeId
- The Trade ID, e.g. "75e4073d040f"account
- The account descriptionexecutionDateTime
- The date and time of the trade, e.g. "12/07/2022 10:21:46"depositType
- The Deposit type, e.g. TERM-DEPOSITsubmittedBy
- The user that submitted the trade, e.g. "Autotrader"rate
- The rate valuestartDate
- The Start date.endDate
- The End date.principalAmount
- The amount of the tradeinterestAmount
- The interest amountprincipalPlusInterestAmount
- The total of principal amount plus the interest amountcurrency
- The base and term currency e.g. GBPUSDpaymentFrequency
- The frequency e.g. Zero-CouponshariaTrade
- The flag stating if the trade is a Sharia trade
-
addDefaultMMCallSummaryDisplayFields
public static DisplayFields addDefaultMMCallSummaryDisplayFields(@Nullable java.lang.String tradeId, @Nullable java.lang.String account, @NotNull @NotNull java.time.Instant executionDateTime, @Nullable java.lang.String depositType, @Nullable java.lang.String submittedBy, @Nullable FormattedAmount principalAmount, @Nullable java.lang.String currency, @Nullable java.time.LocalDate valueDate, @Nullable java.lang.String action, @Nullable java.lang.String callAccount, @Nullable java.lang.Boolean shariaTrade)
Adds the Action field to your display-fields configuration. Any Nullable parameters that are null, will not be displayed- Parameters:
tradeId
- The Trade ID, e.g. "75e4073d040f"account
- The account descriptionexecutionDateTime
- The date and time of the trade, e.g. "12/07/2022 10:21:46"depositType
- The Deposit type, e.g. TERM-DEPOSITsubmittedBy
- The user that submitted the trade, e.g. "Autotrader"principalAmount
- The amount of the tradecurrency
- The base and term currency e.g. GBPUSDvalueDate
- The Value Dateaction
- The action e.g. DepositcallAccount
- The call account descriptionshariaTrade
- The flag stating if the trade is a Sharia trade
-
addDefaultMMFlexiDepositSummaryDisplayFields
public static DisplayFields addDefaultMMFlexiDepositSummaryDisplayFields(@Nullable java.lang.String tradeId, @Nullable java.lang.String account, @NotNull @NotNull java.time.Instant executionDateTime, @Nullable java.lang.String submittedBy, @Nullable java.lang.String currency, @Nullable FormattedAmount principalAmount, @Nullable FormattedRate rate, @Nullable java.time.LocalDate startDate, @Nullable TextOrToken noticePeriod)
Adds the Action field to your display-fields configuration. Any Nullable parameters that are null, will not be displayed- Parameters:
tradeId
- The Trade ID, e.g. "75e4073d040f"account
- The account descriptionexecutionDateTime
- The date and time of the trade, e.g. "12/07/2022 10:21:46"submittedBy
- The user that submitted the trade, e.g. "Autotrader"currency
- The base and term currency e.g. GBPUSDprincipalAmount
- The amount of the traderate
- The Rate valuestartDate
- The Start date.noticePeriod
- The notice period e.g. 30 Days
-
-