realnameauth

package
v0.0.0-...-1fd1e9e Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BankCardInfo

type BankCardInfo struct {
	//Bank account
	BankAccount string `json:"bankAccount" required:"true"`

	//area code
	Areacode string `json:"areacode" required:"true"`

	//mobile phone number
	Mobile string `json:"mobile" required:"true"`

	//Verification code.
	VerificationCode string `json:"verificationCode" required:"true"`
}

type ChangeEnterpriseRealNameAuthOpts

type ChangeEnterpriseRealNameAuthOpts struct {
	//Customer ID.
	CustomerId string `json:"customerId" required:"true"`

	//Authentication method.
	IdentifyType *int `json:"identifyType" required:"true"`

	//Enterprise certificate type.
	CertificateType int `json:"certificateType,omitempty"`

	//URL of the certificate attachment file used for enterprise certificate authentication.
	VerifiedFileURL []string `json:"verifiedFileURL" required:"true"`

	//Organization name.
	CorpName string `json:"corpName" required:"true"`

	//Enterprise certificate number.
	VerifiedNumber string `json:"verifiedNumber" required:"true"`

	//Registration country entered for real-name authentication.
	RegCountry string `json:"regCountry,omitempty"`

	//Enterprise registration address for real-name authentication.
	RegAddress string `json:"regAddress,omitempty"`

	//Change type
	ChangeType *int `json:"changeType" required:"true"`

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

	//Enterprise person information.
	EnterprisePerson EnterprisePerson `json:"enterprisePerson,omitempty"`
}

func (ChangeEnterpriseRealNameAuthOpts) ToChangeEnterpriseRealNameAuthMap

func (opts ChangeEnterpriseRealNameAuthOpts) ToChangeEnterpriseRealNameAuthMap() (map[string]interface{}, error)

type ChangeEnterpriseRealNameAuthOptsBuilder

type ChangeEnterpriseRealNameAuthOptsBuilder interface {
	ToChangeEnterpriseRealNameAuthMap() (map[string]interface{}, error)
}

type ChangeEnterpriseRealNameAuthResp

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

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

	//Whether to transfer to manual review
	IsReview int `json:"isReview,omitempty"`

	//Error list.
	ErrorItems []string `json:"errorItems"`
}

type ChangeEnterpriseRealNameAuthResult

type ChangeEnterpriseRealNameAuthResult struct {
	gophercloud.Result
}

func ChangeEnterpriseRealNameAuth

*

  • Customers can submit real-name authentication change applications on the partner sales platform. Currently, customers can change real-name authentication using individual information to using enterprise information.
  • This API can be invoked only by the partner account AK/SK or token

func (ChangeEnterpriseRealNameAuthResult) Extract

type EnterprisePerson

type EnterprisePerson struct {
	//Legal entity name.
	LegelName string `json:"legelName" required:"true"`

	//Legal entity card ID.
	LegelIdNumber string `json:"legelIdNumber" required:"true"`

	//Legal entity role.
	CertifierRole string `json:"certifierRole,omitempty"`
}

type EnterpriseRealNameAuthOpts

type EnterpriseRealNameAuthOpts struct {
	//Customer ID.
	CustomerId string `json:"customerId" required:"true"`

	//Authentication method.
	IdentifyType *int `json:"identifyType" required:"true"`

	//Enterprise certificate type.
	CertificateType int `json:"certificateType,omitempty"`

	//URL of the certificate attachment file used for enterprise certificate authentication.
	VerifiedFileURL []string `json:"verifiedFileURL" required:"true"`

	//Organization name.
	CorpName string `json:"corpName" required:"true"`

	//Enterprise certificate number.
	VerifiedNumber string `json:"verifiedNumber" required:"true"`

	//Registration country entered for real-name authentication.
	RegCountry string `json:"regCountry,omitempty"`

	//Enterprise registration address for real-name authentication.
	RegAddress string `json:"regAddress,omitempty"`

	//Platform ID assigned by Huawei to a partner.。
	XaccountType string `json:"xaccountType" required:"true"`

	//Enterprise person information.
	EnterprisePerson EnterprisePerson `json:"enterprisePerson,omitempty"`
}

