v20180321

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2018-03-21"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyBlackListRequest

type ApplyBlackListRequest struct {
	*tchttp.BaseRequest

	// 模块
	Module *string `json:"Module" name:"Module"`

	// 操作
	Operation *string `json:"Operation" name:"Operation"`

	// 黑名单列表
	BlackList []*SingleBlackApply `json:"BlackList" name:"BlackList" list`
}

func NewApplyBlackListRequest

func NewApplyBlackListRequest() (request *ApplyBlackListRequest)

func (*ApplyBlackListRequest) FromJsonString

func (r *ApplyBlackListRequest) FromJsonString(s string) error

func (*ApplyBlackListRequest) ToJsonString

func (r *ApplyBlackListRequest) ToJsonString() string

type ApplyBlackListResponse

type ApplyBlackListResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" name:"RequestId"`
	} `json:"Response"`
}

func NewApplyBlackListResponse

func NewApplyBlackListResponse() (response *ApplyBlackListResponse)

func (*ApplyBlackListResponse) FromJsonString

func (r *ApplyBlackListResponse) FromJsonString(s string) error

func (*ApplyBlackListResponse) ToJsonString

func (r *ApplyBlackListResponse) ToJsonString() string

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) ApplyBlackList

func (c *Client) ApplyBlackList(request *ApplyBlackListRequest) (response *ApplyBlackListResponse, err error)

提交黑名单申请。

func (*Client) DescribeRecords

func (c *Client) DescribeRecords(request *DescribeRecordsRequest) (response *DescribeRecordsResponse, err error)

查询录音,返回录音列表。

func (*Client) DescribeTaskStatus

func (c *Client) DescribeTaskStatus(request *DescribeTaskStatusRequest) (response *DescribeTaskStatusResponse, err error)

客户调用该接口查看任务执行状态。输入任务ID,输出任务执行状态或者结果

func (*Client) DownloadReport

func (c *Client) DownloadReport(request *DownloadReportRequest) (response *DownloadReportResponse, err error)

客户调用该接口下载指定日期的催收报告

func (*Client) UploadDataFile

func (c *Client) UploadDataFile(request *UploadDataFileRequest) (response *UploadDataFileResponse, err error)

客户通过调用该接口上传需催收文档或还款文档,接口返回数据任务ID,支持xlsx、xls、csv、zip格式,文档大小不超过50MB。

func (*Client) UploadFile

func (c *Client) UploadFile(request *UploadFileRequest) (response *UploadFileResponse, err error)

客户通过调用该接口上传需催收文档,格式需为excel格式。接口返回任务ID。

type DescribeRecordsRequest

type DescribeRecordsRequest struct {
	*tchttp.BaseRequest

	// 模块
	Module *string `json:"Module" name:"Module"`

	// 操作
	Operation *string `json:"Operation" name:"Operation"`

	// 产品ID
	ProductId *string `json:"ProductId" name:"ProductId"`

	// 案件编号
	AccountNum *string `json:"AccountNum" name:"AccountNum"`

	// 被叫号码
	CalledPhone *string `json:"CalledPhone" name:"CalledPhone"`

	// 查询起始日期
	StartBizDate *string `json:"StartBizDate" name:"StartBizDate"`

	// 查询结束日期
	EndBizDate *string `json:"EndBizDate" name:"EndBizDate"`

	// 分页参数,索引,从0开始
	Offset *string `json:"Offset" name:"Offset"`

	// 分页参数,页长
	Limit *string `json:"Limit" name:"Limit"`
}

func NewDescribeRecordsRequest

func NewDescribeRecordsRequest() (request *DescribeRecordsRequest)

func (*DescribeRecordsRequest) FromJsonString

func (r *DescribeRecordsRequest) FromJsonString(s string) error

func (*DescribeRecordsRequest) ToJsonString

func (r *DescribeRecordsRequest) ToJsonString() string

type DescribeRecordsResponse

type DescribeRecordsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 录音列表。
		RecordList []*SingleRecord `json:"RecordList" name:"RecordList" list`

		// 录音总量。
		TotalCount *int64 `json:"TotalCount" name:"TotalCount"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeRecordsResponse

func NewDescribeRecordsResponse() (response *DescribeRecordsResponse)

func (*DescribeRecordsResponse) FromJsonString

func (r *DescribeRecordsResponse) FromJsonString(s string) error

func (*DescribeRecordsResponse) ToJsonString

func (r *DescribeRecordsResponse) ToJsonString() string

type DescribeTaskStatusRequest

type DescribeTaskStatusRequest struct {
	*tchttp.BaseRequest

	// 模块名
	Module *string `json:"Module" name:"Module"`

	// 操作名
	Operation *string `json:"Operation" name:"Operation"`

	// 任务ID,形如abc-a0b1c2xyz
	TaskId *string `json:"TaskId" name:"TaskId"`
}

func NewDescribeTaskStatusRequest

func NewDescribeTaskStatusRequest() (request *DescribeTaskStatusRequest)

func (*DescribeTaskStatusRequest) FromJsonString

func (r *DescribeTaskStatusRequest) FromJsonString(s string) error

func (*DescribeTaskStatusRequest) ToJsonString

func (r *DescribeTaskStatusRequest) ToJsonString() string

type DescribeTaskStatusResponse

type DescribeTaskStatusResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 任务结果
		TaskResult *string `json:"TaskResult" name:"TaskResult"`

		// 任务类型,001为报告下载,002为数据上传,003为还款数据上传。
		TaskType *string `json:"TaskType" name:"TaskType"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeTaskStatusResponse

func NewDescribeTaskStatusResponse() (response *DescribeTaskStatusResponse)

func (*DescribeTaskStatusResponse) FromJsonString

func (r *DescribeTaskStatusResponse) FromJsonString(s string) error

func (*DescribeTaskStatusResponse) ToJsonString

func (r *DescribeTaskStatusResponse) ToJsonString() string

type DownloadReportRequest

type DownloadReportRequest struct {
	*tchttp.BaseRequest

	// 模块名
	Module *string `json:"Module" name:"Module"`

	// 操作名
	Operation *string `json:"Operation" name:"Operation"`

	// 报告日期
	ReportDate *string `json:"ReportDate" name:"ReportDate"`
}

func NewDownloadReportRequest

func NewDownloadReportRequest() (request *DownloadReportRequest)

func (*DownloadReportRequest) FromJsonString

func (r *DownloadReportRequest) FromJsonString(s string) error

func (*DownloadReportRequest) ToJsonString

func (r *DownloadReportRequest) ToJsonString() string

type DownloadReportResponse

type DownloadReportResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 日报下载地址
		DailyReportUrl *string `json:"DailyReportUrl" name:"DailyReportUrl"`

		// 结果下载地址
		ResultReportUrl *string `json:"ResultReportUrl" name:"ResultReportUrl"`

		// 明细下载地址
		DetailReportUrl *string `json:"DetailReportUrl" name:"DetailReportUrl"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" name:"RequestId"`
	} `json:"Response"`
}

func NewDownloadReportResponse

func NewDownloadReportResponse() (response *DownloadReportResponse)

func (*DownloadReportResponse) FromJsonString

func (r *DownloadReportResponse) FromJsonString(s string) error

func (*DownloadReportResponse) ToJsonString

func (r *DownloadReportResponse) ToJsonString() string

type SingleBlackApply

type SingleBlackApply struct {

	// 黑名单类型,01代表手机号码。
	BlackType *string `json:"BlackType" name:"BlackType"`

	// 操作类型,A为新增,D为删除。
	OperationType *string `json:"OperationType" name:"OperationType"`

	// 黑名单值,BlackType为01时,填写11位手机号码。
	BlackValue *string `json:"BlackValue" name:"BlackValue"`

	// 备注。
	BlackDescription *string `json:"BlackDescription" name:"BlackDescription"`
}

type SingleRecord

