Class QuotePartsDef.SalesCommonFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.mm.rates.QuotePartsDef.SalesCommonFields.Builder
-
- Enclosing class:
- QuotePartsDef.SalesCommonFields
public static final class QuotePartsDef.SalesCommonFields.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull QuotePartsDef.SalesCommonFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setTraderInterestRate
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setTraderInterestRate(@NotNull @NotNull java.math.BigDecimal traderInterestRate)
- Returns:
- Interest rate on the given PrincipalAmount with no client margin applied to it.
-
setTraderInterestRate
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setTraderInterestRate(@NotNull @NotNull java.lang.String traderInterestRate)
- Returns:
- Interest rate on the given PrincipalAmount with no client margin applied to it.
-
setInterestMargin
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setInterestMargin(@NotNull @NotNull java.math.BigDecimal interestMargin)
- Returns:
- Interest margin on the given InterestRate.
-
setInterestMargin
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setInterestMargin(@NotNull @NotNull java.lang.String interestMargin)
- Returns:
- Interest margin on the given InterestRate.
-
setProfitCurrency
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitCurrency(@NotNull @NotNull java.lang.String profitCurrency)
- Parameters:
profitCurrency
- e.g. USD- Returns:
- The profit currency that the ProfitRate is being provided for.
-
setProfitCurrencyDPS
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitCurrencyDPS(int profitCurrencyDPS)
- Parameters:
profitCurrencyDPS
- e.g. 2- Returns:
- The number of decimal places that should be used for formatting the amount in profit currency field.
-
setProfitCurrencyDPS
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitCurrencyDPS(@NotNull @NotNull java.lang.String profitCurrencyDPS)
- Parameters:
profitCurrencyDPS
- e.g. 2- Returns:
- The number of decimal places that should be used for formatting the amount in profit currency field.
-
setProfitIsHouse
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitIsHouse(boolean profitIsHouse)
- Returns:
- Whether the field ProfitCurrency is the system/house currency or not.
-
setProfitIsHouse
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitIsHouse(@NotNull @NotNull java.lang.String profitIsHouse)
- Returns:
- Whether the field ProfitCurrency is the system/house currency or not.
-
setProfitRate
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitRate(@NotNull @NotNull java.math.BigDecimal profitRate)
- Returns:
- The conversion rate between the contra currency and the profit currency. This can be used for entering profit in an amount of settlement currency.
-
setProfitRate
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitRate(@NotNull @NotNull java.lang.String profitRate)
- Returns:
- The conversion rate between the contra currency and the profit currency. This can be used for entering profit in an amount of settlement currency.
-
setReasons
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setReasons(@NotNull @NotNull java.lang.String reasons)
- Parameters:
reasons
- e.g. method={'import':'static com.caplin.motif.mm.config.DefaultDisplayFields.addDefaultReasonsHeaderDisplayFields','name':'addDefaultReasonsHeaderDisplayFields','comment':'See DefaultDisplayFields javadoc for parameters and available builder methods.'}- Returns:
- A JSON structure containing all the reasons and information about why the trade requires intervention. Use DefaultDisplayFields builders to provide Caplin default and/or custom fields.
-
setReasons
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setReasons(@NotNull @NotNull DisplayFields reasons)
- Parameters:
reasons
- e.g. method={'import':'static com.caplin.motif.mm.config.DefaultDisplayFields.addDefaultReasonsHeaderDisplayFields','name':'addDefaultReasonsHeaderDisplayFields','comment':'See DefaultDisplayFields javadoc for parameters and available builder methods.'}- Returns:
- A JSON structure containing all the reasons and information about why the trade requires intervention. Use DefaultDisplayFields builders to provide Caplin default and/or custom fields.
-
setIsShariaTrade
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setIsShariaTrade(boolean isShariaTrade)
- Parameters:
isShariaTrade
- e.g. true- Returns:
- Indicates whether the trade is a Sharia trade
-
setIsShariaTrade
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setIsShariaTrade(@NotNull @NotNull java.lang.String isShariaTrade)
- Parameters:
isShariaTrade
- e.g. true- Returns:
- Indicates whether the trade is a Sharia trade
-
setDisplayFields
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setDisplayFields(@NotNull @NotNull java.lang.String displayFields)
- Parameters:
displayFields
- e.g. method={'import':'static com.caplin.motif.mm.config.DefaultDisplayFields.addDefaultMMTermSummaryDisplayFields','name':'addDefaultMMTermSummaryDisplayFields','comment':'See DefaultDisplayFields javadoc for parameters and available builder methods.'}- Returns:
- Configuration for a frontend to display label-value pairs. Use DefaultDisplayFields builders to provide Caplin default and/or custom fields.
-
setDisplayFields
@NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setDisplayFields(@NotNull @NotNull DisplayFields displayFields)
- Parameters:
displayFields
- e.g. method={'import':'static com.caplin.motif.mm.config.DefaultDisplayFields.addDefaultMMTermSummaryDisplayFields','name':'addDefaultMMTermSummaryDisplayFields','comment':'See DefaultDisplayFields javadoc for parameters and available builder methods.'}- Returns:
- Configuration for a frontend to display label-value pairs. Use DefaultDisplayFields builders to provide Caplin default and/or custom fields.
-
-