Class InvoiceUtility

java.lang.Object
com.morpheusdata.core.util.InvoiceUtility

public class InvoiceUtility extends Object
  • Constructor Details

    • InvoiceUtility

      public InvoiceUtility()
  • Method Details

    • getCurrentPeriodString

      public static String getCurrentPeriodString()
    • getPeriodString

      public static String getPeriodString(Date costDate)
    • getPeriodStartDate

      public static Date getPeriodStartDate(String periodString)
    • getPeriodStart

      public static Date getPeriodStart(Date date)
    • getPeriodEnd

      public static Date getPeriodEnd(Date date)
    • checkDateCheckHash

      public static Boolean checkDateCheckHash(Date billingStartDate, Date lineItemDate, String existingHash) throws org.apache.commons.codec.DecoderException
      Throws:
      org.apache.commons.codec.DecoderException
    • updateDateCheckHash

      public static String updateDateCheckHash(Date billingStartDate, Date lineItemDate, String existingHash) throws org.apache.commons.codec.DecoderException
      Throws:
      org.apache.commons.codec.DecoderException
    • configureResourceInvoice

      public static void configureResourceInvoice(AccountInvoice invoice, Cloud cloud, Account account, Long refId, String refType, String refName, String refUUID, String resourceExternalId)
    • configureResourceInvoice

      public static void configureResourceInvoice(AccountInvoice invoice, Cloud cloud, AccountResource resource)
    • configureServerInvoice

      public static void configureServerInvoice(AccountInvoice invoice, Cloud cloud, ComputeServer server)
    • configureVolumeInvoice

      public static void configureVolumeInvoice(AccountInvoice invoice, Cloud cloud, StorageVolume volume)
    • configureLoadBalancerInvoice

      public static void configureLoadBalancerInvoice(AccountInvoice invoice, Cloud cloud, NetworkLoadBalancer loadBalancer)
    • configureWorkloadInvoice

      public static void configureWorkloadInvoice(AccountInvoice invoice, Cloud cloud, Workload workload)
    • configureInstanceInvoice

      public static void configureInstanceInvoice(AccountInvoice invoice, Cloud cloud, Instance instance)
    • configureCloudInvoice

      public static void configureCloudInvoice(AccountInvoice invoice, Cloud cloud, ComputeSite site)