Class SettlementInstructionsPartsDef.SettlementFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.settlementinstructions.SettlementInstructionsPartsDef.SettlementFields.Builder
-
- Enclosing class:
- SettlementInstructionsPartsDef.SettlementFields
public static final class SettlementInstructionsPartsDef.SettlementFields.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setSettlementId
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSettlementId(@NotNull @NotNull java.lang.String settlementId)
- Returns:
- The identifier for the trade.
-
setSettlementCurrency
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSettlementCurrency(@NotNull @NotNull java.lang.String settlementCurrency)
- Parameters:
settlementCurrency
- e.g. GBP- Returns:
- A currency for of settlement instruction
-
setSettlementAmount
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSettlementAmount(@NotNull @NotNull java.math.BigDecimal settlementAmount)
- Returns:
- The amount of a settlement
-
setSettlementAmount
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSettlementAmount(@NotNull @NotNull java.lang.String settlementAmount)
- Returns:
- The amount of a settlement
-
setSettlementDirection
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSettlementDirection(@NotNull @NotNull java.lang.String settlementDirection)
- Returns:
- The direction in which the settlement details refer to, supported directions are: PAY, RECEIVE, BOTH
-
setIsDefaultSettlementInstruction
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setIsDefaultSettlementInstruction(boolean isDefaultSettlementInstruction)
- Returns:
- Is this the default settlement instruction for this currency
-
setIsDefaultSettlementInstruction
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setIsDefaultSettlementInstruction(@NotNull @NotNull java.lang.String isDefaultSettlementInstruction)
- Returns:
- Is this the default settlement instruction for this currency
-
setSettlementInstructionType
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSettlementInstructionType(@NotNull @NotNull java.lang.String settlementInstructionType)
- Parameters:
settlementInstructionType
- e.g. EXISTING- Returns:
- The type of settlement instruction attached to a trade. Supported types are [EXISTING, ADHOC, NONE]
-
setSettlementDisplayName
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSettlementDisplayName(@NotNull @NotNull java.lang.String settlementDisplayName)
- Parameters:
settlementDisplayName
- e.g. [CCY] Account 1- Returns:
- The name of the settlement instruction. This field can be omitted.
-
setSettlementStatus
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSettlementStatus(@NotNull @NotNull java.lang.String settlementStatus)
- Returns:
- Caplin supported statuses are [PENDING, AFFIRMED, CONFIRMED, DISPUTED, CANCELLED, REPLACED, AUTO_CONFIRMED, OVERDUE, REJECTED]
-
setBankAccount
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setBankAccount(@NotNull @NotNull java.lang.String bankAccount)
- Parameters:
bankAccount
- e.g. 12345678- Returns:
- The account number of the bank
-
setBankSwift
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setBankSwift(@NotNull @NotNull java.lang.String bankSwift)
- Parameters:
bankSwift
- e.g. CAP123- Returns:
- The BIC of the bank
-
setBankName
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setBankName(@NotNull @NotNull java.lang.String bankName)
- Parameters:
bankName
- e.g. Bank Of Caplin- Returns:
- The name of the bank
-
setBankAddress1
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setBankAddress1(@NotNull @NotNull java.lang.String bankAddress1)
- Parameters:
bankAddress1
- e.g. 12 Capitol- Returns:
- The first line of the bank's address
-
setBankAddress2
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setBankAddress2(@NotNull @NotNull java.lang.String bankAddress2)
- Parameters:
bankAddress2
- e.g. The City- Returns:
- The second line of the bank's address
-
setBankAddress3
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setBankAddress3(@NotNull @NotNull java.lang.String bankAddress3)
- Parameters:
bankAddress3
- e.g. London- Returns:
- The third line of the bank's address
-
setIndividualAccount
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setIndividualAccount(@NotNull @NotNull java.lang.String individualAccount)
- Parameters:
individualAccount
- e.g. 87654321- Returns:
- The account number of the recipient
-
setIndividualSwift
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setIndividualSwift(@NotNull @NotNull java.lang.String individualSwift)
- Parameters:
individualSwift
- e.g. SOLD987- Returns:
- The BIC of the recipient's account
-
setIndividualName
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setIndividualName(@NotNull @NotNull java.lang.String individualName)
- Parameters:
individualName
- e.g. Susan Sellers- Returns:
- The name of the payee or payee's bank
-
setIndividualAddress1
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setIndividualAddress1(@NotNull @NotNull java.lang.String individualAddress1)
- Parameters:
individualAddress1
- e.g. 98 Lane- Returns:
- The first line of the recipient
-
setIndividualAddress2
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setIndividualAddress2(@NotNull @NotNull java.lang.String individualAddress2)
- Parameters:
individualAddress2
- e.g. Manchester- Returns:
- The second line of the recipient
-
setNettingStatus
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setNettingStatus(@NotNull @NotNull java.lang.String nettingStatus)
- Parameters:
nettingStatus
- e.g. NETTED- Returns:
- The status that denotes the permanent netting state of a settlement. This is required to know which settlements have been netted and which have not
-
setSplitComponentId
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSplitComponentId(@NotNull @NotNull java.lang.String splitComponentId)
- Returns:
- The unique ID of a split component
-
setSettlementDetailsLine1
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSettlementDetailsLine1(@NotNull @NotNull java.lang.String settlementDetailsLine1)
- Returns:
- The first line of remittance information.
-
setSettlementDetailsLine2
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSettlementDetailsLine2(@NotNull @NotNull java.lang.String settlementDetailsLine2)
- Returns:
- The second line of remittance information.
-
setSettlementDetailsLine3
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSettlementDetailsLine3(@NotNull @NotNull java.lang.String settlementDetailsLine3)
- Returns:
- The third line of remittance information.
-
setSettlementDetailsLine4
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementFields.Builder setSettlementDetailsLine4(@NotNull @NotNull java.lang.String settlementDetailsLine4)
- Returns:
- The fourth line of remittance information.
-
-