MeteredBillingService

Inheritance: java.lang.Object

public class MeteredBillingService

This internal class is used to handle customer’s matering state

Constructors

ConstructorDescription
MeteredBillingService()

Methods

MethodDescription
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:

ParameterTypeDescription
subscriptionPublicKeyjava.lang.Stringsubscription public key
subscriptionPrivateKeyjava.lang.Stringsubscription 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