Caplin FXIntegrationAPI Documentation - Version 8.4.0

Message Builder Example - AllocationLegTradeConfirmationFields

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

import java.math.BigInteger;
import static com.caplin.motif.fx.config.DefaultDisplayFields.addDefaultSalesAllocationDetailsUpdateFields;

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

public class AllocationLegTradeConfirmationFieldsExample {
    public static void main(String[] args) {
                    		
		TradeConfPartsDef.AllocationLegTradeConfirmationFields allocationLegTradeConfirmationFields =
		TradeConfPartsDef.AllocationLegTradeConfirmationFields
			.newBuilder()
			.setDisplayFields(addDefaultSalesAllocationDetailsUpdateFields(/* See DefaultDisplayFields javadoc for parameters and available builder methods. */))
			.setMarkToMarket(BigDecimal.valueOf(12.45))
			.build();
            
    }
}