public class Usage extends BillingEntity
| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected String |
organizationID |
protected static ResourcePath |
resourcePath |
protected String |
sessiondID |
protected Date |
start |
protected Date |
stop |
protected String |
subscriptionID |
protected String |
uom |
protected Date |
updated |
protected long |
usageDuration |
protected int |
usagePeriod |
protected String |
usageType |
protected long |
usageValue |
m_client, PRETTY_PRINT_GSON| Modifier | Constructor and Description |
|---|---|
protected |
Usage() |
|
Usage(BillForwardClient client_) |
| Modifier and Type | Method and Description |
|---|---|
String |
getID() |
String |
getOrganizationID() |
protected ResourcePath |
getResourcePath() |
String |
getSessiondID() |
Date |
getStart() |
Date |
getStop() |
String |
getSubscriptionID() |
String |
getUom() |
Date |
getUpdated() |
long |
getUsageDuration() |
static Usage[] |
getUsageForSubscription(String subscriptionID_) |
static Usage[] |
getUsageForSubscriptionPeriod(String subscriptionID_,
int period_) |
int |
getUsagePeriod() |
UsageType |
getUsageType() |
String |
getUsageTypeAsString() |
long |
getUsageValue() |
protected static ResourcePath |
ResourcePath() |
getAll, getByID, getByID, getByIDPostPath, getClient, setClient, toStringprotected String id
protected String organizationID
protected String sessiondID
protected String subscriptionID
protected String uom
protected int usagePeriod
protected long usageDuration
protected String usageType
protected long usageValue
protected Date start
protected Date stop
protected Date updated
protected static ResourcePath resourcePath
public Usage(BillForwardClient client_)
protected Usage()
public String getID()
public String getOrganizationID()
public String getSessiondID()
public String getSubscriptionID()
public String getUom()
public int getUsagePeriod()
public long getUsageDuration()
public UsageType getUsageType()
public String getUsageTypeAsString()
public long getUsageValue()
public Date getStart()
public Date getStop()
public Date getUpdated()
public static Usage[] getUsageForSubscription(String subscriptionID_) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Usage[] getUsageForSubscriptionPeriod(String subscriptionID_, int period_) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
protected ResourcePath getResourcePath()
getResourcePath in class BillingEntityprotected static ResourcePath ResourcePath()
Copyright © 2014 BillForward. All rights reserved.