Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.72 KB

DisbursementInstruction.md

File metadata and controls

37 lines (28 loc) · 1.72 KB

DisbursementInstruction

oneOf schemas

Example

// Import classes:
import com.fireblocks.sdk.model.DisbursementInstruction;
import com.fireblocks.sdk.model.DisbursementAmountInstruction;
import com.fireblocks.sdk.model.DisbursementPercentageInstruction;

public class Example {
    public static void main(String[] args) {
        DisbursementInstruction exampleDisbursementInstruction = new DisbursementInstruction();

        // create a new DisbursementAmountInstruction
        DisbursementAmountInstruction exampleDisbursementAmountInstruction = new DisbursementAmountInstruction();
        // set DisbursementInstruction to DisbursementAmountInstruction
        exampleDisbursementInstruction.setActualInstance(exampleDisbursementAmountInstruction);
        // to get back the DisbursementAmountInstruction set earlier
        DisbursementAmountInstruction testDisbursementAmountInstruction = (DisbursementAmountInstruction) exampleDisbursementInstruction.getActualInstance();

        // create a new DisbursementPercentageInstruction
        DisbursementPercentageInstruction exampleDisbursementPercentageInstruction = new DisbursementPercentageInstruction();
        // set DisbursementInstruction to DisbursementPercentageInstruction
        exampleDisbursementInstruction.setActualInstance(exampleDisbursementPercentageInstruction);
        // to get back the DisbursementPercentageInstruction set earlier
        DisbursementPercentageInstruction testDisbursementPercentageInstruction = (DisbursementPercentageInstruction) exampleDisbursementInstruction.getActualInstance();
    }
}