Documentation ¶
Index ¶
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 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 ¶
type UBillClient struct {
// contains filtered or unexported fields
}
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) NewDescribeOrderDetailInfoRequest ¶
func (c *UBillClient) NewDescribeOrderDetailInfoRequest() *DescribeOrderDetailInfoRequest
NewDescribeOrderDetailInfoRequest will create request of DescribeOrderDetailInfo action.
Click to show internal directories.
Click to hide internal directories.