MeteredBillingService
Contents
[
Hide
]Inheritance: java.lang.Object
public class MeteredBillingService
This internal class is used to handle customer’s matering state
Constructors
Constructor | Description |
---|---|
MeteredBillingService() |
Methods
Method | Description |
---|---|
getInstance() | |
setkey(String subscriptionPublicKey, String subscriptionPrivateKey) | Sets the subscription public and private key |
getMeteredState() | Gets metered state |
getCustomerData() | |
getCustomerCredit() |
MeteredBillingService()
public MeteredBillingService()
getInstance()
public static MeteredBillingService getInstance()
Returns: MeteredBillingService
setkey(String subscriptionPublicKey, String subscriptionPrivateKey)
public boolean setkey(String subscriptionPublicKey, String subscriptionPrivateKey)
Sets the subscription public and private key
Parameters:
Parameter | Type | Description |
---|---|---|
subscriptionPublicKey | java.lang.String | subscription public key |
subscriptionPrivateKey | java.lang.String | subscription private key |
Returns: boolean - true if key is set
getMeteredState()
public static int getMeteredState()
Gets metered state
Returns: int - matered state
getCustomerData()
public double getCustomerData()
Returns: double
getCustomerCredit()
public double getCustomerCredit()
Returns: double