类 BillingClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.billing.BillingClient
-
public class BillingClient extends AbstractBceClient
Provides the client for accessing the Baidu Billing Service(billing).
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 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.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 TransferResultResponsebalanceGather(SupervisorBalanceTransferRequest request)do balance gather form supervised account to supervisorSupervisorBalanceResponsebalanceQuery(SupervisorBalanceQueryRequest request)get balance infoTransferResultResponsebalanceTransfer(SupervisorBalanceTransferRequest request)do balance transfer form supervisor to supervised accountOrderCancelResponsecancelOrders(OrderCancelRequest request)Cancel the order list.OrderListResponsegetOrderList(OrderListRequest request)Query the order listOrderListResponsegetOrdersByUuid(OrderUuidQueryRequest request)Get order list with uuidResourceBillListQueryResponsegetResourceBillList(ResourceBillListQueryRequest request)Query the resource bill listResourceMonthBillResponsegetResourceMonthBill(ResourceMonthBillRequest request)Query the detail resource month bills.PricingQueryResponsegetSpecificCpcPrice(CpcPricingRequest request)Query the detail price of charge itemsPricingQueryResponsegetSpecificCptPrice(CptPricingRequest request)Query the detail price of charge itemsOrderPaymentResponsepayOrder(OrderPaymentRequest request)Pay the order.PrepayShareBillResponsequeryPrepayShareBill(PrepayShareBillRequest request)Query the detail prepay share bills.ProductMonthBillSummaryResponsequeryProductMonthBillSummary(ProductMonthBillSummaryRequest request)Query the product month bill summary.RenewResourceResponsequeryRenewResourceList(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.RenewResourceDetailResponsequeryRenewResourceListV2(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.ShareBillResponsequeryShareBill(ShareBillRequest request)Query the detail share bills.voidsetRenewResourceRule(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.SupervisorTransactionResponsetransactionList(SupervisorTransactionPageRequest request)get the transfer recordUserBalanceQueryResponseuserBalanceQuery()get user balance info-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
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.
-
getResourceBillList
public ResourceBillListQueryResponse getResourceBillList(ResourceBillListQueryRequest request)
Query the resource bill list- 参数:
request- The request containing all options for getting the resource info.- 返回:
- detailed resource 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.
-
balanceTransfer
public TransferResultResponse balanceTransfer(SupervisorBalanceTransferRequest request)
do balance transfer form supervisor to supervised account- 参数:
request- request contain supervisedId and amount- 返回:
- transfer result
-
balanceGather
public TransferResultResponse balanceGather(SupervisorBalanceTransferRequest request)
do balance gather form supervised account to supervisor- 参数:
request- request contain supervisedId and amount- 返回:
- gather result
-
transactionList
public SupervisorTransactionResponse transactionList(SupervisorTransactionPageRequest request)
get the transfer record- 参数:
request- request contain time and page param- 返回:
- page result
-
balanceQuery
public SupervisorBalanceResponse balanceQuery(SupervisorBalanceQueryRequest request)
get balance info- 参数:
request- request contain accountIds param- 返回:
- balance result
-
userBalanceQuery
public UserBalanceQueryResponse userBalanceQuery()
get user balance info- 返回:
- user balance result
-
-