v20180709

package
v3.0.82+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2018-07-09"

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionSummaryOverviewItem

type ActionSummaryOverviewItem struct {

	// 交易类型
	ActionType *string `json:"ActionType,omitempty" name:"ActionType"`

	// 交易类型名称
	ActionTypeName *string `json:"ActionTypeName,omitempty" name:"ActionTypeName"`

	// 实际花费
	RealTotalCost *string `json:"RealTotalCost,omitempty" name:"RealTotalCost"`

	// 费用所占百分比,两位小数
	RealTotalCostRatio *string `json:"RealTotalCostRatio,omitempty" name:"RealTotalCostRatio"`
}

type BillDetail

type BillDetail struct {

	// 产品名称
	BusinessCodeName *string `json:"BusinessCodeName,omitempty" name:"BusinessCodeName"`

	// 子产品名称
	ProductCodeName *string `json:"ProductCodeName,omitempty" name:"ProductCodeName"`

	// 计费模式
	PayModeName *string `json:"PayModeName,omitempty" name:"PayModeName"`

	// 项目
	ProjectName *string `json:"ProjectName,omitempty" name:"ProjectName"`

	// 区域
	RegionName *string `json:"RegionName,omitempty" name:"RegionName"`

	// 可用区
	ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"`

	// 资源实例ID
	ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`

	// 实例名称
	ResourceName *string `json:"ResourceName,omitempty" name:"ResourceName"`

	// 交易类型
	ActionTypeName *string `json:"ActionTypeName,omitempty" name:"ActionTypeName"`

	// 订单ID
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`

	// 交易ID
	BillId *string `json:"BillId,omitempty" name:"BillId"`

	// 扣费时间
	PayTime *string `json:"PayTime,omitempty" name:"PayTime"`

	// 开始使用时间
	FeeBeginTime *string `json:"FeeBeginTime,omitempty" name:"FeeBeginTime"`

	// 结束使用时间
	FeeEndTime *string `json:"FeeEndTime,omitempty" name:"FeeEndTime"`

	// 组件列表
	ComponentSet []*BillDetailComponent `json:"ComponentSet,omitempty" name:"ComponentSet" list`

	// 支付者UIN
	PayerUin *string `json:"PayerUin,omitempty" name:"PayerUin"`

	// 使用者UIN
	OwnerUin *string `json:"OwnerUin,omitempty" name:"OwnerUin"`

	// 操作者UIN
	OperateUin *string `json:"OperateUin,omitempty" name:"OperateUin"`
}

type BillDetailComponent

type BillDetailComponent struct {

	// 组件名称
	ComponentCodeName *string `json:"ComponentCodeName,omitempty" name:"ComponentCodeName"`

	// 组件类型名称
	ItemCodeName *string `json:"ItemCodeName,omitempty" name:"ItemCodeName"`

	// 组件刊例价
	SinglePrice *string `json:"SinglePrice,omitempty" name:"SinglePrice"`

	// 组件指定价
	SpecifiedPrice *string `json:"SpecifiedPrice,omitempty" name:"SpecifiedPrice"`

	// 价格单位
	PriceUnit *string `json:"PriceUnit,omitempty" name:"PriceUnit"`

	// 组件用量
	UsedAmount *string `json:"UsedAmount,omitempty" name:"UsedAmount"`

	// 组件用量单位
	UsedAmountUnit *string `json:"UsedAmountUnit,omitempty" name:"UsedAmountUnit"`

	// 使用时长
	TimeSpan *string `json:"TimeSpan,omitempty" name:"TimeSpan"`

	// 时长单位
	TimeUnitName *string `json:"TimeUnitName,omitempty" name:"TimeUnitName"`

	// 组件原价
	Cost *string `json:"Cost,omitempty" name:"Cost"`

	// 折扣率
	Discount *string `json:"Discount,omitempty" name:"Discount"`

	// 优惠类型
	ReduceType *string `json:"ReduceType,omitempty" name:"ReduceType"`

	// 优惠后总价
	RealCost *string `json:"RealCost,omitempty" name:"RealCost"`

	// 代金券支付金额
	VoucherPayAmount *string `json:"VoucherPayAmount,omitempty" name:"VoucherPayAmount"`

	// 现金支付金额
	CashPayAmount *string `json:"CashPayAmount,omitempty" name:"CashPayAmount"`

	// 赠送账户支付金额
	IncentivePayAmount *string `json:"IncentivePayAmount,omitempty" name:"IncentivePayAmount"`
}

