com.baidubce.services.billing
Class BillingClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.billing.BillingClient

public class BillingClient
extends AbstractBceClient

Provides the client for accessing the Baidu Billing Service(billing).


Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
BillingClient()
          Constructs a new client to invoke service methods on billing with default configuration.
BillingClient(BceClientConfiguration config)
          Constructs a new client to invoke service methods on billing default configuration.
 
Method Summary
 TransferResultResponse balanceGather(SupervisorBalanceTransferRequest request)
          do balance gather form supervised account to supervisor
 SupervisorBalanceResponse balanceQuery(SupervisorBalanceQueryRequest request)
          get balance info
 TransferResultResponse balanceTransfer(SupervisorBalanceTransferRequest request)
          do balance transfer form supervisor to supervised account
 OrderListResponse getOrderList(OrderListRequest request)
          Query the order list
 ResourceBillListQueryResponse getResourceBillList(ResourceBillListQueryRequest request)
          Query the resource bill list
 ResourceMonthBillResponse getResourceMonthBill(ResourceMonthBillRequest request)
          Query the detail resource month bills.
 PricingQueryResponse getSpecificCpcPrice(CpcPricingRequest request)
          Query the detail price of charge items
 PricingQueryResponse getSpecificCptPrice(CptPricingRequest request)
          Query the detail price of charge items
 PrepayShareBillResponse queryPrepayShareBill(PrepayShareBillRequest request)
          Query the detail prepay share bills.
 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.
 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.
 SupervisorTransactionResponse transactionList(SupervisorTransactionPageRequest request)
          get the transfer record
 
Methods inherited from class com.baidubce.AbstractBceClient
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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.

Parameters:
request - The request containing all options for getting the bills info.
Returns:
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.

Parameters:
request - The request containing all options for getting the bills info.
Returns:
detailed prepay share bill list.

getResourceBillList

public ResourceBillListQueryResponse getResourceBillList(ResourceBillListQueryRequest request)
Query the resource bill list

Parameters:
request - The request containing all options for getting the resource info.
Returns:
detailed resource bill list.

getOrderList

public OrderListResponse getOrderList(OrderListRequest request)
Query the order list

Parameters:
request - The request containing all options for getting the order info.
Returns:
detailed order information list.

getSpecificCpcPrice

public PricingQueryResponse getSpecificCpcPrice(CpcPricingRequest request)
Query the detail price of charge items

Parameters:
request - The request containing all options for getting the price info.
Returns:
detail price.

getSpecificCptPrice

public PricingQueryResponse getSpecificCptPrice(CptPricingRequest request)
Query the detail price of charge items

Parameters:
request - The request containing all options for getting the price info.
Returns:
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.

Parameters:
request - The request containing all options for getting the resource list info.
Returns:
detailed prepay 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.

Parameters:
request - The request containing all options for set the resource list renew rule.

balanceTransfer

public TransferResultResponse balanceTransfer(SupervisorBalanceTransferRequest request)
do balance transfer form supervisor to supervised account

Parameters:
request - request contain supervisedId and amount
Returns:
transfer result

balanceGather

public TransferResultResponse balanceGather(SupervisorBalanceTransferRequest request)
do balance gather form supervised account to supervisor

Parameters:
request - request contain supervisedId and amount
Returns:
gather result

transactionList

public SupervisorTransactionResponse transactionList(SupervisorTransactionPageRequest request)
get the transfer record

Parameters:
request - request contain time and page param
Returns:
page result

balanceQuery

public SupervisorBalanceResponse balanceQuery(SupervisorBalanceQueryRequest request)
get balance info

Parameters:
request - request contain accountIds param
Returns:
balance result


Copyright © 2020. All rights reserved.