Caplin FXIntegrationAPI Documentation - Version 8.9.0

Message Builder Example - PostTradeFields

package com.caplin.examples.fxapi.generated.motif.mm.posttrade.PostTradePartsDef; 

import java.math.BigInteger;

import com.caplin.generated.motif.mm.posttrade.PostTradePartsDef;

public class PostTradeFieldsExample {
    public static void main(String[] args) {
                    		
		PostTradePartsDef.PostTradeFields postTradeFields =
		PostTradePartsDef.PostTradeFields
			.newBuilder()
			.setAccount("Garfields|GARF")
			.setCurrency("USD")
			.setIncreasedAmount(BigDecimal.valueOf(0.0))
			.setInterestRate("")
			.setInterestRateDPS(BigDecimal.valueOf(0.0))
			.setIsShariaTrade(true)
			.setMaturityDate(LocalDate.now())
			.setNoticePeriodDescription("")
			.setNumberOfDays("")
			.setOriginalAmount("")
			.setPrincipalAmount("")
			.setRolledAmount(BigDecimal.valueOf(0.0))
			.setStartDate(LocalDate.now())
			.setTOBOUser("client@customer.co.za")
			.setTradeID("00001561")
			.setTradingType("")
			.build();
            
    }
}