Caplin FXIntegrationAPI Documentation - Version 8.3.0

Message Builder Example - AllocationLegFields

package com.caplin.examples.fxapi.generated.motif.fx.rates.QuotePartsDef; 

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

import com.caplin.generated.motif.fx.rates.QuotePartsDef;

public class AllocationLegFieldsExample {
    public static void main(String[] args) {
                    		
		QuotePartsDef.AllocationLegFields allocationLegFields =
		QuotePartsDef.AllocationLegFields
			.newBuilder()
			.setAccount("Garfields|GARF")
			.setDisplayFields(addDefaultSalesAllocationDetailsUpdateFields(/* See DefaultDisplayFields javadoc for parameters and available builder methods. */))
			.setEntityDescription("Customer 1")
			.setEntityId("CUSTONE")
			.setFullName("")
			.setIsReprice("")
			.setMarkToMarket(BigDecimal.valueOf(12.45))
			.setTOBOUser("client@customer.co.za")
			.build();
            
    }
}