Caplin FXIntegrationAPI Documentation - Version 6.2.0

Message Builder Example - CommonTradeConfirmationFields

package com.caplin.examples.fxapi.generated.motif.mm.tradeconfirmation.TradeConfPartsDef; 

import java.math.BigInteger;

import com.caplin.generated.motif.mm.tradeconfirmation.TradeConfPartsDef;

public class CommonTradeConfirmationFieldsExample {
    public static void main(String[] args) {
                    		
		TradeConfPartsDef.CommonTradeConfirmationFields commonTradeConfirmationFields =
		TradeConfPartsDef.CommonTradeConfirmationFields
			.newBuilder()
			.setAccount("Garfields|GARF")
			.setAllocationMode("")
			.setCanAffirm(true)
			.setCurrency("USD")
			.setEntityDescription("Customer 1")
			.setEntityId("CUSTONE")
			.setExecutionDateTime("20160322123621")
			.setInterestAmount(BigDecimal.valueOf(0.0))
			.setInterestRate(BigDecimal.valueOf(0.0))
			.setMaturityDate("")
			.setNumberOfDays("")
			.setPrincipalAmount(BigDecimal.valueOf(0.0))
			.setPrincipalPlusInterest("")
			.setQuoteDateTime("")
			.setQuoteID("")
			.setStartDate("20150620")
			.setTOBOUser("client@customer.co.za")
			.setTradeDate("20160314")
			.setTradeID("00001561")
			.setTraderUsername("sales_trader@novobank.co.za")
			.setTradingType("")
			.build();
            
    }
}