public interface UsageUserApi extends KillbillApi
| Modifier and Type | Method and Description |
|---|---|
List<RolledUpUsage> |
getAllUsageForSubscription(UUID subscriptionId,
List<org.joda.time.LocalDate> transitionDates,
TenantContext context)
Get usage information for a given subscription.
|
RolledUpUsage |
getUsageForSubscription(UUID subscriptionId,
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)
usage - the usage for a given period of time associated with a subscriptioncontext - tenant contextRolledUpUsage getUsageForSubscription(UUID subscriptionId, 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 contextList<RolledUpUsage> getAllUsageForSubscription(UUID subscriptionId, List<org.joda.time.LocalDate> transitionDates, TenantContext context)
subscriptionId - subscription idcontext - tenant contextCopyright © 2010-2014. All Rights Reserved.