Package org.killbill.billing.usage.api
Interface UsageUserApi
-
- All Superinterfaces:
KillbillApi
public interface UsageUserApi extends KillbillApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<RolledUpUsage>getAllUsageForSubscription(UUID subscriptionId, List<org.joda.time.DateTime> transitionDates, Iterable<PluginProperty> properties, TenantContext context)Get usage information for a given subscription.RolledUpUsagegetUsageForSubscription(UUID subscriptionId, String unitType, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, Iterable<PluginProperty> properties, TenantContext context)Get usage information for a given subscription.voidrecordRolledUpUsage(SubscriptionUsageRecord usage, CallContext context)Bulk usage API when the external system (or the meter module) rolls-up usage data.
-
-
-
Method Detail
-
recordRolledUpUsage
void recordRolledUpUsage(SubscriptionUsageRecord usage, CallContext context) throws UsageApiException
Bulk usage API when the external system (or the meter module) rolls-up usage data.- Parameters:
usage- the usage for a given period of time associated with a subscriptioncontext- tenant context- Throws:
UsageApiException
-
getUsageForSubscription
RolledUpUsage getUsageForSubscription(UUID subscriptionId, String unitType, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, Iterable<PluginProperty> properties, TenantContext context)
Get usage information for a given subscription.- Parameters:
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)properties- plugin specific propertiescontext- tenant context- Returns:
- usage data (rolled-up)
-
getAllUsageForSubscription
List<RolledUpUsage> getAllUsageForSubscription(UUID subscriptionId, List<org.joda.time.DateTime> transitionDates, Iterable<PluginProperty> properties, TenantContext context)
Get usage information for a given subscription.- Parameters:
subscriptionId- subscription idproperties- plugin specific propertiescontext- tenant context- Returns:
- usage data (rolled-up)
-
-