Documentation ¶
Index ¶
- Constants
- type AssignClientCreditRequest
- type AssignClientCreditResponse
- type Client
- func (c *Client) AssignClientCredit(request *AssignClientCreditRequest) (response *AssignClientCreditResponse, err error)
- func (c *Client) CreateAccount(request *CreateAccountRequest) (response *CreateAccountResponse, err error)
- func (c *Client) GetCountryCodes(request *GetCountryCodesRequest) (response *GetCountryCodesResponse, err error)
- func (c *Client) QueryAgentCredit(request *QueryAgentCreditRequest) (response *QueryAgentCreditResponse, err error)
- func (c *Client) QueryClientList(request *QueryClientListRequest) (response *QueryClientListResponse, err error)
- func (c *Client) QueryCreditHistory(request *QueryCreditHistoryRequest) (response *QueryCreditHistoryResponse, err error)
- type CountryCodeItem
- type CreateAccountRequest
- type CreateAccountResponse
- type GetCountryCodesRequest
- type GetCountryCodesResponse
- type QueryAgentCreditRequest
- type QueryAgentCreditResponse
- type QueryClientListItem
- type QueryClientListRequest
- type QueryClientListResponse
- type QueryCreditHistoryRequest
- type QueryCreditHistoryResponse
- type QueryUinCreditHistoryData
Constants ¶
const ( // CAM signature/authentication error. Please try again later. AUTHFAILURE = "AuthFailure" // Operation failed. FAILEDOPERATION = "FailedOperation" // The email address has already been registered. FAILEDOPERATION_MAILISREGISTERED = "FailedOperation.MailIsRegistered" // Internal error. Please try again later. INTERNALERROR = "InternalError" // A parameter error occurred. INVALIDPARAMETER = "InvalidParameter" // The operation is unauthorized. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" )
const APIVersion = "2021-04-09"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignClientCreditRequest ¶
type AssignClientCreditRequest struct { *tchttp.BaseRequest // Specific value of the credit allocated to the customer QuotaNum *float64 `json:"QuotaNum,omitempty" name:"QuotaNum"` // Customer UIN ClientUin *uint64 `json:"ClientUin,omitempty" name:"ClientUin"` }
func NewAssignClientCreditRequest ¶
func NewAssignClientCreditRequest() (request *AssignClientCreditRequest)
func (*AssignClientCreditRequest) FromJsonString ¶
func (r *AssignClientCreditRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AssignClientCreditRequest) ToJsonString ¶
func (r *AssignClientCreditRequest) ToJsonString() string
type AssignClientCreditResponse ¶
type AssignClientCreditResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAssignClientCreditResponse ¶
func NewAssignClientCreditResponse() (response *AssignClientCreditResponse)
func (*AssignClientCreditResponse) FromJsonString ¶
func (r *AssignClientCreditResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AssignClientCreditResponse) ToJsonString ¶
func (r *AssignClientCreditResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AssignClientCredit ¶
func (c *Client) AssignClientCredit(request *AssignClientCreditRequest) (response *AssignClientCreditResponse, err error)
AssignClientCredit This API is used for a partner to set credit for a customer, such as increasing or lowering the credit and setting it to 0.
1. The credit is valid permanently and will not be zeroed regularly.
2. The customer's service will be suspended when its available credit sets to 0, so caution should be exercised with this operation.
3. To prevent the customer from making new purchases without affecting their use of previously purchased products, the partner can set their available credit to 0 after obtaining the non-stop feature privilege from the channel manager.
4. The set credit is an increase to the current available credit and cannot exceed the remaining allocable credit. Setting the credit to a negative value indicates to repossess it. The available credit can be set to 0 at the minimum.
error code that may be returned:
FAILEDOPERATION = "FailedOperation"
func (*Client) CreateAccount ¶
func (c *Client) CreateAccount(request *CreateAccountRequest) (response *CreateAccountResponse, err error)
CreateAccount This API is used to create a Tencent Cloud account in the International Partner platform for a customer. After registration, the customer will be automatically bound to the partner account.
Notes:<br>
1. To create the Tencent Cloud account, the partner should enter and verify the customer’s email address and mobile number.<br>
2. The customer needs to complete personal information after the first login.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_MAILISREGISTERED = "FailedOperation.MailIsRegistered" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) GetCountryCodes ¶
func (c *Client) GetCountryCodes(request *GetCountryCodesRequest) (response *GetCountryCodesResponse, err error)
GetCountryCodes This API is used to obtain country and region codes.
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) QueryAgentCredit ¶
func (c *Client) QueryAgentCredit(request *QueryAgentCreditRequest) (response *QueryAgentCreditResponse, err error)
QueryAgentCredit This API is used for a partner to query its own total credit, available credit, and used credit in USD.
error code that may be returned:
FAILEDOPERATION = "FailedOperation"
func (*Client) QueryClientList ¶
func (c *Client) QueryClientList(request *QueryClientListRequest) (response *QueryClientListResponse, err error)
QueryClientList This API is used for a partner to query a customer's credit and basic information.
error code that may be returned:
FAILEDOPERATION = "FailedOperation"
func (*Client) QueryCreditHistory ¶
func (c *Client) QueryCreditHistory(request *QueryCreditHistoryRequest) (response *QueryCreditHistoryResponse, err error)
QueryCreditHistory This API is used to query all the credit allocation records of a single customer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation"
type CountryCodeItem ¶
type CountryCodeItem struct { // Country/region name in English EnName *string `json:"EnName,omitempty" name:"EnName"` // Country/region name in Chinese Name *string `json:"Name,omitempty" name:"Name"` // IOS2 standard country/region code IOS2 *string `json:"IOS2,omitempty" name:"IOS2"` // IOS3 standard country/region code IOS3 *string `json:"IOS3,omitempty" name:"IOS3"` // Phone code Code *string `json:"Code,omitempty" name:"Code"` }
type CreateAccountRequest ¶
type CreateAccountRequest struct { *tchttp.BaseRequest // Account type of a new customer. Valid value: `business`. AccountType *string `json:"AccountType,omitempty" name:"AccountType"` // Registered email address, which should be valid and correct. // For example, account@qq.com. Mail *string `json:"Mail,omitempty" name:"Mail"` // Account password // Length limit: 8-20 characters // A password must contain numbers, letters, and special symbols [!@#$%^&*()]. Spaces are not allowed. Password *string `json:"Password,omitempty" name:"Password"` // Confirm the password. It must be the same as the `Password` field. ConfirmPassword *string `json:"ConfirmPassword,omitempty" name:"ConfirmPassword"` // Customer mobile number, which should be valid and correct. // A global mobile number within 1-32 digits is allowed, such as 18888888888. PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"` // Country code, which can be obtained via the `GetCountryCodes` API, such as 852. CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"` // ISO2 standard country code, which can be obtained via the `GetCountryCodes` API. It should correspond to the `CountryCode` field. Area *string `json:"Area,omitempty" name:"Area"` // Expanded field, which is left empty by default. Extended *string `json:"Extended,omitempty" name:"Extended"` }
func NewCreateAccountRequest ¶
func NewCreateAccountRequest() (request *CreateAccountRequest)
func (*CreateAccountRequest) FromJsonString ¶
func (r *CreateAccountRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAccountRequest) ToJsonString ¶
func (r *CreateAccountRequest) ToJsonString() string
type CreateAccountResponse ¶
type CreateAccountResponse struct { *tchttp.BaseResponse Response *struct { // Account UIN Uin *string `json:"Uin,omitempty" name:"Uin"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateAccountResponse ¶
func NewCreateAccountResponse() (response *CreateAccountResponse)
func (*CreateAccountResponse) FromJsonString ¶
func (r *CreateAccountResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAccountResponse) ToJsonString ¶
func (r *CreateAccountResponse) ToJsonString() string
type GetCountryCodesRequest ¶
type GetCountryCodesRequest struct {
*tchttp.BaseRequest
}
func NewGetCountryCodesRequest ¶
func NewGetCountryCodesRequest() (request *GetCountryCodesRequest)
func (*GetCountryCodesRequest) FromJsonString ¶
func (r *GetCountryCodesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetCountryCodesRequest) ToJsonString ¶
func (r *GetCountryCodesRequest) ToJsonString() string
type GetCountryCodesResponse ¶
type GetCountryCodesResponse struct { *tchttp.BaseResponse Response *struct { // List of country/region codes Data []*CountryCodeItem `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetCountryCodesResponse ¶
func NewGetCountryCodesResponse() (response *GetCountryCodesResponse)
func (*GetCountryCodesResponse) FromJsonString ¶
func (r *GetCountryCodesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetCountryCodesResponse) ToJsonString ¶
func (r *GetCountryCodesResponse) ToJsonString() string
type QueryAgentCreditRequest ¶
type QueryAgentCreditRequest struct {
*tchttp.BaseRequest
}
func NewQueryAgentCreditRequest ¶
func NewQueryAgentCreditRequest() (request *QueryAgentCreditRequest)
func (*QueryAgentCreditRequest) FromJsonString ¶
func (r *QueryAgentCreditRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryAgentCreditRequest) ToJsonString ¶
func (r *QueryAgentCreditRequest) ToJsonString() string
type QueryAgentCreditResponse ¶
type QueryAgentCreditResponse struct { *tchttp.BaseResponse Response *struct { // Allocated credit AssignedCreditAmount *float64 `json:"AssignedCreditAmount,omitempty" name:"AssignedCreditAmount"` // Total credit CustomerCreditAmount *float64 `json:"CustomerCreditAmount,omitempty" name:"CustomerCreditAmount"` // Remaining credit RemainingCreditAmount *float64 `json:"RemainingCreditAmount,omitempty" name:"RemainingCreditAmount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewQueryAgentCreditResponse ¶
func NewQueryAgentCreditResponse() (response *QueryAgentCreditResponse)
func (*QueryAgentCreditResponse) FromJsonString ¶
func (r *QueryAgentCreditResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryAgentCreditResponse) ToJsonString ¶
func (r *QueryAgentCreditResponse) ToJsonString() string
type QueryClientListItem ¶
type QueryClientListItem struct { // Name // Note: this field may return null, indicating that no valid values can be obtained. Name *string `json:"Name,omitempty" name:"Name"` // Type // Note: this field may return null, indicating that no valid values can be obtained. Type *string `json:"Type,omitempty" name:"Type"` // Phone // Note: this field may return null, indicating that no valid values can be obtained. Mobile *string `json:"Mobile,omitempty" name:"Mobile"` // Email // Note: this field may return null, indicating that no valid values can be obtained. Email *string `json:"Email,omitempty" name:"Email"` // Overdue payment flag // Note: this field may return null, indicating that no valid values can be obtained. Arrears *string `json:"Arrears,omitempty" name:"Arrears"` // Binding time // Note: this field may return null, indicating that no valid values can be obtained. AssociationTime *string `json:"AssociationTime,omitempty" name:"AssociationTime"` // Expiration time // Note: this field may return null, indicating that no valid values can be obtained. RecentExpiry *string `json:"RecentExpiry,omitempty" name:"RecentExpiry"` // Customer UIN // Note: this field may return null, indicating that no valid values can be obtained. ClientUin *uint64 `json:"ClientUin,omitempty" name:"ClientUin"` // Credit granted to customer // Note: this field may return null, indicating that no valid values can be obtained. CreditAmount *float64 `json:"CreditAmount,omitempty" name:"CreditAmount"` // Customer's remaining credit // Note: this field may return null, indicating that no valid values can be obtained. RestCreditAmount *float64 `json:"RestCreditAmount,omitempty" name:"RestCreditAmount"` }
type QueryClientListRequest ¶
type QueryClientListRequest struct {
*tchttp.BaseRequest
}
func NewQueryClientListRequest ¶
func NewQueryClientListRequest() (request *QueryClientListRequest)
func (*QueryClientListRequest) FromJsonString ¶
func (r *QueryClientListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryClientListRequest) ToJsonString ¶
func (r *QueryClientListRequest) ToJsonString() string
type QueryClientListResponse ¶
type QueryClientListResponse struct { *tchttp.BaseResponse Response *struct { // Queries the list of customers // Note: this field may return null, indicating that no valid values can be obtained. Data []*QueryClientListItem `json:"Data,omitempty" name:"Data"` // Number of customers Total *uint64 `json:"Total,omitempty" name:"Total"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewQueryClientListResponse ¶
func NewQueryClientListResponse() (response *QueryClientListResponse)
func (*QueryClientListResponse) FromJsonString ¶
func (r *QueryClientListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryClientListResponse) ToJsonString ¶
func (r *QueryClientListResponse) ToJsonString() string
type QueryCreditHistoryRequest ¶
type QueryCreditHistoryRequest struct { *tchttp.BaseRequest // Customer UIN ClientUin *uint64 `json:"ClientUin,omitempty" name:"ClientUin"` // Page number Page *uint64 `json:"Page,omitempty" name:"Page"` // Number of data entries per page PageRow *uint64 `json:"PageRow,omitempty" name:"PageRow"` }
func NewQueryCreditHistoryRequest ¶
func NewQueryCreditHistoryRequest() (request *QueryCreditHistoryRequest)
func (*QueryCreditHistoryRequest) FromJsonString ¶
func (r *QueryCreditHistoryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryCreditHistoryRequest) ToJsonString ¶
func (r *QueryCreditHistoryRequest) ToJsonString() string
type QueryCreditHistoryResponse ¶
type QueryCreditHistoryResponse struct { *tchttp.BaseResponse Response *struct { // Total number of records // Note: this field may return null, indicating that no valid values can be obtained. Total *uint64 `json:"Total,omitempty" name:"Total"` // List of record details // Note: this field may return null, indicating that no valid values can be obtained. History []*QueryUinCreditHistoryData `json:"History,omitempty" name:"History"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewQueryCreditHistoryResponse ¶
func NewQueryCreditHistoryResponse() (response *QueryCreditHistoryResponse)
func (*QueryCreditHistoryResponse) FromJsonString ¶
func (r *QueryCreditHistoryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryCreditHistoryResponse) ToJsonString ¶
func (r *QueryCreditHistoryResponse) ToJsonString() string
type QueryUinCreditHistoryData ¶
type QueryUinCreditHistoryData struct { // Credit allocatee UIN CreditAssignUin *uint64 `json:"CreditAssignUin,omitempty" name:"CreditAssignUin"` // Allocation time AssginTime *string `json:"AssginTime,omitempty" name:"AssginTime"` // Operator Operator *string `json:"Operator,omitempty" name:"Operator"` // Allocated credit value CreditAmount *float64 `json:"CreditAmount,omitempty" name:"CreditAmount"` }