type BillResourceSummary

type BillResourceSummary struct {

	// 产品
	BusinessCodeName *string `json:"BusinessCodeName,omitempty" name:"BusinessCodeName"`

	// 子产品
	ProductCodeName *string `json:"ProductCodeName,omitempty" name:"ProductCodeName"`

	// 计费模式
	PayModeName *string `json:"PayModeName,omitempty" name:"PayModeName"`

	// 项目
	ProjectName *string `json:"ProjectName,omitempty" name:"ProjectName"`

	// 地域
	RegionName *string `json:"RegionName,omitempty" name:"RegionName"`

	// 可用区
	ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"`

	// 资源实例ID
	ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`

	// 资源实例名称
	ResourceName *string `json:"ResourceName,omitempty" name:"ResourceName"`

	// 交易类型
	ActionTypeName *string `json:"ActionTypeName,omitempty" name:"ActionTypeName"`

	// 订单ID
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`

	// 扣费时间
	PayTime *string `json:"PayTime,omitempty" name:"PayTime"`

	// 开始使用时间
	FeeBeginTime *string `json:"FeeBeginTime,omitempty" name:"FeeBeginTime"`

	// 结束使用时间
	FeeEndTime *string `json:"FeeEndTime,omitempty" name:"FeeEndTime"`

	// 配置描述
	ConfigDesc *string `json:"ConfigDesc,omitempty" name:"ConfigDesc"`

	// 扩展字段1
	ExtendField1 *string `json:"ExtendField1,omitempty" name:"ExtendField1"`

	// 扩展字段2
	ExtendField2 *string `json:"ExtendField2,omitempty" name:"ExtendField2"`

	// 原价,单位为元
	TotalCost *string `json:"TotalCost,omitempty" name:"TotalCost"`

	// 折扣率
	Discount *string `json:"Discount,omitempty" name:"Discount"`

	// 优惠类型
	ReduceType *string `json:"ReduceType,omitempty" name:"ReduceType"`

	// 优惠后总价,单位为元
	RealTotalCost *string `json:"RealTotalCost,omitempty" name:"RealTotalCost"`

	// 代金券支付金额,单位为元
	VoucherPayAmount *string `json:"VoucherPayAmount,omitempty" name:"VoucherPayAmount"`

	// 现金账户支付金额,单位为元
	CashPayAmount *string `json:"CashPayAmount,omitempty" name:"CashPayAmount"`

	// 赠送账户支付金额,单位为元
	IncentivePayAmount *string `json:"IncentivePayAmount,omitempty" name:"IncentivePayAmount"`

	// 扩展字段3
	ExtendField3 *string `json:"ExtendField3,omitempty" name:"ExtendField3"`

	// 扩展字段4
	ExtendField4 *string `json:"ExtendField4,omitempty" name:"ExtendField4"`

	// 扩展字段5
	ExtendField5 *string `json:"ExtendField5,omitempty" name:"ExtendField5"`
}

type BusinessSummaryOverviewItem

type BusinessSummaryOverviewItem struct {

	// 产品码
	// 注意:此字段可能返回 null,表示取不到有效值。
	BusinessCode *string `json:"BusinessCode,omitempty" name:"BusinessCode"`

	// 产品名称
	BusinessCodeName *string `json:"BusinessCodeName,omitempty" name:"BusinessCodeName"`

	// 实际花费
	RealTotalCost *string `json:"RealTotalCost,omitempty" name:"RealTotalCost"`

	// 费用所占百分比,两位小数
	RealTotalCostRatio *string `json:"RealTotalCostRatio,omitempty" name:"RealTotalCostRatio"`
}

type BusinessSummaryTotal

