Documentation ¶
Index ¶
- type DescribeOrderDetailInfoRequest
- type DescribeOrderDetailInfoResponse
- type GetBillDataFileUrlRequest
- type GetBillDataFileUrlResponse
- type OrderDetail
- type OrderInfo
- type ResourceTag
- type UBillClient
- func (c *UBillClient) DescribeOrderDetailInfo(req *DescribeOrderDetailInfoRequest) (*DescribeOrderDetailInfoResponse, error)
- func (c *UBillClient) GetBillDataFileUrl(req *GetBillDataFileUrlRequest) (*GetBillDataFileUrlResponse, error)
- func (c *UBillClient) NewDescribeOrderDetailInfoRequest() *DescribeOrderDetailInfoRequest
- func (c *UBillClient) NewGetBillDataFileUrlRequest() *GetBillDataFileUrlRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DescribeOrderDetailInfoRequest ¶
type DescribeOrderDetailInfoRequest struct { request.CommonBase // 开始时间 BeginTime *int `required:"true"` // 结束时间(时间跨度不超过3个月) EndTime *int `required:"true"` // 业务组 Tags []string `required:"false"` // 地区(默认全部) AzGroups []string `required:"false"` // 可用区,原:数据中心(默认全部) Regions []string `required:"false"` // 产品类型(默认全部)[全部产品类型] ResourceTypes []string `required:"false"` // 订单类型(默认全部)[全部订单类型] OrderTypes []string `required:"false"` // 付费类别(默认全部OrderType)[全部计费方式] ChargeTypes []string `required:"false"` // 订单状态(默认全部可选参数)[OS_FINISHED;OS_UNDO] OrderStates []string `required:"false"` // 是否开过发票(默认全部可选参数)[INVO_ON:未开过;INVO_OFF:开过] Invoiceds []string `required:"false"` // 返回数据长度(默认为25)[1~100] Limit *int `required:"false"` // 数据偏移量(默认为0) Offset *int `required:"false"` // 资源ID(短ID) ResourceIds []string `required:"false"` // 交易订单号(该字段存在时,可以不传BeginTime和EndTime) TradeNos []string `required:"false"` // ‘true’表示查询全部(默认全部)其他选项按项目组查询 QueryAll *string `required:"false"` }
DescribeOrderDetailInfoRequest is request schema for DescribeOrderDetailInfo action
type DescribeOrderDetailInfoResponse ¶
type DescribeOrderDetailInfoResponse struct { response.CommonBase // JSON格式的订单信息 OrderInfos []OrderInfo }
DescribeOrderDetailInfoResponse is response schema for DescribeOrderDetailInfo 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"` }
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 ¶
OrderDetail - DescribeOrderDetailInfo
type OrderInfo ¶
type OrderInfo struct { OrderNo string `json:"OrderNo"` OrderType string ChargeType string ResourceId string ResourceTag []ResourceTag OrderState string CreateTime int Amount string //订单总金额 AmountReal string //现金账户金额 AmountFree string //赠送账户金额(元) AmountCoupon string //优惠金额 CouponCode string //如果AmountCoupon不为0,显示代金券号码 ResourceType string UpdateTime int Quantity string //计费周期数 Count int //资源数量 Invoiced string //是否开过发票 StartTime int //开始时间 EndTime int //结束时间 OrderDetails []OrderDetail RegionId string //region TradeNo string //交易号 }
OrderInfo - DescribeOrderDetailInfo
type ResourceTag ¶
ResourceTag - DescribeOrderDetailInfo
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)
DescribeOrderDetailInfo - 获取订单信息
func (*UBillClient) GetBillDataFileUrl ¶ added in v0.11.2
func (c *UBillClient) GetBillDataFileUrl(req *GetBillDataFileUrlRequest) (*GetBillDataFileUrlResponse, error)
GetBillDataFileUrl - 生成账单数据文件下载的 url
func (*UBillClient) NewDescribeOrderDetailInfoRequest ¶
func (c *UBillClient) NewDescribeOrderDetailInfoRequest() *DescribeOrderDetailInfoRequest
NewDescribeOrderDetailInfoRequest will create request of DescribeOrderDetailInfo action.
func (*UBillClient) NewGetBillDataFileUrlRequest ¶ added in v0.11.2
func (c *UBillClient) NewGetBillDataFileUrlRequest() *GetBillDataFileUrlRequest
NewGetBillDataFileUrlRequest will create request of GetBillDataFileUrl action.