Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.24 KB

File metadata and controls

39 lines (29 loc) · 1.24 KB

LegacyPolicyRuleAmount

Defines the value a transaction must exceed for the rule to apply to it (according to the amountCurrency field)

anyOf schemas

Example

// Import classes:
import com.fireblocks.sdk.model.LegacyPolicyRuleAmount;
import com.fireblocks.sdk.model.BigDecimal;
import com.fireblocks.sdk.model.String;

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

        // create a new BigDecimal
        BigDecimal exampleBigDecimal = new BigDecimal();
        // set LegacyPolicyRuleAmount to BigDecimal
        exampleLegacyPolicyRuleAmount.setActualInstance(exampleBigDecimal);
        // to get back the BigDecimal set earlier
        BigDecimal testBigDecimal = (BigDecimal) exampleLegacyPolicyRuleAmount.getActualInstance();

        // create a new String
        String exampleString = new String();
        // set LegacyPolicyRuleAmount to String
        exampleLegacyPolicyRuleAmount.setActualInstance(exampleString);
        // to get back the String set earlier
        String testString = (String) exampleLegacyPolicyRuleAmount.getActualInstance();
    }
}