/** * Adds a new monetary value of the transaction price. * * @param money monetary value of the transaction price */ public void addMoney(Money money) { getMoney().add(money); }
/** * Returns the monetary value of the transaction price. * * @return monetary value of the transaction price */ public List<Money> getMoney() { return getRepeatingExtension(Money.class); }
/** * Returns whether it has the monetary value of the transaction price. * * @return whether it has the monetary value of the transaction price */ public boolean hasMoney() { return hasRepeatingExtension(Money.class); }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(TransactionData.class)) { return; } extProfile.declare(TransactionData.class, Commission.class); new Commission().declareExtensions(extProfile); extProfile.declare(TransactionData.class, Price.class); new Price().declareExtensions(extProfile); }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(TransactionData.class)) { return; } extProfile.declare(TransactionData.class, Commission.class); new Commission().declareExtensions(extProfile); extProfile.declare(TransactionData.class, Price.class); new Price().declareExtensions(extProfile); }
/** * Returns the monetary value of the transaction price. * * @return monetary value of the transaction price */ public List<Money> getMoney() { return getRepeatingExtension(Money.class); }
/** * Adds a new monetary value of the transaction price. * * @param money monetary value of the transaction price */ public void addMoney(Money money) { getMoney().add(money); }
/** * Returns whether it has the monetary value of the transaction price. * * @return whether it has the monetary value of the transaction price */ public boolean hasMoney() { return hasRepeatingExtension(Money.class); }