Documentation ¶
Index ¶
- type CheckCustomerRegisterInfoBuilder
- type CheckCustomerRegisterInfoOpts
- type CheckCustomerRegisterInfoResp
- type CheckCustomerRegisterInfoResult
- type CreateCustomerOpts
- type CreateCustomerOptsBuilder
- type CreateCustomerResp
- type CreateCustomerResult
- type QueryCustomerOpts
- type QueryCustomerOptsBuilder
- type QueryCustomerResp
- type QueryCustomerResult
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 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 ¶
func CheckCustomerRegisterInfo(client *gophercloud.ServiceClient, opts CheckCustomerRegisterInfoBuilder) (r CheckCustomerRegisterInfoResult)
* * 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 ¶
func (r CheckCustomerRegisterInfoResult) Extract() (*CheckCustomerRegisterInfoResp, error)
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 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 ¶
func CreateCustomer(client *gophercloud.ServiceClient, opts CreateCustomerOptsBuilder) (r CreateCustomerResult)
*
- 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 ¶
func (r CreateCustomerResult) Extract() (*CreateCustomerResp, error)
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 QueryCustomerResp ¶
type QueryCustomerResult ¶
type QueryCustomerResult struct {
gophercloud.Result
}
func QueryCustomer ¶
func QueryCustomer(client *gophercloud.ServiceClient, opts QueryCustomerOptsBuilder) (r QueryCustomerResult)
*
- 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 ¶
func (r QueryCustomerResult) Extract() (*QueryCustomerResp, error)
Click to show internal directories.
Click to hide internal directories.