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.
-
setEffectiveDate
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setEffectiveDate(@NotNull @NotNull java.time.LocalDate effectiveDate)
- Returns:
- The effective date of the trade.
-
setEffectiveDate
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setEffectiveDate(@NotNull @NotNull java.lang.String effectiveDate)
- Returns:
- The effective 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 alocated 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 effective and maturity dates.
-
-