bill

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package bill 包含账务API相关结构体

https://open.taobao.com/API.htm?docId=21709&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 费用科目编码
	AccountCode string `json:"account_code,omitempty" xml:"account_code,omitempty"`
	// 修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 费用科目名称
	AccountName string `json:"account_name,omitempty" xml:"account_name,omitempty"`
	// 费用科目编号
	AccountId int64 `json:"account_id,omitempty" xml:"account_id,omitempty"`
	// 状态:0-不可用 1-可用
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 费用科目类型:1-虚拟账户 2-交易 3-交易佣金 4-服务费 5-天猫积分 6-其他
	AccountType int64 `json:"account_type,omitempty" xml:"account_type,omitempty"`
	// 是否订单相关:0-订单无关 1-订单相关
	RelatedOrder int64 `json:"related_order,omitempty" xml:"related_order,omitempty"`
}

Account 结构体

type Bill

type Bill struct {
	// 目标支付宝账户编号
	ObjAlipayId string `json:"obj_alipay_id,omitempty" xml:"obj_alipay_id,omitempty"`
	// 记账时间
	BookTime string `json:"book_time,omitempty" xml:"book_time,omitempty"`
	// 修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 支付宝备注
	AlipayNotice string `json:"alipay_notice,omitempty" xml:"alipay_notice,omitempty"`
	// 支付时间,收取佣金时支付宝的扣款时间
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 交易子订单编号
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 业务时间,订单交易完成的时间
	BizTime string `json:"biz_time,omitempty" xml:"biz_time,omitempty"`
	// 目标支付宝账户名称
	ObjAlipayMail string `json:"obj_alipay_mail,omitempty" xml:"obj_alipay_mail,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 交易订单编号
	TradeId string `json:"trade_id,omitempty" xml:"trade_id,omitempty"`
	// 支付宝商户订单号
	AlipayOutno string `json:"alipay_outno,omitempty" xml:"alipay_outno,omitempty"`
	// 支付宝账户名称
	AlipayMail string `json:"alipay_mail,omitempty" xml:"alipay_mail,omitempty"`
	// 支付宝账户编号
	AlipayId string `json:"alipay_id,omitempty" xml:"alipay_id,omitempty"`
	// 所属商品编号
	NumIid string `json:"num_iid,omitempty" xml:"num_iid,omitempty"`
	// 支付宝交易号,暂不提供
	AlipayNo string `json:"alipay_no,omitempty" xml:"alipay_no,omitempty"`
	// 交易金额
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 科目编号
	AccountId int64 `json:"account_id,omitempty" xml:"account_id,omitempty"`
	// 0-未支付,1-支付成功,2-支付失败
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 账单金额,退款时返回的是负数
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 账单编号
	Bid int64 `json:"bid,omitempty" xml:"bid,omitempty"`
}

Bill 结构体

type BillDto

type BillDto struct {
	// 修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 交易子订单编号
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 业务时间,订单交易完成的时间
	BizTime string `json:"biz_time,omitempty" xml:"biz_time,omitempty"`
	// 支付宝备注
	AlipayNotice string `json:"alipay_notice,omitempty" xml:"alipay_notice,omitempty"`
	// 支付宝商户订单号
	AlipayOutno string `json:"alipay_outno,omitempty" xml:"alipay_outno,omitempty"`
	// 目标支付宝账户编号
	ObjAlipayId string `json:"obj_alipay_id,omitempty" xml:"obj_alipay_id,omitempty"`
	// 交易订单编号
	TradeId string `json:"trade_id,omitempty" xml:"trade_id,omitempty"`
	// 支付宝账户编号
	AlipayId string `json:"alipay_id,omitempty" xml:"alipay_id,omitempty"`
	// 支付宝账户名称
	AlipayMail string `json:"alipay_mail,omitempty" xml:"alipay_mail,omitempty"`
	// 目标支付宝账户名称
	ObjAlipayMail string `json:"obj_alipay_mail,omitempty" xml:"obj_alipay_mail,omitempty"`
	// 支付时间,收取佣金时支付宝的扣款时间
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 记账时间
	BookTime string `json:"book_time,omitempty" xml:"book_time,omitempty"`
	// 所属商品编号
	NumIid string `json:"num_iid,omitempty" xml:"num_iid,omitempty"`
	// 支付宝交易号,暂不提供
	AlipayNo string `json:"alipay_no,omitempty" xml:"alipay_no,omitempty"`
	// 账单金额,退款时返回的是负数
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 0-未支付,1-支付成功,2-支付失败
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 账单金额,退款时返回的是负数
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 科目编号
	AccountId int64 `json:"account_id,omitempty" xml:"account_id,omitempty"`
	// 账单编号
	Bid int64 `json:"bid,omitempty" xml:"bid,omitempty"`
}

BillDto 结构体

type BookBill

type BookBill struct {
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 备注
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 流水的淘宝支付宝id
	TaobaoAlipayId string `json:"taobao_alipay_id,omitempty" xml:"taobao_alipay_id,omitempty"`
	// 流水的商家支付宝id
	OtherAlipayId string `json:"other_alipay_id,omitempty" xml:"other_alipay_id,omitempty"`
	// 记账时间
	BookTime string `json:"book_time,omitempty" xml:"book_time,omitempty"`
	// 操作金额
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 流水类型:101-可用金充值;102-可用金扣除;103-冻结;104-解冻;105-冻结金充值;106-冻结金扣除
	JournalType int64 `json:"journal_type,omitempty" xml:"journal_type,omitempty"`
	// 虚拟账户科目编号
	AccountId int64 `json:"account_id,omitempty" xml:"account_id,omitempty"`
	// 虚拟账户流水编号
	Bid int64 `json:"bid,omitempty" xml:"bid,omitempty"`
}

BookBill 结构体

type TaobaoBillAccountsGetAPIRequest added in v1.2.0

type TaobaoBillAccountsGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoBillAccountsGetAPIRequest 查询费用科目信息(限自研商家) API请求 taobao.bill.accounts.get

查询费用账户信息

func NewTaobaoBillAccountsGetRequest

func NewTaobaoBillAccountsGetRequest() *TaobaoBillAccountsGetAPIRequest

NewTaobaoBillAccountsGetRequest 初始化TaobaoBillAccountsGetAPIRequest对象

func (TaobaoBillAccountsGetAPIRequest) GetAids added in v1.2.0

GetAids Aids Getter

func (TaobaoBillAccountsGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoBillAccountsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBillAccountsGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoBillAccountsGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBillAccountsGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoBillAccountsGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (*TaobaoBillAccountsGetAPIRequest) SetAids added in v1.2.0

func (r *TaobaoBillAccountsGetAPIRequest) SetAids(_aids []string) error

SetAids is Aids Setter 需要获取的科目ID

func (*TaobaoBillAccountsGetAPIRequest) SetFields added in v1.2.0

func (r *TaobaoBillAccountsGetAPIRequest) SetFields(_fields []string) error

SetFields is Fields Setter 需要返回的字段

type TaobaoBillAccountsGetAPIResponse

type TaobaoBillAccountsGetAPIResponse struct {
	model.CommonResponse
	TaobaoBillAccountsGetAPIResponseModel
}

TaobaoBillAccountsGetAPIResponse 查询费用科目信息(限自研商家) API返回值 taobao.bill.accounts.get

查询费用账户信息

type TaobaoBillAccountsGetAPIResponseModel added in v1.2.0

type TaobaoBillAccountsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"bill_accounts_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回的科目信息
	Accounts []Account `json:"accounts,omitempty" xml:"accounts>account,omitempty"`
	// 返回记录行数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaoBillAccountsGetAPIResponseModel is 查询费用科目信息(限自研商家) 成功返回结果

type TaobaoBillBillsGetAPIRequest added in v1.2.0

type TaobaoBillBillsGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoBillBillsGetAPIRequest 查询账单明细数据(自研发商家专用) API请求 taobao.bill.bills.get

查询账单明细数据

func NewTaobaoBillBillsGetRequest

func NewTaobaoBillBillsGetRequest() *TaobaoBillBillsGetAPIRequest

NewTaobaoBillBillsGetRequest 初始化TaobaoBillBillsGetAPIRequest对象

func (TaobaoBillBillsGetAPIRequest) GetAccountId added in v1.2.0

func (r TaobaoBillBillsGetAPIRequest) GetAccountId() int64

GetAccountId AccountId Getter

func (TaobaoBillBillsGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoBillBillsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBillBillsGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoBillBillsGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBillBillsGetAPIRequest) GetEndTime added in v1.2.0

func (r TaobaoBillBillsGetAPIRequest) GetEndTime() string

GetEndTime EndTime Getter

func (TaobaoBillBillsGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoBillBillsGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoBillBillsGetAPIRequest) GetOrderId added in v1.2.0

func (r TaobaoBillBillsGetAPIRequest) GetOrderId() int64

GetOrderId OrderId Getter

func (TaobaoBillBillsGetAPIRequest) GetPageNo added in v1.2.0

func (r TaobaoBillBillsGetAPIRequest) GetPageNo() int64

GetPageNo PageNo Getter

func (TaobaoBillBillsGetAPIRequest) GetPageSize added in v1.2.0

func (r TaobaoBillBillsGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoBillBillsGetAPIRequest) GetStartTime added in v1.2.0

func (r TaobaoBillBillsGetAPIRequest) GetStartTime() string

GetStartTime StartTime Getter

func (TaobaoBillBillsGetAPIRequest) GetTimeType added in v1.2.0

func (r TaobaoBillBillsGetAPIRequest) GetTimeType() int64

GetTimeType TimeType Getter

func (TaobaoBillBillsGetAPIRequest) GetTradeId added in v1.2.0

func (r TaobaoBillBillsGetAPIRequest) GetTradeId() int64

GetTradeId TradeId Getter

func (*TaobaoBillBillsGetAPIRequest) SetAccountId added in v1.2.0

func (r *TaobaoBillBillsGetAPIRequest) SetAccountId(_accountId int64) error

SetAccountId is AccountId Setter 科目编号

func (*TaobaoBillBillsGetAPIRequest) SetEndTime added in v1.2.0

func (r *TaobaoBillBillsGetAPIRequest) SetEndTime(_endTime string) error

SetEndTime is EndTime Setter 结束时间,限制:结束时间-开始时间不能大于1天(根据order_id或者trade_id查询除外)

func (*TaobaoBillBillsGetAPIRequest) SetFields added in v1.2.0

func (r *TaobaoBillBillsGetAPIRequest) SetFields(_fields []string) error

SetFields is Fields Setter 传入需要返回的字段,参见Bill结构体

func (*TaobaoBillBillsGetAPIRequest) SetOrderId added in v1.2.0

func (r *TaobaoBillBillsGetAPIRequest) SetOrderId(_orderId int64) error

SetOrderId is OrderId Setter 子订单编号

func (*TaobaoBillBillsGetAPIRequest) SetPageNo added in v1.2.0

func (r *TaobaoBillBillsGetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页数,建议不要超过100页,越大性能越低,有可能会超时

func (*TaobaoBillBillsGetAPIRequest) SetPageSize added in v1.2.0

func (r *TaobaoBillBillsGetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页大小,默认40条,可选范围 :40~100

func (*TaobaoBillBillsGetAPIRequest) SetStartTime added in v1.2.0

func (r *TaobaoBillBillsGetAPIRequest) SetStartTime(_startTime string) error

SetStartTime is StartTime Setter 开始时间

func (*TaobaoBillBillsGetAPIRequest) SetTimeType added in v1.2.0

func (r *TaobaoBillBillsGetAPIRequest) SetTimeType(_timeType int64) error

SetTimeType is TimeType Setter 查询条件中的时间类型:1-交易订单完成时间biz_time 2-支付宝扣款时间pay_time 如果不填默认为2即根据支付时间查询,查询的结果会根据该时间倒排序

func (*TaobaoBillBillsGetAPIRequest) SetTradeId added in v1.2.0

func (r *TaobaoBillBillsGetAPIRequest) SetTradeId(_tradeId int64) error

SetTradeId is TradeId Setter 交易编号

type TaobaoBillBillsGetAPIResponse

type TaobaoBillBillsGetAPIResponse struct {
	model.CommonResponse
	TaobaoBillBillsGetAPIResponseModel
}

TaobaoBillBillsGetAPIResponse 查询账单明细数据(自研发商家专用) API返回值 taobao.bill.bills.get

查询账单明细数据

type TaobaoBillBillsGetAPIResponseModel added in v1.2.0

type TaobaoBillBillsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"bill_bills_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 账单列表
	Bills []Bill `json:"bills,omitempty" xml:"bills>bill,omitempty"`
	// 当前页查询返回的结果数(0-100)。相同的查询时间段条件下,最大只能获取总共5000条记录。所以当大于等于5000时 ISV可以通过start_time及end_time来进行拆分,以保证可以查询到全部数据
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// 是否存在下一页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
}

TaobaoBillBillsGetAPIResponseModel is 查询账单明细数据(自研发商家专用) 成功返回结果

type TaobaoBillBookBillsGetAPIRequest added in v1.2.0

type TaobaoBillBookBillsGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoBillBookBillsGetAPIRequest 查询虚拟账户明细数据(自研发商家专用) API请求 taobao.bill.book.bills.get

查询虚拟账户明细数据

func NewTaobaoBillBookBillsGetRequest

func NewTaobaoBillBookBillsGetRequest() *TaobaoBillBookBillsGetAPIRequest

NewTaobaoBillBookBillsGetRequest 初始化TaobaoBillBookBillsGetAPIRequest对象

func (TaobaoBillBookBillsGetAPIRequest) GetAccountId added in v1.2.0

func (r TaobaoBillBookBillsGetAPIRequest) GetAccountId() int64

GetAccountId AccountId Getter

func (TaobaoBillBookBillsGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoBillBookBillsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBillBookBillsGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoBillBookBillsGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBillBookBillsGetAPIRequest) GetEndTime added in v1.2.0

GetEndTime EndTime Getter

func (TaobaoBillBookBillsGetAPIRequest) GetFields added in v1.2.0

GetFields Fields Getter

func (TaobaoBillBookBillsGetAPIRequest) GetJournalTypes added in v1.2.0

func (r TaobaoBillBookBillsGetAPIRequest) GetJournalTypes() []int64

GetJournalTypes JournalTypes Getter

func (TaobaoBillBookBillsGetAPIRequest) GetPageNo added in v1.2.0

GetPageNo PageNo Getter

func (TaobaoBillBookBillsGetAPIRequest) GetPageSize added in v1.2.0

func (r TaobaoBillBookBillsGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoBillBookBillsGetAPIRequest) GetStartTime added in v1.2.0

func (r TaobaoBillBookBillsGetAPIRequest) GetStartTime() string

GetStartTime StartTime Getter

func (*TaobaoBillBookBillsGetAPIRequest) SetAccountId added in v1.2.0

func (r *TaobaoBillBookBillsGetAPIRequest) SetAccountId(_accountId int64) error

SetAccountId is AccountId Setter 虚拟账户科目编号

func (*TaobaoBillBookBillsGetAPIRequest) SetEndTime added in v1.2.0

func (r *TaobaoBillBookBillsGetAPIRequest) SetEndTime(_endTime string) error

SetEndTime is EndTime Setter 记账结束时间,end_time与start_time相差不能超过30天

func (*TaobaoBillBookBillsGetAPIRequest) SetFields added in v1.2.0

func (r *TaobaoBillBookBillsGetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需要返回的字段:bid,account_id,journal_type,amount,book_time,description,gmt_create,gmt_modified ,如果不是以上字段将自动忽略

func (*TaobaoBillBookBillsGetAPIRequest) SetJournalTypes added in v1.2.0

func (r *TaobaoBillBookBillsGetAPIRequest) SetJournalTypes(_journalTypes []int64) error

SetJournalTypes is JournalTypes Setter 明细流水类型:流水类型:101、可用金充值;102、可用金扣除;103、冻结;104、解冻;105、冻结金充值;106、冻结金扣除

func (*TaobaoBillBookBillsGetAPIRequest) SetPageNo added in v1.2.0

func (r *TaobaoBillBookBillsGetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码,传入值为1代表第一页,传入值为2代表第二页,依此类推.默认返回的数据是从第一页开始

func (*TaobaoBillBookBillsGetAPIRequest) SetPageSize added in v1.2.0

func (r *TaobaoBillBookBillsGetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页大小,建议40~100,不能超过100

func (*TaobaoBillBookBillsGetAPIRequest) SetStartTime added in v1.2.0

func (r *TaobaoBillBookBillsGetAPIRequest) SetStartTime(_startTime string) error

SetStartTime is StartTime Setter 记账开始时间

type TaobaoBillBookBillsGetAPIResponse

type TaobaoBillBookBillsGetAPIResponse struct {
	model.CommonResponse
	TaobaoBillBookBillsGetAPIResponseModel
}

TaobaoBillBookBillsGetAPIResponse 查询虚拟账户明细数据(自研发商家专用) API返回值 taobao.bill.book.bills.get

查询虚拟账户明细数据

type TaobaoBillBookBillsGetAPIResponseModel added in v1.2.0

type TaobaoBillBookBillsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"bill_book_bills_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 虚拟账户账单列表
	Bills []BookBill `json:"bills,omitempty" xml:"bills>book_bill,omitempty"`
	// 当前查询的结果数,非总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// 是否有下一页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
}

TaobaoBillBookBillsGetAPIResponseModel is 查询虚拟账户明细数据(自研发商家专用) 成功返回结果

type TaobaoTaeAccountsGetAPIRequest added in v1.2.0

type TaobaoTaeAccountsGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoTaeAccountsGetAPIRequest tae查询费用科目信息 API请求 taobao.tae.accounts.get

tae查询费用科目信息

func NewTaobaoTaeAccountsGetRequest

func NewTaobaoTaeAccountsGetRequest() *TaobaoTaeAccountsGetAPIRequest

NewTaobaoTaeAccountsGetRequest 初始化TaobaoTaeAccountsGetAPIRequest对象

func (TaobaoTaeAccountsGetAPIRequest) GetAids added in v1.2.0

func (r TaobaoTaeAccountsGetAPIRequest) GetAids() []int64

GetAids Aids Getter

func (TaobaoTaeAccountsGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTaeAccountsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTaeAccountsGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoTaeAccountsGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTaeAccountsGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoTaeAccountsGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (*TaobaoTaeAccountsGetAPIRequest) SetAids added in v1.2.0

func (r *TaobaoTaeAccountsGetAPIRequest) SetAids(_aids []int64) error

SetAids is Aids Setter 需要获取的科目ID

func (*TaobaoTaeAccountsGetAPIRequest) SetFields added in v1.2.0

func (r *TaobaoTaeAccountsGetAPIRequest) SetFields(_fields []string) error

SetFields is Fields Setter 需要返回的字段

type TaobaoTaeAccountsGetAPIResponse

type TaobaoTaeAccountsGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaeAccountsGetAPIResponseModel
}

TaobaoTaeAccountsGetAPIResponse tae查询费用科目信息 API返回值 taobao.tae.accounts.get

tae查询费用科目信息

type TaobaoTaeAccountsGetAPIResponseModel added in v1.2.0

type TaobaoTaeAccountsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tae_accounts_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回的科目信息
	Accounts []TopAccountDto `json:"accounts,omitempty" xml:"accounts>top_account_dto,omitempty"`
	// 返回记录行数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaoTaeAccountsGetAPIResponseModel is tae查询费用科目信息 成功返回结果

type TaobaoTaeBillGetAPIRequest added in v1.2.0

type TaobaoTaeBillGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoTaeBillGetAPIRequest tae查询单笔账单明细 API请求 taobao.tae.bill.get

查询单笔账单明细

func NewTaobaoTaeBillGetRequest

func NewTaobaoTaeBillGetRequest() *TaobaoTaeBillGetAPIRequest

NewTaobaoTaeBillGetRequest 初始化TaobaoTaeBillGetAPIRequest对象

func (TaobaoTaeBillGetAPIRequest) GetAccountId added in v1.2.0

func (r TaobaoTaeBillGetAPIRequest) GetAccountId() int64

GetAccountId AccountId Getter

func (TaobaoTaeBillGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTaeBillGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTaeBillGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoTaeBillGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTaeBillGetAPIRequest) GetBid added in v1.2.0

func (r TaobaoTaeBillGetAPIRequest) GetBid() int64

GetBid Bid Getter

func (TaobaoTaeBillGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoTaeBillGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoTaeBillGetAPIRequest) GetId added in v1.2.0

GetId Id Getter

func (*TaobaoTaeBillGetAPIRequest) SetAccountId added in v1.2.0

func (r *TaobaoTaeBillGetAPIRequest) SetAccountId(_accountId int64) error

SetAccountId is AccountId Setter 虚拟账户科目编号

func (*TaobaoTaeBillGetAPIRequest) SetBid added in v1.2.0

func (r *TaobaoTaeBillGetAPIRequest) SetBid(_bid int64) error

SetBid is Bid Setter 账单编号

func (*TaobaoTaeBillGetAPIRequest) SetFields added in v1.2.0

func (r *TaobaoTaeBillGetAPIRequest) SetFields(_fields []string) error

SetFields is Fields Setter 传入需要返回的字段

func (*TaobaoTaeBillGetAPIRequest) SetId added in v1.2.0

func (r *TaobaoTaeBillGetAPIRequest) SetId(_id int64) error

SetId is Id Setter 账单编号

type TaobaoTaeBillGetAPIResponse

type TaobaoTaeBillGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaeBillGetAPIResponseModel
}

TaobaoTaeBillGetAPIResponse tae查询单笔账单明细 API返回值 taobao.tae.bill.get

查询单笔账单明细

type TaobaoTaeBillGetAPIResponseModel added in v1.2.0

type TaobaoTaeBillGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tae_bill_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 账单明细
	Bill *BillDto `json:"bill,omitempty" xml:"bill,omitempty"`
}

TaobaoTaeBillGetAPIResponseModel is tae查询单笔账单明细 成功返回结果

type TaobaoTaeBillsGetAPIRequest added in v1.2.0

type TaobaoTaeBillsGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoTaeBillsGetAPIRequest tae查询账单明细 API请求 taobao.tae.bills.get

tae查询账单明细

func NewTaobaoTaeBillsGetRequest

func NewTaobaoTaeBillsGetRequest() *TaobaoTaeBillsGetAPIRequest

NewTaobaoTaeBillsGetRequest 初始化TaobaoTaeBillsGetAPIRequest对象

func (TaobaoTaeBillsGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTaeBillsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTaeBillsGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoTaeBillsGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTaeBillsGetAPIRequest) GetCurrentPage added in v1.2.0

func (r TaobaoTaeBillsGetAPIRequest) GetCurrentPage() int64

GetCurrentPage CurrentPage Getter

func (TaobaoTaeBillsGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoTaeBillsGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoTaeBillsGetAPIRequest) GetItemId added in v1.2.0

func (r TaobaoTaeBillsGetAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TaobaoTaeBillsGetAPIRequest) GetPTradeId added in v1.2.0

func (r TaobaoTaeBillsGetAPIRequest) GetPTradeId() int64

GetPTradeId PTradeId Getter

func (TaobaoTaeBillsGetAPIRequest) GetPageSize added in v1.2.0

func (r TaobaoTaeBillsGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoTaeBillsGetAPIRequest) GetQueryDateType added in v1.2.0

func (r TaobaoTaeBillsGetAPIRequest) GetQueryDateType() int64

GetQueryDateType QueryDateType Getter

func (TaobaoTaeBillsGetAPIRequest) GetQueryEndDate added in v1.2.0

func (r TaobaoTaeBillsGetAPIRequest) GetQueryEndDate() string

GetQueryEndDate QueryEndDate Getter

func (TaobaoTaeBillsGetAPIRequest) GetQueryStartDate added in v1.2.0

func (r TaobaoTaeBillsGetAPIRequest) GetQueryStartDate() string

GetQueryStartDate QueryStartDate Getter

func (TaobaoTaeBillsGetAPIRequest) GetTradeId added in v1.2.0

func (r TaobaoTaeBillsGetAPIRequest) GetTradeId() int64

GetTradeId TradeId Getter

func (*TaobaoTaeBillsGetAPIRequest) SetCurrentPage added in v1.2.0

func (r *TaobaoTaeBillsGetAPIRequest) SetCurrentPage(_currentPage int64) error

SetCurrentPage is CurrentPage Setter 页数,建议不要超过100页,越大性能越低,有可能会超时

func (*TaobaoTaeBillsGetAPIRequest) SetFields added in v1.2.0

func (r *TaobaoTaeBillsGetAPIRequest) SetFields(_fields []string) error

SetFields is Fields Setter 传入需要返回的字段,参见Bill结构体

func (*TaobaoTaeBillsGetAPIRequest) SetItemId added in v1.2.0

func (r *TaobaoTaeBillsGetAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 科目编号

func (*TaobaoTaeBillsGetAPIRequest) SetPTradeId added in v1.2.0

func (r *TaobaoTaeBillsGetAPIRequest) SetPTradeId(_pTradeId int64) error

SetPTradeId is PTradeId Setter 交易编号

func (*TaobaoTaeBillsGetAPIRequest) SetPageSize added in v1.2.0

func (r *TaobaoTaeBillsGetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页大小,默认40条,可选范围 :40~100

func (*TaobaoTaeBillsGetAPIRequest) SetQueryDateType added in v1.2.0

func (r *TaobaoTaeBillsGetAPIRequest) SetQueryDateType(_queryDateType int64) error

SetQueryDateType is QueryDateType Setter 查询条件中的时间类型:1-交易订单完成时间biz_time 2-支付宝扣款时间pay_time 如果不填默认为2即根据支付时间查询,查询的结果会根据该时间倒排序

func (*TaobaoTaeBillsGetAPIRequest) SetQueryEndDate added in v1.2.0

func (r *TaobaoTaeBillsGetAPIRequest) SetQueryEndDate(_queryEndDate string) error

SetQueryEndDate is QueryEndDate Setter 结束时间,限制:结束时间-开始时间不能大于1天(根据order_id或者trade_id查询除外)

func (*TaobaoTaeBillsGetAPIRequest) SetQueryStartDate added in v1.2.0

func (r *TaobaoTaeBillsGetAPIRequest) SetQueryStartDate(_queryStartDate string) error

SetQueryStartDate is QueryStartDate Setter 开始时间

func (*TaobaoTaeBillsGetAPIRequest) SetTradeId added in v1.2.0

func (r *TaobaoTaeBillsGetAPIRequest) SetTradeId(_tradeId int64) error

SetTradeId is TradeId Setter 子订单编号

type TaobaoTaeBillsGetAPIResponse

type TaobaoTaeBillsGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaeBillsGetAPIResponseModel
}

TaobaoTaeBillsGetAPIResponse tae查询账单明细 API返回值 taobao.tae.bills.get

tae查询账单明细

type TaobaoTaeBillsGetAPIResponseModel added in v1.2.0

type TaobaoTaeBillsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tae_bills_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 账单列表
	Bills []BillDto `json:"bills,omitempty" xml:"bills>bill_dto,omitempty"`
	// 当前页查询返回的结果数(0-100)。相同的查询时间段条件下,最大只能获取总共5000条记录。所以当大于等于5000时 ISV可以通过start_time及end_time来进行拆分,以保证可以查询到全部数据
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// 是否存在下一页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
}

TaobaoTaeBillsGetAPIResponseModel is tae查询账单明细 成功返回结果

type TaobaoTaeBookBillGetAPIRequest added in v1.2.0

type TaobaoTaeBookBillGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoTaeBookBillGetAPIRequest tae查询单笔虚拟账户明细 API请求 taobao.tae.book.bill.get

tae查询单笔虚拟账户明细

func NewTaobaoTaeBookBillGetRequest

func NewTaobaoTaeBookBillGetRequest() *TaobaoTaeBookBillGetAPIRequest

NewTaobaoTaeBookBillGetRequest 初始化TaobaoTaeBookBillGetAPIRequest对象

func (TaobaoTaeBookBillGetAPIRequest) GetAccountId added in v1.2.0

func (r TaobaoTaeBookBillGetAPIRequest) GetAccountId() int64

GetAccountId AccountId Getter

func (TaobaoTaeBookBillGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTaeBookBillGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTaeBookBillGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoTaeBookBillGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTaeBookBillGetAPIRequest) GetBid added in v1.2.0

GetBid Bid Getter

func (TaobaoTaeBookBillGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoTaeBookBillGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoTaeBookBillGetAPIRequest) GetId added in v1.2.0

GetId Id Getter

func (*TaobaoTaeBookBillGetAPIRequest) SetAccountId added in v1.2.0

func (r *TaobaoTaeBookBillGetAPIRequest) SetAccountId(_accountId int64) error

SetAccountId is AccountId Setter 虚拟账户科目编号

func (*TaobaoTaeBookBillGetAPIRequest) SetBid added in v1.2.0

func (r *TaobaoTaeBookBillGetAPIRequest) SetBid(_bid int64) error

SetBid is Bid Setter 虚拟账户流水编号

func (*TaobaoTaeBookBillGetAPIRequest) SetFields added in v1.2.0

func (r *TaobaoTaeBookBillGetAPIRequest) SetFields(_fields []string) error

SetFields is Fields Setter 需要返回的字段:参见BookBill结构体

func (*TaobaoTaeBookBillGetAPIRequest) SetId added in v1.2.0

SetId is Id Setter 虚拟账户流水编号

type TaobaoTaeBookBillGetAPIResponse

type TaobaoTaeBookBillGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaeBookBillGetAPIResponseModel
}

TaobaoTaeBookBillGetAPIResponse tae查询单笔虚拟账户明细 API返回值 taobao.tae.book.bill.get

tae查询单笔虚拟账户明细

type TaobaoTaeBookBillGetAPIResponseModel added in v1.2.0

type TaobaoTaeBookBillGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tae_book_bill_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 虚拟账户账单
	Bookbill *TopAcctCashJourDto `json:"bookbill,omitempty" xml:"bookbill,omitempty"`
}

TaobaoTaeBookBillGetAPIResponseModel is tae查询单笔虚拟账户明细 成功返回结果

type TaobaoTaeBookBillsGetAPIRequest added in v1.2.0

type TaobaoTaeBookBillsGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoTaeBookBillsGetAPIRequest tae查询虚拟账户明细数据 API请求 taobao.tae.book.bills.get

tae查询虚拟账户明细数据

func NewTaobaoTaeBookBillsGetRequest

func NewTaobaoTaeBookBillsGetRequest() *TaobaoTaeBookBillsGetAPIRequest

NewTaobaoTaeBookBillsGetRequest 初始化TaobaoTaeBookBillsGetAPIRequest对象

func (TaobaoTaeBookBillsGetAPIRequest) GetAccountId added in v1.2.0

func (r TaobaoTaeBookBillsGetAPIRequest) GetAccountId() int64

GetAccountId AccountId Getter

func (TaobaoTaeBookBillsGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTaeBookBillsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTaeBookBillsGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoTaeBookBillsGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTaeBookBillsGetAPIRequest) GetEndTime added in v1.2.0

func (r TaobaoTaeBookBillsGetAPIRequest) GetEndTime() string

GetEndTime EndTime Getter

func (TaobaoTaeBookBillsGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoTaeBookBillsGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoTaeBookBillsGetAPIRequest) GetJournalTypes added in v1.2.0

func (r TaobaoTaeBookBillsGetAPIRequest) GetJournalTypes() []int64

GetJournalTypes JournalTypes Getter

func (TaobaoTaeBookBillsGetAPIRequest) GetPageNo added in v1.2.0

func (r TaobaoTaeBookBillsGetAPIRequest) GetPageNo() int64

GetPageNo PageNo Getter

func (TaobaoTaeBookBillsGetAPIRequest) GetPageSize added in v1.2.0

func (r TaobaoTaeBookBillsGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoTaeBookBillsGetAPIRequest) GetStartTime added in v1.2.0

func (r TaobaoTaeBookBillsGetAPIRequest) GetStartTime() string

GetStartTime StartTime Getter

func (*TaobaoTaeBookBillsGetAPIRequest) SetAccountId added in v1.2.0

func (r *TaobaoTaeBookBillsGetAPIRequest) SetAccountId(_accountId int64) error

SetAccountId is AccountId Setter 虚拟账户科目编号

func (*TaobaoTaeBookBillsGetAPIRequest) SetEndTime added in v1.2.0

func (r *TaobaoTaeBookBillsGetAPIRequest) SetEndTime(_endTime string) error

SetEndTime is EndTime Setter 记账结束时间,end_time与start_time相差不能超过30天

func (*TaobaoTaeBookBillsGetAPIRequest) SetFields added in v1.2.0

func (r *TaobaoTaeBookBillsGetAPIRequest) SetFields(_fields []string) error

SetFields is Fields Setter 需要返回的字段:bid,account_id,journal_type,amount,book_time,description,gmt_create,gmt_modified ,如果不是以上字段将自动忽略

func (*TaobaoTaeBookBillsGetAPIRequest) SetJournalTypes added in v1.2.0

func (r *TaobaoTaeBookBillsGetAPIRequest) SetJournalTypes(_journalTypes []int64) error

SetJournalTypes is JournalTypes Setter 明细流水类型:流水类型:101、可用金充值;102、可用金扣除;103、冻结;104、解冻;105、冻结金充值;106、冻结金扣除

func (*TaobaoTaeBookBillsGetAPIRequest) SetPageNo added in v1.2.0

func (r *TaobaoTaeBookBillsGetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码,传入值为1代表第一页,传入值为2代表第二页,依此类推.默认返回的数据是从第一页开始

func (*TaobaoTaeBookBillsGetAPIRequest) SetPageSize added in v1.2.0

func (r *TaobaoTaeBookBillsGetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页大小,建议40~100,不能超过100

func (*TaobaoTaeBookBillsGetAPIRequest) SetStartTime added in v1.2.0

func (r *TaobaoTaeBookBillsGetAPIRequest) SetStartTime(_startTime string) error

SetStartTime is StartTime Setter 记账开始时间

type TaobaoTaeBookBillsGetAPIResponse

type TaobaoTaeBookBillsGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaeBookBillsGetAPIResponseModel
}

TaobaoTaeBookBillsGetAPIResponse tae查询虚拟账户明细数据 API返回值 taobao.tae.book.bills.get

tae查询虚拟账户明细数据

type TaobaoTaeBookBillsGetAPIResponseModel added in v1.2.0

type TaobaoTaeBookBillsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tae_book_bills_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 虚拟账户账单列表
	Bills []TopAcctCashJourDto `json:"bills,omitempty" xml:"bills>top_acct_cash_jour_dto,omitempty"`
	// 当前查询的结果数,非总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// 是否有下一页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
}

TaobaoTaeBookBillsGetAPIResponseModel is tae查询虚拟账户明细数据 成功返回结果

type TopAccountDto

type TopAccountDto struct {
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 费用科目编码
	AccountCode string `json:"account_code,omitempty" xml:"account_code,omitempty"`
	// 修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 费用科目名称
	AccountName string `json:"account_name,omitempty" xml:"account_name,omitempty"`
	// 是否订单相关:0-订单无关 1-订单相关
	RelatedOrder int64 `json:"related_order,omitempty" xml:"related_order,omitempty"`
	// 费用科目编号
	AccountId int64 `json:"account_id,omitempty" xml:"account_id,omitempty"`
	// 状态:0-不可用 1-可用
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 费用科目类型:1-虚拟账户 2-交易 3-交易佣金 4-服务费 5-天猫积分 6-其他
	AccountType int64 `json:"account_type,omitempty" xml:"account_type,omitempty"`
}

TopAccountDto 结构体

type TopAcctCashJourDto

type TopAcctCashJourDto struct {
	// 记账时间
	BookTime string `json:"book_time,omitempty" xml:"book_time,omitempty"`
	// 流水的淘宝支付宝id
	TaobaoAlipayId string `json:"taobao_alipay_id,omitempty" xml:"taobao_alipay_id,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 备注
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 流水的商家支付宝id
	OtherAlipayId string `json:"other_alipay_id,omitempty" xml:"other_alipay_id,omitempty"`
	// 操作金额
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 虚拟账户科目编号
	AccountId int64 `json:"account_id,omitempty" xml:"account_id,omitempty"`
	// 流水类型:101-可用金充值;102-可用金扣除;103-冻结;104-解冻;105-冻结金充值;106-冻结金扣除
	JournalType int64 `json:"journal_type,omitempty" xml:"journal_type,omitempty"`
	// 虚拟账户流水编号
	Bid int64 `json:"bid,omitempty" xml:"bid,omitempty"`
}

TopAcctCashJourDto 结构体

Jump to

Keyboard shortcuts

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