Class QuotePartsDef.AllocationLegFields.Builder
java.lang.Object
com.caplin.generated.motif.fx.rates.QuotePartsDef.AllocationLegFields.Builder
- Enclosing class:
- QuotePartsDef.AllocationLegFields
-
Method Summary
Modifier and TypeMethodDescription@NotNull QuotePartsDef.AllocationLegFieldsbuild()setAccount(@NotNull String account) setDisplayFields(@NotNull DisplayFields displayFields) setDisplayFields(@NotNull String displayFields) setEntityDescription(@NotNull String entityDescription) setEntityId(@NotNull String entityId) setFullName(@NotNull String fullName) setIsReprice(boolean isReprice) setIsReprice(@NotNull String isReprice) setMarkToMarket(@NotNull String markToMarket) setMarkToMarket(@NotNull BigDecimal markToMarket) setTOBOUser(@NotNull String tOBOUser) @NotNull StringtoString()
-
Method Details
-
addField
@NotNull public @NotNull QuotePartsDef.AllocationLegFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
setAccount
@NotNull public @NotNull QuotePartsDef.AllocationLegFields.Builder setAccount(@NotNull @NotNull String account) - Parameters:
account- e.g. Garfields|GARF- Returns:
- The account a trade or order has been submitted against. The format is <description>|<name> or <name>|<name>
-
setEntityId
@NotNull public @NotNull QuotePartsDef.AllocationLegFields.Builder setEntityId(@NotNull @NotNull 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 QuotePartsDef.AllocationLegFields.Builder setEntityDescription(@NotNull @NotNull String entityDescription) - Parameters:
entityDescription- e.g. Customer 1- Returns:
- The description of a trade on behalf of entity.
-
setTOBOUser
@NotNull public @NotNull QuotePartsDef.AllocationLegFields.Builder setTOBOUser(@NotNull @NotNull String tOBOUser) - Parameters:
tOBOUser- e.g. client@customer.co.za- Returns:
- The user the trade is on behalf of. For example, if the logged in user dealer1@novobank.co.za wishes to make a trade on behalf of user client@customer.co.za, then the value of this field will be client@customer.co.za.
-
setFullName
@NotNull public @NotNull QuotePartsDef.AllocationLegFields.Builder setFullName(@NotNull @NotNull String fullName) - Returns:
- The full name of the user the trade is on behalf of
-
setIsReprice
- Returns:
- Defines if the leg of an allocation needs to be repriced.
-
setIsReprice
@NotNull public @NotNull QuotePartsDef.AllocationLegFields.Builder setIsReprice(@NotNull @NotNull String isReprice) - Returns:
- Defines if the leg of an allocation needs to be repriced.
-
setMarkToMarket
@NotNull public @NotNull QuotePartsDef.AllocationLegFields.Builder setMarkToMarket(@NotNull @NotNull BigDecimal markToMarket) - Parameters:
markToMarket- e.g. 12.45- Returns:
- A signed numerical value which represents a positive or negative cashflow when rolling forward or back a new deal from the original deal
-
setMarkToMarket
@NotNull public @NotNull QuotePartsDef.AllocationLegFields.Builder setMarkToMarket(@NotNull @NotNull String markToMarket) - Parameters:
markToMarket- e.g. 12.45- Returns:
- A signed numerical value which represents a positive or negative cashflow when rolling forward or back a new deal from the original deal
-
setDisplayFields
@NotNull public @NotNull QuotePartsDef.AllocationLegFields.Builder setDisplayFields(@NotNull @NotNull String displayFields) - Parameters:
displayFields- e.g. method={'import':'static com.caplin.motif.fx.config.DefaultDisplayFields.addDefaultSalesAllocationDetailsUpdateFields','name':'addDefaultSalesAllocationDetailsUpdateFields','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.AllocationLegFields.Builder setDisplayFields(@NotNull @NotNull DisplayFields displayFields) - Parameters:
displayFields- e.g. method={'import':'static com.caplin.motif.fx.config.DefaultDisplayFields.addDefaultSalesAllocationDetailsUpdateFields','name':'addDefaultSalesAllocationDetailsUpdateFields','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.
-