com.aspose.ocr.metered.internal

Class MeteredBillingService



  • public class MeteredBillingService
    extends Object
    This internal class is used to handle customer's matering state
    • Constructor Detail

      • MeteredBillingService

        public MeteredBillingService()
    • Method Detail

      • setkey

        public boolean setkey(String subscriptionPublicKey,
                              String subscriptionPrivateKey)
        Sets the subscription public and private key
        Parameters:
        subscriptionPublicKey - subscription public key
        subscriptionPrivateKey - subscription private key
        Returns:
        true if key is set
      • getMeteredState

        public static int getMeteredState()
        Gets metered state
        Returns:
        matered state
      • getCustomerCredit

        public double getCustomerCredit()
                                 throws Exception
        Throws:
        Exception