customermanagement

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckCustomerRegisterInfoBuilder

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

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 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"`

	//Mobile number.
	MobilePhone string `json:"mobilePhone,omitempty"`

	//Mobile number country code
	CountryCode string `json:"countryCode,omitempty"`

	//Verification code
	VerificationCode string `json:"verificationCode,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 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

Jump to

Keyboard shortcuts

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