type SingleRecord struct {

	// 案件编号。
	AccountNum *string `json:"AccountNum" name:"AccountNum"`

	// 外呼日期。
	BizDate *string `json:"BizDate" name:"BizDate"`

	// 开始呼叫时间。
	CallStartTime *string `json:"CallStartTime" name:"CallStartTime"`

	// 主叫号码。
	CallerPhone *string `json:"CallerPhone" name:"CallerPhone"`

	// 呼叫方向,O为呼出,I为呼入。
	Direction *string `json:"Direction" name:"Direction"`

	// 通话时长。
	Duration *int64 `json:"Duration" name:"Duration"`

	// 产品ID。
	ProductId *string `json:"ProductId" name:"ProductId"`

	// 录音下载链接。
	RecordCosUrl *string `json:"RecordCosUrl" name:"RecordCosUrl"`
}

type UploadDataFileRequest

type UploadDataFileRequest struct {
	*tchttp.BaseRequest

	// 模块名
	Module *string `json:"Module" name:"Module"`

	// 操作名
	Operation *string `json:"Operation" name:"Operation"`

	// 文件名
	FileName *string `json:"FileName" name:"FileName"`

	// 上传类型,不填默认催收文件,催收文件为data,还款文件为repay。
	UploadModel *string `json:"UploadModel" name:"UploadModel"`

	// 文件,文件与文件地址上传只可选用一种,必须使用multipart/form-data协议来上传二进制流文件,建议使用xlsx格式,大小不超过5MB。
	File *binary `json:"File" name:"File"`

	// 文件上传地址,文件与文件地址上传只可选用一种,大小不超过50MB。
	FileUrl *string `json:"FileUrl" name:"FileUrl"`
}

func NewUploadDataFileRequest

func NewUploadDataFileRequest() (request *UploadDataFileRequest)

func (*UploadDataFileRequest) FromJsonString

func (r *UploadDataFileRequest) FromJsonString(s string) error

func (*UploadDataFileRequest) ToJsonString

func (r *UploadDataFileRequest) ToJsonString() string

type UploadDataFileResponse

type UploadDataFileResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 数据ID
		DataResId *string `json:"DataResId" name:"DataResId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" name:"RequestId"`
	} `json:"Response"`
}

func NewUploadDataFileResponse

func NewUploadDataFileResponse() (response *UploadDataFileResponse)

func (*UploadDataFileResponse) FromJsonString

func (r *UploadDataFileResponse) FromJsonString(s string) error

func (*UploadDataFileResponse) ToJsonString

func (r *UploadDataFileResponse) ToJsonString() string

type UploadFileRequest

type UploadFileRequest struct {
	*tchttp.BaseRequest

	// 模块名
	Module *string `json:"Module" name:"Module"`

	// 操作名
	Operation *string `json:"Operation" name:"Operation"`

	// 文件上传地址,要求地址协议为HTTPS,且URL端口必须为443
	FileUrl *string `json:"FileUrl" name:"FileUrl"`

	// 文件名
	FileName *string `json:"FileName" name:"FileName"`

	// 文件日期
	FileDate *string `json:"FileDate" name:"FileDate"`
}

func NewUploadFileRequest

func NewUploadFileRequest() (request *UploadFileRequest)

func (*UploadFileRequest) FromJsonString

func (r *UploadFileRequest) FromJsonString(s string) error

func (*UploadFileRequest) ToJsonString

func (r *UploadFileRequest) ToJsonString() string

type UploadFileResponse

type UploadFileResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 任务ID
		TaskId *int64 `json:"TaskId" name:"TaskId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" name:"RequestId"`
	} `json:"Response"`
}

func NewUploadFileResponse

func NewUploadFileResponse() (response *UploadFileResponse)

func (*UploadFileResponse) FromJsonString

func (r *UploadFileResponse) FromJsonString(s string) error

func (*UploadFileResponse) ToJsonString

func (r *UploadFileResponse) ToJsonString() string

Jump to

Keyboard shortcuts

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