Documentation ¶
Index ¶
- type BillingService
- func (bs *BillingService) GetContractInfo(contractId string, startMonth, toMonth string) (cinfo *ContractInfo)
- func (bs *BillingService) GetMonthlySummary(contractId string, rgroupId int, productId string, startMonth string, ...) (msum *GetMonthlySummaryResponse, err error)
- func (bs *BillingService) GetUsageCpcode(contractId, productId, startMonth, endMonth string) (msum *GetMonthlySummaryResponse, err error)
- func (bs *BillingService) GetUsageProducts(contractId string, startMonth, endMonth string) (products *GetUsageProductsResponse, err error)
- type ContractInfo
- type CpCodeStats
- type GetMonthlySummaryResponse
- type GetUsageProductsResponse
- type Product
- type ProductInfo
- type Stats
- type UsagePeriods
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingService ¶
func NewBillingService ¶
func NewBillingService(s session.Session) (bs *BillingService)
func (*BillingService) GetContractInfo ¶
func (bs *BillingService) GetContractInfo(contractId string, startMonth, toMonth string) (cinfo *ContractInfo)
func (*BillingService) GetMonthlySummary ¶
func (bs *BillingService) GetMonthlySummary(contractId string, rgroupId int, productId string, startMonth string, endMonth string) (msum *GetMonthlySummaryResponse, err error)
func (*BillingService) GetUsageCpcode ¶
func (bs *BillingService) GetUsageCpcode(contractId, productId, startMonth, endMonth string) (msum *GetMonthlySummaryResponse, err error)
func (*BillingService) GetUsageProducts ¶
func (bs *BillingService) GetUsageProducts(contractId string, startMonth, endMonth string) (products *GetUsageProductsResponse, err error)
type ContractInfo ¶
type ContractInfo struct { ContractID string ProductMap map[string]ProductInfo }
type CpCodeStats ¶
type GetMonthlySummaryResponse ¶
type GetMonthlySummaryResponse struct { Start string `json:"start"` End string `json:"end"` RequestDate time.Time `json:"requestDate"` AccountID string `json:"accountId"` ContractID string `json:"contractId"` ProductID string `json:"productId"` ProductName string `json:"productName"` ReportingGroupID int `json:"reportingGroupId,omitempty"` ReportingGroupName string `json:"reportingGroupName,omitempty"` UsagePeriods []UsagePeriods `json:"usagePeriods"` }
type GetUsageProductsResponse ¶
type GetUsageProductsResponse struct { Start string `json:"start"` End string `json:"end"` RequestDate time.Time `json:"requestDate"` AccountID string `json:"accountId"` ContractID string `json:"contractId"` UsagePeriods []struct { Month string `json:"month"` UsageProducts []Product `json:"usageProducts"` } `json:"usagePeriods"` }
type ProductInfo ¶
type UsagePeriods ¶
type UsagePeriods struct { Month string `json:"month"` Start string `json:"start"` End string `json:"end"` Region string `json:"region"` DataStatus string `json:"dataStatus"` CpCodes []int `json:"cpCodes,omitempty"` Stats []Stats `json:"stats,omitempty"` CpCodeStats []CpCodeStats `json:"cpCodeStats,omitempty"` }
Click to show internal directories.
Click to hide internal directories.