orders

package
v0.0.0-...-d823fe1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForOrderSuccess

func WaitForOrderSuccess(client *golangsdk.ServiceClient, secs int, orderID string) error

Types

type GetResult

type GetResult struct {
	golangsdk.Result
}

func Get

func Get(client *golangsdk.ServiceClient, id string) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*OrderStatus, error)

type Order

type Order struct {
	ErrorCode string   `json:"error_code"`
	ErrorMsg  string   `json:"error_msg"`
	OrderIDs  []string `json:"order_ids"`
}

type OrderInfo

type OrderInfo struct {
	Status int `json:"status"`
}

type OrderStatus

type OrderStatus struct {
	ErrorCode string    `json:"error_code"`
	ErrorMsg  string    `json:"error_msg"`
	OrderInfo OrderInfo `json:"order_info"`
}

type UnsubscribeOpts

type UnsubscribeOpts struct {
	ResourceIds     []string `json:"resource_ids" required:"true"`
	UnsubscribeType int      `json:"unsubscribe_type" required:"true"`
}

func (UnsubscribeOpts) ToOrderUnsubscribeMap

func (opts UnsubscribeOpts) ToOrderUnsubscribeMap() (map[string]interface{}, error)

type UnsubscribeOptsBuilder

type UnsubscribeOptsBuilder interface {
	ToOrderUnsubscribeMap() (map[string]interface{}, error)
}

type UnsubscribeResult

type UnsubscribeResult struct {
	golangsdk.Result
}

func (UnsubscribeResult) Extract

func (r UnsubscribeResult) Extract() (*Order, error)

Jump to

Keyboard shortcuts

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