type BusinessSummaryTotal struct {

	// 总花费
	RealTotalCost *string `json:"RealTotalCost,omitempty" name:"RealTotalCost"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) DescribeAccountBalance

func (c *Client) DescribeAccountBalance(request *DescribeAccountBalanceRequest) (response *DescribeAccountBalanceResponse, err error)

获取云账户余额信息。

func (*Client) DescribeBillDetail

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

查询账单明细数据

func (*Client) DescribeBillResourceSummary

func (c *Client) DescribeBillResourceSummary(request *DescribeBillResourceSummaryRequest) (response *DescribeBillResourceSummaryResponse, err error)

查询账单资源汇总数据

func (*Client) DescribeBillSummaryByPayMode

func (c *Client) DescribeBillSummaryByPayMode(request *DescribeBillSummaryByPayModeRequest) (response *DescribeBillSummaryByPayModeResponse, err error)

获取按付费模式汇总费用分布

func (*Client) DescribeBillSummaryByProduct

func (c *Client) DescribeBillSummaryByProduct(request *DescribeBillSummaryByProductRequest) (response *DescribeBillSummaryByProductResponse, err error)

获取产品汇总费用分布

func (*Client) DescribeBillSummaryByProject

func (c *Client) DescribeBillSummaryByProject(request *DescribeBillSummaryByProjectRequest) (response *DescribeBillSummaryByProjectResponse, err error)

获取按项目汇总费用分布

func (*Client) DescribeBillSummaryByRegion

func (c *Client) DescribeBillSummaryByRegion(request *DescribeBillSummaryByRegionRequest) (response *DescribeBillSummaryByRegionResponse, err error)

获取按地域汇总费用分布

func (*Client) DescribeDealsByCond

func (c *Client) DescribeDealsByCond(request *DescribeDealsByCondRequest) (response *DescribeDealsByCondResponse, err error)

查询订单

func (*Client) DescribeDosageDetailByDate

func (c *Client) DescribeDosageDetailByDate(request *DescribeDosageDetailByDateRequest) (response *DescribeDosageDetailByDateResponse, err error)

按日期获取产品用量明细

func (*Client) PayDeals

func (c *Client) PayDeals(request *PayDealsRequest) (response *PayDealsResponse, err error)

支付订单

type Deal

type Deal struct {

	// 订单号
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`

	// 订单状态
	Status *int64 `json:"Status,omitempty" name:"Status"`

	// 支付者
	Payer *string `json:"Payer,omitempty" name:"Payer"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 创建人
	Creator *string `json:"Creator,omitempty" name:"Creator"`

	// 实际支付金额(分)
	RealTotalCost *int64 `json:"RealTotalCost,omitempty" name:"RealTotalCost"`

	// 代金券抵扣金额(分)
	VoucherDecline *int64 `json:"VoucherDecline,omitempty" name:"VoucherDecline"`

	// 项目ID
	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`

	// 产品分类ID
	GoodsCategoryId *int64 `json:"GoodsCategoryId,omitempty" name:"GoodsCategoryId"`

	// 产品详情
	ProductInfo []*ProductInfo `json:"ProductInfo,omitempty" name:"ProductInfo" list`

	// 时长
	TimeSpan *float64 `json:"TimeSpan,omitempty" name:"TimeSpan"`

	// 时间单位
	TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"`

	// 货币单位
	Currency *string `json:"Currency,omitempty" name:"Currency"`

	// 折扣率
	Policy *float64 `json:"Policy,omitempty" name:"Policy"`

	// 单价(分)
	Price *float64 `json:"Price,omitempty" name:"Price"`

	// 原价(分)
	TotalCost *float64 `json:"TotalCost,omitempty" name:"TotalCost"`
}

type DescribeAccountBalanceRequest

type DescribeAccountBalanceRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeAccountBalanceRequest

func NewDescribeAccountBalanceRequest() (request *DescribeAccountBalanceRequest)

func (*DescribeAccountBalanceRequest) FromJsonString

func (r *DescribeAccountBalanceRequest) FromJsonString(s string) error

func (*DescribeAccountBalanceRequest) ToJsonString

func (r *DescribeAccountBalanceRequest) ToJsonString() string

type DescribeAccountBalanceResponse

type DescribeAccountBalanceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 云账户信息中的”展示可用余额”字段,单位为"分"
		Balance *int64 `json:"Balance,omitempty" name:"Balance"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeAccountBalanceResponse

func NewDescribeAccountBalanceResponse() (response *DescribeAccountBalanceResponse)

func (*DescribeAccountBalanceResponse) FromJsonString

func (r *DescribeAccountBalanceResponse) FromJsonString(s string) error

func (*DescribeAccountBalanceResponse) ToJsonString

func (r *DescribeAccountBalanceResponse) ToJsonString() string

type DescribeBillDetailRequest

type DescribeBillDetailRequest struct {
	*tchttp.BaseRequest

	// 偏移量
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 数量,最大值为100
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 周期类型,byUsedTime按计费周期/byPayTime按扣费周期。需要与费用中心该月份账单的周期保持一致。您可前往[账单概览](https://console.cloud.tencent.com/expense/bill/overview)页面顶部查看确认您的账单统计周期类型。
	PeriodType *string `json:"PeriodType,omitempty" name:"PeriodType"`

	// 月份,格式为yyyy-mm,Month和BeginTime&EndTime必传一个,如果有传BeginTime&EndTime则Month字段无效。不能早于开通账单2.0的月份,最多可拉取24个月内的数据。
	Month *string `json:"Month,omitempty" name:"Month"`

	// 周期开始时间,格式为Y-m-d H:i:s,Month和BeginTime&EndTime必传一个,如果有该字段则Month字段无效。BeginTime和EndTime必须一起传。不能早于开通账单2.0的月份,最多可拉取24个月内的数据。
	BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"`

	// 周期结束时间,格式为Y-m-d H:i:s,Month和BeginTime&EndTime必传一个,如果有该字段则Month字段无效。BeginTime和EndTime必须一起传。不能早于开通账单2.0的月份,最多可拉取24个月内的数据。
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 是否需要访问列表的总记录数,用于前端分页
	// 1-表示需要, 0-表示不需要
	NeedRecordNum *int64 `json:"NeedRecordNum,omitempty" name:"NeedRecordNum"`
}

func NewDescribeBillDetailRequest

func NewDescribeBillDetailRequest() (request *DescribeBillDetailRequest)

func (*DescribeBillDetailRequest) FromJsonString

func (r *DescribeBillDetailRequest) FromJsonString(s string) error

func (*DescribeBillDetailRequest) ToJsonString

func (r *DescribeBillDetailRequest) ToJsonString() string

type DescribeBillDetailResponse

type DescribeBillDetailResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 详情列表
		DetailSet []*BillDetail `json:"DetailSet,omitempty" name:"DetailSet" list`

		// 总记录数
		// 注意:此字段可能返回 null,表示取不到有效值。
		Total *uint64 `json:"Total,omitempty" name:"Total"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeBillDetailResponse

func NewDescribeBillDetailResponse() (response *DescribeBillDetailResponse)

func (*DescribeBillDetailResponse) FromJsonString

func (r *DescribeBillDetailResponse) FromJsonString(s string) error

func (*DescribeBillDetailResponse) ToJsonString

func (r *DescribeBillDetailResponse) ToJsonString() string

type DescribeBillResourceSummaryRequest

type DescribeBillResourceSummaryRequest struct {
	*tchttp.BaseRequest

	// 偏移量
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 数量,最大值为1000
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 周期类型,byUsedTime按计费周期/byPayTime按扣费周期。需要与费用中心该月份账单的周期保持一致。您可前往[账单概览](https://console.cloud.tencent.com/expense/bill/overview)页面顶部查看确认您的账单统计周期类型。
	PeriodType *string `json:"PeriodType,omitempty" name:"PeriodType"`

	// 月份,格式为yyyy-mm。不能早于开通账单2.0的月份,最多可拉取24个月内的数据。
	Month *string `json:"Month,omitempty" name:"Month"`

	// 是否需要访问列表的总记录数,用于前端分页
	// 1-表示需要, 0-表示不需要
	NeedRecordNum *int64 `json:"NeedRecordNum,omitempty" name:"NeedRecordNum"`
}

func NewDescribeBillResourceSummaryRequest

func NewDescribeBillResourceSummaryRequest() (request *DescribeBillResourceSummaryRequest)

func (*DescribeBillResourceSummaryRequest) FromJsonString

func (r *DescribeBillResourceSummaryRequest) FromJsonString(s string) error

func (*DescribeBillResourceSummaryRequest) ToJsonString

func (r *DescribeBillResourceSummaryRequest) ToJsonString() string

type DescribeBillResourceSummaryResponse

type DescribeBillResourceSummaryResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 资源汇总列表
		ResourceSummarySet []*BillResourceSummary `json:"ResourceSummarySet,omitempty" name:"ResourceSummarySet" list`

		// 资源汇总列表总数
		// 注意:此字段可能返回 null,表示取不到有效值。
		Total *int64 `json:"Total,omitempty" name:"Total"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeBillResourceSummaryResponse

