Documentation
¶
Overview ¶
Package ubill include resources of ucloud ubill product
See also
- API: https://docs.ucloud.cn/api/ubill-api/index
- Product: https://www.ucloud.cn/site/product/ubill.html
for detail.
Index ¶
- type AccountInfo
- type DescribeOrderDetailInfoRequest
- type DescribeOrderDetailInfoResponse
- type GetBalanceRequest
- type GetBalanceResponse
- type GetBillDataFileUrlRequest
- type GetBillDataFileUrlResponse
- type OrderDetail
- type OrderInfo
- type ResourceTag
- type UBillClient
- func (c *UBillClient) DescribeOrderDetailInfo(req *DescribeOrderDetailInfoRequest) (*DescribeOrderDetailInfoResponse, error)
- func (c *UBillClient) GetBalance(req *GetBalanceRequest) (*GetBalanceResponse, error)
- func (c *UBillClient) GetBillDataFileUrl(req *GetBillDataFileUrlRequest) (*GetBillDataFileUrlResponse, error)
- func (c *UBillClient) NewDescribeOrderDetailInfoRequest() *DescribeOrderDetailInfoRequest
- func (c *UBillClient) NewGetBalanceRequest() *GetBalanceRequest
- func (c *UBillClient) NewGetBillDataFileUrlRequest() *GetBillDataFileUrlRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶ added in v0.21.2
type AccountInfo struct { // 账户余额 Amount string // 账户可用余额 AmountAvailable string // 信用账户余额 AmountCredit string // 赠送账户余额 AmountFree string // 冻结账户金额 AmountFreeze string }
AccountInfo - 账户信息
type DescribeOrderDetailInfoRequest ¶
type DescribeOrderDetailInfoRequest struct { request.CommonBase // AzGroups []string `required:"false"` // BeginTime *int `required:"true"` // ChargeTypes []string `required:"false"` // EndTime *int `required:"true"` // Invoiceds []string `required:"false"` // Limit *int `required:"false"` // Offset *int `required:"false"` // OrderStates []string `required:"false"` // OrderTypes []string `required:"false"` // QueryAll *string `required:"false"` // Regions []string `required:"false"` // ResourceIds []string `required:"false"` // ResourceTypes []string `required:"false"` // Tags []string `required:"false"` // TradeNos []string `required:"false"` }
DescribeOrderDetailInfoRequest is request schema for DescribeOrderDetailInfo action
type DescribeOrderDetailInfoResponse ¶
type DescribeOrderDetailInfoResponse struct { response.CommonBase // OrderInfos []OrderInfo }
DescribeOrderDetailInfoResponse is response schema for DescribeOrderDetailInfo action
type GetBalanceRequest ¶ added in v0.21.2
type GetBalanceRequest struct {
request.CommonBase
}
GetBalanceRequest is request schema for GetBalance action
type GetBalanceResponse ¶ added in v0.21.2
type GetBalanceResponse struct { response.CommonBase // 账户余额信息 AccountInfo AccountInfo }
GetBalanceResponse is response schema for GetBalance action
type GetBillDataFileUrlRequest ¶ added in v0.11.2
type GetBillDataFileUrlRequest struct { request.CommonBase // 账期(时间戳格式) BillPeriod *int `required:"true"` // 账单类型,传 0 时获取账单总览报表,传 1 获取账单明细报表 BillType *int `required:"true"` // 获取账单总览报表时,账单的支付状态,传 0 时获取待支付账单,传 1 时获取已支付账单。获取账单明细报表时该参数无效 PaidType *int `required:"false"` // 如需求其他语言版本的账单则使用此参数。默认中文。如 RequireVersion = "EN",则提供英文版本账单。 RequireVersion *string `required:"false"` }
GetBillDataFileUrlRequest is request schema for GetBillDataFileUrl action
type GetBillDataFileUrlResponse ¶ added in v0.11.2
type GetBillDataFileUrlResponse struct { response.CommonBase // 交易账单数据下载URL FileUrl string // 生成的 URL是否有效,即有对应数据文件 IsValid string }
GetBillDataFileUrlResponse is response schema for GetBillDataFileUrl action
type OrderInfo ¶
type OrderInfo struct { // Amount string // AmountCoupon string // AmountFree string // AmountReal string // ChargeType string // Count int // CouponCode string // CreateTime int // EndTime int // Invoiced string // OrderDetails []OrderDetail // OrderNo string // OrderState string // OrderType string // Quantity string // RegionId string // ResourceId string // ResourceTag []ResourceTag // ResourceType string // StartTime int // TradeNo string // UpdateTime int }
OrderInfo -
type UBillClient ¶
UBillClient is the client of UBill
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UBillClient
NewClient will return a instance of UBillClient
func (*UBillClient) DescribeOrderDetailInfo ¶
func (c *UBillClient) DescribeOrderDetailInfo(req *DescribeOrderDetailInfoRequest) (*DescribeOrderDetailInfoResponse, error)
API: DescribeOrderDetailInfo
func (*UBillClient) GetBalance ¶ added in v0.21.2
func (c *UBillClient) GetBalance(req *GetBalanceRequest) (*GetBalanceResponse, error)
API: GetBalance
获取账户余额
func (*UBillClient) GetBillDataFileUrl ¶ added in v0.11.2
func (c *UBillClient) GetBillDataFileUrl(req *GetBillDataFileUrlRequest) (*GetBillDataFileUrlResponse, error)
API: GetBillDataFileUrl
生成账单数据文件下载的 url
func (*UBillClient) NewDescribeOrderDetailInfoRequest ¶
func (c *UBillClient) NewDescribeOrderDetailInfoRequest() *DescribeOrderDetailInfoRequest
NewDescribeOrderDetailInfoRequest will create request of DescribeOrderDetailInfo action.
func (*UBillClient) NewGetBalanceRequest ¶ added in v0.21.2
func (c *UBillClient) NewGetBalanceRequest() *GetBalanceRequest
NewGetBalanceRequest will create request of GetBalance action.
func (*UBillClient) NewGetBillDataFileUrlRequest ¶ added in v0.11.2
func (c *UBillClient) NewGetBillDataFileUrlRequest() *GetBillDataFileUrlRequest
NewGetBillDataFileUrlRequest will create request of GetBillDataFileUrl action.