func (EnterpriseRealNameAuthOpts) ToEnterpriseRealNameAuthMap

func (opts EnterpriseRealNameAuthOpts) ToEnterpriseRealNameAuthMap() (map[string]interface{}, error)

type EnterpriseRealNameAuthOptsBuilder

type EnterpriseRealNameAuthOptsBuilder interface {
	ToEnterpriseRealNameAuthMap() (map[string]interface{}, error)
}

type EnterpriseRealNameAuthResp

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

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

	//Whether to transfer to manual review
	IsReview int `json:"isReview,omitempty"`

	//Error list.
	ErrorItems []string `json:"errorItems"`
}

type EnterpriseRealNameAuthResult

type EnterpriseRealNameAuthResult struct {
	gophercloud.Result
}

func EnterpriseRealNameAuth

*

  • Enterprise customers can perform enterprise real-name authentication on the partner sales platform.
  • This API can be invoked only by the partner account AK/SK or token.

func (EnterpriseRealNameAuthResult) Extract

type IndividualRealNameAuthOpts

type IndividualRealNameAuthOpts struct {
	//Customer ID.
	CustomerId string `json:"customerId" required:"true"`

	//Authentication method.
	IdentifyType *int `json:"identifyType" required:"true"`

	//Certificate type.
	VerifiedType int `json:"verifiedType,omitempty"`

	//Attachment URL for individual certificate authentication.
	VerifiedFileURL []string `json:"verifiedFileURL" required:"true"`

	//Name.
	Name string `json:"name" required:"true"`

	//Certificate number.
	VerifiedNumber string `json:"verifiedNumber" required:"true"`

	//Change type.
	ChangeType int `json:"changeType,omitempty"`

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

	//bank card information
	BankCardInfo BankCardInfo `json:"bankCardInfo,omitempty"`
}

func (IndividualRealNameAuthOpts) ToIndividualRealNameAuthMap

func (opts IndividualRealNameAuthOpts) ToIndividualRealNameAuthMap() (map[string]interface{}, error)

type IndividualRealNameAuthOptsBuilder

type IndividualRealNameAuthOptsBuilder interface {
	ToIndividualRealNameAuthMap() (map[string]interface{}, error)
}

type IndividualRealNameAuthResp

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

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

	//Whether to transfer to manual review
	IsReview int `json:"isReview,omitempty"`

	//Error list.
	ErrorItems []string `json:"errorItems"`
}

type IndividualRealNameAuthResult

type IndividualRealNameAuthResult struct {
	gophercloud.Result
}

func IndividualRealNameAuth

*

  • An individual customer can apply for real-name authentication on the partner sales platform. Currently, two authentication methods are supported: using the individual certificate and using individual bank card.
  • This API can be invoked only by the partner account AK/SK or token.ken.

func (IndividualRealNameAuthResult) Extract

type QueryRealNameAuthOpts

type QueryRealNameAuthOpts struct {
	//Customer ID.
	CustomerId string `q:"customerId" required:"true"`
}

func (QueryRealNameAuthOpts) ToQueryRealNameAuthMap

func (opts QueryRealNameAuthOpts) ToQueryRealNameAuthMap() (string, error)

type QueryRealNameAuthOptsBuilder

type QueryRealNameAuthOptsBuilder interface {
	ToQueryRealNameAuthMap() (string, error)
}

type QueryRealNameAuthResp

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

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

	//Real-name authentication review result.
	ReviewResult int `json:"reviewResult,omitempty"`

	//Review comment.
	Opinion string `json:"opinion"`
}

type QueryRealNameAuthResult

type QueryRealNameAuthResult struct {
	gophercloud.Result
}

func QueryRealNameAuth

*

  • If the response to a real-name authentication application or real-name authentication change application indicates that manual review is required, this API can be used to query the review result.
  • This API can be invoked only by the partner account AK/SK or token.

func (QueryRealNameAuthResult) Extract

Jump to

Keyboard shortcuts

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