bss

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: 19 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ORDER_STATUS_MAP = map[string]order.ORDER_STATUS{
		"Unpaid":    order.ORDER_STATUS_UNPAID,
		"Paid":      order.ORDER_STATUS_PAID,
		"Cancelled": order.ORDER_STATUS_CANCELLED,
	}
)

Unpaid:未支付。 Paid:已支付。 Cancelled:已作废。

View Source
var (
	ORDER_TYPE_MAP = map[string]order.ORDER_TYPE{
		"New":        order.ORDER_TYPE_NEW,
		"Renew":      order.ORDER_TYPE_RENEW,
		"Upgrade":    order.ORDER_TYPE_UPGRADE,
		"Downgrade":  order.ORDER_TYPE_DOWNGRADE,
		"Refund":     order.ORDER_TYPE_REFUND,
		"Convert":    order.ORDER_TYPE_CONVERT,
		"ResizeDisk": order.ORDER_TYPE_UPGRADE,
	}
)

New:新购。 Renew:续费。 Upgrade:升级。 Refund:退款。 Convert: 付费类型转换。 Downgrade:降配。 ResizeDisk:磁盘扩容

View Source
var (
	RESOURCE_TYPE_MAP = map[string]resource.TYPE{
		"ecs":     resource.TYPE_HOST,
		"eip":     resource.TYPE_EIP,
		"yundisk": resource.TYPE_DISK,
		"rds":     resource.TYPE_RDS,
		"kvstore": resource.TYPE_REDIS,
		"redisa":  resource.TYPE_REDIS,
		"slb":     resource.TYPE_LB,
	}
)

Functions

func ToFloat64

func ToFloat64(v float32) float64

Types

type BssOperator

type BssOperator struct {
	// contains filtered or unexported fields
}

func NewBssOperator

func NewBssOperator(client *bssopenapi.Client) *BssOperator

func (*BssOperator) DescribeOrder

func (o *BssOperator) DescribeOrder(ctx context.Context, r *provider.DescribeRequest) (
	*order.Order, error)

func (*BssOperator) PageQueryBill

func (o *BssOperator) PageQueryBill(req *provider.QueryBillRequest) pager.Pager

func (*BssOperator) PageQueryOrder

func (o *BssOperator) PageQueryOrder(req *provider.QueryOrderRequest) pager.Pager

func (*BssOperator) QuerySummary

查询用户某个账期内账单总览信息 参考: https://next.api.aliyun.com/api/BssOpenApi/2017-12-14/QueryBillOverview?params={}

Jump to

Keyboard shortcuts

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