customermanagement

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckCustomerRegisterInfoOpts

type CheckCustomerRegisterInfoOpts struct {
	//The options are email, mobile, or name
	SearchType string `json:"searchType" required:"true"`

	//Mobile number, email address, or account name.
	SearchKey string `json:"searchKey" required:"true"`
}

func (CheckCustomerRegisterInfoOpts) ToCheckCustomerRegisterInfoMap

func (opts CheckCustomerRegisterInfoOpts) ToCheckCustomerRegisterInfoMap() (map[string]interface{}, error)

type CheckCustomerRegisterInfoOptsBuilder

type CheckCustomerRegisterInfoOptsBuilder interface {
	ToCheckCustomerRegisterInfoMap() (map[string]interface{}, error)
}

type CheckCustomerRegisterInfoResp

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

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

	//Status
	Status string `json:"status"`

	//Whether the number of verification code sending times reaches the upper limit (15 times per hour, 60 times per day)
	UpLimit string `json:"uplimit"`
}

type CheckCustomerRegisterInfoResult

type CheckCustomerRegisterInfoResult struct {
	gophercloud.Result
}

func CheckCustomerRegisterInfo

* * This API is used to check whether the account name, and mobile number or email address entered by the customer can be used for registration. * This API can be invoked only by the partner AK/SK or token.

func (CheckCustomerRegisterInfoResult) Extract

type CreateCustomerOpts

type CreateCustomerOpts struct {
	//HUAWEI CLOUD username of the customer.
	DomainName string `json:"domainName,omitempty"`

	//Email address.
	Email string `json:"email,omitempty"`

	//Verification code
	VerificationCode string `json:"verificationCode,omitempty"`

	//Two-letter ID representing the country/region of the customer.
	DomainArea string `json:"domainArea,omitempty"`

	//Unique ID of the user on the third-party system, which is assigned by the partner.
	XAccountId string `json:"xAccountId" required:"true"`

	//Platform ID assigned by Huawei to a partner.
	XAccountType string `json:"xAccountType" required:"true"`

	//password
	Password string `json:"password,omitempty"`

	//Indicates whether to disable the marketing message sending function.
	IsCloseMarketMs string `json:"isCloseMarketMs,omitempty"`
}

func (CreateCustomerOpts) ToCreateCustomerMap

func (opts CreateCustomerOpts) ToCreateCustomerMap() (map[string]interface{}, error)

type CreateCustomerOptsBuilder

type CreateCustomerOptsBuilder interface {
	ToCreateCustomerMap() (map[string]interface{}, error)
}

type CreateCustomerResp

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

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

	//Customer ID
	DomainId string `json:"domainId"`

	//HUAWEI CLOUD username of the customer
	DomainName string `json:"domainName"`
}

func (CreateCustomerResp) Error

func (e CreateCustomerResp) Error() string

type CreateCustomerResult

type CreateCustomerResult struct {
	gophercloud.Result
}

func CreateCustomer

*

  • This API is used to create a HUAWEI CLOUD account for a customer when the customer creates an account on your sales platform, and bind the customer account on the partner sales platform to the HUAWEI CLOUD account. In addition, the HUAWEI CLOUD account is bound to the partner account.
  • This API can be invoked only by the partner AK/SK or token..

func (CreateCustomerResult) Extract

type ErrorDetail

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

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

	//The value corresponds to customerId
	Id string `json:"Id"`
}

type FrozenCustomerOpts

type FrozenCustomerOpts struct {
	//IDs of customers whose accounts are to be frozen。
	CustomerIds []string `json:"customerIds" required:"true"`

	//Account freezing reason.
	Reason string `json:"reason" required:"true"`
}

func (FrozenCustomerOpts) ToFrozenCustomerMap

func (opts FrozenCustomerOpts) ToFrozenCustomerMap() (map[string]interface{}, error)

type FrozenCustomerOptsBuilder

type FrozenCustomerOptsBuilder interface {
	ToFrozenCustomerMap() (map[string]interface{}, error)
}

type FrozenCustomerResp

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

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

	//Error cause description
	FailDetail []ErrorDetail `json:"failDetail"`

	//Number of failures
	FailNum *int `json:"failNum,omitempty"`

	//Number of successful operations
	SuccessNum *int `json:"successNum,omitempty"`
}

type FrozenCustomerResult

type FrozenCustomerResult struct {
	gophercloud.Result
}

func FrozenCustomer

*

  • A partner can unfreeze an account of a customer associated with the partner by reseller model.
  • This API can be invoked only by the partner account AK/SK or token.

func (FrozenCustomerResult) Extract

type QueryCustomerOpts

type QueryCustomerOpts struct {
	//Account name
	DomainName string `json:"domainName,omitempty"`

	//Real-name authentication name
	Name string `json:"name,omitempty"`

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

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

	//Tag
	Label string `json:"label,omitempty"`

	//Association type
	CooperationType string `json:"cooperationType,omitempty"`

	//Start time of the association time range (UTC time)
	CooperationTimeStart string `json:"cooperationTimeStart,omitempty"`

	//End time of the association time range (UTC time)
	CooperationTimeEnd string `json:"cooperationTimeEnd,omitempty"`
}

func (QueryCustomerOpts) ToQueryCustomerMap

func (opts QueryCustomerOpts) ToQueryCustomerMap() (map[string]interface{}, error)

type QueryCustomerOptsBuilder

type QueryCustomerOptsBuilder interface {
	ToQueryCustomerMap() (map[string]interface{}, error)
}

type QueryCustomerResp

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

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

	//Customer list
	CustomerInfoList []customerInfoList `json:"customerInfoList"`

	//Total number of records
	Count *int `json:"count,omitempty"`
}

type QueryCustomerResult

type QueryCustomerResult struct {
	gophercloud.Result
}

func QueryCustomer

*

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

func (QueryCustomerResult) Extract

type UnFrozenCustomerOpts

type UnFrozenCustomerOpts struct {
	//IDs of customers whose accounts are to be unfrozen
	CustomerIds []string `json:"customerIds" required:"true"`

	//Account unfreezing reason.
	Reason string `json:"reason" required:"true"`
}

func (UnFrozenCustomerOpts) ToUnFrozenCustomerMap

func (opts UnFrozenCustomerOpts) ToUnFrozenCustomerMap() (map[string]interface{}, error)

type UnFrozenCustomerOptsBuilder

type UnFrozenCustomerOptsBuilder interface {
	ToUnFrozenCustomerMap() (map[string]interface{}, error)
}

type UnFrozenCustomerResp

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

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

	//Error cause description
	FailDetail []ErrorDetail `json:"failDetail"`

	//Number of failures
	FailNum *int `json:"failNum,omitempty"`

	//Number of successful operations
	SuccessNum *int `json:"successNum,omitempty"`
}

type UnFrozenCustomerResult

type UnFrozenCustomerResult struct {
	gophercloud.Result
}

func UnFrozenCustomer

*

  • A partner can unfreeze an account of a customer associated with the partner by reseller model.
  • This API can be invoked only by the partner account AK/SK or token.

func (UnFrozenCustomerResult) Extract

Jump to

Keyboard shortcuts

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