invoice: Implement Invoice#addTrackingIds. See
@@ -99,6 +99,7 @@ public class DefaultInvoice extends EntityBase implements Invoice, Cloneable {
return new DefaultInvoicePayment(input);
}
}));
+ addTrackingIds(invoiceModelDao.getTrackingIds());
}
public DefaultInvoice(final InvoiceModelDao invoiceModelDao) {
@@ -165,6 +166,12 @@ public class DefaultInvoice extends EntityBase implements Invoice, Cloneable {
return trackingIds;
}
+ @Override
+ public boolean addTrackingIds(final Collection<String> trackingIds) {
+ this.trackingIds.addAll(trackingIds);
+ return true;
+ }
+
@Override
public <T extends InvoiceItem> List<InvoiceItem> getInvoiceItems(final Class<T> clazz) {
final List<InvoiceItem> results = new ArrayList<InvoiceItem>();
