zbc

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

* Zenlayer.com Inc. * Copyright (c) 2014-2023 All Rights Reserved.

Index

Constants

View Source
const (
	APIVersion = "2024-08-08"
	SERVICE    = "zbc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BillingDetailInfo

type BillingDetailInfo struct {
	ResourceId string `json:"resourceId,omitempty"`

	ProductSubitem string `json:"productSubitem,omitempty"`

	Product string `json:"product,omitempty"`

	Amount float64 `json:"amount,omitempty"`

	Voucher float64 `json:"voucher,omitempty"`

	Cash float64 `json:"cash,omitempty"`

	BillingMode string `json:"billingMode,omitempty"`

	OrderSn string `json:"orderSn,omitempty"`

	DeductionTime string `json:"deductionTime,omitempty"`

	Label string `json:"label,omitempty"`

	Location string `json:"location,omitempty"`

	BillMonthly int `json:"billMonthly,omitempty"`

	ResourceGroupId string `json:"resourceGroupId,omitempty"`

	ResourceGroupName string `json:"resourceGroupName,omitempty"`

	StartTime string `json:"startTime,omitempty"`

	EndTime string `json:"endTime,omitempty"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(config *common.Config, secretKeyId, secretKeyPassword string) (client *Client, err error)

func NewClientWithSecretKey

func NewClientWithSecretKey(secretKeyId, secretKeyPassword string) (client *Client, err error)

func (*Client) DescribeBillDetail

func (c *Client) DescribeBillDetail(request *DescribeBillDetailRequest) (response *DescribeBillDetailResponse, err error)

DescribeBillDetail 用于获取月账单明细相关数据信息

Possible error codes to return:

func (*Client) DescribeCustomerBalance

func (c *Client) DescribeCustomerBalance(request *DescribeCustomerBalanceRequest) (response *DescribeCustomerBalanceResponse, err error)

DescribeCustomerBalance 用于获取用户余额,包括账户余额、信用额度、可用金、冻结金等数据信息

Possible error codes to return:

func (*Client) DescribeMonthlyBillSummary

func (c *Client) DescribeMonthlyBillSummary(request *DescribeMonthlyBillSummaryRequest) (response *DescribeMonthlyBillSummaryResponse, err error)

DescribeMonthlyBillSummary 用于获取产品或资源组维度月账单汇总金额信息以及账单总帐信息

Possible error codes to return:

func (*Client) DescribeRechargeRefundHistory

func (c *Client) DescribeRechargeRefundHistory(request *DescribeRechargeRefundHistoryRequest) (response *DescribeRechargeRefundHistoryResponse, err error)

DescribeRechargeRefundHistory 用于获取用户的充值记录以及订单退款记录等

Possible error codes to return:

func (*Client) DescribeTransactionHistory

func (c *Client) DescribeTransactionHistory(request *DescribeTransactionHistoryRequest) (response *DescribeTransactionHistoryResponse, err error)

DescribeTransactionHistory 用于获取账户的交易记录

Possible error codes to return:

type DescribeBillDetailRequest

type DescribeBillDetailRequest struct {
	*common.BaseRequest

	PageNum int `json:"pageNum,omitempty"`

	PageSize int `json:"pageSize,omitempty"`

	BillMonthly int `json:"billMonthly,omitempty"`

	OrderSn string `json:"orderSn,omitempty"`

	ResourceId string `json:"resourceId,omitempty"`
}

func NewDescribeBillDetailRequest

func NewDescribeBillDetailRequest() (request *DescribeBillDetailRequest)

type DescribeBillDetailResponse

type DescribeBillDetailResponse struct {
	*common.BaseResponse

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId string `json:"requestId,omitempty"`

	Response *DescribeBillDetailResponseParams `json:"response"`
}

func NewDescribeBillDetailResponse

func NewDescribeBillDetailResponse() (response *DescribeBillDetailResponse)

type DescribeBillDetailResponseParams

type DescribeBillDetailResponseParams struct {

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId string `json:"requestId,omitempty"`

	TotalSpend float64 `json:"totalSpend,omitempty"`

	TotalVoucher float64 `json:"totalVoucher,omitempty"`

	TotalCash float64 `json:"totalCash,omitempty"`

	TotalRefund float64 `json:"totalRefund,omitempty"`

	TotalCount int `json:"totalCount,omitempty"`

	DataSet []*BillingDetailInfo `json:"dataSet,omitempty"`
}

type DescribeCustomerBalanceRequest

type DescribeCustomerBalanceRequest struct {
	*common.BaseRequest
}

func NewDescribeCustomerBalanceRequest

func NewDescribeCustomerBalanceRequest() (request *DescribeCustomerBalanceRequest)

type DescribeCustomerBalanceResponse

type DescribeCustomerBalanceResponse struct {
	*common.BaseResponse

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId string `json:"requestId,omitempty"`

	Response *DescribeCustomerBalanceResponseParams `json:"response"`
}

func NewDescribeCustomerBalanceResponse

func NewDescribeCustomerBalanceResponse() (response *DescribeCustomerBalanceResponse)

type DescribeCustomerBalanceResponseParams

type DescribeCustomerBalanceResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId string `json:"requestId,omitempty"`

	AccountUid string `json:"accountUid,omitempty"`

	CashBalance float64 `json:"cashBalance,omitempty"`

	CreditValue float64 `json:"creditValue,omitempty"`

	PurchasingPower float64 `json:"purchasingPower,omitempty"`

	OrderFrozenAmount float64 `json:"orderFrozenAmount,omitempty"`
}

type DescribeMonthlyBillSummaryRequest

type DescribeMonthlyBillSummaryRequest struct {
	*common.BaseRequest

	SummaryType string `json:"summaryType,omitempty"`

	BillMonthly int `json:"billMonthly,omitempty"`
}

func NewDescribeMonthlyBillSummaryRequest

func NewDescribeMonthlyBillSummaryRequest() (request *DescribeMonthlyBillSummaryRequest)

type DescribeMonthlyBillSummaryResponse

type DescribeMonthlyBillSummaryResponse struct {
	*common.BaseResponse

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId string `json:"requestId,omitempty"`

	Response *DescribeMonthlyBillSummaryResponseParams `json:"response"`
}

func NewDescribeMonthlyBillSummaryResponse

func NewDescribeMonthlyBillSummaryResponse() (response *DescribeMonthlyBillSummaryResponse)

type DescribeMonthlyBillSummaryResponseParams

type DescribeMonthlyBillSummaryResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId string `json:"requestId,omitempty"`

	BillMonthly int `json:"billMonthly,omitempty"`

	TotalSpend float64 `json:"totalSpend,omitempty"`

	TotalCash float64 `json:"totalCash,omitempty"`

	TotalRefund float64 `json:"totalRefund,omitempty"`

	TotalVoucher float64 `json:"totalVoucher,omitempty"`

	SummaryInfoList []*MonthlyBillSummary `json:"summaryInfoList,omitempty"`
}

type DescribeRechargeRefundHistoryRequest

type DescribeRechargeRefundHistoryRequest struct {
	*common.BaseRequest

	PageNum int `json:"pageNum,omitempty"`

	PageSize int `json:"pageSize,omitempty"`

	State []string `json:"state,omitempty"`

	StartTime string `json:"startTime,omitempty"`

	EndTime string `json:"endTime,omitempty"`
}

func NewDescribeRechargeRefundHistoryRequest

func NewDescribeRechargeRefundHistoryRequest() (request *DescribeRechargeRefundHistoryRequest)

type DescribeRechargeRefundHistoryResponse

type DescribeRechargeRefundHistoryResponse struct {
	*common.BaseResponse

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId string `json:"requestId,omitempty"`

	Response *DescribeRechargeRefundHistoryResponseParams `json:"response"`
}

func NewDescribeRechargeRefundHistoryResponse

func NewDescribeRechargeRefundHistoryResponse() (response *DescribeRechargeRefundHistoryResponse)

type DescribeRechargeRefundHistoryResponseParams

type DescribeRechargeRefundHistoryResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId string `json:"requestId,omitempty"`

	TotalCount int `json:"totalCount,omitempty"`

	DataSet []*RechargeRefundHistory `json:"dataSet,omitempty"`
}

type DescribeTransactionHistoryRequest

type DescribeTransactionHistoryRequest struct {
	*common.BaseRequest

	PageNum int `json:"pageNum,omitempty"`

	PageSize int `json:"pageSize,omitempty"`

	TransactionType []string `json:"transactionType,omitempty"`

	StartTime string `json:"startTime,omitempty"`

	EndTime string `json:"endTime,omitempty"`
}

func NewDescribeTransactionHistoryRequest

func NewDescribeTransactionHistoryRequest() (request *DescribeTransactionHistoryRequest)

type DescribeTransactionHistoryResponse

type DescribeTransactionHistoryResponse struct {
	*common.BaseResponse

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId string `json:"requestId,omitempty"`

	Response *DescribeTransactionHistoryResponseParams `json:"response"`
}

func NewDescribeTransactionHistoryResponse

func NewDescribeTransactionHistoryResponse() (response *DescribeTransactionHistoryResponse)

type DescribeTransactionHistoryResponseParams

type DescribeTransactionHistoryResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId string `json:"requestId,omitempty"`

	IncomeSum float64 `json:"incomeSum,omitempty"`

	ExpenditureSum float64 `json:"expenditureSum,omitempty"`

	TotalCount int `json:"totalCount,omitempty"`

	DataSet []*TransactionHistory `json:"dataSet,omitempty"`
}

type MonthlyBillSummary

type MonthlyBillSummary struct {
	Product string `json:"product,omitempty"`

	ResourceGroupName string `json:"resourceGroupName,omitempty"`

	Spend float64 `json:"spend,omitempty"`

	Voucher float64 `json:"voucher,omitempty"`

	Cash float64 `json:"cash,omitempty"`

	ResourceGroupId string `json:"resourceGroupId,omitempty"`

	Refund float64 `json:"refund,omitempty"`
}

type RechargeRefundHistory

type RechargeRefundHistory struct {
	TransactionType string `json:"transactionType,omitempty"`

	Amount float64 `json:"amount,omitempty"`

	PaymentMethod string `json:"paymentMethod,omitempty"`

	TransactionId string `json:"transactionId,omitempty"`

	State string `json:"state,omitempty"`

	TransactionTime string `json:"transactionTime,omitempty"`

	AccountUid string `json:"accountUid,omitempty"`
}

type TransactionHistory

type TransactionHistory struct {
	AccountUid string `json:"accountUid,omitempty"`

	Uid string `json:"uid,omitempty"`

	TransactionTime string `json:"transactionTime,omitempty"`

	OrderSn string `json:"orderSn,omitempty"`

	Description string `json:"description,omitempty"`

	TransactionType string `json:"transactionType,omitempty"`

	PaymentMethod string `json:"paymentMethod,omitempty"`

	Amount float64 `json:"amount,omitempty"`

	CashBalance float64 `json:"cashBalance,omitempty"`

	TradeType string `json:"tradeType,omitempty"`

	TradeNo string `json:"tradeNo,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL