Class TradeConfPartsDef.CommonTradeConfirmationFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.mm.tradeconfirmation.TradeConfPartsDef.CommonTradeConfirmationFields.Builder
-
- Enclosing class:
- TradeConfPartsDef.CommonTradeConfirmationFields
public static final class TradeConfPartsDef.CommonTradeConfirmationFields.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setTOBOUser
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setTOBOUser(@NotNull @NotNull java.lang.String tOBOUser)
- Returns:
- The client who the trade is for.
-
setTraderUsername
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setTraderUsername(@NotNull @NotNull java.lang.String traderUsername)
- Returns:
- The name of the trader providing the price to the user, or NO_TRADER if there is none.
-
setAccount
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setAccount(@NotNull @NotNull java.lang.String account)
- Returns:
- The used account for the trade.
-
setCurrency
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setCurrency(@NotNull @NotNull java.lang.String currency)
- Returns:
- The currency in which the trade is made.
-
setMaturityDate
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setMaturityDate(@NotNull @NotNull java.time.LocalDate maturityDate)
- Returns:
- The maturity date of the trade.
-
setMaturityDate
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setMaturityDate(@NotNull @NotNull java.lang.String maturityDate)
- Returns:
- The maturity date of the trade.
-
setStartDate
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setStartDate(@NotNull @NotNull java.time.LocalDate startDate)
- Returns:
- The start date of the trade.
-
setStartDate
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setStartDate(@NotNull @NotNull java.lang.String startDate)
- Returns:
- The start date of the trade.
-
setTradeID
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setTradeID(@NotNull @NotNull java.lang.String tradeID)
- Returns:
- The unique id identifying the trade.
-
setPrincipalAmount
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setPrincipalAmount(@NotNull @NotNull java.math.BigDecimal principalAmount)
- Returns:
- Principal amount for the trade specified in the provided Currency.
-
setPrincipalAmount
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setPrincipalAmount(@NotNull @NotNull java.lang.String principalAmount)
- Returns:
- Principal amount for the trade specified in the provided Currency.
-
setInterestRate
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setInterestRate(@NotNull @NotNull java.math.BigDecimal interestRate)
- Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestRate
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setInterestRate(@NotNull @NotNull java.lang.String interestRate)
- Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestAmount
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setInterestAmount(@NotNull @NotNull java.math.BigDecimal interestAmount)
- Returns:
- Interest amount (specified in the provided Currency) calculated from the interest rate and principal amount.
-
setInterestAmount
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setInterestAmount(@NotNull @NotNull java.lang.String interestAmount)
- Returns:
- Interest amount (specified in the provided Currency) calculated from the interest rate and principal amount.
-
setPrincipalPlusInterest
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setPrincipalPlusInterest(@NotNull @NotNull java.math.BigDecimal principalPlusInterest)
- Returns:
- Composite amount between principal amount and interest amount.
-
setPrincipalPlusInterest
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setPrincipalPlusInterest(@NotNull @NotNull java.lang.String principalPlusInterest)
- Returns:
- Composite amount between principal amount and interest amount.
-
setAllocationMode
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setAllocationMode(@NotNull @NotNull java.lang.String allocationMode)
- Returns:
- Determines whether the amount will be alLocated to a single or multiple accounts. Supported types are [SINGLE, MULTIPLE] and is defaulted to SINGLE.
-
setNumberOfDays
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setNumberOfDays(@NotNull @NotNull java.lang.String numberOfDays)
- Returns:
- The number of days between the start and maturity dates.
-
setExecutionDateTime
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setExecutionDateTime(@NotNull @NotNull java.lang.String executionDateTime)
- Parameters:
executionDateTime
- e.g. 20160322123621- Returns:
- executionDateTime
-
setEntityId
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setEntityId(@NotNull @NotNull java.lang.String entityId)
- Parameters:
entityId
- e.g. CUSTONE- 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.
-
setEntityDescription
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setEntityDescription(@NotNull @NotNull java.lang.String entityDescription)
- Parameters:
entityDescription
- e.g. Customer 1- Returns:
- The description of a trade on behalf of entity.
-
setTradeDate
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setTradeDate(@NotNull @NotNull java.lang.String tradeDate)
- Parameters:
tradeDate
- e.g. 20160314- Returns:
- tradeDate
-
setTradingType
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setTradingType(@NotNull @NotNull java.lang.String tradingType)
- Returns:
- The type of the trade. Supported types are [LOAN, DEPOSIT].
-
setQuoteID
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setQuoteID(@NotNull @NotNull java.lang.String quoteID)
- Returns:
- Unique id for a quote, used to determine which quote has been used for trade execution.
-
setQuoteDateTime
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setQuoteDateTime(@NotNull @NotNull java.lang.String quoteDateTime)
- Parameters:
quoteDateTime
- e.g. 20160314013000- Returns:
- quoteDateTime
-
setCanAffirm
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setCanAffirm(boolean canAffirm)
- Returns:
- Ability to Affirm the Trade Details are as agreed.
-
setCanAffirm
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setCanAffirm(@NotNull @NotNull java.lang.String canAffirm)
- Returns:
- Ability to Affirm the Trade Details are as agreed.
-
-