Documentation ¶
Index ¶
- type CalculateTotalPriceRequest
- func NewCalculateTotalPriceRequest(regionId string, cmd int, packageCount int) *CalculateTotalPriceRequest
- func NewCalculateTotalPriceRequestWithAllParams(regionId string, cmd int, orderList []billing.OrderPriceProtocol, ...) *CalculateTotalPriceRequest
- func NewCalculateTotalPriceRequestWithoutParam() *CalculateTotalPriceRequest
- func (r CalculateTotalPriceRequest) GetRegionId() string
- func (r *CalculateTotalPriceRequest) SetClientType(clientType int)
- func (r *CalculateTotalPriceRequest) SetCmd(cmd int)
- func (r *CalculateTotalPriceRequest) SetOperateTime(operateTime string)
- func (r *CalculateTotalPriceRequest) SetOrderList(orderList []billing.OrderPriceProtocol)
- func (r *CalculateTotalPriceRequest) SetPackageCount(packageCount int)
- func (r *CalculateTotalPriceRequest) SetProcessType(processType int)
- func (r *CalculateTotalPriceRequest) SetPromotionInfo(promotionInfo string)
- func (r *CalculateTotalPriceRequest) SetRegionId(regionId string)
- func (r *CalculateTotalPriceRequest) SetRenewMode(renewMode int)
- func (r *CalculateTotalPriceRequest) SetTotalPriceRule(totalPriceRule int)
- func (r *CalculateTotalPriceRequest) SetUnifyExpireDay(unifyExpireDay int)
- type CalculateTotalPriceResponse
- type CalculateTotalPriceResult
- type QueryBillDetailRequest
- func NewQueryBillDetailRequest(regionId string, startTime string, endTime string) *QueryBillDetailRequest
- func NewQueryBillDetailRequestWithAllParams(regionId string, startTime string, endTime string, appCode *string, ...) *QueryBillDetailRequest
- func NewQueryBillDetailRequestWithoutParam() *QueryBillDetailRequest
- func (r QueryBillDetailRequest) GetRegionId() string
- func (r *QueryBillDetailRequest) SetAppCode(appCode string)
- func (r *QueryBillDetailRequest) SetBillingType(billingType int)
- func (r *QueryBillDetailRequest) SetEndTime(endTime string)
- func (r *QueryBillDetailRequest) SetPageIndex(pageIndex int)
- func (r *QueryBillDetailRequest) SetPageSize(pageSize int)
- func (r *QueryBillDetailRequest) SetRegionId(regionId string)
- func (r *QueryBillDetailRequest) SetResourceIds(resourceIds []string)
- func (r *QueryBillDetailRequest) SetServiceCode(serviceCode string)
- func (r *QueryBillDetailRequest) SetStartTime(startTime string)
- func (r *QueryBillDetailRequest) SetTags(tags []interface{})
- type QueryBillDetailResponse
- type QueryBillDetailResult
- type QueryBillSummaryRequest
- func NewQueryBillSummaryRequest(regionId string, startTime string, endTime string) *QueryBillSummaryRequest
- func NewQueryBillSummaryRequestWithAllParams(regionId string, startTime string, endTime string, appCode *string, ...) *QueryBillSummaryRequest
- func NewQueryBillSummaryRequestWithoutParam() *QueryBillSummaryRequest
- func (r QueryBillSummaryRequest) GetRegionId() string
- func (r *QueryBillSummaryRequest) SetAppCode(appCode string)
- func (r *QueryBillSummaryRequest) SetEndTime(endTime string)
- func (r *QueryBillSummaryRequest) SetPageIndex(pageIndex int)
- func (r *QueryBillSummaryRequest) SetPageSize(pageSize int)
- func (r *QueryBillSummaryRequest) SetRegionId(regionId string)
- func (r *QueryBillSummaryRequest) SetResourceIds(resourceIds []string)
- func (r *QueryBillSummaryRequest) SetServiceCode(serviceCode string)
- func (r *QueryBillSummaryRequest) SetStartTime(startTime string)
- func (r *QueryBillSummaryRequest) SetTags(tags []interface{})
- type QueryBillSummaryResponse
- type QueryBillSummaryResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalculateTotalPriceRequest ¶
type CalculateTotalPriceRequest struct { core.JDCloudRequest /* */ RegionId string `json:"regionId"` /* 操作类型 1:创建 2:续费 3:升配 4:删除 */ Cmd int `json:"cmd"` /* 计算价格的订单 (Optional) */ OrderList []billing.OrderPriceProtocol `json:"orderList"` /* 操作时间(格式为:yyyy-MM-dd HH:mm:ss) (Optional) */ OperateTime *string `json:"operateTime"` /* 1:折扣(不需要传) 2:免费活动3:付费活动 4:推荐码 5:会员价 [{"promotionType":1,"activityCode":123},{"promotionType":2,"activityCode":}] (Optional) */ PromotionInfo *string `json:"promotionInfo"` /* 客户端:1.PC端;2.移动端; (Optional) */ ClientType *int `json:"clientType"` /* 批量购买时数量 */ PackageCount int `json:"packageCount"` /* 临时升配时必传,3-临时升配 (Optional) */ ProcessType *int `json:"processType"` /* 续费方式 0:正常续费 1:续费至统一到期日,续费时必传 (Optional) */ RenewMode *int `json:"renewMode"` /* 续费统一到期日(1-28),续费时必传 (Optional) */ UnifyExpireDay *int `json:"unifyExpireDay"` /* 计算总价规则 1:计算预付费资源总价(计费类型为包年包月、按次) ;不传计算所有资源总价 (Optional) */ TotalPriceRule *int `json:"totalPriceRule"` }
func NewCalculateTotalPriceRequest ¶
func NewCalculateTotalPriceRequest( regionId string, cmd int, packageCount int, ) *CalculateTotalPriceRequest
* param regionId: (Required) * param cmd: 操作类型 1:创建 2:续费 3:升配 4:删除 (Required) * param packageCount: 批量购买时数量 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCalculateTotalPriceRequestWithAllParams ¶
func NewCalculateTotalPriceRequestWithAllParams( regionId string, cmd int, orderList []billing.OrderPriceProtocol, operateTime *string, promotionInfo *string, clientType *int, packageCount int, processType *int, renewMode *int, unifyExpireDay *int, totalPriceRule *int, ) *CalculateTotalPriceRequest
* param regionId: (Required) * param cmd: 操作类型 1:创建 2:续费 3:升配 4:删除 (Required) * param orderList: 计算价格的订单 (Optional) * param operateTime: 操作时间(格式为:yyyy-MM-dd HH:mm:ss) (Optional) * param promotionInfo: 1:折扣(不需要传) 2:免费活动3:付费活动 4:推荐码 5:会员价 [{"promotionType":1,"activityCode":123},{"promotionType":2,"activityCode":}] (Optional) * param clientType: 客户端:1.PC端;2.移动端; (Optional) * param packageCount: 批量购买时数量 (Required) * param processType: 临时升配时必传,3-临时升配 (Optional) * param renewMode: 续费方式 0:正常续费 1:续费至统一到期日,续费时必传 (Optional) * param unifyExpireDay: 续费统一到期日(1-28),续费时必传 (Optional) * param totalPriceRule: 计算总价规则 1:计算预付费资源总价(计费类型为包年包月、按次) ;不传计算所有资源总价 (Optional)
func NewCalculateTotalPriceRequestWithoutParam ¶
func NewCalculateTotalPriceRequestWithoutParam() *CalculateTotalPriceRequest
This constructor has better compatible ability when API parameters changed
func (CalculateTotalPriceRequest) GetRegionId ¶
func (r CalculateTotalPriceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CalculateTotalPriceRequest) SetClientType ¶
func (r *CalculateTotalPriceRequest) SetClientType(clientType int)
param clientType: 客户端:1.PC端;2.移动端;(Optional)
func (*CalculateTotalPriceRequest) SetCmd ¶
func (r *CalculateTotalPriceRequest) SetCmd(cmd int)
param cmd: 操作类型 1:创建 2:续费 3:升配 4:删除(Required)
func (*CalculateTotalPriceRequest) SetOperateTime ¶
func (r *CalculateTotalPriceRequest) SetOperateTime(operateTime string)
param operateTime: 操作时间(格式为:yyyy-MM-dd HH:mm:ss)(Optional)
func (*CalculateTotalPriceRequest) SetOrderList ¶
func (r *CalculateTotalPriceRequest) SetOrderList(orderList []billing.OrderPriceProtocol)
param orderList: 计算价格的订单(Optional)
func (*CalculateTotalPriceRequest) SetPackageCount ¶
func (r *CalculateTotalPriceRequest) SetPackageCount(packageCount int)
param packageCount: 批量购买时数量(Required)
func (*CalculateTotalPriceRequest) SetProcessType ¶
func (r *CalculateTotalPriceRequest) SetProcessType(processType int)
param processType: 临时升配时必传,3-临时升配(Optional)
func (*CalculateTotalPriceRequest) SetPromotionInfo ¶
func (r *CalculateTotalPriceRequest) SetPromotionInfo(promotionInfo string)
param promotionInfo: 1:折扣(不需要传) 2:免费活动3:付费活动 4:推荐码 5:会员价 [{"promotionType":1,"activityCode":123},{"promotionType":2,"activityCode":}](Optional)
func (*CalculateTotalPriceRequest) SetRegionId ¶
func (r *CalculateTotalPriceRequest) SetRegionId(regionId string)
param regionId: (Required)
func (*CalculateTotalPriceRequest) SetRenewMode ¶
func (r *CalculateTotalPriceRequest) SetRenewMode(renewMode int)
param renewMode: 续费方式 0:正常续费 1:续费至统一到期日,续费时必传(Optional)
func (*CalculateTotalPriceRequest) SetTotalPriceRule ¶
func (r *CalculateTotalPriceRequest) SetTotalPriceRule(totalPriceRule int)
param totalPriceRule: 计算总价规则 1:计算预付费资源总价(计费类型为包年包月、按次) ;不传计算所有资源总价(Optional)
func (*CalculateTotalPriceRequest) SetUnifyExpireDay ¶
func (r *CalculateTotalPriceRequest) SetUnifyExpireDay(unifyExpireDay int)
param unifyExpireDay: 续费统一到期日(1-28),续费时必传(Optional)
type CalculateTotalPriceResponse ¶
type CalculateTotalPriceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CalculateTotalPriceResult `json:"result"` }
type CalculateTotalPriceResult ¶
type CalculateTotalPriceResult struct { TotalPrice int `json:"totalPrice"` TotalPriceScale4 int `json:"totalPriceScale4"` DiscountedTotalPrice int `json:"discountedTotalPrice"` TotalDiscount int `json:"totalDiscount"` List []billing.OrderPriceDetail `json:"list"` TotalOriginalPrice int `json:"totalOriginalPrice"` FavorableInfos string `json:"favorableInfos"` Remark string `json:"remark"` TotalUnitPrice int `json:"totalUnitPrice"` }
type QueryBillDetailRequest ¶
type QueryBillDetailRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* 账期开始时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss */ StartTime string `json:"startTime"` /* 账期结束时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss */ EndTime string `json:"endTime"` /* 产品线代码 (Optional) */ AppCode *string `json:"appCode"` /* 产品代码 (Optional) */ ServiceCode *string `json:"serviceCode"` /* 计费类型 1、按配置 2、按用量 3、包年包月 4、按次 (Optional) */ BillingType *int `json:"billingType"` /* 资源单id列表,最多支持传入500个 (Optional) */ ResourceIds []string `json:"resourceIds"` /* 标签,JSON格式:[{"k1":"v1"},{"k1":"v2"},{"k2":""}] 示例: 选择的标签为, 部门:广告部、部门:物流部、项目 则传值为:[{"部门":"广告部"},{"部门":"物流部"},{"项目":""}] (Optional) */ Tags []interface{} `json:"tags"` /* pageIndex 分页,默认从1开始 (Optional) */ PageIndex *int `json:"pageIndex"` /* pageSize 每页查询数据条数,最多支持1000条 (Optional) */ PageSize *int `json:"pageSize"` }
func NewQueryBillDetailRequest ¶
func NewQueryBillDetailRequest( regionId string, startTime string, endTime string, ) *QueryBillDetailRequest
* param regionId: Region ID (Required) * param startTime: 账期开始时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss (Required) * param endTime: 账期结束时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewQueryBillDetailRequestWithAllParams ¶
func NewQueryBillDetailRequestWithAllParams( regionId string, startTime string, endTime string, appCode *string, serviceCode *string, billingType *int, resourceIds []string, tags []interface{}, pageIndex *int, pageSize *int, ) *QueryBillDetailRequest
- param regionId: Region ID (Required)
- param startTime: 账期开始时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss (Required)
- param endTime: 账期结束时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss (Required)
- param appCode: 产品线代码 (Optional)
- param serviceCode: 产品代码 (Optional)
- param billingType: 计费类型 1、按配置 2、按用量 3、包年包月 4、按次 (Optional)
- param resourceIds: 资源单id列表,最多支持传入500个 (Optional)
- param tags: 标签,JSON格式:[{"k1":"v1"},{"k1":"v2"},{"k2":""}]
示例: 选择的标签为, 部门:广告部、部门:物流部、项目 则传值为:[{"部门":"广告部"},{"部门":"物流部"},{"项目":""}]
(Optional) * param pageIndex: pageIndex 分页,默认从1开始 (Optional) * param pageSize: pageSize 每页查询数据条数,最多支持1000条 (Optional)
func NewQueryBillDetailRequestWithoutParam ¶
func NewQueryBillDetailRequestWithoutParam() *QueryBillDetailRequest
This constructor has better compatible ability when API parameters changed
func (QueryBillDetailRequest) GetRegionId ¶
func (r QueryBillDetailRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*QueryBillDetailRequest) SetAppCode ¶
func (r *QueryBillDetailRequest) SetAppCode(appCode string)
param appCode: 产品线代码(Optional)
func (*QueryBillDetailRequest) SetBillingType ¶
func (r *QueryBillDetailRequest) SetBillingType(billingType int)
param billingType: 计费类型 1、按配置 2、按用量 3、包年包月 4、按次(Optional)
func (*QueryBillDetailRequest) SetEndTime ¶
func (r *QueryBillDetailRequest) SetEndTime(endTime string)
param endTime: 账期结束时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss(Required)
func (*QueryBillDetailRequest) SetPageIndex ¶
func (r *QueryBillDetailRequest) SetPageIndex(pageIndex int)
param pageIndex: pageIndex 分页,默认从1开始(Optional)
func (*QueryBillDetailRequest) SetPageSize ¶
func (r *QueryBillDetailRequest) SetPageSize(pageSize int)
param pageSize: pageSize 每页查询数据条数,最多支持1000条(Optional)
func (*QueryBillDetailRequest) SetRegionId ¶
func (r *QueryBillDetailRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
func (*QueryBillDetailRequest) SetResourceIds ¶
func (r *QueryBillDetailRequest) SetResourceIds(resourceIds []string)
param resourceIds: 资源单id列表,最多支持传入500个(Optional)
func (*QueryBillDetailRequest) SetServiceCode ¶
func (r *QueryBillDetailRequest) SetServiceCode(serviceCode string)
param serviceCode: 产品代码(Optional)
func (*QueryBillDetailRequest) SetStartTime ¶
func (r *QueryBillDetailRequest) SetStartTime(startTime string)
param startTime: 账期开始时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss(Required)
func (*QueryBillDetailRequest) SetTags ¶
func (r *QueryBillDetailRequest) SetTags(tags []interface{})
param tags: 标签,JSON格式:[{"k1":"v1"},{"k1":"v2"},{"k2":""}]
示例: 选择的标签为, 部门:广告部、部门:物流部、项目 则传值为:[{"部门":"广告部"},{"部门":"物流部"},{"项目":""}] (Optional)
type QueryBillDetailResponse ¶
type QueryBillDetailResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result QueryBillDetailResult `json:"result"` }
type QueryBillDetailResult ¶
type QueryBillDetailResult struct { Pagination billing.Pagination `json:"pagination"` Result []billing.BillSummary `json:"result"` }
type QueryBillSummaryRequest ¶
type QueryBillSummaryRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* 账期开始时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss */ StartTime string `json:"startTime"` /* 账期结束时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss */ EndTime string `json:"endTime"` /* 产品线代码 (Optional) */ AppCode *string `json:"appCode"` /* 产品代码 (Optional) */ ServiceCode *string `json:"serviceCode"` /* 资源单id列表,最多支持传入500个 (Optional) */ ResourceIds []string `json:"resourceIds"` /* 标签,JSON格式:[{"k1":"v1"},{"k1":"v2"},{"k2":""}] 示例: 选择的标签为, 部门:广告部、部门:物流部、项目 则传值为:[{"部门":"广告部"},{"部门":"物流部"},{"项目":""}] (Optional) */ Tags []interface{} `json:"tags"` /* pageIndex 分页,默认从1开始 (Optional) */ PageIndex *int `json:"pageIndex"` /* pageSize 每页查询数据条数,最多支持1000条 (Optional) */ PageSize *int `json:"pageSize"` }
func NewQueryBillSummaryRequest ¶
func NewQueryBillSummaryRequest( regionId string, startTime string, endTime string, ) *QueryBillSummaryRequest
* param regionId: Region ID (Required) * param startTime: 账期开始时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss (Required) * param endTime: 账期结束时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewQueryBillSummaryRequestWithAllParams ¶
func NewQueryBillSummaryRequestWithAllParams( regionId string, startTime string, endTime string, appCode *string, serviceCode *string, resourceIds []string, tags []interface{}, pageIndex *int, pageSize *int, ) *QueryBillSummaryRequest
- param regionId: Region ID (Required)
- param startTime: 账期开始时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss (Required)
- param endTime: 账期结束时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss (Required)
- param appCode: 产品线代码 (Optional)
- param serviceCode: 产品代码 (Optional)
- param resourceIds: 资源单id列表,最多支持传入500个 (Optional)
- param tags: 标签,JSON格式:[{"k1":"v1"},{"k1":"v2"},{"k2":""}]
示例: 选择的标签为, 部门:广告部、部门:物流部、项目 则传值为:[{"部门":"广告部"},{"部门":"物流部"},{"项目":""}]
(Optional) * param pageIndex: pageIndex 分页,默认从1开始 (Optional) * param pageSize: pageSize 每页查询数据条数,最多支持1000条 (Optional)
func NewQueryBillSummaryRequestWithoutParam ¶
func NewQueryBillSummaryRequestWithoutParam() *QueryBillSummaryRequest
This constructor has better compatible ability when API parameters changed
func (QueryBillSummaryRequest) GetRegionId ¶
func (r QueryBillSummaryRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*QueryBillSummaryRequest) SetAppCode ¶
func (r *QueryBillSummaryRequest) SetAppCode(appCode string)
param appCode: 产品线代码(Optional)
func (*QueryBillSummaryRequest) SetEndTime ¶
func (r *QueryBillSummaryRequest) SetEndTime(endTime string)
param endTime: 账期结束时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss(Required)
func (*QueryBillSummaryRequest) SetPageIndex ¶
func (r *QueryBillSummaryRequest) SetPageIndex(pageIndex int)
param pageIndex: pageIndex 分页,默认从1开始(Optional)
func (*QueryBillSummaryRequest) SetPageSize ¶
func (r *QueryBillSummaryRequest) SetPageSize(pageSize int)
param pageSize: pageSize 每页查询数据条数,最多支持1000条(Optional)
func (*QueryBillSummaryRequest) SetRegionId ¶
func (r *QueryBillSummaryRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
func (*QueryBillSummaryRequest) SetResourceIds ¶
func (r *QueryBillSummaryRequest) SetResourceIds(resourceIds []string)
param resourceIds: 资源单id列表,最多支持传入500个(Optional)
func (*QueryBillSummaryRequest) SetServiceCode ¶
func (r *QueryBillSummaryRequest) SetServiceCode(serviceCode string)
param serviceCode: 产品代码(Optional)
func (*QueryBillSummaryRequest) SetStartTime ¶
func (r *QueryBillSummaryRequest) SetStartTime(startTime string)
param startTime: 账期开始时间,不支持跨月查询。格式:yyyy-MM-dd HH:mm:ss(Required)
func (*QueryBillSummaryRequest) SetTags ¶
func (r *QueryBillSummaryRequest) SetTags(tags []interface{})
param tags: 标签,JSON格式:[{"k1":"v1"},{"k1":"v2"},{"k2":""}]
示例: 选择的标签为, 部门:广告部、部门:物流部、项目 则传值为:[{"部门":"广告部"},{"部门":"物流部"},{"项目":""}] (Optional)
type QueryBillSummaryResponse ¶
type QueryBillSummaryResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result QueryBillSummaryResult `json:"result"` }
type QueryBillSummaryResult ¶
type QueryBillSummaryResult struct { Pagination billing.Pagination `json:"pagination"` Result []billing.BillSummary `json:"result"` }