public interface UsageUserApi extends KillbillApi
| Modifier and Type | Method and Description |
|---|---|
java.util.List<RolledUpUsage> |
getAllUsageForSubscription(java.util.UUID subscriptionId,
java.util.List<org.joda.time.LocalDate> transitionDates,
TenantContext context)
Get usage information for a given subscription.
|
RolledUpUsage |
getUsageForSubscription(java.util.UUID subscriptionId,
java.lang.String unitType,
org.joda.time.LocalDate startDate,
org.joda.time.LocalDate endDate,
TenantContext context)
Get usage information for a given subscription.
|
void |
recordRolledUpUsage(SubscriptionUsageRecord usage,
CallContext context)
Bulk usage API when the external system (or the meter module) rolls-up usage data.
|
void recordRolledUpUsage(SubscriptionUsageRecord usage, CallContext context) throws UsageApiException
usage - the usage for a given period of time associated with a subscriptioncontext - tenant contextUsageApiExceptionRolledUpUsage getUsageForSubscription(java.util.UUID subscriptionId, java.lang.String unitType, org.joda.time.LocalDate startDate, org.joda.time.LocalDate endDate, TenantContext context)
subscriptionId - subscription idunitType - unit type for this usagestartDate - start date of the usage period (with respect to the account timezone)endDate - end date of the usage period (with respect to the account timezone)context - tenant contextjava.util.List<RolledUpUsage> getAllUsageForSubscription(java.util.UUID subscriptionId, java.util.List<org.joda.time.LocalDate> transitionDates, TenantContext context)
subscriptionId - subscription idcontext - tenant contextCopyright © 2010-2018. All Rights Reserved.