bill

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceTypeDeductSum

type BalanceTypeDeductSum struct {
	//account type
	BalanceTypeId string `json:"balanceTypeId"`

	//total amount
	Amount *float64 `json:"amount,omitempty"`

	//bill type
	BillType string `json:"billType"`
}

type BalanceTypePay

type BalanceTypePay struct {
	//Account type
	BalanceTypeId string `json:"balance_type_id,omitempty"`

	//Deducted amount
	DeductAmount float64 `json:"deduct_amount,omitempty"`
}

type BillSumInfo

type BillSumInfo struct {
	//Customer Id。
	CustomerId string `json:"customerId"`

	//Bill type
	BillType string `json:"billType"`

	//Cloud service type code.
	CloudServiceTypeCode string `json:"cloudServiceTypeCode"`

	//Billing mode.
	PayMethod string `json:"payMethod"`

	//total amount
	Amount *float64 `json:"amount,omitempty"`

	//Outstanding amount
	DebtAmount *float64 `json:"debtAmount,omitempty"`

	//Write Off Debt Amount
	WriteOffDebtAmount *float64 `json:"writeoffDebtAmount,omitempty"`

	//Discount Amount
	DiscountAmount *float64 `json:"discountAmount,omitempty"`

	//Unit
	MeasureId *int `json:"measureId,omitempty"`

	//Currency
	Currency string `json:"currency"`

	//account detail list
	AccountDetails []BalanceTypeDeductSum `json:"accountDetails"`
}

type BillSumRecordInfo

type BillSumRecordInfo struct {
	//Customer ID.
	CustomerId string `json:"customer_id"`

	//Resource type code
	ResourceTypeCode string `json:"resource_type_code"`

	//Cloud service region
	RegionCode string `json:"region_code"`

	//Cloud service type code
	CloudServiceTypeCode string `json:"cloud_service_type_code"`

	//Expenditure data collection period
	ConsumeTime string `json:"consume_time"`

	//Expenditure type
	PayMethod string `json:"pay_method"`

	//Consumption amount
	ConsumeAmount *float64 `json:"consume_amount,omitempty"`

	//Outstanding amount
	Debt *float64 `json:"debt,omitempty"`

	//Discounted amount
	Discount *float64 `json:"discount,omitempty"`

	//Unit
	MeasureId *int `json:"measure_id,omitempty"`

	//Expenditure type
	BillType *int `json:"bill_type,omitempty"`

	//Total payment amount distinguished by expenditure type and payment method of an account.
	AccountDetails []BalanceTypePay `json:"account_details"`

	//Discounted amount details
	DiscountDetailInfos []DiscountDetailInfo `json:"discount_detail_infos"`

	//Enterprise project ID
	EnterpriseProjectId string `json:"enterpriseProjectId"`
}

type DiscountDetailInfo

type DiscountDetailInfo struct {
	//Discount type
	PromotionType string `json:"promotion_type"`

	//Discounted amount
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	//Discount type ID
	PromotionId string `json:"promotion_id"`

	//Unit
	MeasureId *int `json:"measure_id,omitempty"`
}

type MonthlyRecord

type MonthlyRecord struct {
	//Cloud service type code
	CloudServiceTypeCode string `json:"cloudServiceTypeCode"`

	//Resource type code
	ResourceTypeCode string `json:"resourceTypeCode"`

	//Cloud service region code
	RegionCode string `json:"regionCode"`

	//Resource instance ID
	ResInstanceId string `json:"resInstanceId"`

	//Resource name
	ResourceName string `json:"resourceName"`

	//Resource tag
	ResourceTag string `json:"resourceTag"`

	//Consumption amount of a cloud service, including the amount of cash coupons.
	ConsumeAmount *float64 `json:"consumeAmount,omitempty"`

	//Expenditure month
	Cycle string `json:"cycle"`

	//Unit
	MeasureId *int `json:"measureId,omitempty"`

	//Enterprise project ID
	EnterpriseProjectId string `json:"enterpriseProjectId"`

	//Billing mode
	PayMethod string `json:"payMethod"`
}

type QueryMonthlyExpenditureSummaryOpts

type QueryMonthlyExpenditureSummaryOpts struct {
	//Query cycle
	Cycle string `q:"cycle" required:"true"`

	//Cloud service type code
	CloudServiceTypeCode string `q:"cloud_service_type_code,omitempty"`

	//Account type
	Type string `q:"type,omitempty"`

	//Enterprise project ID.
	EnterpriseProjectId string `q:"enterpriseProjectId,omitempty"`
}

func (QueryMonthlyExpenditureSummaryOpts) ToQueryMonthlyExpenditureSummaryMap

func (opts QueryMonthlyExpenditureSummaryOpts) ToQueryMonthlyExpenditureSummaryMap() (string, error)

