ubill

package
v0.21.21 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ubill include resources of ucloud ubill product

See also

for detail.

Index

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 OrderDetail

type OrderDetail struct {

	//
	ProductName string

	//
	Value string
}

OrderDetail -

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 ResourceTag

type ResourceTag struct {

	//
	KeyId string

	//
	Value string
}

ResourceTag -

type UBillClient

type UBillClient struct {
	*ucloud.Client
}

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

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

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.

Jump to

Keyboard shortcuts

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