Documentation
¶
Index ¶
- Constants
- type AgentAuditedClient
- type AgentBillElem
- type AgentClientElem
- type AgentPayDealsRequest
- type AgentPayDealsResponse
- type AgentTransferMoneyRequest
- type AgentTransferMoneyResponse
- type AuditApplyClientRequest
- type AuditApplyClientResponse
- type Client
- func (c *Client) AgentPayDeals(request *AgentPayDealsRequest) (response *AgentPayDealsResponse, err error)
- func (c *Client) AgentTransferMoney(request *AgentTransferMoneyRequest) (response *AgentTransferMoneyResponse, err error)
- func (c *Client) AuditApplyClient(request *AuditApplyClientRequest) (response *AuditApplyClientResponse, err error)
- func (c *Client) DescribeAgentAuditedClients(request *DescribeAgentAuditedClientsRequest) (response *DescribeAgentAuditedClientsResponse, err error)
- func (c *Client) DescribeAgentBills(request *DescribeAgentBillsRequest) (response *DescribeAgentBillsResponse, err error)
- func (c *Client) DescribeAgentClients(request *DescribeAgentClientsRequest) (response *DescribeAgentClientsResponse, err error)
- func (c *Client) DescribeClientBalance(request *DescribeClientBalanceRequest) (response *DescribeClientBalanceResponse, err error)
- func (c *Client) DescribeRebateInfos(request *DescribeRebateInfosRequest) (response *DescribeRebateInfosResponse, err error)
- func (c *Client) ModifyClientRemark(request *ModifyClientRemarkRequest) (response *ModifyClientRemarkResponse, err error)
- type DescribeAgentAuditedClientsRequest
- type DescribeAgentAuditedClientsResponse
- type DescribeAgentBillsRequest
- type DescribeAgentBillsResponse
- type DescribeAgentClientsRequest
- type DescribeAgentClientsResponse
- type DescribeClientBalanceRequest
- type DescribeClientBalanceResponse
- type DescribeRebateInfosRequest
- type DescribeRebateInfosResponse
- type ModifyClientRemarkRequest
- type ModifyClientRemarkResponse
- type RebateInfoElem
Constants ¶
View Source
const APIVersion = "2018-03-21"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentAuditedClient ¶
type AgentAuditedClient struct { // 代理商账号ID Uin *string `json:"Uin" name:"Uin"` // 代客账号ID ClientUin *string `json:"ClientUin" name:"ClientUin"` // 代客审核通过时间戳 AgentTime *string `json:"AgentTime" name:"AgentTime"` // 代客类型,可能值为a/b/c ClientFlag *string `json:"ClientFlag" name:"ClientFlag"` // 代客备注 ClientRemark *string `json:"ClientRemark" name:"ClientRemark"` // 代客名称(首选实名认证名称) ClientName *string `json:"ClientName" name:"ClientName"` // 认证类型, 0:个人,1:企业;其他:未认证 AuthType *string `json:"AuthType" name:"AuthType"` // 代客APPID AppId *string `json:"AppId" name:"AppId"` // 上月消费金额 LastMonthAmt *uint64 `json:"LastMonthAmt" name:"LastMonthAmt"` // 本月消费金额 ThisMonthAmt *uint64 `json:"ThisMonthAmt" name:"ThisMonthAmt"` // 是否欠费,0:不欠费;1:欠费 HasOverdueBill *uint64 `json:"HasOverdueBill" name:"HasOverdueBill"` }
type AgentBillElem ¶
type AgentBillElem struct { // 代理商账号ID Uin *string `json:"Uin" name:"Uin"` // 订单号,仅对预付费账单有意义 OrderId *string `json:"OrderId" name:"OrderId"` // 代客账号ID ClientUin *string `json:"ClientUin" name:"ClientUin"` // 代客备注名称 ClientRemark *string `json:"ClientRemark" name:"ClientRemark"` // 支付时间 PayTime *string `json:"PayTime" name:"PayTime"` // 云产品名称 GoodsType *string `json:"GoodsType" name:"GoodsType"` // 预付费/后付费 PayMode *string `json:"PayMode" name:"PayMode"` // 支付月份 SettleMonth *string `json:"SettleMonth" name:"SettleMonth"` // 支付金额,单位分 Amt *uint64 `json:"Amt" name:"Amt"` // agentpay:代付;selfpay:自付 PayerMode *string `json:"PayerMode" name:"PayerMode"` }
type AgentClientElem ¶
type AgentClientElem struct { // 代理商账号ID Uin *string `json:"Uin" name:"Uin"` // 代客账号ID ClientUin *string `json:"ClientUin" name:"ClientUin"` // 代客申请时间戳 ApplyTime *uint64 `json:"ApplyTime" name:"ApplyTime"` // 代客类型,可能值为a/b/c ClientFlag *string `json:"ClientFlag" name:"ClientFlag"` // 代客邮箱,打码显示 Mail *string `json:"Mail" name:"Mail"` // 代客手机,打码显示 Phone *string `json:"Phone" name:"Phone"` // 0表示不欠费,1表示欠费 HasOverdueBill *uint64 `json:"HasOverdueBill" name:"HasOverdueBill"` }
type AgentPayDealsRequest ¶
type AgentPayDealsRequest struct { *tchttp.BaseRequest // 订单所有者uin OwnerUin *string `json:"OwnerUin" name:"OwnerUin"` // 代付标志,1:代付;0:自付 AgentPay *uint64 `json:"AgentPay" name:"AgentPay"` // 订单号数组 DealNames []*string `json:"DealNames" name:"DealNames" list` }
func NewAgentPayDealsRequest ¶
func NewAgentPayDealsRequest() (request *AgentPayDealsRequest)
func (*AgentPayDealsRequest) FromJsonString ¶
func (r *AgentPayDealsRequest) FromJsonString(s string) error
func (*AgentPayDealsRequest) ToJsonString ¶
func (r *AgentPayDealsRequest) ToJsonString() string
type AgentPayDealsResponse ¶
type AgentPayDealsResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewAgentPayDealsResponse ¶
func NewAgentPayDealsResponse() (response *AgentPayDealsResponse)
func (*AgentPayDealsResponse) FromJsonString ¶
func (r *AgentPayDealsResponse) FromJsonString(s string) error
func (*AgentPayDealsResponse) ToJsonString ¶
func (r *AgentPayDealsResponse) ToJsonString() string
type AgentTransferMoneyRequest ¶
type AgentTransferMoneyRequest struct { *tchttp.BaseRequest // 客户账号ID ClientUin *string `json:"ClientUin" name:"ClientUin"` // 转账金额,单位分 Amount *uint64 `json:"Amount" name:"Amount"` }
func NewAgentTransferMoneyRequest ¶
func NewAgentTransferMoneyRequest() (request *AgentTransferMoneyRequest)
func (*AgentTransferMoneyRequest) FromJsonString ¶
func (r *AgentTransferMoneyRequest) FromJsonString(s string) error
func (*AgentTransferMoneyRequest) ToJsonString ¶
func (r *AgentTransferMoneyRequest) ToJsonString() string
type AgentTransferMoneyResponse ¶
type AgentTransferMoneyResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewAgentTransferMoneyResponse ¶
func NewAgentTransferMoneyResponse() (response *AgentTransferMoneyResponse)
func (*AgentTransferMoneyResponse) FromJsonString ¶
func (r *AgentTransferMoneyResponse) FromJsonString(s string) error
func (*AgentTransferMoneyResponse) ToJsonString ¶
func (r *AgentTransferMoneyResponse) ToJsonString() string
type AuditApplyClientRequest ¶
type AuditApplyClientRequest struct { *tchttp.BaseRequest // 待审核客户账号ID ClientUin *string `json:"ClientUin" name:"ClientUin"` // 审核结果,可能的取值:accept/reject AuditResult *string `json:"AuditResult" name:"AuditResult"` // 申请理由,B类客户审核通过时必须填写申请理由 Note *string `json:"Note" name:"Note"` }
func NewAuditApplyClientRequest ¶
func NewAuditApplyClientRequest() (request *AuditApplyClientRequest)
func (*AuditApplyClientRequest) FromJsonString ¶
func (r *AuditApplyClientRequest) FromJsonString(s string) error
func (*AuditApplyClientRequest) ToJsonString ¶
func (r *AuditApplyClientRequest) ToJsonString() string
type AuditApplyClientResponse ¶
type AuditApplyClientResponse struct { *tchttp.BaseResponse Response *struct { // 代理商账号ID Uin *string `json:"Uin" name:"Uin"` // 客户账号ID ClientUin *string `json:"ClientUin" name:"ClientUin"` // 审核结果,包括accept/reject/qcloudaudit(腾讯云审核) AuditResult *string `json:"AuditResult" name:"AuditResult"` // 关联时间对应的时间戳 AgentTime *uint64 `json:"AgentTime" name:"AgentTime"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewAuditApplyClientResponse ¶
func NewAuditApplyClientResponse() (response *AuditApplyClientResponse)
func (*AuditApplyClientResponse) FromJsonString ¶
func (r *AuditApplyClientResponse) FromJsonString(s string) error
func (*AuditApplyClientResponse) ToJsonString ¶
func (r *AuditApplyClientResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AgentPayDeals ¶
func (c *Client) AgentPayDeals(request *AgentPayDealsRequest) (response *AgentPayDealsResponse, err error)
代理商支付订单接口,支持自付/代付
func (*Client) AgentTransferMoney ¶
func (c *Client) AgentTransferMoney(request *AgentTransferMoneyRequest) (response *AgentTransferMoneyResponse, err error)
为合作伙伴提供转账给客户能力。仅支持合作伙伴为自己名下客户转账。
func (*Client) AuditApplyClient ¶
func (c *Client) AuditApplyClient(request *AuditApplyClientRequest) (response *AuditApplyClientResponse, err error)
代理商可以审核其名下申请中代客
func (*Client) DescribeAgentAuditedClients ¶
func (c *Client) DescribeAgentAuditedClients(request *DescribeAgentAuditedClientsRequest) (response *DescribeAgentAuditedClientsResponse, err error)
查询已审核客户列表
func (*Client) DescribeAgentBills ¶
func (c *Client) DescribeAgentBills(request *DescribeAgentBillsRequest) (response *DescribeAgentBillsResponse, err error)
代理商可查询自己及名下代客所有业务明细
func (*Client) DescribeAgentClients ¶
func (c *Client) DescribeAgentClients(request *DescribeAgentClientsRequest) (response *DescribeAgentClientsResponse, err error)
代理商可查询自己名下待审核客户列表
func (*Client) DescribeClientBalance ¶
func (c *Client) DescribeClientBalance(request *DescribeClientBalanceRequest) (response *DescribeClientBalanceResponse, err error)
为合作伙伴提供查询客户余额能力。调用者必须是合作伙伴,只能查询自己名下客户余额
func (*Client) DescribeRebateInfos ¶
func (c *Client) DescribeRebateInfos(request *DescribeRebateInfosRequest) (response *DescribeRebateInfosResponse, err error)
代理商可查询自己名下全部返佣信息
func (*Client) ModifyClientRemark ¶
func (c *Client) ModifyClientRemark(request *ModifyClientRemarkRequest) (response *ModifyClientRemarkResponse, err error)
代理商可以对名下客户添加备注、修改备注
type DescribeAgentAuditedClientsRequest ¶
type DescribeAgentAuditedClientsRequest struct { *tchttp.BaseRequest // 客户账号ID ClientUin *string `json:"ClientUin" name:"ClientUin"` // 客户名称。由于涉及隐私,名称打码显示,故名称仅支持打码后的模糊搜索 ClientName *string `json:"ClientName" name:"ClientName"` // 客户类型,a/b,类型定义参考代理商相关政策文档 ClientFlag *string `json:"ClientFlag" name:"ClientFlag"` // ASC/DESC, 不区分大小写,按审核通过时间排序 OrderDirection *string `json:"OrderDirection" name:"OrderDirection"` // 客户账号ID列表 ClientUins []*string `json:"ClientUins" name:"ClientUins" list` // 是否欠费。0:不欠费;1:欠费 HasOverdueBill *uint64 `json:"HasOverdueBill" name:"HasOverdueBill"` // 客户备注 ClientRemark *string `json:"ClientRemark" name:"ClientRemark"` // 偏移量 Offset *uint64 `json:"Offset" name:"Offset"` // 限制数目 Limit *uint64 `json:"Limit" name:"Limit"` }
func NewDescribeAgentAuditedClientsRequest ¶
func NewDescribeAgentAuditedClientsRequest() (request *DescribeAgentAuditedClientsRequest)
func (*DescribeAgentAuditedClientsRequest) FromJsonString ¶
func (r *DescribeAgentAuditedClientsRequest) FromJsonString(s string) error
func (*DescribeAgentAuditedClientsRequest) ToJsonString ¶
func (r *DescribeAgentAuditedClientsRequest) ToJsonString() string
type DescribeAgentAuditedClientsResponse ¶
type DescribeAgentAuditedClientsResponse struct { *tchttp.BaseResponse Response *struct { // 已审核代客列表 AgentClientSet []*AgentAuditedClient `json:"AgentClientSet" name:"AgentClientSet" list` // 符合条件的代客总数 TotalCount *uint64 `json:"TotalCount" name:"TotalCount"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewDescribeAgentAuditedClientsResponse ¶
func NewDescribeAgentAuditedClientsResponse() (response *DescribeAgentAuditedClientsResponse)
func (*DescribeAgentAuditedClientsResponse) FromJsonString ¶
func (r *DescribeAgentAuditedClientsResponse) FromJsonString(s string) error
func (*DescribeAgentAuditedClientsResponse) ToJsonString ¶
func (r *DescribeAgentAuditedClientsResponse) ToJsonString() string
type DescribeAgentBillsRequest ¶
type DescribeAgentBillsRequest struct { *tchttp.BaseRequest // 支付月份,如2018-02 SettleMonth *string `json:"SettleMonth" name:"SettleMonth"` // 客户账号ID ClientUin *string `json:"ClientUin" name:"ClientUin"` // 支付方式,prepay/postpay PayMode *string `json:"PayMode" name:"PayMode"` // 预付费订单号 OrderId *string `json:"OrderId" name:"OrderId"` // 客户备注名称 ClientRemark *string `json:"ClientRemark" name:"ClientRemark"` // 偏移量 Offset *uint64 `json:"Offset" name:"Offset"` // 限制数目 Limit *uint64 `json:"Limit" name:"Limit"` }
func NewDescribeAgentBillsRequest ¶
func NewDescribeAgentBillsRequest() (request *DescribeAgentBillsRequest)
func (*DescribeAgentBillsRequest) FromJsonString ¶
func (r *DescribeAgentBillsRequest) FromJsonString(s string) error
func (*DescribeAgentBillsRequest) ToJsonString ¶
func (r *DescribeAgentBillsRequest) ToJsonString() string
type DescribeAgentBillsResponse ¶
type DescribeAgentBillsResponse struct { *tchttp.BaseResponse Response *struct { // 符合查询条件列表总数量 TotalCount *uint64 `json:"TotalCount" name:"TotalCount"` // 业务明细列表 AgentBillSet []*AgentBillElem `json:"AgentBillSet" name:"AgentBillSet" list` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewDescribeAgentBillsResponse ¶
func NewDescribeAgentBillsResponse() (response *DescribeAgentBillsResponse)
func (*DescribeAgentBillsResponse) FromJsonString ¶
func (r *DescribeAgentBillsResponse) FromJsonString(s string) error
func (*DescribeAgentBillsResponse) ToJsonString ¶
func (r *DescribeAgentBillsResponse) ToJsonString() string
type DescribeAgentClientsRequest ¶
type DescribeAgentClientsRequest struct { *tchttp.BaseRequest // 客户账号ID ClientUin *string `json:"ClientUin" name:"ClientUin"` // 客户名称。由于涉及隐私,名称打码显示,故名称仅支持打码后的模糊搜索 ClientName *string `json:"ClientName" name:"ClientName"` // 客户类型,a/b,类型定义参考代理商相关政策文档 ClientFlag *string `json:"ClientFlag" name:"ClientFlag"` // ASC/DESC, 不区分大小写,按申请时间排序 OrderDirection *string `json:"OrderDirection" name:"OrderDirection"` // 偏移量 Offset *uint64 `json:"Offset" name:"Offset"` // 限制数目 Limit *uint64 `json:"Limit" name:"Limit"` }
func NewDescribeAgentClientsRequest ¶
func NewDescribeAgentClientsRequest() (request *DescribeAgentClientsRequest)
func (*DescribeAgentClientsRequest) FromJsonString ¶
func (r *DescribeAgentClientsRequest) FromJsonString(s string) error
func (*DescribeAgentClientsRequest) ToJsonString ¶
func (r *DescribeAgentClientsRequest) ToJsonString() string
type DescribeAgentClientsResponse ¶
type DescribeAgentClientsResponse struct { *tchttp.BaseResponse Response *struct { // 待审核代客列表 AgentClientSet []*AgentClientElem `json:"AgentClientSet" name:"AgentClientSet" list` // 符合条件的代客总数 TotalCount *uint64 `json:"TotalCount" name:"TotalCount"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewDescribeAgentClientsResponse ¶
func NewDescribeAgentClientsResponse() (response *DescribeAgentClientsResponse)
func (*DescribeAgentClientsResponse) FromJsonString ¶
func (r *DescribeAgentClientsResponse) FromJsonString(s string) error
func (*DescribeAgentClientsResponse) ToJsonString ¶
func (r *DescribeAgentClientsResponse) ToJsonString() string
type DescribeClientBalanceRequest ¶
type DescribeClientBalanceRequest struct { *tchttp.BaseRequest // 客户(代客)账号ID ClientUin *string `json:"ClientUin" name:"ClientUin"` }
func NewDescribeClientBalanceRequest ¶
func NewDescribeClientBalanceRequest() (request *DescribeClientBalanceRequest)
func (*DescribeClientBalanceRequest) FromJsonString ¶
func (r *DescribeClientBalanceRequest) FromJsonString(s string) error
func (*DescribeClientBalanceRequest) ToJsonString ¶
func (r *DescribeClientBalanceRequest) ToJsonString() string
type DescribeClientBalanceResponse ¶
type DescribeClientBalanceResponse struct { *tchttp.BaseResponse Response *struct { // 账户余额,单位分 Balance *uint64 `json:"Balance" name:"Balance"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewDescribeClientBalanceResponse ¶
func NewDescribeClientBalanceResponse() (response *DescribeClientBalanceResponse)
func (*DescribeClientBalanceResponse) FromJsonString ¶
func (r *DescribeClientBalanceResponse) FromJsonString(s string) error
func (*DescribeClientBalanceResponse) ToJsonString ¶
func (r *DescribeClientBalanceResponse) ToJsonString() string
type DescribeRebateInfosRequest ¶
type DescribeRebateInfosRequest struct { *tchttp.BaseRequest // 返佣月份,如2018-02 RebateMonth *string `json:"RebateMonth" name:"RebateMonth"` // 偏移量 Offset *uint64 `json:"Offset" name:"Offset"` // 限制数目 Limit *uint64 `json:"Limit" name:"Limit"` }
func NewDescribeRebateInfosRequest ¶
func NewDescribeRebateInfosRequest() (request *DescribeRebateInfosRequest)
func (*DescribeRebateInfosRequest) FromJsonString ¶
func (r *DescribeRebateInfosRequest) FromJsonString(s string) error
func (*DescribeRebateInfosRequest) ToJsonString ¶
func (r *DescribeRebateInfosRequest) ToJsonString() string
type DescribeRebateInfosResponse ¶
type DescribeRebateInfosResponse struct { *tchttp.BaseResponse Response *struct { // 返佣信息列表 RebateInfoSet []*RebateInfoElem `json:"RebateInfoSet" name:"RebateInfoSet" list` // 符合查询条件返佣信息数目 TotalCount *uint64 `json:"TotalCount" name:"TotalCount"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewDescribeRebateInfosResponse ¶
func NewDescribeRebateInfosResponse() (response *DescribeRebateInfosResponse)
func (*DescribeRebateInfosResponse) FromJsonString ¶
func (r *DescribeRebateInfosResponse) FromJsonString(s string) error
func (*DescribeRebateInfosResponse) ToJsonString ¶
func (r *DescribeRebateInfosResponse) ToJsonString() string
type ModifyClientRemarkRequest ¶
type ModifyClientRemarkRequest struct { *tchttp.BaseRequest // 客户备注名称 ClientRemark *string `json:"ClientRemark" name:"ClientRemark"` // 客户账号ID ClientUin *string `json:"ClientUin" name:"ClientUin"` }
func NewModifyClientRemarkRequest ¶
func NewModifyClientRemarkRequest() (request *ModifyClientRemarkRequest)
func (*ModifyClientRemarkRequest) FromJsonString ¶
func (r *ModifyClientRemarkRequest) FromJsonString(s string) error
func (*ModifyClientRemarkRequest) ToJsonString ¶
func (r *ModifyClientRemarkRequest) ToJsonString() string
type ModifyClientRemarkResponse ¶
type ModifyClientRemarkResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewModifyClientRemarkResponse ¶
func NewModifyClientRemarkResponse() (response *ModifyClientRemarkResponse)
func (*ModifyClientRemarkResponse) FromJsonString ¶
func (r *ModifyClientRemarkResponse) FromJsonString(s string) error
func (*ModifyClientRemarkResponse) ToJsonString ¶
func (r *ModifyClientRemarkResponse) ToJsonString() string
type RebateInfoElem ¶
type RebateInfoElem struct { // 代理商账号ID Uin *string `json:"Uin" name:"Uin"` // 返佣月份,如2018-02 RebateMonth *string `json:"RebateMonth" name:"RebateMonth"` // 返佣金额,单位分 Amt *uint64 `json:"Amt" name:"Amt"` // 月度业绩,单位分 MonthSales *uint64 `json:"MonthSales" name:"MonthSales"` // 季度业绩,单位分 QuarterSales *uint64 `json:"QuarterSales" name:"QuarterSales"` // NORMAL(正常)/HAS_OVERDUE_BILL(欠费)/NO_CONTRACT(缺合同) ExceptionFlag *string `json:"ExceptionFlag" name:"ExceptionFlag"` }
Click to show internal directories.
Click to hide internal directories.