Interface BillingController

    • Method Detail

      • getPlan

        PlanId getPlan​(com.yahoo.config.provision.TenantName tenant)
      • getQuota

        java.util.Optional<Quota> getQuota​(com.yahoo.config.provision.TenantName tenant,
                                           com.yahoo.config.provision.Environment environment)
      • setPlan

        PlanResult setPlan​(com.yahoo.config.provision.TenantName tenant,
                           PlanId planId,
                           boolean hasDeployments)
        Returns:
        String containing error message if something went wrong. Empty otherwise
      • createInvoiceForPeriod

        Invoice.Id createInvoiceForPeriod​(com.yahoo.config.provision.TenantName tenant,
                                          java.time.ZonedDateTime startTime,
                                          java.time.ZonedDateTime endTime,
                                          java.lang.String agent)
      • createUncommittedInvoice

        Invoice createUncommittedInvoice​(com.yahoo.config.provision.TenantName tenant,
                                         java.time.LocalDate until)
      • createUncommittedInvoices

        java.util.Map<com.yahoo.config.provision.TenantName,​Invoice> createUncommittedInvoices​(java.time.LocalDate until)
      • getUnusedLineItems

        java.util.List<Invoice.LineItem> getUnusedLineItems​(com.yahoo.config.provision.TenantName tenant)
      • getDefaultInstrument

        java.util.Optional<PaymentInstrument> getDefaultInstrument​(com.yahoo.config.provision.TenantName tenant)
      • createClientToken

        java.lang.String createClientToken​(java.lang.String tenant,
                                           java.lang.String userId)
      • deleteInstrument

        boolean deleteInstrument​(com.yahoo.config.provision.TenantName tenant,
                                 java.lang.String userId,
                                 java.lang.String instrumentId)
      • updateInvoiceStatus

        void updateInvoiceStatus​(Invoice.Id invoiceId,
                                 java.lang.String agent,
                                 java.lang.String status)
      • addLineItem

        void addLineItem​(com.yahoo.config.provision.TenantName tenant,
                         java.lang.String description,
                         java.math.BigDecimal amount,
                         java.lang.String agent)
      • deleteLineItem

        void deleteLineItem​(java.lang.String lineItemId)
      • setActivePaymentInstrument

        boolean setActivePaymentInstrument​(InstrumentOwner paymentInstrument)
      • listInstruments

        InstrumentList listInstruments​(com.yahoo.config.provision.TenantName tenant,
                                       java.lang.String userId)
      • getInvoices

        java.util.List<Invoice> getInvoices​(com.yahoo.config.provision.TenantName tenant)
      • deleteBillingInfo

        void deleteBillingInfo​(com.yahoo.config.provision.TenantName tenant,
                               java.util.Set<User> users,
                               boolean isPrivileged)