Documentation ¶
Index ¶
- Constants
- Variables
- type Bill
- type BillDetail
- type BillDetailList
- type BillDetailListResp
- type BillList
- type BillListResp
- type BillOverviewByCategory
- type BillOverviewByCategoryMap
- type BillOverviewByCategoryMapResp
- type BillOverviewByProd
- type BillOverviewByProdList
- type BillOverviewByProdListResp
- type Billing
- func (p *Billing) GetAPIInfo(api string) *base.ApiInfo
- func (p *Billing) GetServiceInfo() *base.ServiceInfo
- func (p *Billing) ListAmortizedCostBillDetail(req *ListAmortizedCostBillDetailReq) (*ListAmortizedCostBillDetailResp, int, error)
- func (p *Billing) ListAmortizedCostBillMonthly(req *ListAmortizedCostBillMonthlyReq) (*ListAmortizedCostBillMonthlyResp, int, error)
- func (p *Billing) ListBill(query url.Values) (*BillListResp, int, error)
- func (p *Billing) ListBillDetail(query url.Values) (*BillDetailListResp, int, error)
- func (p *Billing) ListBillOverviewByCategory(query url.Values) (*BillOverviewByCategoryMapResp, int, error)
- func (p *Billing) ListBillOverviewByProd(query url.Values) (*BillOverviewByProdListResp, int, error)
- func (p *Billing) ListSplitBillDetail(query url.Values) (*SplitBillDetailListResp, int, error)
- func (p *Billing) SetHost(host string)
- func (p *Billing) SetRegion(region string)
- func (p *Billing) SetSchema(schema string)
- func (p *Billing) UnsubscribeInstance(req *UnsubscribeInstanceReq) (*UnsubscribeInstanceResp, int, error)
- type CostBillDetail
- type CostBillDetailList
- type CostBillMonthly
- type CostBillMonthlyList
- type ListAmortizedCostBillDetailReq
- type ListAmortizedCostBillDetailResp
- type ListAmortizedCostBillMonthlyReq
- type ListAmortizedCostBillMonthlyResp
- type SplitBillDetail
- type SplitBillDetailList
- type SplitBillDetailListResp
- type SuccessInstanceInfo
- type UnsubscribeInstanceReq
- type UnsubscribeInstanceResp
- type UnsubscribeInstanceResult
Constants ¶
View Source
const ( DefaultRegion = "cn-north-1" ServiceVersion20220101 = "2022-01-01" ServiceName = "billing" )
Variables ¶
View Source
var ( ServiceInfo = &base.ServiceInfo{ Timeout: 5 * time.Second, Host: "billing.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, } ApiInfoList = map[string]*base.ApiInfo{ "ListBillDetail": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ListBillDetail"}, "Version": []string{ServiceVersion20220101}, }, }, "ListBill": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ListBill"}, "Version": []string{ServiceVersion20220101}, }, }, "ListBillOverviewByProd": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ListBillOverviewByProd"}, "Version": []string{ServiceVersion20220101}, }, }, "ListBillOverviewByCategory": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ListBillOverviewByCategory"}, "Version": []string{ServiceVersion20220101}, }, }, "ListSplitBillDetail": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ListSplitBillDetail"}, "Version": []string{ServiceVersion20220101}, }, }, "UnsubscribeInstance": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"UnsubscribeInstance"}, "Version": []string{ServiceVersion20220101}, }, }, "ListAmortizedCostBillDetail": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ListAmortizedCostBillDetail"}, "Version": []string{ServiceVersion20220101}, }, }, "ListAmortizedCostBillMonthly": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ListAmortizedCostBillMonthly"}, "Version": []string{ServiceVersion20220101}, }, }, } )
View Source
var DefaultInstance = NewInstance()
DefaultInstance 默认的实例
Functions ¶
This section is empty.
Types ¶
type Bill ¶
type Bill struct { BillPeriod string PayerID string PayerUserName string PayerCustomerName string SellerID string SellerUserName string SellerCustomerName string OwnerID string OwnerUserName string OwnerCustomerName string Product string ProductZh string BusinessMode string BillingMode string ExpenseBeginTime string ExpenseEndTime string TradeTime string BillID string BillCategoryParent string OriginalBillAmount string PreferentialBillAmount string RoundBillAmount string DiscountBillAmount string CouponAmount string PayableAmount string PaidAmount string UnpaidAmount string Currency string PayStatus string SettlementType string BillDetailNum string }
type BillDetail ¶
type BillDetail struct { BillPeriod string ExpenseDate string PayerID string PayerUserName string PayerCustomerName string SellerID string SellerUserName string SellerCustomerName string OwnerID string OwnerUserName string OwnerCustomerName string BusinessMode string Product string ProductZh string BillingMode string ExpenseBeginTime string ExpenseEndTime string UseDuration string UseDurationUnit string TradeTime string BillID string BillCategory string InstanceNo string InstanceName string ConfigName string Element string Region string Zone string Factor string ExpandField string Price string PriceUnit string Count string Unit string DeductionCount string OriginalBillAmount string PreferentialBillAmount string DiscountBillAmount string CouponAmount string PayableAmount string PaidAmount string UnpaidAmount string Currency string SettlementType string Project string Tag string SellingMode string SolutionZh string ReservationInstance string BillDetailId string ElementCode string RegionCode string ZoneCode string FactorCode string ConfigurationCode string DeductionUseDuration string }
type BillDetailList ¶
type BillDetailList struct { List []*BillDetail Total int Limit int Offset int }
type BillDetailListResp ¶
type BillDetailListResp struct { ResponseMetadata *base.ResponseMetadata Result *BillDetailList `json:",omitempty"` }
type BillListResp ¶
type BillListResp struct { ResponseMetadata *base.ResponseMetadata Result *BillList `json:",omitempty"` }
type BillOverviewByCategory ¶ added in v1.0.125
type BillOverviewByCategory struct { PayerID string PayerUserName string PayerCustomerName string BusinessMode string BillPeriod string BillCategoryParent string SubjectNo string SellerID string SellerUserName string SellerCustomerName string OwnerID string OwnerUserName string OwnerCustomerName string SettlementType string SubjectName string OriginalBillAmount string DiscountBillAmount string CouponAmount string PayableAmount string PaidAmount string UnpaidAmount string CreditCarriedAmount string }
type BillOverviewByCategoryMap ¶ added in v1.0.125
type BillOverviewByCategoryMap struct {
Map map[int64][]*BillOverviewByCategory
}
type BillOverviewByCategoryMapResp ¶ added in v1.0.125
type BillOverviewByCategoryMapResp struct { ResponseMetadata *base.ResponseMetadata Result *BillOverviewByCategoryMap `json:"Result,omitempty"` }
type BillOverviewByProd ¶
type BillOverviewByProd struct { BillPeriod string PayerID string PayerUserName string PayerCustomerName string SellerID string SellerUserName string SellerCustomerName string OwnerID string OwnerUserName string OwnerCustomerName string BusinessMode string Product string ProductZh string BillingMode string BillCategoryParent string OriginalBillAmount string PreferentialBillAmount string RoundBillAmount string DiscountBillAmount string CouponAmount string PayableAmount string PaidAmount string UnpaidAmount string SettlementType string CreditCarriedAmount string SubjectName string }
type BillOverviewByProdList ¶
type BillOverviewByProdList struct { List []*BillOverviewByProd Total int Limit int Offset int }
type BillOverviewByProdListResp ¶
type BillOverviewByProdListResp struct { ResponseMetadata *base.ResponseMetadata Result *BillOverviewByProdList `json:",omitempty"` }
type Billing ¶
Billing .
func (*Billing) GetAPIInfo ¶
GetAPIInfo interface
func (*Billing) GetServiceInfo ¶
func (p *Billing) GetServiceInfo() *base.ServiceInfo
GetServiceInfo interface
func (*Billing) ListAmortizedCostBillDetail ¶
func (p *Billing) ListAmortizedCostBillDetail(req *ListAmortizedCostBillDetailReq) (*ListAmortizedCostBillDetailResp, int, error)
ListAmortizedCostBillDetail 查询成本账单明细
func (*Billing) ListAmortizedCostBillMonthly ¶
func (p *Billing) ListAmortizedCostBillMonthly(req *ListAmortizedCostBillMonthlyReq) (*ListAmortizedCostBillMonthlyResp, int, error)
ListAmortizedCostBillMonthly 查询成本账单总览
func (*Billing) ListBillDetail ¶
ListBillDetail 分页查询账单明细
func (*Billing) ListBillOverviewByCategory ¶ added in v1.0.125
func (p *Billing) ListBillOverviewByCategory(query url.Values) (*BillOverviewByCategoryMapResp, int, error)
ListBillOverviewByCategory 查询账单总览-汇总
func (*Billing) ListBillOverviewByProd ¶
func (p *Billing) ListBillOverviewByProd(query url.Values) (*BillOverviewByProdListResp, int, error)
ListBillOverviewByProd 分页查询账单总览-产品汇总
func (*Billing) ListSplitBillDetail ¶
ListSplitBillDetail 分页查询分账账单明细
func (*Billing) UnsubscribeInstance ¶
func (p *Billing) UnsubscribeInstance(req *UnsubscribeInstanceReq) (*UnsubscribeInstanceResp, int, error)
UnsubscribeInstance 退订实例
type CostBillDetail ¶
type CostBillDetail struct { CostID string AmortizedMonth string AmortizedDay string BillPeriod string BusiPeriod string PayerID string PayerUserName string PayerCustomerName string SellerID string SellerUserName string SellerCustomerName string OwnerID string OwnerUserName string OwnerCustomerName string Product string ProductZh string BusinessMode string BillingMode string BillCategory string AmortizedType string AmortizedBeginTime string AmortizedEndTime string BillID string InstanceNo string InstanceName string ConfigName string Element string Region string Zone string Factor string ExpandField string ExpenseBeginTime string ExpenseEndTime string TradeTime string Price string PriceUnit string Count string Unit string UseDuration string UseDurationUnit string OriginalBillAmount string PreferentialBillAmount string RoundAmount string DiscountBillAmount string CouponAmount string PayableAmount string DailyAmortizedCouponAmount string DailyAmortizedPayableAmount string Currency string Project string Tag string SubjectName string PaidAmount string DailyAmortizedOriginalBillAmount string DailyAmortizedPreferentialBillAmount string DailyAmortizedRoundAmount string DailyAmortizedDiscountBillAmount string DailyAmortizedPaidAmount string }
type CostBillDetailList ¶
type CostBillDetailList struct { List []*CostBillDetail Total int Limit int Offset int }
type CostBillMonthly ¶
type CostBillMonthly struct { AmortizedMonth string BillPeriod string BusiPeriod string PayerID string PayerUserName string PayerCustomerName string SellerID string SellerUserName string SellerCustomerName string OwnerID string OwnerUserName string OwnerCustomerName string Product string ProductZh string BusinessMode string BillingMode string BillCategory string AmortizedType string AmortizedBeginTime string AmortizedEndTime string AmortizedDayNum string BillID string InstanceNo string InstanceName string ConfigName string Element string Region string Zone string Factor string ExpandField string ExpenseTime string Price string PriceUnit string Count string Unit string UseDuration string UseDurationUnit string OriginalBillAmount string PreferentialBillAmount string RoundAmount string DiscountBillAmount string CouponAmount string PayableAmount string DailyAmortizedCouponAmount string DailyAmortizedPayableAmount string BeforeAmortizedCouponAmount string BeforeAmortizedPayableAmount string NowAmortizedCouponAmount string NowAmortizedPayableAmount string UnamortizedCouponAmount string UnamortizedPayableAmount string Currency string Project string Tag string SubjectName string PaidAmount string DailyAmortizedOriginalBillAmount string DailyAmortizedPreferentialBillAmount string DailyAmortizedRoundAmount string DailyAmortizedDiscountBillAmount string DailyAmortizedPaidAmount string BeforeAmortizedOriginalBillAmount string BeforeAmortizedPreferentialBillAmount string BeforeAmortizedRoundAmount string BeforeAmortizedDiscountBillAmount string BeforeAmortizedPaidAmount string NowAmortizedOriginalBillAmount string NowAmortizedPreferentialBillAmount string NowAmortizedRoundAmount string NowAmortizedDiscountBillAmount string NowAmortizedPaidAmount string UnamortizedOriginalBillAmount string UnamortizedPreferentialBillAmount string UnamortizedRoundAmount string UnamortizedDiscountBillAmount string UnamortizedPaidAmount string }
type CostBillMonthlyList ¶
type CostBillMonthlyList struct { List []*CostBillMonthly Total int Limit int Offset int }
type ListAmortizedCostBillDetailReq ¶
type ListAmortizedCostBillDetailReq struct { BillPeriod string `json:"BillPeriod"` AmortizedMonth string `json:"AmortizedMonth"` AmortizedDay string `json:"AmortizedDay"` Product string `json:"Product"` InstanceNo string `json:"InstanceNo"` BillingMode string `json:"BillingMode"` BillCategory string `json:"BillCategory"` AmortizedType string `json:"AmortizedType"` IgnoreZero string `json:"IgnoreZero"` NeedRecordNum string `json:"NeedRecordNum"` Offset string `json:"Offset"` Limit string `json:"Limit"` }
type ListAmortizedCostBillDetailResp ¶
type ListAmortizedCostBillDetailResp struct { ResponseMetadata *base.ResponseMetadata Result *CostBillDetailList `json:",omitempty"` }
type ListAmortizedCostBillMonthlyReq ¶
type ListAmortizedCostBillMonthlyReq struct { BillPeriod string `json:"BillPeriod"` AmortizedMonth string `json:"AmortizedMonth"` Product string `json:"Product"` InstanceNo string `json:"InstanceNo"` BillingMode string `json:"BillingMode"` BillCategory string `json:"BillCategory"` AmortizedType string `json:"AmortizedType"` IgnoreZero string `json:"IgnoreZero"` NeedRecordNum string `json:"NeedRecordNum"` Offset string `json:"Offset"` Limit string `json:"Limit"` }
type ListAmortizedCostBillMonthlyResp ¶
type ListAmortizedCostBillMonthlyResp struct { ResponseMetadata *base.ResponseMetadata Result *CostBillMonthlyList `json:",omitempty"` }
type SplitBillDetail ¶
type SplitBillDetail struct { BillPeriod string ExpenseTime string PayerUserName string SellerUserName string OwnerUserName string Product string ProductZh string BusinessMode string BillingMode string UseDuration string UseDurationUnit string TradeTime string BillID string BillCategory string SettlementType string InstanceNo string InstanceName string ConfigName string Element string Region string Zone string Factor string ExpandField string SplitItemID string SplitItemName string Price string PriceUnit string SplitItemAmount string Unit string SplitItemRatio string DeductionCount string SolutionZh string OriginalBillAmount string PreferentialBillAmount string DiscountBillAmount string CouponDeductionAmount string PayableAmount string PaidAmount string UnpaidAmount string Currency string Project string Tag string SellingMode string SubjectName string ReservationInstance string SplitBillDetailId string ElementCode string RegionCode string ZoneCode string FactorCode string ConfigurationCode string }
type SplitBillDetailList ¶
type SplitBillDetailList struct { List []*SplitBillDetail Total int Limit int Offset int }
type SplitBillDetailListResp ¶
type SplitBillDetailListResp struct { ResponseMetadata *base.ResponseMetadata Result *SplitBillDetailList `json:",omitempty"` }
type SuccessInstanceInfo ¶
type UnsubscribeInstanceReq ¶
type UnsubscribeInstanceResp ¶
type UnsubscribeInstanceResp struct { ResponseMetadata *base.ResponseMetadata Result *UnsubscribeInstanceResult `json:",omitempty"` }
type UnsubscribeInstanceResult ¶
type UnsubscribeInstanceResult struct { OrderID string `json:"OrderID"` SuccessInstanceInfos []*SuccessInstanceInfo `json:"SuccessInstanceInfos"` }
Click to show internal directories.
Click to hide internal directories.