All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.vespa.hosted.controller.api.integration.billing.ModifiableInvoiceUpdate Maven / Gradle / Ivy

There is a newer version: 8.253.3
Show newest version
package com.yahoo.vespa.hosted.controller.api.integration.billing;

/**
 * @author gjoranv
 */
public class ModifiableInvoiceUpdate extends InvoiceUpdate {

    public ModifiableInvoiceUpdate(Bill.Id billId, ItemsUpdate itemsUpdate) {
        super(billId, itemsUpdate);
    }

    public ItemsUpdate itemsUpdate() {
        return itemsUpdate;
    }

    public boolean isEmpty() {
        return itemsUpdate.isEmpty();
    }

    public static ModifiableInvoiceUpdate of(Bill.Id billId, int itemsAdded, int itemsRemoved, int itemsModified) {
        return new ModifiableInvoiceUpdate(billId, new ItemsUpdate(itemsAdded, itemsRemoved, itemsModified));
    }

    @Override
    public boolean equals(Object o) {
        return super.equals(o);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy