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

com.yahoo.vespa.hosted.controller.api.integration.billing.FailedInvoiceUpdate 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 FailedInvoiceUpdate extends InvoiceUpdate {

    public enum Reason {
        UNMODIFIABLE,
        REMOVED
    }

    public final Reason reason;

    public FailedInvoiceUpdate(Bill.Id billId, Reason reason) {
        super(billId, ItemsUpdate.empty());
        this.reason = reason;
    }

    public static FailedInvoiceUpdate unmodifiable(Bill.Id billId) {
        return new FailedInvoiceUpdate(billId, Reason.UNMODIFIABLE);
    }

    public static FailedInvoiceUpdate removed(Bill.Id billId) {
        return new FailedInvoiceUpdate(billId, Reason.REMOVED);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy