Documentation ¶
Index ¶
- type AmountInfo
- type CancelOrderBuilder
- type CancelOrderOpts
- type CancelOrderResp
- type CancelOrderResult
- type CustomerOrder
- type CustomerOrderEntity
- type DiscountItem
- type EnterpriseProject
- type OrderLineItemEntity
- type PayPeriodOrderBuilder
- type PayPeriodOrderOpts
- type PayPeriodOrderResp
- type PayPeriodOrderResult
- type QueryOrderDetailBuilder
- type QueryOrderDetailOpts
- type QueryOrderDetailResp
- type QueryOrderDetailResult
- type QueryOrderListBuilder
- type QueryOrderListOpts
- type QueryOrderListResp
- type QueryOrderListResult
- type QueryRefundOrderAmountBuilder
- type QueryRefundOrderAmountOpts
- type QueryRefundOrderAmountResp
- type QueryRefundOrderAmountResult
- type QueryResourceStatusByOrderIdBuilder
- type QueryResourceStatusByOrderIdOpts
- type QueryResourceStatusByOrderIdResp
- type QueryResourceStatusByOrderIdResult
- type QuotaInfo
- type Resource
- type ResourceInfo
- type Result
- type UnsubscribePeriodOrderBuilder
- type UnsubscribePeriodOrderOpts
- type UnsubscribePeriodOrderResp
- type UnsubscribePeriodOrderResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmountInfo ¶
type AmountInfo struct { //Item DiscountList []DiscountItem `json:"discountList"` //Flexi-purchase coupon amount CashcouponAmount *float64 `json:"cashcouponAmount,omitempty"` //Cash coupon amount. CouponAmount *float64 `json:"couponAmount,omitempty"` //Stored-value card amount CardAmount *float64 `json:"cardAmount,omitempty"` //Handling fee (only for unsubscription orders). CommissionAmount *float64 `json:"commissionAmount,omitempty"` //Consumptions (only for unsubscription orders). ConsumedAmount *float64 `json:"consumedAmount,omitempty"` }
type CancelOrderBuilder ¶
type CancelOrderOpts ¶
type CancelOrderOpts struct { //Order ID. OrderId string `json:"orderId" required:"true"` }
func (CancelOrderOpts) ToCancelOrderOptsMaps ¶
func (opts CancelOrderOpts) ToCancelOrderOptsMaps() (map[string]interface{}, error)
type CancelOrderResp ¶
type CancelOrderResult ¶
type CancelOrderResult struct {
gophercloud.Result
}
func CancelOrder ¶
func CancelOrder(client *gophercloud.ServiceClient, opts CancelOrderBuilder, actionId string) (r CancelOrderResult)
*
- A customer can cancel subscription of yearly-monthly product orders in the pending payment status on the partner sales platform.
- This API can be invoked using the customer token only.
func (CancelOrderResult) Extract ¶
func (r CancelOrderResult) Extract() (*CancelOrderResp, error)
type CustomerOrder ¶
type CustomerOrder struct { //Order ID OrderId string `json:"orderId"` //Parent order ID (order ID before splitting) BaseOrderId string `json:"baseOrderId"` //operation entity ID BeId string `json:"beId"` //Customer ID. CustomerId string `json:"customerId"` //Customer order source type SourceType *int `json:"sourceType,omitempty"` //Order status Status *int `json:"status,omitempty"` //Order type OrderType *int `json:"orderType,omitempty"` //Order amount Currency *float64 `json:"currency,omitempty"` //Order amount after the discount CurrencyAfterDiscount *float64 `json:"currencyAfterDiscount,omitempty"` //Order amount unit MeasureId *int `json:"measureId,omitempty"` //Amount unit name MeasureName string `json:"measureName"` //Creation time. CreateTime string `json:"createTime"` //Payment time. PaymentTime string `json:"paymentTime"` //Last status update time LastUpdateTime string `json:"lastUpdateTime"` //Requiring approval or not. NeedAudit *bool `json:"needAudit,omitempty"` //Currency code. CurrencyType string `json:"currencyType"` //Contract ID. ContractId string `json:"contractId"` //Order amount (list price). CurrencyOfficial *float64 `json:"currencyOfficial,omitempty"` //Order details AmountInfo AmountInfo `json:"amountInfo"` //Cloud service type code. ServiceType string `json:"serviceType"` }
type CustomerOrderEntity ¶
type CustomerOrderEntity struct { //Order ID. OrderId string `json:"orderId"` //Order ID. BaseOrderId string `json:"baseOrderId"` //operation entity ID BeId string `json:"beId"` //Customer ID. CustomerId string `json:"customerId"` //Customer order source type. SourceType *int `json:"sourceType,omitempty"` //Order status Status *int `json:"status,omitempty"` //Order type OrderType *int `json:"orderType,omitempty"` //Order amount Currency *float64 `json:"currency,omitempty"` //Order amount after the discount CurrencyAfterDiscount *float64 `json:"currencyAfterDiscount,omitempty"` //Order amount unit. MeasureId *int `json:"measureId,omitempty"` //Amount unit name. MeasureName string `json:"measureName"` //Creation time. CreateTime string `json:"createTime"` //Payment time. PaymentTime string `json:"paymentTime"` //Last status update time. LastUpdateTime string `json:"lastUpdateTime"` //Requiring approval or not. NeedAudit *bool `json:"needAudit,omitempty"` //Order amount (list price). CurrencyOfficial *float64 `json:"currencyOfficial,omitempty"` //Order details AmountInfo AmountInfo `json:"amountInfo"` //Currency code. CurrencyType string `json:"currencyType"` //Contract ID. ContractId string `json:"contractId"` //Cloud service type code ServiceType string `json:"serviceType"` }
type DiscountItem ¶
type EnterpriseProject ¶
type EnterpriseProject struct { //ID of the enterprise project to which the order belongs. EnterpriseProjectId string `json:"enterpriseProjectId"` //Enterprise project name. EnterpriseProjectName string `json:"enterpriseProjectName"` //Verification result of the enterprise project's fund quota. AuthStatus *int `json:"authStatus,omitempty"` }
type OrderLineItemEntity ¶
type OrderLineItemEntity struct { //Order ID. OrderLineItemId string `json:"orderLineItemId"` //Cloud service type code CloudServiceType string `json:"cloudServiceType"` //Product ID. ProductId string `json:"productId"` //Product specification description ProductSpecDesc string `json:"productSpecDesc"` //Period type PeriodType *int `json:"periodType,omitempty"` //Number of periods. PeriodNum *int `json:"periodNum,omitempty"` //Effective time ValidTime string `json:"validTime"` //Expiration time. ExpireTime string `json:"expireTime"` //Number of subscriptions SubscriptionNum *int `json:"subscriptionNum,omitempty"` //Order amount (original price). Currency *float64 `json:"currency,omitempty"` //Order amount after the discount (excluding the vouchers or cards).) CurrencyAfterDiscount *float64 `json:"currencyAfterDiscount,omitempty"` //Order amount (list price). CurrencyOfficial *float64 `json:"currencyOfficial,omitempty"` //Order details AmountInfo AmountInfo `json:"amountInfo"` //Currency code. CurrencyType string `json:"currencyType"` //Product catalog code. CategoryCode string `json:"categoryCode"` }
type PayPeriodOrderBuilder ¶
type PayPeriodOrderOpts ¶
type PayPeriodOrderOpts struct { //Order ID. OderId string `json:"orderId" required:"true"` //Payment account type PayAccountType *int `json:"payAccountType,omitempty"` //partner account ID BpId string `json:"bpId"` //Coupon IDs CouponIds []string `json:"couponIds"` }
func (PayPeriodOrderOpts) ToPayPeriodOrderOptsMaps ¶
func (opts PayPeriodOrderOpts) ToPayPeriodOrderOptsMaps() (map[string]interface{}, error)
type PayPeriodOrderResp ¶
type PayPeriodOrderResp struct { //Status code. ErrorCode string `json:"error_code"` //Error description ErrorMsg string `json:"error_msg"` //Payment sequence number corresponding to the order. TradeNo string `json:"tradeNo"` //Information about the resources whose quota or capacity is insufficient. QuotaInfos []QuotaInfo `json:"quotaInfos"` //Information about the enterprise project whose fund is insufficient. EnterpriseProjectAuthResult []EnterpriseProject `json:"enterpriseProjectAuthResult"` }
type PayPeriodOrderResult ¶
type PayPeriodOrderResult struct {
gophercloud.Result
}
func PayPeriodOrder ¶
func PayPeriodOrder(client *gophercloud.ServiceClient, opts PayPeriodOrderBuilder) (r PayPeriodOrderResult)
*
- A customer can pay yearly-monthly product orders in the pending payment status on the customer platform.
- This API can be invoked using the customer AK/SK or token only.
func (PayPeriodOrderResult) Extract ¶
func (r PayPeriodOrderResult) Extract() (*PayPeriodOrderResp, error)
type QueryOrderDetailBuilder ¶
type QueryOrderDetailOpts ¶
type QueryOrderDetailOpts struct { //Indicates the page number Offset int `q:"offset"` //Indicates the number of records displayed on each page Limit int `q:"limit"` }
func (QueryOrderDetailOpts) ToQueryOrderDetailQuery ¶
func (opts QueryOrderDetailOpts) ToQueryOrderDetailQuery() (string, error)
type QueryOrderDetailResp ¶
type QueryOrderDetailResp struct { //Status code. ErrorCode string `json:"error_code"` //Error description. ErrorMsg string `json:"error_msg"` //Order details OrderInfo CustomerOrderEntity `json:"orderInfo"` //Order item ID array. Count *int `json:"count,omitempty"` //ID of the primary order item mapping the order item. OrderlineItems []OrderLineItemEntity `json:"orderlineItems"` }
type QueryOrderDetailResult ¶
type QueryOrderDetailResult struct {
gophercloud.Result
}
func QueryOrderDetail ¶
func QueryOrderDetail(client *gophercloud.ServiceClient, opts QueryOrderDetailBuilder, orderId string) (r QueryOrderDetailResult)
*
- Customers can query order details on the customer platform.
- This API can be invoked using the customer AK/SK or token.
func (QueryOrderDetailResult) Extract ¶
func (r QueryOrderDetailResult) Extract() (*QueryOrderDetailResp, error)
type QueryOrderListBuilder ¶
type QueryOrderListOpts ¶
type QueryOrderListOpts struct { //Order ID. OrderId string `q:"order_id"` //Customer account ID CustomerId string `q:"customer_id"` //Start time of order creation. CreateTimeBegin string `q:"create_time_begin"` //End time of order creation CreateTimeEnd string `q:"create_time_end"` //Cloud service type code ServiceType string `q:"service_type"` //Order status Status string `q:"status"` //订Order type OrderType string `q:"order_type"` //Number of records per page. PageSize *int `q:"page_size" required:"true"` //Current page number. PageIndex *int `q:"page_index" required:"true"` //Sorting order of the orders. Sort string `q:"sort"` //Start time of order payment. PaymentTimeBegin string `q:"payment_time_begin"` //End time of order payment. PaymentTimeEnd string `q:"payment_time_end"` }
func (QueryOrderListOpts) ToQueryOrderListQuery ¶
func (opts QueryOrderListOpts) ToQueryOrderListQuery() (string, error)
type QueryOrderListResp ¶
type QueryOrderListResult ¶
type QueryOrderListResult struct {
gophercloud.Result
}
func QueryOrderList ¶
func QueryOrderList(client *gophercloud.ServiceClient, opts QueryOrderListBuilder) (r QueryOrderListResult)
*
- After a customer purchases yearly/monthly resources, it can query the orders in different status on the customer platform, such as in the pending approval, processing, canceled, completed, and pending payment statuses.
- This API can be invoked using the customer AK/SK or token.
func (QueryOrderListResult) Extract ¶
func (r QueryOrderListResult) Extract() (*QueryOrderListResp, error)
type QueryRefundOrderAmountOpts ¶
type QueryRefundOrderAmountOpts struct { //ID of an unsubscription order or degrade order. OrderId string `q:"order_id"` }
func (QueryRefundOrderAmountOpts) ToQueryRefundOrderAmountQuery ¶
func (opts QueryRefundOrderAmountOpts) ToQueryRefundOrderAmountQuery() (string, error)
type QueryRefundOrderAmountResp ¶
type QueryRefundOrderAmountResp struct { //Status code. ErrorCode string `json:"error_code"` //Error description. ErrorMsg string `json:"error_msg"` //Total queries TotalCount *int `json:"total_count,omitempty"` //Resource list. ResourceInfoList []ResourceInfo `json:"resource_info_list"` }
type QueryRefundOrderAmountResult ¶
type QueryRefundOrderAmountResult struct {
gophercloud.Result
}
func QueryRefundOrderAmount ¶
func QueryRefundOrderAmount(client *gophercloud.ServiceClient, opts QueryRefundOrderAmountBuilder) (r QueryRefundOrderAmountResult)
*
- A customer can query the resources and original orders of the unsubscription amount for an unsubscription order or degrade order.
- This API can be invoked using the AK/SK or token of the partner or the token of the partner's customer.
func (QueryRefundOrderAmountResult) Extract ¶
func (r QueryRefundOrderAmountResult) Extract() (*QueryRefundOrderAmountResp, error)
type QueryResourceStatusByOrderIdOpts ¶
type QueryResourceStatusByOrderIdOpts struct { //Page number. Offset int `q:"offset"` //Number of records per page. Limit int `q:"limit"` }
func (QueryResourceStatusByOrderIdOpts) ToQueryResourceStatusByOrderIdQuery ¶
func (opts QueryResourceStatusByOrderIdOpts) ToQueryResourceStatusByOrderIdQuery() (string, error)
type QueryResourceStatusByOrderIdResult ¶
type QueryResourceStatusByOrderIdResult struct {
gophercloud.Result
}
func QueryResourceStatusByOrderId ¶
func QueryResourceStatusByOrderId(client *gophercloud.ServiceClient, opts QueryResourceStatusByOrderIdBuilder, orderId string) (r QueryResourceStatusByOrderIdResult)
*
- Customers can query resource details and provisioning status of an order on the customer platform.
- This API can be invoked only by the customer AK/SK or token.
func (QueryResourceStatusByOrderIdResult) ExtractQueryResourceStatusByOrderId ¶
func (r QueryResourceStatusByOrderIdResult) ExtractQueryResourceStatusByOrderId() (*QueryResourceStatusByOrderIdResp, error)
type QuotaInfo ¶
type QuotaInfo struct { //Cloud service region code RegionCode string `json:"regionCode"` //Cloud service type code CloudServiceType string `json:"cloudServiceType"` //Resource type code ResourceType string `json:"resourceType"` //Verification result of the change of the cloud service quota, capacity, or specifications. ResourceSpecCode string `json:"resourceSpecCode"` //Verification result of the change of the cloud service quota, capacity, or specifications. AuthResult *int `json:"authResult,omitempty"` //AZ ID. AvailableZoneId string `json:"availableZoneId"` }
type Resource ¶
type Resource struct { //Resource instance ID. ResourceId string `json:"resourceId"` //Cloud service type code. CloudServiceType string `json:"cloudServiceType"` //Cloud service region code RegionCode string `json:"regionCode"` //Resource type code ResourceType string `json:"resourceType"` //resourceSpecCode ResourceSpecCode string `json:"resourceSpecCode"` //Resource capacity. ResourceSize float64 `json:"resourceSize,omitempty"` //Resource capacity measurement ID ResouceSizeMeasureId *int `json:"resouceSizeMeasureId,omitempty"` //Resource provisioning status Status *int `json:"status,omitempty"` }
type ResourceInfo ¶
type ResourceInfo struct { //Record ID. Id string `json:"id"` //Resource instance ID. ResourceId string `json:"resource_id"` //Amount. Amount string `json:"amount"` //Measurement unit. MeasureId string `json:"measure_id"` //Customer ID. CustomerId string `json:"customer_id"` //Resource type code. ResourceType string `json:"resourceType"` //Cloud service type code CloudServiceType string `json:"cloudServiceType"` //Cloud service region code RegionCode string `json:"regionCode"` //ID of the original order corresponding to the unsubscription amount, consumption amount, or unsubscription handling fee. PreOrderId string `json:"preOrderId"` }
type Result ¶
type Result struct { //Number of records per page. PageSize *int `json:"pageSize,omitempty"` //Current page number. PageIndex *int `json:"pageIndex,omitempty"` //Number of records that match the query conditions. TotalSize *int `json:"totalSize,omitempty"` //Order details OrderInfos []CustomerOrder `json:"orderInfos"` }
type UnsubscribePeriodOrderOpts ¶
type UnsubscribePeriodOrderOpts struct { //Unsubscription type. UnsubType int `q:"unsub_type" required:"true"` //Unsubscription reason classification UnsubscribeReasonType int `q:"unsubscribe_reason_type"` //Unsubscription reason, which is generally specified by the customer. UnsubscribeReason string `q:"unsubscribe_reason"` }
func (UnsubscribePeriodOrderOpts) ToUnsubscribePeriodOrderQuery ¶
func (opts UnsubscribePeriodOrderOpts) ToUnsubscribePeriodOrderQuery() (string, error)
type UnsubscribePeriodOrderResult ¶
type UnsubscribePeriodOrderResult struct {
gophercloud.Result
}
func UnsubscribePeriodOrder ¶
func UnsubscribePeriodOrder(client *gophercloud.ServiceClient, opts UnsubscribePeriodOrderBuilder, orderId string) (r UnsubscribePeriodOrderResult)
*
- A customer can unsubscribe yearly-monthly product orders in the subscribed, changing, or failed to be provisioned status on the customer platform.
- This API can be invoked using the customer AK/SK or token only.
func (UnsubscribePeriodOrderResult) Extract ¶
func (r UnsubscribePeriodOrderResult) Extract() (*UnsubscribePeriodOrderResp, error)
Click to show internal directories.
Click to hide internal directories.