billing

package
v0.0.0-...-7aae7b9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 18 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

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) QuerySummary

Jump to

Keyboard shortcuts

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