Package com.morpheusdata.core.util
Class InvoiceUtility
java.lang.Object
com.morpheusdata.core.util.InvoiceUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Boolean
checkDateCheckHash
(Date billingStartDate, Date lineItemDate, String existingHash) static void
configureCloudInvoice
(AccountInvoice invoice, Cloud cloud, ComputeSite site) static void
configureInstanceInvoice
(AccountInvoice invoice, Cloud cloud, Instance instance) static void
configureLoadBalancerInvoice
(AccountInvoice invoice, Cloud cloud, NetworkLoadBalancer loadBalancer) static void
configureResourceInvoice
(AccountInvoice invoice, Cloud cloud, AccountResource resource) static void
configureResourceInvoice
(AccountInvoice invoice, Cloud cloud, Account account, Long refId, String refType, String refName, String refUUID, String resourceExternalId) static void
configureServerInvoice
(AccountInvoice invoice, Cloud cloud, ComputeServer server) static void
configureVolumeInvoice
(AccountInvoice invoice, Cloud cloud, StorageVolume volume) static void
configureWorkloadInvoice
(AccountInvoice invoice, Cloud cloud, Workload workload) static String
static Date
getPeriodEnd
(Date date) static Date
getPeriodStart
(Date date) static Date
getPeriodStartDate
(String periodString) static String
getPeriodString
(Date costDate) static String
updateDateCheckHash
(Date billingStartDate, Date lineItemDate, String existingHash)
-
Constructor Details
-
InvoiceUtility
public InvoiceUtility()
-
-
Method Details
-
getCurrentPeriodString
-
getPeriodString
-
getPeriodStartDate
-
getPeriodStart
-
getPeriodEnd
-
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
-
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
-
configureInstanceInvoice
-
configureCloudInvoice
-