Examples of BillingServiceClient


Examples of org.wso2.carbon.billing.mgt.ui.clients.BillingServiceClient

    private static final Log log = LogFactory.getLog(BillingUtil.class);

    public static BillingPeriod[] getAvailableBillingPeriods(
            ServletConfig config, HttpSession session) throws UIException {
        try {
            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.getAvailableBillingPeriods();
        } catch (java.lang.Exception e) {
            String msg = "Failed to get available billing periods.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
View Full Code Here

Examples of org.wso2.carbon.billing.mgt.ui.clients.BillingServiceClient

    public static MultitenancyInvoice getPastInvoice(
            ServletConfig config, HttpSession session, int invoiceId) throws UIException {
        //int invoiceId = (Integer)session.getAttribute("invoiceId");

        try {
            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.getPastInvoice(invoiceId);
        } catch (java.lang.Exception e) {
            String msg = "Failed to get past invoice for invoice id:" + invoiceId + ".";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
View Full Code Here

Examples of org.wso2.carbon.billing.mgt.ui.clients.BillingServiceClient

    }

    public static MultitenancyInvoice getCurrentInvoice(
            ServletConfig config, HttpSession session) throws UIException {
        try {
            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.getCurrentInvoice();
        } catch (java.lang.Exception e) {
            String msg = "Failed to get the current invoice.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
View Full Code Here

Examples of org.wso2.carbon.billing.mgt.ui.clients.BillingServiceClient

    }

    public static int addPaymentDetails(ServletConfig config, HttpSession session,
                                        Payment payment, String amount) throws UIException {
        try{
            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.addPayment(payment, amount);
        }catch (Exception exp){
            String msg = "Failed to add the payment record " + payment.getDescription();
            log.error(msg, exp);
            throw new UIException(msg, exp);
        }
View Full Code Here

Examples of org.wso2.carbon.billing.mgt.ui.clients.BillingServiceClient

    }

    public static PaginatedBalanceInfoBean getPaginatedBalanceInfo(ServletConfig config, HttpSession session,
                                                                   int pageNumber) throws UIException{
        try{
            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.getPaginatedBalanceInfo(pageNumber);
        }catch (Exception exp){
            String msg = "Failed to get paginated balance info ";
            log.error(msg, exp);
            throw new UIException(msg, exp);
        }
View Full Code Here

Examples of org.wso2.carbon.billing.mgt.ui.clients.BillingServiceClient

    }

    public static OutstandingBalanceInfoBean[] getOutstandingBalance(
            ServletConfig config, HttpSession session, String tenantDomain) throws UIException{
        try{
            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.getOutstandingBalance(tenantDomain);
        }catch (Exception exp){
            String msg = "Failed to get balance info for domain: " + tenantDomain;
            log.error(msg, exp);
            throw new UIException(msg, exp);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.