Package com.caplin.motif.mm.config
Class DefaultDisplayFields
java.lang.Object
com.caplin.motif.mm.config.DefaultDisplayFields
Static builder methods to build standard DisplayField items
-
Method Summary
Modifier and TypeMethodDescriptionstatic DisplayFields
addAccount
(DisplayFields displayFields, String account) Adds the Account field to your display-fields configurationstatic DisplayFields
addAction
(DisplayFields displayFields, String action) Adds the Action field to your display-fields configurationstatic DisplayFields
addAmount
(DisplayFields displayFields, FormattedAmount amount, String label) static DisplayFields
addCallAccount
(DisplayFields displayFields, String callAccount) Adds the Call Account field to your display-fields configurationstatic DisplayFields
addClient
(DisplayFields displayFields, String client) Adds the Client field to your display-fields configurationstatic DisplayFields
addCompetition
(DisplayFields displayFields, boolean competition) Adds the Competition field to your display-fields configurationstatic DisplayFields
addCurrency
(DisplayFields displayFields, String currency) Adds the Currency field to your display-fields configurationstatic DisplayFields
addDefaultMMCallSummaryDisplayFields
(String tradeId, String account, @NotNull Instant executionDateTime, String depositType, String submittedBy, FormattedAmount principalAmount, String currency, LocalDate valueDate, String action, String callAccount, Boolean shariaTrade) Adds the Action field to your display-fields configuration.static DisplayFields
addDefaultMMFlexiDepositSummaryDisplayFields
(String tradeId, String account, @NotNull Instant executionDateTime, String submittedBy, String currency, FormattedAmount principalAmount, FormattedRate rate, LocalDate startDate, TextOrToken noticePeriod) Adds the Action field to your display-fields configuration.static DisplayFields
addDefaultMMInterventionSummaryDisplayFields
(DisplayFields displayFields, String client, String user, String requester, String source, Boolean competition, String state) Adds the Action field to your display-fields configuration.static DisplayFields
addDefaultMMPostTradeSummaryDisplayFields
(String tradeId, String account, @NotNull Instant executionDateTime, String depositType, String submittedBy, FormattedRate rate, LocalDate startDate, LocalDate endDate, FormattedAmount remainingAmount, FormattedAmount originalAmount, FormattedAmount remainingInterestAmount, FormattedAmount remainingPlusInterestAmount, String currency, String paymentFrequency, Boolean shariaTrade, FormattedAmount fees) Adds the Action field to your display-fields configuration.static DisplayFields
addDefaultMMTermSummaryDisplayFields
(String tradeId, String account, @NotNull Instant executionDateTime, String depositType, String submittedBy, FormattedRate rate, LocalDate startDate, LocalDate endDate, FormattedAmount principalAmount, FormattedAmount interestAmount, FormattedAmount principalPlusInterestAmount, String currency, String paymentFrequency, Boolean shariaTrade, FormattedAmount fees) Adds the Action field to your display-fields configuration.static DisplayFields
addDefaultReasonsHeaderDisplayFields
(String tenor, String startDate) static DisplayFields
addDepositType
(DisplayFields DisplayFields, String depositType) Adds the Trade ID field to your display-fields configurationstatic DisplayFields
addEndDate
(DisplayFields displayFields, LocalDate endDate) Adds the End date field to your display-fields configurationstatic DisplayFields
addExecutionDateTime
(DisplayFields DisplayFields, 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, String paymentFrequency) Adds the PaymentFrequency field to your display-fields configurationstatic DisplayFields
addPaymentFrequency
(DisplayFields displayFields, 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
addReasonHeader
(DisplayFields displayFields, String tenor, String startDate) static DisplayFields
addRequester
(DisplayFields displayFields, String requester) Adds the Requester field to your display-fields configurationstatic DisplayFields
addShariaTrade
(DisplayFields displayFields, boolean shariaTrade) Adds the Sharia field to your display-fields configurationstatic DisplayFields
addSource
(DisplayFields displayFields, String source) Adds the Source field to your display-fields configurationstatic DisplayFields
addStartDate
(DisplayFields displayFields, LocalDate startDate) Adds the Start date field to your display-fields configurationstatic DisplayFields
addState
(DisplayFields displayFields, String tradeState) Adds the State field to your display-fields configurationstatic DisplayFields
addSubmittedBy
(DisplayFields displayFields, String user) Adds the Submitted by field to your display-fields configurationstatic DisplayFields
addTarget
(DisplayFields displayFields, String target) Adds the target field to your display-fields configurationstatic DisplayFields
addTradeID
(DisplayFields DisplayFields, String tradeID) Adds the Trade ID field to your display-fields configurationstatic DisplayFields
addUser
(DisplayFields displayFields, String user) Adds the User field to your display-fields configurationstatic DisplayFields
addValueDate
(DisplayFields displayFields, LocalDate valueDate) Adds a Value Date field to your display-fields configuration
-
Method Details
-
addValueDate
public static DisplayFields addValueDate(DisplayFields displayFields, @Nullable LocalDate valueDate) Adds a Value Date field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tovalueDate
- The Value Date
-
addAmount
public static DisplayFields addAmount(DisplayFields displayFields, @Nullable FormattedAmount amount, String label) -
addAccount
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 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
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
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"
-
addClient
Adds the Client field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field toclient
- The client that submitted the trade for intervention e.g. "Caplin"
-
addUser
Adds the User field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field touser
- The user that submitted the trade for intervention e.g. "joe@caplin.com"
-
addRequester
Adds the Requester field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field torequester
- The trader intervening the trade, e.g. "Autotrader"
-
addSource
Adds the Source field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tosource
- The source of the intervention e.g. SDP
-
addCompetition
Adds the Competition field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tocompetition
- Determines whether a quote request is in competition.
-
addState
Adds the State field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field totradeState
- The current state of the trade being intervened e.g. "Picked Up"
-
addStartDate
public static DisplayFields addStartDate(DisplayFields displayFields, @Nullable 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
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, 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
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
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
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, 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, 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
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
Adds the Action field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field toaction
- The action e.g. Deposit
-
addNoticePeriod
Adds the Notice period field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tonoticePeriod
- The notice period e.g. 32 Days
-
addTarget
Adds the target field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field totarget
- The target on which action has to be performed
-
addDefaultMMTermSummaryDisplayFields
public static DisplayFields addDefaultMMTermSummaryDisplayFields(@Nullable String tradeId, @Nullable String account, @NotNull @NotNull Instant executionDateTime, @Nullable String depositType, @Nullable String submittedBy, @Nullable FormattedRate rate, @Nullable LocalDate startDate, @Nullable LocalDate endDate, @Nullable FormattedAmount principalAmount, @Nullable FormattedAmount interestAmount, @Nullable FormattedAmount principalPlusInterestAmount, @Nullable String currency, @Nullable String paymentFrequency, @Nullable Boolean shariaTrade, @Nullable FormattedAmount fees) 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
-
addDefaultMMPostTradeSummaryDisplayFields
public static DisplayFields addDefaultMMPostTradeSummaryDisplayFields(@Nullable String tradeId, @Nullable String account, @NotNull @NotNull Instant executionDateTime, @Nullable String depositType, @Nullable String submittedBy, @Nullable FormattedRate rate, @Nullable LocalDate startDate, @Nullable LocalDate endDate, @Nullable FormattedAmount remainingAmount, @Nullable FormattedAmount originalAmount, @Nullable FormattedAmount remainingInterestAmount, @Nullable FormattedAmount remainingPlusInterestAmount, @Nullable String currency, @Nullable String paymentFrequency, @Nullable Boolean shariaTrade, @Nullable FormattedAmount fees) 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.remainingAmount
- The remaining amount of the tradeoriginalAmount
- The original amount of the traderemainingInterestAmount
- The interest amountremainingPlusInterestAmount
- 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
-
addDefaultMMInterventionSummaryDisplayFields
public static DisplayFields addDefaultMMInterventionSummaryDisplayFields(DisplayFields displayFields, @Nullable String client, @Nullable String user, @Nullable String requester, @Nullable String source, @Nullable Boolean competition, @Nullable String state) Adds the Action field to your display-fields configuration. Any Nullable parameters that are null, will not be displayed- Parameters:
client
- The account descriptionuser
- The user that submitted the trade, e.g. "joe@caplin.com"requester
- The user that submitted the intervention trade, e.g. "Autotrader"source
- The origin of the tradecompetition
- The flag stating whether the trade has competitionstate
- The state of the intervention trade e.g. "Picked Up"
-
addDefaultMMCallSummaryDisplayFields
public static DisplayFields addDefaultMMCallSummaryDisplayFields(@Nullable String tradeId, @Nullable String account, @NotNull @NotNull Instant executionDateTime, @Nullable String depositType, @Nullable String submittedBy, @Nullable FormattedAmount principalAmount, @Nullable String currency, @Nullable LocalDate valueDate, @Nullable String action, @Nullable String callAccount, @Nullable 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 String tradeId, @Nullable String account, @NotNull @NotNull Instant executionDateTime, @Nullable String submittedBy, @Nullable String currency, @Nullable FormattedAmount principalAmount, @Nullable FormattedRate rate, @Nullable 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. 32 Days
-
addReasonHeader
public static DisplayFields addReasonHeader(DisplayFields displayFields, @Nullable String tenor, @Nullable String startDate) -
addDefaultReasonsHeaderDisplayFields
public static DisplayFields addDefaultReasonsHeaderDisplayFields(@Nullable String tenor, @Nullable String startDate)
-