public class MeteredBillingService extends Object
This internal class is used to handle customer's matered state
In this example, an attempt will be check customer's matered state. MeteredState materedState = MeteredBillingService.getMeteredState();
Constructor and Description |
---|
MeteredBillingService() |
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
com.aspose.ms.System.Decimal |
getCustomerCredit() |
com.aspose.ms.System.Decimal |
getCustomerData() |
static MeteredBillingService |
getInstance() |
static int |
getMeteredState()
Gets metered state
|
boolean |
setkey(String subscriptionPublicKey,
String subscriptionPrivateKey)
Sets the subscription public and private key
|
public static MeteredBillingService getInstance()
public boolean setkey(String subscriptionPublicKey, String subscriptionPrivateKey)
Sets the subscription public and private key
subscriptionPublicKey
- subscription public keysubscriptionPrivateKey
- subscription private keypublic static int getMeteredState()
Gets metered state
public com.aspose.ms.System.Decimal getCustomerData()
public final com.aspose.ms.System.Decimal getCustomerCredit()
public static void clear()