Caplin FXIntegrationAPI Documentation - Version 8.5.0
Message Builder Example - DrawdownConfirmation
package com.caplin.examples.fxapi.generated.motif.fx.drawdown.DrawdownTypeDef;
import java.math.BigInteger;
import com.caplin.generated.motif.fx.drawdown.DrawdownPartsDef;
import com.caplin.generated.motif.fx.drawdown.DrawdownTypeDef;
public class DrawdownConfirmationExample {
public static void main(String[] args) {
DrawdownTypeDef.DrawdownConfirmation drawdownConfirmation =
DrawdownTypeDef.DrawdownConfirmation
.newBuilder()
.addLegFields(
DrawdownPartsDef.DrawdownConfirmationLegFields
.newBuilder()
.setAmount("0")
.setContraAmount("500")
.setSettlementDate("")
.build())
.setCurrencyPair("")
.setDealtCurrency("GBP")
.setRemainingAmount(BigDecimal.valueOf(500))
.build();
}
}