func NewDescribeBillResourceSummaryResponse() (response *DescribeBillResourceSummaryResponse)

func (*DescribeBillResourceSummaryResponse) FromJsonString

func (r *DescribeBillResourceSummaryResponse) FromJsonString(s string) error

func (*DescribeBillResourceSummaryResponse) ToJsonString

func (r *DescribeBillResourceSummaryResponse) ToJsonString() string

type DescribeBillSummaryByPayModeRequest

type DescribeBillSummaryByPayModeRequest struct {
	*tchttp.BaseRequest

	// 查询账单数据的用户UIN
	PayerUin *string `json:"PayerUin,omitempty" name:"PayerUin"`

	// 目前只支持传当月开始,且必须和EndTime为相同月份,例 2018-09-01 00:00:00
	BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"`

	// 目前只支持传当月结束,且必须和BeginTime为相同月份,例 2018-09-30 23:59:59
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
}

func NewDescribeBillSummaryByPayModeRequest

func NewDescribeBillSummaryByPayModeRequest() (request *DescribeBillSummaryByPayModeRequest)

func (*DescribeBillSummaryByPayModeRequest) FromJsonString

func (r *DescribeBillSummaryByPayModeRequest) FromJsonString(s string) error

func (*DescribeBillSummaryByPayModeRequest) ToJsonString

func (r *DescribeBillSummaryByPayModeRequest) ToJsonString() string

type DescribeBillSummaryByPayModeResponse

type DescribeBillSummaryByPayModeResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 数据是否准备好,0未准备好,1准备好
		Ready *uint64 `json:"Ready,omitempty" name:"Ready"`

		// 各付费模式花费分布详情
		// 注意:此字段可能返回 null,表示取不到有效值。
		SummaryOverview []*PayModeSummaryOverviewItem `json:"SummaryOverview,omitempty" name:"SummaryOverview" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeBillSummaryByPayModeResponse

func NewDescribeBillSummaryByPayModeResponse() (response *DescribeBillSummaryByPayModeResponse)

func (*DescribeBillSummaryByPayModeResponse) FromJsonString

func (r *DescribeBillSummaryByPayModeResponse) FromJsonString(s string) error

func (*DescribeBillSummaryByPayModeResponse) ToJsonString

func (r *DescribeBillSummaryByPayModeResponse) ToJsonString() string

type DescribeBillSummaryByProductRequest

type DescribeBillSummaryByProductRequest struct {
	*tchttp.BaseRequest

	// 查询账单数据的用户UIN
	PayerUin *string `json:"PayerUin,omitempty" name:"PayerUin"`

	// 目前只支持传当月开始,且必须和EndTime为相同月份,例 2018-09-01 00:00:00
	BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"`

	// 目前只支持传当月结束,且必须和BeginTime为相同月份,例 2018-09-30 23:59:59
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
}

func NewDescribeBillSummaryByProductRequest

func NewDescribeBillSummaryByProductRequest() (request *DescribeBillSummaryByProductRequest)

func (*DescribeBillSummaryByProductRequest) FromJsonString

func (r *DescribeBillSummaryByProductRequest) FromJsonString(s string) error

func (*DescribeBillSummaryByProductRequest) ToJsonString

func (r *DescribeBillSummaryByProductRequest) ToJsonString() string

type DescribeBillSummaryByProductResponse

type DescribeBillSummaryByProductResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 数据是否准备好,0未准备好,1准备好
		Ready *uint64 `json:"Ready,omitempty" name:"Ready"`

		// 总花费详情
		// 注意:此字段可能返回 null,表示取不到有效值。
		SummaryTotal *BusinessSummaryTotal `json:"SummaryTotal,omitempty" name:"SummaryTotal"`

		// 各产品花费分布
		// 注意:此字段可能返回 null,表示取不到有效值。
		SummaryOverview []*BusinessSummaryOverviewItem `json:"SummaryOverview,omitempty" name:"SummaryOverview" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeBillSummaryByProductResponse

func NewDescribeBillSummaryByProductResponse() (response *DescribeBillSummaryByProductResponse)

func (*DescribeBillSummaryByProductResponse) FromJsonString

func (r *DescribeBillSummaryByProductResponse) FromJsonString(s string) error

func (*DescribeBillSummaryByProductResponse) ToJsonString

func (r *DescribeBillSummaryByProductResponse) ToJsonString() string

type DescribeBillSummaryByProjectRequest

type DescribeBillSummaryByProjectRequest struct {
	*tchttp.BaseRequest

	// 查询账单数据的用户UIN
	PayerUin *string `json:"PayerUin,omitempty" name:"PayerUin"`

	// 目前只支持传当月开始,且必须和EndTime为相同月份,例 2018-09-01 00:00:00
	BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"`

	// 目前只支持传当月结束,且必须和BeginTime为相同月份,例 2018-09-30 23:59:59
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
}

func NewDescribeBillSummaryByProjectRequest

func NewDescribeBillSummaryByProjectRequest() (request *DescribeBillSummaryByProjectRequest)

func (*DescribeBillSummaryByProjectRequest) FromJsonString

func (r *DescribeBillSummaryByProjectRequest) FromJsonString(s string) error

func (*DescribeBillSummaryByProjectRequest) ToJsonString

func (r *DescribeBillSummaryByProjectRequest) ToJsonString() string

type DescribeBillSummaryByProjectResponse

type DescribeBillSummaryByProjectResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 数据是否准备好,0未准备好,1准备好
		Ready *uint64 `json:"Ready,omitempty" name:"Ready"`

		// 各项目花费分布详情
		// 注意:此字段可能返回 null,表示取不到有效值。
		SummaryOverview []*ProjectSummaryOverviewItem `json:"SummaryOverview,omitempty" name:"SummaryOverview" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeBillSummaryByProjectResponse

func NewDescribeBillSummaryByProjectResponse() (response *DescribeBillSummaryByProjectResponse)

func (*DescribeBillSummaryByProjectResponse) FromJsonString

func (r *DescribeBillSummaryByProjectResponse) FromJsonString(s string) error

func (*DescribeBillSummaryByProjectResponse) ToJsonString

func (r *DescribeBillSummaryByProjectResponse) ToJsonString() string

type DescribeBillSummaryByRegionRequest

type DescribeBillSummaryByRegionRequest struct {
	*tchttp.BaseRequest

	// 查询账单数据的用户UIN
	PayerUin *string `json:"PayerUin,omitempty" name:"PayerUin"`

	// 目前只支持传当月开始,且必须和EndTime为相同月份,例 2018-09-01 00:00:00
	BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"`

	// 目前只支持传当月结束,且必须和BeginTime为相同月份,例 2018-09-30 23:59:59
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
}

func NewDescribeBillSummaryByRegionRequest

func NewDescribeBillSummaryByRegionRequest() (request *DescribeBillSummaryByRegionRequest)

func (*DescribeBillSummaryByRegionRequest) FromJsonString

func (r *DescribeBillSummaryByRegionRequest) FromJsonString(s string) error

func (*DescribeBillSummaryByRegionRequest) ToJsonString

func (r *DescribeBillSummaryByRegionRequest) ToJsonString() string

type DescribeBillSummaryByRegionResponse

type DescribeBillSummaryByRegionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 数据是否准备好,0未准备好,1准备好
		Ready *uint64 `json:"Ready,omitempty" name:"Ready"`

		// 各地域花费分布详情
		// 注意:此字段可能返回 null,表示取不到有效值。
		SummaryOverview []*RegionSummaryOverviewItem `json:"SummaryOverview,omitempty" name:"SummaryOverview" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeBillSummaryByRegionResponse

func NewDescribeBillSummaryByRegionResponse() (response *DescribeBillSummaryByRegionResponse)

func (*DescribeBillSummaryByRegionResponse) FromJsonString

func (r *DescribeBillSummaryByRegionResponse) FromJsonString(s string) error

func (*DescribeBillSummaryByRegionResponse) ToJsonString

func (r *DescribeBillSummaryByRegionResponse) ToJsonString() string

type DescribeDealsByCondRequest

type DescribeDealsByCondRequest struct {
	*tchttp.BaseRequest

	// 开始时间
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 结束时间
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 一页多少条数据,默认是20条,最大不超过1000
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 第多少页,从0开始,默认是0
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 订单状态,默认为4(成功的订单)
	// 订单的状态
	// 1:未支付
	// 2:已支付3:发货中
	// 4:已发货
	// 5:发货失败
	// 6:已退款
	// 7:已关单
	// 8:订单过期
	// 9:订单已失效
	// 10:产品已失效
	// 11:代付拒绝
	// 12:支付中
	Status *int64 `json:"Status,omitempty" name:"Status"`

	// 订单号
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`
}

func NewDescribeDealsByCondRequest

func NewDescribeDealsByCondRequest() (request *DescribeDealsByCondRequest)

func (*DescribeDealsByCondRequest) FromJsonString

func (r *DescribeDealsByCondRequest) FromJsonString(s string) error

func (*DescribeDealsByCondRequest) ToJsonString

func (r *DescribeDealsByCondRequest) ToJsonString() string

type DescribeDealsByCondResponse

type DescribeDealsByCondResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 订单列表
		Deals []*Deal `json:"Deals,omitempty" name:"Deals" list`

		// 订单总数
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDealsByCondResponse

func NewDescribeDealsByCondResponse() (response *DescribeDealsByCondResponse)

func (*DescribeDealsByCondResponse) FromJsonString

func (r *DescribeDealsByCondResponse) FromJsonString(s string) error

func (*DescribeDealsByCondResponse) ToJsonString

func (r *DescribeDealsByCondResponse) ToJsonString() string

type DescribeDosageDetailByDateRequest

type DescribeDosageDetailByDateRequest struct {
	*tchttp.BaseRequest

	// 查询账单开始日期,如 2019-01-01
	StartDate *string `json:"StartDate,omitempty" name:"StartDate"`

	// 查询账单结束日期,如 2019-01-01, 时间跨度不超过7天
	EndDate *string `json:"EndDate,omitempty" name:"EndDate"`

	// 互动直播:
	// 10194   互动直播-核心机房           :
	// 10195   互动直播-边缘机房
	//
	// cdn业务:
	// 10180:CDN静态加速流量(国内)
	// 10181:CDN静态加速带宽(国内)
	// 10182:CDN静态加速普通流量
	// 10183:CDN静态加速普通带宽
	// 10231:CDN静态加速流量(海外)
	// 10232:CDN静态加速带宽(海外)
	//
	// 100967:弹性公网IP-按流量计费
	// 101065:公网负载均衡-按流量计费
	//
	// 视频直播
	// 10226 视频直播流量(国内)
	// 10227 视频直播带宽(国内)
	// 100763 视频直播流量(海外)
	// 100762 视频直播宽带(海外)
	ProductCode *string `json:"ProductCode,omitempty" name:"ProductCode"`

	// 查询域名 例如 www.qq.com
	// 非CDN业务查询时值为空
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// 1、如果为空,则返回EIP或CLB所有实例的明细;
	// 2、如果传入实例名,则返回该实例明细
	InstanceID *string `json:"InstanceID,omitempty" name:"InstanceID"`
}

func NewDescribeDosageDetailByDateRequest

func NewDescribeDosageDetailByDateRequest() (request *DescribeDosageDetailByDateRequest)

func (*DescribeDosageDetailByDateRequest) FromJsonString

func (r *DescribeDosageDetailByDateRequest) FromJsonString(s string) error

func (*DescribeDosageDetailByDateRequest) ToJsonString

func (r *DescribeDosageDetailByDateRequest) ToJsonString() string

type DescribeDosageDetailByDateResponse

type DescribeDosageDetailByDateResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 计量单位
		// 注意:此字段可能返回 null,表示取不到有效值。
		Unit *string `json:"Unit,omitempty" name:"Unit"`

		// 用量数组
		// 注意:此字段可能返回 null,表示取不到有效值。
		DetailSets []*DetailSet `json:"DetailSets,omitempty" name:"DetailSets" list`

		// 错误码
		// 注意:此字段可能返回 null,表示取不到有效值。
		RetCode *int64 `json:"RetCode,omitempty" name:"RetCode"`

		// 错误信息
		// 注意:此字段可能返回 null,表示取不到有效值。
		RetMsg *string `json:"RetMsg,omitempty" name:"RetMsg"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDosageDetailByDateResponse

func NewDescribeDosageDetailByDateResponse() (response *DescribeDosageDetailByDateResponse)

func (*DescribeDosageDetailByDateResponse) FromJsonString

func (r *DescribeDosageDetailByDateResponse) FromJsonString(s string) error

func (*DescribeDosageDetailByDateResponse) ToJsonString

func (r *DescribeDosageDetailByDateResponse) ToJsonString() string

type DetailPoint

type DetailPoint struct {

	// 时间
	Time *string `json:"Time,omitempty" name:"Time"`

	// 值
	Value *string `json:"Value,omitempty" name:"Value"`
}

type DetailSet

type DetailSet struct {

	// 域名
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// 使用数据明细
	DetailPoints []*DetailPoint `json:"DetailPoints,omitempty" name:"DetailPoints" list`

	// 实例ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	InstanceID *string `json:"InstanceID,omitempty" name:"InstanceID"`
}

type PayDealsRequest

type PayDealsRequest struct {
	*tchttp.BaseRequest

	// 需要支付的一个或者多个订单号
	OrderIds []*string `json:"OrderIds,omitempty" name:"OrderIds" list`

	// 是否自动使用代金券,1:是,0否,默认0
	AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`

	// 代金券ID列表,目前仅支持指定一张代金券
	VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds" list`
}

func NewPayDealsRequest

func NewPayDealsRequest() (request *PayDealsRequest)

func (*PayDealsRequest) FromJsonString

func (r *PayDealsRequest) FromJsonString(s string) error

func (*PayDealsRequest) ToJsonString

func (r *PayDealsRequest) ToJsonString() string

type PayDealsResponse

type PayDealsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 此次操作支付成功的订单号数组
		OrderIds []*string `json:"OrderIds,omitempty" name:"OrderIds" list`

		// 此次操作支付成功的资源Id数组
		ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewPayDealsResponse

func NewPayDealsResponse() (response *PayDealsResponse)

func (*PayDealsResponse) FromJsonString

func (r *PayDealsResponse) FromJsonString(s string) error

func (*PayDealsResponse) ToJsonString

func (r *PayDealsResponse) ToJsonString() string

type PayModeSummaryOverviewItem

type PayModeSummaryOverviewItem struct {

	// 付费模式
	PayMode *string `json:"PayMode,omitempty" name:"PayMode"`

	// 付费模式名称
	PayModeName *string `json:"PayModeName,omitempty" name:"PayModeName"`

	// 实际花费
	RealTotalCost *string `json:"RealTotalCost,omitempty" name:"RealTotalCost"`

	// 费用所占百分比,两位小数
	RealTotalCostRatio *string `json:"RealTotalCostRatio,omitempty" name:"RealTotalCostRatio"`

	// 按交易类型汇总消费详情
	Detail []*ActionSummaryOverviewItem `json:"Detail,omitempty" name:"Detail" list`
}

type ProductInfo

type ProductInfo struct {

	// 商品详情名称标识
	Name *string `json:"Name,omitempty" name:"Name"`

	// 商品详情
	Value *string `json:"Value,omitempty" name:"Value"`
}

type ProjectSummaryOverviewItem

type ProjectSummaryOverviewItem struct {

	// 项目ID
	ProjectId *string `json:"ProjectId,omitempty" name:"ProjectId"`

	// 项目名称
	ProjectName *string `json:"ProjectName,omitempty" name:"ProjectName"`

	// 实际花费
	RealTotalCost *string `json:"RealTotalCost,omitempty" name:"RealTotalCost"`

	// 费用所占百分比,两位小数
	RealTotalCostRatio *string `json:"RealTotalCostRatio,omitempty" name:"RealTotalCostRatio"`
}

type RegionSummaryOverviewItem

type RegionSummaryOverviewItem struct {

	// 地域ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	RegionId *string `json:"RegionId,omitempty" name:"RegionId"`

	// 地域名称
	RegionName *string `json:"RegionName,omitempty" name:"RegionName"`

	// 实际花费
	RealTotalCost *string `json:"RealTotalCost,omitempty" name:"RealTotalCost"`

	// 费用所占百分比,两位小数
	RealTotalCostRatio *string `json:"RealTotalCostRatio,omitempty" name:"RealTotalCostRatio"`
}

Jump to

Keyboard shortcuts

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