Documentation ¶
Index ¶
- Variables
- type BillOperator
- func (o *BillOperator) DescribeOrder(ctx context.Context, r *provider.DescribeRequest) (*order.Order, error)
- func (o *BillOperator) PageQueryBill(req *provider.QueryBillRequest) pager.Pager
- func (o *BillOperator) PageQueryOrder(req *provider.QueryOrderRequest) pager.Pager
- func (o *BillOperator) QueryOrder(ctx context.Context, req *billing.DescribeDealsByCondRequest) (*order.OrderSet, error)
- func (o *BillOperator) QuerySummary(ctx context.Context, req *provider.QueryBillSummaryRequeset) (*bill.SummaryRecordSet, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ORDER_STATUS_MAP = map[int64]order.ORDER_STATUS{ 1: order.ORDER_STATUS_UNPAID, 2: order.ORDER_STATUS_PAID, 3: order.ORDER_STATUS_PAID, 4: order.ORDER_STATUS_PAID, 5: order.ORDER_STATUS_PAID, 6: order.ORDER_STATUS_PAID, 7: order.ORDER_STATUS_PAID, 8: order.ORDER_STATUS_EXPIRED, 9: order.ORDER_STATUS_EXPIRED, 10: order.ORDER_STATUS_EXPIRED, 11: order.ORDER_STATUS_UNPAID, 12: order.ORDER_STATUS_PAYING, } )
1:未支付 2:已支付 3:发货中 4:已发货 5:发货失败 6:已退款 7:已关单 8:订单过期 9:订单已失效 10:产品已失效 11:代付拒绝 12:支付中
View Source
var ( ORDER_TYPE_MAP = map[string]order.ORDER_TYPE{ "modifyNetworkMode": order.ORDER_TYPE_CONVERT, "modifyNetworkSize": order.ORDER_TYPE_CONVERT, "refund": order.ORDER_TYPE_REFUND, "downgrade": order.ORDER_TYPE_DOWNGRADE, "upgrade": order.ORDER_TYPE_UPGRADE, "renew": order.ORDER_TYPE_RENEW, "purchase": order.ORDER_TYPE_NEW, "preMoveOut": order.ORDER_TYPE_CONVERT, "preMoveIn": order.ORDER_TYPE_CONVERT, "preToPost": order.ORDER_TYPE_CONVERT, "postMoveOut": order.ORDER_TYPE_CONVERT, "postMoveIn": order.ORDER_TYPE_CONVERT, } )
modifyNetworkMode 调整带宽模式 modifyNetworkSize 调整带宽大小 refund 退款 downgrade 降配 upgrade 升配 renew 续费 purchase 购买 preMoveOut 包年包月迁出资源 preMoveIn 包年包月迁入资源 preToPost 预付费转后付费 postMoveOut 按量计费迁出资源 postMoveIn 按量计费迁入资源
View Source
var ( // p_cvm // p_cbs // p_cdb // p_sms // p_vpn // p_redis // p_nat // p_eip // p_sqlserver // p_mongodb // p_yunjing // p_domain // p_ssl // p_dem // p_clb RESOURCE_TYPE_MAP = map[string]resource.TYPE{ "p_cvm": resource.TYPE_HOST, "p_eip": resource.TYPE_EIP, "p_cbs": resource.TYPE_DISK, "p_cdb": resource.TYPE_RDS, "p_redis": resource.TYPE_REDIS, "p_sqlserver": resource.TYPE_RDS, "p_mongodb": resource.TYPE_MONGODB, "p_clb": resource.TYPE_LB, } )
Functions ¶
This section is empty.
Types ¶
type BillOperator ¶
type BillOperator struct {
// contains filtered or unexported fields
}
func NewBillingoperator ¶
func NewBillingoperator(client *billing.Client) *BillOperator
func (*BillOperator) DescribeOrder ¶
func (o *BillOperator) DescribeOrder(ctx context.Context, r *provider.DescribeRequest) (*order.Order, error)
默认查询最近10年内订单
func (*BillOperator) PageQueryBill ¶
func (o *BillOperator) PageQueryBill(req *provider.QueryBillRequest) pager.Pager
func (*BillOperator) PageQueryOrder ¶
func (o *BillOperator) PageQueryOrder(req *provider.QueryOrderRequest) pager.Pager
func (*BillOperator) QueryOrder ¶
func (o *BillOperator) QueryOrder(ctx context.Context, req *billing.DescribeDealsByCondRequest) (*order.OrderSet, error)
func (*BillOperator) QuerySummary ¶
func (o *BillOperator) QuerySummary(ctx context.Context, req *provider.QueryBillSummaryRequeset) ( *bill.SummaryRecordSet, error)
Click to show internal directories.
Click to hide internal directories.