type QueryMonthlyExpenditureSummaryOptsBuilder

type QueryMonthlyExpenditureSummaryOptsBuilder interface {
	ToQueryMonthlyExpenditureSummaryMap() (string, error)
}

type QueryMonthlyExpenditureSummaryResp

type QueryMonthlyExpenditureSummaryResp struct {
	//Error code
	ErrorCode string `json:"error_code"`

	//Error description.
	ErrorMsg string `json:"error_msg"`

	//Currency.
	Currency string `json:"currency"`

	//Number of the total records
	TotalCount *int `json:"total_count,omitempty"`

	//Record information
	BillSums []BillSumRecordInfo `json:"bill_sums"`
}

type QueryMonthlyExpenditureSummaryResult

type QueryMonthlyExpenditureSummaryResult struct {
	gophercloud.Result
}

func QueryMonthlyExpenditureSummary

*

  • This API can be used to query the expenditure summary bills of a customer on the customer platform. The bills summarize the summary data by month. The expenditure summary contains only the data generated before 24:00 of the previous day.
  • This API can be invoked using the customer AK/SK or token only.

func (QueryMonthlyExpenditureSummaryResult) Extract

type QueryPartnerMonthlyBillsOpts

type QueryPartnerMonthlyBillsOpts struct {
	//Customer Id
	CustomerId string `q:"customerId,omitempty"`

	//Cloud service type code
	CloudServiceTypeCode string `q:"cloud_service_type_code,omitempty"`

	//period
	Period string `q:"period,omitempty"`

	//Payment method
	PayMethod string `q:"payMethod,omitempty"`

	//Page to be queried
	Offset *int `q:"offset,omitempty"`

	//Number of records on each page
	Limit *int `q:"limit,omitempty"`

	//bill type
	BillType string `q:"bill_type,omitempty"`
}

func (QueryPartnerMonthlyBillsOpts) ToQueryPartnerMonthlyBillsMap

func (opts QueryPartnerMonthlyBillsOpts) ToQueryPartnerMonthlyBillsMap() (string, error)

type QueryPartnerMonthlyBillsOptsBuilder

type QueryPartnerMonthlyBillsOptsBuilder interface {
	ToQueryPartnerMonthlyBillsMap() (string, error)
}

type QueryPartnerMonthlyBillsResp

type QueryPartnerMonthlyBillsResp struct {
	//Error code.
	ErrorCode string `json:"error_code"`

	//Error description
	ErrorMsg string `json:"error_msg"`

	//total count
	Count *int `json:"count,omitempty"`

	//Bill list.
	BillSums []BillSumInfo `json:"billSums"`
}

type QueryPartnerMonthlyBillsResult

type QueryPartnerMonthlyBillsResult struct {
	gophercloud.Result
}

func QueryPartnerMonthlyBills

*

  • This API is used to query monthly bills.
  • This API can be invoked only by the partner account AK/SK or token.

func (QueryPartnerMonthlyBillsResult) Extract

type QueryResourceUsageDetailsOpts

type QueryResourceUsageDetailsOpts struct {
	//Expenditure month
	Cycle string `q:"cycle" required:"true"`

	//Cloud service type code
	CloudServiceTypeCode string `q:"cloudServiceTypeCode,omitempty"`

	//Resource type code
	ResourceTypeCode string `q:"resourceTypeCode,omitempty"`

	//Cloud service region code
	RegionCode string `q:"regionCode,omitempty"`

	//Resource instance ID
	ResInstanceId string `q:"resInstanceId,omitempty"`

	//Payment method
	PayMethod string `q:"payMethod" required:"true"`

	//Enterprise project ID
	EnterpriseProjectId string `q:"enterpriseProjectId,omitempty"`

	//Page number.
	Offset *int `q:"offset" required:"true"`

	//Indicates the page limit
	Limit *int `q:"limit" required:"true"`
}

func (QueryResourceUsageDetailsOpts) ToQueryResourceUsageDetailsMap

func (opts QueryResourceUsageDetailsOpts) ToQueryResourceUsageDetailsMap() (string, error)

type QueryResourceUsageDetailsOptsBuilder

type QueryResourceUsageDetailsOptsBuilder interface {
	ToQueryResourceUsageDetailsMap() (string, error)
}

type QueryResourceUsageDetailsResp

type QueryResourceUsageDetailsResp struct {
	//Error code
	ErrorCode string `json:"error_code"`

	//Error description
	ErrorMsg string `json:"error_msg"`

	//Currency unit
	Currency string `json:"currency"`

	//Number of result sets
	TotalCount *int `json:"total_count,omitempty"`

	//Resource usage record
	MonthlyRecords []MonthlyRecord `json:"monthlyRecords"`
}

type QueryResourceUsageDetailsResult

