类 BillingClient


  • public class BillingClient
    extends AbstractBceClient
    Provides the client for accessing the Baidu Billing Service(billing).
    • 构造器详细资料

      • BillingClient

        public BillingClient()
        Constructs a new client to invoke service methods on billing with default configuration.
      • BillingClient

        public BillingClient​(BceClientConfiguration config)
        Constructs a new client to invoke service methods on billing default configuration.
    • 方法详细资料

      • getResourceMonthBill

        public ResourceMonthBillResponse getResourceMonthBill​(ResourceMonthBillRequest request)
        Query the detail resource month bills. Set the parameter queryAccountId if want to query the sub account's bills whole is in finance circle.
        参数:
        request - The request containing all options for getting the bills info.
        返回:
        detailed resource month bill list.
      • queryPrepayShareBill

        public PrepayShareBillResponse queryPrepayShareBill​(PrepayShareBillRequest request)
        Query the detail prepay share bills. Set the parameter queryAccountId if want to query the sub account's bills whole is in finance circle.
        参数:
        request - The request containing all options for getting the bills info.
        返回:
        detailed prepay share bill list.
      • queryShareBill

        public ShareBillResponse queryShareBill​(ShareBillRequest request)
        Query the detail share bills. containing prepay/postpay. Set the parameter queryAccountId if want to query the sub account's bills whole is in finance circle.
        参数:
        request - The request containing all options for getting the bills info.
        返回:
        detailed share bill list.
      • queryProductMonthBillSummary

        public ProductMonthBillSummaryResponse queryProductMonthBillSummary​(ProductMonthBillSummaryRequest request)
        Query the product month bill summary.
        参数:
        request - The request containing all options for getting the bills info.
        返回:
        detailed product month bill list.
      • getOrderList

        public OrderListResponse getOrderList​(OrderListRequest request)
        Query the order list
        参数:
        request - The request containing all options for getting the order info.
        返回:
        detailed order information list.
      • getOrdersByUuid

        public OrderListResponse getOrdersByUuid​(OrderUuidQueryRequest request)
        Get order list with uuid
        参数:
        request - request of order query with uuid list
        返回:
        detailed order information list.
      • cancelOrders

        public OrderCancelResponse cancelOrders​(OrderCancelRequest request)
        Cancel the order list.
        参数:
        request - The request containing all options for cancel orders.
        返回:
        whether the order is cancelled successfully.
      • payOrder

        public OrderPaymentResponse payOrder​(OrderPaymentRequest request)
        Pay the order.
        参数:
        request - The request containing all options for the order payment.
        返回:
        whether the order is payment successfully.
      • getSpecificCpcPrice

        public PricingQueryResponse getSpecificCpcPrice​(CpcPricingRequest request)
        Query the detail price of charge items
        参数:
        request - The request containing all options for getting the price info.
        返回:
        detail price.
      • getSpecificCptPrice

        public PricingQueryResponse getSpecificCptPrice​(CptPricingRequest request)
        Query the detail price of charge items
        参数:
        request - The request containing all options for getting the price info.
        返回:
        detail price.
      • queryRenewResourceList

        public RenewResourceResponse queryRenewResourceList​(RenewResourceListRequest request)
        Query auto renew resource list Set the parameter queryAccountId if want to query the sub account's bills whole is in finance circle.
        参数:
        request - The request containing all options for getting the resource list info.
        返回:
        detailed prepay resource list
      • queryRenewResourceListV2

        public RenewResourceDetailResponse queryRenewResourceListV2​(RenewResourceDetailRequest request)
        Query renew resource list by expire time Set the parameter queryAccountId if want to query the sub account's bills whole is in finance circle.
        参数:
        request - The request containing all options for getting the resource list info.
        返回:
        detailed renew resource list
      • setRenewResourceRule

        public void setRenewResourceRule​(ResourceAutoRenewRequest request)
        SET auto renew resource rule Set the parameter accountId if want to manage the sub account's resource who is in finance circle.
        参数:
        request - The request containing all options for set the resource list renew rule.
      • userBalanceQuery

        public UserBalanceQueryResponse userBalanceQuery()
        get user balance info
        返回:
        user balance result