diff options
author | Harald Musum <musum@verizonmedia.com> | 2020-06-27 16:10:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-27 16:10:55 +0200 |
commit | e59bfa22dfc2d3448541c8eb443049fb9bb7002a (patch) | |
tree | c6f004c40420d299e3edfb3fe1c94f971f9af2bd /controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/BillingController.java | |
parent | 0a8b5894dfc442d661836fce4ddb6c870bcc0ec0 (diff) |
Revert "Add BillingApiHandler"
Diffstat (limited to 'controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/BillingController.java')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/BillingController.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/BillingController.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/BillingController.java deleted file mode 100644 index bd9568fe891..00000000000 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/BillingController.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.vespa.hosted.controller.api.integration.billing; - -import com.yahoo.config.provision.TenantName; -import com.yahoo.vespa.hosted.controller.api.identifiers.DeploymentId; - -import java.math.BigDecimal; -import java.time.LocalDate; -import java.time.ZonedDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - -public interface BillingController { - - PlanId getPlan(TenantName tenant); - - /** - * Returns true if plan was changed - */ - boolean setPlan(TenantName tenant, PlanId planId, boolean hasApplications); - - Invoice.Id createInvoiceForPeriod(TenantName tenant, ZonedDateTime startTime, ZonedDateTime endTime, String agent); - - Invoice createUncommittedInvoice(TenantName tenant, LocalDate until); - - Map<TenantName, Invoice> createUncommittedInvoices(LocalDate until); - - List<Invoice.LineItem> getUnusedLineItems(TenantName tenant); - - Optional<PaymentInstrument> getDefaultInstrument(TenantName tenant); - - String createClientToken(String tenant, String userId); - - boolean deleteInstrument(TenantName tenant, String userId, String instrumentId); - - void updateInvoiceStatus(Invoice.Id invoiceId, String agent, String status); - - void addLineItem(TenantName tenant, String description, BigDecimal amount, String agent); - - void deleteLineItem(String lineItemId); - - boolean setActivePaymentInstrument(InstrumentOwner paymentInstrument); - - InstrumentList listInstruments(TenantName tenant, String userId); - - List<Invoice> getInvoices(TenantName tenant); - -}
\ No newline at end of file |