Documentation ¶
Index ¶
- Variables
- func ToFloat64(v float32) float64
- type BssOperator
- func (o *BssOperator) DescribeOrder(ctx context.Context, r *provider.DescribeRequest) (*order.Order, error)
- func (o *BssOperator) PageQueryBill(req *provider.QueryBillRequest) pager.Pager
- func (o *BssOperator) PageQueryOrder(req *provider.QueryOrderRequest) pager.Pager
- func (o *BssOperator) QuerySummary(ctx context.Context, req *provider.QueryBillSummaryRequeset) (*bill.SummaryRecordSet, error)
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:磁盘扩容
Functions ¶
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 ¶
func (o *BssOperator) QuerySummary(ctx context.Context, req *provider.QueryBillSummaryRequeset) ( *bill.SummaryRecordSet, error)
查询用户某个账期内账单总览信息 参考: https://next.api.aliyun.com/api/BssOpenApi/2017-12-14/QueryBillOverview?params={}
Click to show internal directories.
Click to hide internal directories.