type QueryResourceUsageDetailsResult struct {
	gophercloud.Result
}

func QueryResourceUsageDetails

*

  • This API can be used to query usage details of each resource for a customer on the customer platform. The resource details have a latency (a maximum of 24 hours).
  • This API can be invoked using the customer AK/SK or token only.

func (QueryResourceUsageDetailsResult) Extract

type QueryResourceUsageRecordOpts

type QueryResourceUsageRecordOpts struct {
	//Start time.
	StartTime string `q:"startTime" required:"true"`

	//End time
	EndTime string `q:"endTime" required:"true"`

	//Cloud service type code
	CloudServiceTypeCode string `q:"cloudServiceTypeCode,omitempty"`

	//Cloud service region code
	RegionCode string `q:"regionCode,omitempty"`

	//Order ID.
	OrderId string `q:"orderId,omitempty"`

	//Payment method
	PayMethod string `q:"payMethod" required:"true"`

	//Page number
	Offset int `q:"offset,omitempty"`

	//Number of records per page
	Limit int `q:"limit,omitempty"`

	//Resource ID.
	ResourceId string `q:"resourceId,omitempty"`

	//Enterprise project ID
	EnterpriseProjectId string `q:"enterpriseProjectId,omitempty"`
}

func (QueryResourceUsageRecordOpts) ToQueryResourceUsageRecordMap

func (opts QueryResourceUsageRecordOpts) ToQueryResourceUsageRecordMap() (string, error)

type QueryResourceUsageRecordOptsBuilder

type QueryResourceUsageRecordOptsBuilder interface {
	ToQueryResourceUsageRecordMap() (string, error)
}

type QueryResourceUsageRecordResp

type QueryResourceUsageRecordResp struct {
	//Error code
	ErrorCode string `json:"error_code"`

	//Error description
	ErrorMsg string `json:"error_msg"`

	//Currency unit.
	Currency string `json:"currency"`

	//Number of result sets
	TotalCount *int `json:"totalCount,omitempty"`

	//Resource usage record
	FeeRecords []ResFeeRecord `json:"feeRecords"`
}

type QueryResourceUsageRecordResult

type QueryResourceUsageRecordResult struct {
	gophercloud.Result
}

func QueryResourceUsageRecord

*

  • This API can be used to query the usage details of each resource for a customer on the customer platform.
  • This API can be invoked using the customer AK/SK or token only.

func (QueryResourceUsageRecordResult) Extract

type ResFeeRecord

type ResFeeRecord struct {
	//Fee generation time
	CreateTime string `json:"createTime"`

	//Start time of using the resource corresponding to the fee.
	EffectiveTime string `json:"effectiveTime"`

	//End time of using the resource corresponding to the fee
	ExpireTime string `json:"expireTime"`

	//Fee record serial number
	FeeId string `json:"feeId"`

	//Product ID
	ProductId string `json:"productId"`

	//Product name
	ProductName string `json:"productName"`

	//Order ID
	OrderId string `json:"orderId"`

	//Consumption amount, including the amount of cash coupons.
	Amount *float64 `json:"amount,omitempty"`

	//Unit
	MeasureId *int `json:"measureId,omitempty"`

	//Usage
	UsageAmount *float64 `json:"usageAmount,omitempty"`

	//Usage unit
	UsageMeasureId *int `json:"usageMeasureId,omitempty"`

	//Package usage.
	FreeResourceAmount *float64 `json:"freeResourceAmount,omitempty"`

	//Unit (package usage)
	FreeResourceMeasureId *int `json:"freeResourceMeasureId,omitempty"`

	//Cloud service type code
	CloudServiceTypeCode string `json:"cloudServiceTypeCode"`

	//Resource type code
	ResourceTypeCode string `json:"resourceTypeCode"`

	//Cloud service region code
	RegionCode string `json:"regionCode"`

	//Payment method
	PayMethod string `json:"payMethod"`

	//Project ID.
	ProjectID string `json:"projectID"`

	//Project name.
	ProjectName string `json:"projectName"`

	//Resource tag
	ResourceTag string `json:"resourceTag"`

	//Resource name
	ResourceName string `json:"resourceName"`

	//Resource ID.
	ResourceId string `json:"resourceId"`

	//Expenditure type
	FeeSourceOperation *int `json:"feeSourceOperation,omitempty"`

	//Enterprise project ID.
	EnterpriseProjectId string `json:"enterpriseProjectId"`

	//Period type
	PeriodType string `json:"periodType"`

	//Spot instance ID
	Spot string `json:"spot"`

	//Reserved instance usage
	RIAmount *float64 `json:"rIAmount,omitempty"`

	//Unit (reserved instance usage)
	RIMeasureId *int `json:"rIMeasureId,omitempty"`
}

Jump to

Keyboard shortcuts

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