Caplin FXIntegrationAPI Documentation - Version 6.2.0
Message Builder Example - TradePaymentsFields
package com.caplin.examples.fxapi.generated.motif.fx.tradepayments.TradePaymentsPartsDef;
import java.math.BigInteger;
import com.caplin.generated.motif.fx.settlementinstructions.SettlementInstructionsPartsDef;
import com.caplin.generated.motif.fx.tradepayments.TradePaymentsPartsDef;
public class TradePaymentsFieldsExample {
public static void main(String[] args) {
TradePaymentsPartsDef.TradePaymentsFields tradePaymentsFields =
TradePaymentsPartsDef.TradePaymentsFields
.newBuilder()
.setBuyAmount(BigDecimal.valueOf(12412891.31))
.setBuyCurrency("GBP")
.setBuyNostroName("")
.setBuyPaymentID("")
.setBuySettlementDisplayName("")
.setBuySettlementId("")
.setBuySettlementInstructionType("")
.setNostroAccountFields(
SettlementInstructionsPartsDef.NostroAccount
.newBuilder()
.setNostroAccount("AE770090004000824676500")
.setNostroBIC("ARABAEADABC")
.setNostroName("GBP Nostro Account.")
.build())
.setSellAmount(BigDecimal.valueOf(12412891.31))
.setSellCurrency("USD")
.setSellNostroName("")
.setSellPaymentID("")
.setSellSettlementDisplayName("")
.setSellSettlementId("")
.setSellSettlementInstructionType("")
.setTradeID("00001561")
.build();
}
}