Class TradePaymentsPartsDef.TradePaymentsFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.tradepayments.TradePaymentsPartsDef.TradePaymentsFields.Builder
-
- Enclosing class:
- TradePaymentsPartsDef.TradePaymentsFields
public static final class TradePaymentsPartsDef.TradePaymentsFields.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setTradeID
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setTradeID(@NotNull @NotNull java.lang.String tradeID)
- Parameters:
tradeID
- e.g. 00001561- Returns:
- A unique identifier for this trade
-
setBuyPaymentID
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setBuyPaymentID(@NotNull @NotNull java.lang.String buyPaymentID)
- Returns:
- The unique ID of a buy side's payment the client wants to net
-
setSellPaymentID
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setSellPaymentID(@NotNull @NotNull java.lang.String sellPaymentID)
- Returns:
- The unique ID of a sell side's payment the client wants to net
-
setBuyCurrency
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setBuyCurrency(@NotNull @NotNull java.lang.String buyCurrency)
- Parameters:
buyCurrency
- e.g. GBP- Returns:
- The currency of the buy side of a trade or order.
-
setSellCurrency
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setSellCurrency(@NotNull @NotNull java.lang.String sellCurrency)
- Parameters:
sellCurrency
- e.g. USD- Returns:
- The currency of the sell side of a trade or order.
-
setBuyAmount
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setBuyAmount(@NotNull @NotNull java.math.BigDecimal buyAmount)
- Parameters:
buyAmount
- e.g. 12412891.31- Returns:
- The amount, specified in the BuyCurrency, of the buy side of a trade or order.
-
setBuyAmount
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setBuyAmount(@NotNull @NotNull java.lang.String buyAmount)
- Parameters:
buyAmount
- e.g. 12412891.31- Returns:
- The amount, specified in the BuyCurrency, of the buy side of a trade or order.
-
setSellAmount
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setSellAmount(@NotNull @NotNull java.math.BigDecimal sellAmount)
- Parameters:
sellAmount
- e.g. 12412891.31- Returns:
- The amount, specified in the SellCurrency, of the sell side of a trade or order
-
setSellAmount
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setSellAmount(@NotNull @NotNull java.lang.String sellAmount)
- Parameters:
sellAmount
- e.g. 12412891.31- Returns:
- The amount, specified in the SellCurrency, of the sell side of a trade or order
-
setBuyNostroName
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setBuyNostroName(@NotNull @NotNull java.lang.String buyNostroName)
- Returns:
- The name of the buy Nostro account
-
setSellNostroName
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setSellNostroName(@NotNull @NotNull java.lang.String sellNostroName)
- Returns:
- The name of the sell Nostro account
-
setBuySettlementId
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setBuySettlementId(@NotNull @NotNull java.lang.String buySettlementId)
- Returns:
- The settlement id of the buy side's payment
-
setSellSettlementId
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setSellSettlementId(@NotNull @NotNull java.lang.String sellSettlementId)
- Returns:
- The settlement id of the sell side's payment
-
setBuySettlementInstructionType
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setBuySettlementInstructionType(@NotNull @NotNull java.lang.String buySettlementInstructionType)
- Returns:
- The settlement instruction type of the buy side's payment
-
setSellSettlementInstructionType
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setSellSettlementInstructionType(@NotNull @NotNull java.lang.String sellSettlementInstructionType)
- Returns:
- The settlement instruction type of the sell side's payment
-
setBuySettlementDisplayName
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setBuySettlementDisplayName(@NotNull @NotNull java.lang.String buySettlementDisplayName)
- Returns:
- The settlement display name of the buy side's payment
-
setSellSettlementDisplayName
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setSellSettlementDisplayName(@NotNull @NotNull java.lang.String sellSettlementDisplayName)
- Returns:
- The settlement display name of the sell side's payment
-
setNostroAccountFields
@NotNull public @NotNull TradePaymentsPartsDef.TradePaymentsFields.Builder setNostroAccountFields(@NotNull SettlementInstructionsPartsDef.NostroAccount nostroAccountFields)
- Returns:
- nostroAccountFields
-
-