Caplin FXIntegrationAPI Documentation - Version 6.2.0

Message Builder Example - CommonFields

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

import java.math.BigInteger;

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

public class CommonFieldsExample {
    public static void main(String[] args) {
                    		
		QuotePartsDef.CommonFields commonFields =
		QuotePartsDef.CommonFields
			.newBuilder()
			.setDepositInterestAmount(BigDecimal.valueOf(0.0))
			.setDepositInterestRate(BigDecimal.valueOf(0.0))
			.setDepositPrincipalPlusInterest("")
			.setDepositQuoteID("")
			.setLoanInterestAmount(BigDecimal.valueOf(0.0))
			.setLoanInterestRate(BigDecimal.valueOf(0.0))
			.setLoanPrincipalPlusInterest(BigDecimal.valueOf(0.0))
			.setLoanQuoteID("")
			.setOverallTimeout(0)
			.build();
            
    }
}