bill

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// 费用科目编号
	AccountId int64 `json:"account_id,omitempty" xml:"account_id,omitempty"`
	// 费用科目名称
	AccountName string `json:"account_name,omitempty" xml:"account_name,omitempty"`
	// 费用科目编码
	AccountCode string `json:"account_code,omitempty" xml:"account_code,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"`
	// 状态:0-不可用 1-可用
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
}

Account

type Bill

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

Bill

type BillDto

type BillDto struct {
	// 账单金额,退款时返回的是负数
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 0-未支付,1-支付成功,2-支付失败
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 交易子订单编号
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 业务时间,订单交易完成的时间
	BizTime string `json:"biz_time,omitempty" xml:"biz_time,omitempty"`
	// 账单金额,退款时返回的是负数
	Amount int64 `json:"amount,omitempty" xml:"amount,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"`
	// 科目编号
	AccountId int64 `json:"account_id,omitempty" xml:"account_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"`
	// 账单编号
	Bid int64 `json:"bid,omitempty" xml:"bid,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"`
}

BillDto

type BookBill

type BookBill struct {
	// 虚拟账户流水编号
	Bid int64 `json:"bid,omitempty" xml:"bid,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"`
	// 操作金额
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 记账时间
	BookTime string `json:"book_time,omitempty" xml:"book_time,omitempty"`
	// 备注
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,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"`
}

BookBill

type TaobaoBillAccountsGetAPIResponse

type TaobaoBillAccountsGetAPIResponse struct {
	model.CommonResponse
	TaobaoBillAccountsGetResponse
}

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

查询费用账户信息

type TaobaoBillAccountsGetRequest

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

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

查询费用账户信息

func NewTaobaoBillAccountsGetRequest

func NewTaobaoBillAccountsGetRequest() *TaobaoBillAccountsGetRequest

初始化TaobaoBillAccountsGetRequest对象

func (TaobaoBillAccountsGetRequest) GetAids

func (r TaobaoBillAccountsGetRequest) GetAids() []int64

Aids Getter

func (TaobaoBillAccountsGetRequest) GetApiMethodName

func (r TaobaoBillAccountsGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoBillAccountsGetRequest) GetApiParams

func (r TaobaoBillAccountsGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoBillAccountsGetRequest) GetFields

func (r TaobaoBillAccountsGetRequest) GetFields() []string

Fields Getter

func (*TaobaoBillAccountsGetRequest) SetAids

func (r *TaobaoBillAccountsGetRequest) SetAids(aids []int64) error

Aids Setter 需要获取的科目ID

func (*TaobaoBillAccountsGetRequest) SetFields

func (r *TaobaoBillAccountsGetRequest) SetFields(fields []string) error

Fields Setter 需要返回的字段

type TaobaoBillAccountsGetResponse

type TaobaoBillAccountsGetResponse 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"`
}

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

type TaobaoBillBillsGetAPIResponse

type TaobaoBillBillsGetAPIResponse struct {
	model.CommonResponse
	TaobaoBillBillsGetResponse
}

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

查询账单明细数据

type TaobaoBillBillsGetRequest

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

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

查询账单明细数据

func NewTaobaoBillBillsGetRequest

func NewTaobaoBillBillsGetRequest() *TaobaoBillBillsGetRequest

初始化TaobaoBillBillsGetRequest对象

func (TaobaoBillBillsGetRequest) GetAccountId

func (r TaobaoBillBillsGetRequest) GetAccountId() int64

AccountId Getter

func (TaobaoBillBillsGetRequest) GetApiMethodName

func (r TaobaoBillBillsGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoBillBillsGetRequest) GetApiParams

func (r TaobaoBillBillsGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoBillBillsGetRequest) GetEndTime

func (r TaobaoBillBillsGetRequest) GetEndTime() string

EndTime Getter

func (TaobaoBillBillsGetRequest) GetFields

func (r TaobaoBillBillsGetRequest) GetFields() []string

Fields Getter

func (TaobaoBillBillsGetRequest) GetOrderId

func (r TaobaoBillBillsGetRequest) GetOrderId() int64

OrderId Getter

func (TaobaoBillBillsGetRequest) GetPageNo

func (r TaobaoBillBillsGetRequest) GetPageNo() int64

PageNo Getter

func (TaobaoBillBillsGetRequest) GetPageSize

func (r TaobaoBillBillsGetRequest) GetPageSize() int64

PageSize Getter

func (TaobaoBillBillsGetRequest) GetStartTime

func (r TaobaoBillBillsGetRequest) GetStartTime() string

StartTime Getter

func (TaobaoBillBillsGetRequest) GetTimeType

func (r TaobaoBillBillsGetRequest) GetTimeType() int64

TimeType Getter

func (TaobaoBillBillsGetRequest) GetTradeId

func (r TaobaoBillBillsGetRequest) GetTradeId() int64

TradeId Getter

func (*TaobaoBillBillsGetRequest) SetAccountId

func (r *TaobaoBillBillsGetRequest) SetAccountId(accountId int64) error

AccountId Setter 科目编号

func (*TaobaoBillBillsGetRequest) SetEndTime

func (r *TaobaoBillBillsGetRequest) SetEndTime(endTime string) error

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

func (*TaobaoBillBillsGetRequest) SetFields

func (r *TaobaoBillBillsGetRequest) SetFields(fields []string) error

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

func (*TaobaoBillBillsGetRequest) SetOrderId

func (r *TaobaoBillBillsGetRequest) SetOrderId(orderId int64) error

OrderId Setter 子订单编号

func (*TaobaoBillBillsGetRequest) SetPageNo

func (r *TaobaoBillBillsGetRequest) SetPageNo(pageNo int64) error

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

func (*TaobaoBillBillsGetRequest) SetPageSize

func (r *TaobaoBillBillsGetRequest) SetPageSize(pageSize int64) error

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

func (*TaobaoBillBillsGetRequest) SetStartTime

func (r *TaobaoBillBillsGetRequest) SetStartTime(startTime string) error

StartTime Setter 开始时间

func (*TaobaoBillBillsGetRequest) SetTimeType

func (r *TaobaoBillBillsGetRequest) SetTimeType(timeType int64) error

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

func (*TaobaoBillBillsGetRequest) SetTradeId

func (r *TaobaoBillBillsGetRequest) SetTradeId(tradeId int64) error

TradeId Setter 交易编号

type TaobaoBillBillsGetResponse

type TaobaoBillBillsGetResponse 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"`
	// 是否存在下一页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
	// 当前页查询返回的结果数(0-100)。相同的查询时间段条件下,最大只能获取总共5000条记录。所以当大于等于5000时 ISV可以通过start_time及end_time来进行拆分,以保证可以查询到全部数据
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

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

type TaobaoBillBookBillsGetAPIResponse

type TaobaoBillBookBillsGetAPIResponse struct {
	model.CommonResponse
	TaobaoBillBookBillsGetResponse
}

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

查询虚拟账户明细数据

type TaobaoBillBookBillsGetRequest

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

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

查询虚拟账户明细数据

func NewTaobaoBillBookBillsGetRequest

func NewTaobaoBillBookBillsGetRequest() *TaobaoBillBookBillsGetRequest

初始化TaobaoBillBookBillsGetRequest对象

func (TaobaoBillBookBillsGetRequest) GetAccountId

func (r TaobaoBillBookBillsGetRequest) GetAccountId() int64

AccountId Getter

func (TaobaoBillBookBillsGetRequest) GetApiMethodName

func (r TaobaoBillBookBillsGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoBillBookBillsGetRequest) GetApiParams

func (r TaobaoBillBookBillsGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoBillBookBillsGetRequest) GetEndTime

func (r TaobaoBillBookBillsGetRequest) GetEndTime() string

EndTime Getter

func (TaobaoBillBookBillsGetRequest) GetFields

func (r TaobaoBillBookBillsGetRequest) GetFields() string

Fields Getter

func (TaobaoBillBookBillsGetRequest) GetJournalTypes

func (r TaobaoBillBookBillsGetRequest) GetJournalTypes() []int64

JournalTypes Getter

func (TaobaoBillBookBillsGetRequest) GetPageNo

func (r TaobaoBillBookBillsGetRequest) GetPageNo() int64

PageNo Getter

func (TaobaoBillBookBillsGetRequest) GetPageSize

func (r TaobaoBillBookBillsGetRequest) GetPageSize() int64

PageSize Getter

func (TaobaoBillBookBillsGetRequest) GetStartTime

func (r TaobaoBillBookBillsGetRequest) GetStartTime() string

StartTime Getter

func (*TaobaoBillBookBillsGetRequest) SetAccountId

func (r *TaobaoBillBookBillsGetRequest) SetAccountId(accountId int64) error

AccountId Setter 虚拟账户科目编号

func (*TaobaoBillBookBillsGetRequest) SetEndTime

func (r *TaobaoBillBookBillsGetRequest) SetEndTime(endTime string) error

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

func (*TaobaoBillBookBillsGetRequest) SetFields

func (r *TaobaoBillBookBillsGetRequest) SetFields(fields string) error

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

func (*TaobaoBillBookBillsGetRequest) SetJournalTypes

func (r *TaobaoBillBookBillsGetRequest) SetJournalTypes(journalTypes []int64) error

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

func (*TaobaoBillBookBillsGetRequest) SetPageNo

func (r *TaobaoBillBookBillsGetRequest) SetPageNo(pageNo int64) error

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

func (*TaobaoBillBookBillsGetRequest) SetPageSize

func (r *TaobaoBillBookBillsGetRequest) SetPageSize(pageSize int64) error

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

func (*TaobaoBillBookBillsGetRequest) SetStartTime

func (r *TaobaoBillBookBillsGetRequest) SetStartTime(startTime string) error

StartTime Setter 记账开始时间

type TaobaoBillBookBillsGetResponse

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

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

type TaobaoTaeAccountsGetAPIResponse

type TaobaoTaeAccountsGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaeAccountsGetResponse
}

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

tae查询费用科目信息

type TaobaoTaeAccountsGetRequest

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

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

tae查询费用科目信息

func NewTaobaoTaeAccountsGetRequest

func NewTaobaoTaeAccountsGetRequest() *TaobaoTaeAccountsGetRequest

初始化TaobaoTaeAccountsGetRequest对象

func (TaobaoTaeAccountsGetRequest) GetAids

func (r TaobaoTaeAccountsGetRequest) GetAids() []int64

Aids Getter

func (TaobaoTaeAccountsGetRequest) GetApiMethodName

func (r TaobaoTaeAccountsGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaeAccountsGetRequest) GetApiParams

func (r TaobaoTaeAccountsGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoTaeAccountsGetRequest) GetFields

func (r TaobaoTaeAccountsGetRequest) GetFields() []string

Fields Getter

func (*TaobaoTaeAccountsGetRequest) SetAids

func (r *TaobaoTaeAccountsGetRequest) SetAids(aids []int64) error

Aids Setter 需要获取的科目ID

func (*TaobaoTaeAccountsGetRequest) SetFields

func (r *TaobaoTaeAccountsGetRequest) SetFields(fields []string) error

Fields Setter 需要返回的字段

type TaobaoTaeAccountsGetResponse

type TaobaoTaeAccountsGetResponse 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"`
}

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

type TaobaoTaeBillGetAPIResponse

type TaobaoTaeBillGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaeBillGetResponse
}

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

查询单笔账单明细

type TaobaoTaeBillGetRequest

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

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

查询单笔账单明细

func NewTaobaoTaeBillGetRequest

func NewTaobaoTaeBillGetRequest() *TaobaoTaeBillGetRequest

初始化TaobaoTaeBillGetRequest对象

func (TaobaoTaeBillGetRequest) GetAccountId

func (r TaobaoTaeBillGetRequest) GetAccountId() int64

AccountId Getter

func (TaobaoTaeBillGetRequest) GetApiMethodName

func (r TaobaoTaeBillGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaeBillGetRequest) GetApiParams

func (r TaobaoTaeBillGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoTaeBillGetRequest) GetBid

func (r TaobaoTaeBillGetRequest) GetBid() int64

Bid Getter

func (TaobaoTaeBillGetRequest) GetFields

func (r TaobaoTaeBillGetRequest) GetFields() []string

Fields Getter

func (TaobaoTaeBillGetRequest) GetId

func (r TaobaoTaeBillGetRequest) GetId() int64

Id Getter

func (*TaobaoTaeBillGetRequest) SetAccountId

func (r *TaobaoTaeBillGetRequest) SetAccountId(accountId int64) error

AccountId Setter 虚拟账户科目编号

func (*TaobaoTaeBillGetRequest) SetBid

func (r *TaobaoTaeBillGetRequest) SetBid(bid int64) error

Bid Setter 账单编号

func (*TaobaoTaeBillGetRequest) SetFields

func (r *TaobaoTaeBillGetRequest) SetFields(fields []string) error

Fields Setter 传入需要返回的字段

func (*TaobaoTaeBillGetRequest) SetId

func (r *TaobaoTaeBillGetRequest) SetId(id int64) error

Id Setter 账单编号

type TaobaoTaeBillGetResponse

type TaobaoTaeBillGetResponse 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"`
}

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

type TaobaoTaeBillsGetAPIResponse

type TaobaoTaeBillsGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaeBillsGetResponse
}

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

tae查询账单明细

type TaobaoTaeBillsGetRequest

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

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

tae查询账单明细

func NewTaobaoTaeBillsGetRequest

func NewTaobaoTaeBillsGetRequest() *TaobaoTaeBillsGetRequest

初始化TaobaoTaeBillsGetRequest对象

func (TaobaoTaeBillsGetRequest) GetApiMethodName

func (r TaobaoTaeBillsGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaeBillsGetRequest) GetApiParams

func (r TaobaoTaeBillsGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoTaeBillsGetRequest) GetCurrentPage

func (r TaobaoTaeBillsGetRequest) GetCurrentPage() int64

CurrentPage Getter

func (TaobaoTaeBillsGetRequest) GetFields

func (r TaobaoTaeBillsGetRequest) GetFields() []string

Fields Getter

func (TaobaoTaeBillsGetRequest) GetItemId

func (r TaobaoTaeBillsGetRequest) GetItemId() int64

ItemId Getter

func (TaobaoTaeBillsGetRequest) GetPTradeId

func (r TaobaoTaeBillsGetRequest) GetPTradeId() int64

PTradeId Getter

func (TaobaoTaeBillsGetRequest) GetPageSize

func (r TaobaoTaeBillsGetRequest) GetPageSize() int64

PageSize Getter

func (TaobaoTaeBillsGetRequest) GetQueryDateType

func (r TaobaoTaeBillsGetRequest) GetQueryDateType() int64

QueryDateType Getter

func (TaobaoTaeBillsGetRequest) GetQueryEndDate

func (r TaobaoTaeBillsGetRequest) GetQueryEndDate() string

QueryEndDate Getter

func (TaobaoTaeBillsGetRequest) GetQueryStartDate

func (r TaobaoTaeBillsGetRequest) GetQueryStartDate() string

QueryStartDate Getter

func (TaobaoTaeBillsGetRequest) GetTradeId

func (r TaobaoTaeBillsGetRequest) GetTradeId() int64

TradeId Getter

func (*TaobaoTaeBillsGetRequest) SetCurrentPage

func (r *TaobaoTaeBillsGetRequest) SetCurrentPage(currentPage int64) error

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

func (*TaobaoTaeBillsGetRequest) SetFields

func (r *TaobaoTaeBillsGetRequest) SetFields(fields []string) error

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

func (*TaobaoTaeBillsGetRequest) SetItemId

func (r *TaobaoTaeBillsGetRequest) SetItemId(itemId int64) error

ItemId Setter 科目编号

func (*TaobaoTaeBillsGetRequest) SetPTradeId

func (r *TaobaoTaeBillsGetRequest) SetPTradeId(pTradeId int64) error

PTradeId Setter 交易编号

func (*TaobaoTaeBillsGetRequest) SetPageSize

func (r *TaobaoTaeBillsGetRequest) SetPageSize(pageSize int64) error

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

func (*TaobaoTaeBillsGetRequest) SetQueryDateType

func (r *TaobaoTaeBillsGetRequest) SetQueryDateType(queryDateType int64) error

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

func (*TaobaoTaeBillsGetRequest) SetQueryEndDate

func (r *TaobaoTaeBillsGetRequest) SetQueryEndDate(queryEndDate string) error

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

func (*TaobaoTaeBillsGetRequest) SetQueryStartDate

func (r *TaobaoTaeBillsGetRequest) SetQueryStartDate(queryStartDate string) error

QueryStartDate Setter 开始时间

func (*TaobaoTaeBillsGetRequest) SetTradeId

func (r *TaobaoTaeBillsGetRequest) SetTradeId(tradeId int64) error

TradeId Setter 子订单编号

type TaobaoTaeBillsGetResponse

type TaobaoTaeBillsGetResponse struct {
	XMLName xml.Name `xml:"tae_bills_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,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"`
	// 账单列表
	Bills []BillDto `json:"bills,omitempty" xml:"bills>bill_dto,omitempty"`
}

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

type TaobaoTaeBookBillGetAPIResponse

type TaobaoTaeBookBillGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaeBookBillGetResponse
}

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

tae查询单笔虚拟账户明细

type TaobaoTaeBookBillGetRequest

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

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

tae查询单笔虚拟账户明细

func NewTaobaoTaeBookBillGetRequest

func NewTaobaoTaeBookBillGetRequest() *TaobaoTaeBookBillGetRequest

初始化TaobaoTaeBookBillGetRequest对象

func (TaobaoTaeBookBillGetRequest) GetAccountId

func (r TaobaoTaeBookBillGetRequest) GetAccountId() int64

AccountId Getter

func (TaobaoTaeBookBillGetRequest) GetApiMethodName

func (r TaobaoTaeBookBillGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaeBookBillGetRequest) GetApiParams

func (r TaobaoTaeBookBillGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoTaeBookBillGetRequest) GetBid

Bid Getter

func (TaobaoTaeBookBillGetRequest) GetFields

func (r TaobaoTaeBookBillGetRequest) GetFields() []string

Fields Getter

func (TaobaoTaeBookBillGetRequest) GetId

Id Getter

func (*TaobaoTaeBookBillGetRequest) SetAccountId

func (r *TaobaoTaeBookBillGetRequest) SetAccountId(accountId int64) error

AccountId Setter 虚拟账户科目编号

func (*TaobaoTaeBookBillGetRequest) SetBid

func (r *TaobaoTaeBookBillGetRequest) SetBid(bid int64) error

Bid Setter 虚拟账户流水编号

func (*TaobaoTaeBookBillGetRequest) SetFields

func (r *TaobaoTaeBookBillGetRequest) SetFields(fields []string) error

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

func (*TaobaoTaeBookBillGetRequest) SetId

Id Setter 虚拟账户流水编号

type TaobaoTaeBookBillGetResponse

type TaobaoTaeBookBillGetResponse 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"`
}

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

type TaobaoTaeBookBillsGetAPIResponse

type TaobaoTaeBookBillsGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaeBookBillsGetResponse
}

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

tae查询虚拟账户明细数据

type TaobaoTaeBookBillsGetRequest

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

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

tae查询虚拟账户明细数据

func NewTaobaoTaeBookBillsGetRequest

func NewTaobaoTaeBookBillsGetRequest() *TaobaoTaeBookBillsGetRequest

初始化TaobaoTaeBookBillsGetRequest对象

func (TaobaoTaeBookBillsGetRequest) GetAccountId

func (r TaobaoTaeBookBillsGetRequest) GetAccountId() int64

AccountId Getter

func (TaobaoTaeBookBillsGetRequest) GetApiMethodName

func (r TaobaoTaeBookBillsGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaeBookBillsGetRequest) GetApiParams

func (r TaobaoTaeBookBillsGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoTaeBookBillsGetRequest) GetEndTime

func (r TaobaoTaeBookBillsGetRequest) GetEndTime() string

EndTime Getter

func (TaobaoTaeBookBillsGetRequest) GetFields

func (r TaobaoTaeBookBillsGetRequest) GetFields() []string

Fields Getter

func (TaobaoTaeBookBillsGetRequest) GetJournalTypes

func (r TaobaoTaeBookBillsGetRequest) GetJournalTypes() []int64

JournalTypes Getter

func (TaobaoTaeBookBillsGetRequest) GetPageNo

func (r TaobaoTaeBookBillsGetRequest) GetPageNo() int64

PageNo Getter

func (TaobaoTaeBookBillsGetRequest) GetPageSize

func (r TaobaoTaeBookBillsGetRequest) GetPageSize() int64

PageSize Getter

func (TaobaoTaeBookBillsGetRequest) GetStartTime

func (r TaobaoTaeBookBillsGetRequest) GetStartTime() string

StartTime Getter

func (*TaobaoTaeBookBillsGetRequest) SetAccountId

func (r *TaobaoTaeBookBillsGetRequest) SetAccountId(accountId int64) error

AccountId Setter 虚拟账户科目编号

func (*TaobaoTaeBookBillsGetRequest) SetEndTime

func (r *TaobaoTaeBookBillsGetRequest) SetEndTime(endTime string) error

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

func (*TaobaoTaeBookBillsGetRequest) SetFields

func (r *TaobaoTaeBookBillsGetRequest) SetFields(fields []string) error

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

func (*TaobaoTaeBookBillsGetRequest) SetJournalTypes

func (r *TaobaoTaeBookBillsGetRequest) SetJournalTypes(journalTypes []int64) error

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

func (*TaobaoTaeBookBillsGetRequest) SetPageNo

func (r *TaobaoTaeBookBillsGetRequest) SetPageNo(pageNo int64) error

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

func (*TaobaoTaeBookBillsGetRequest) SetPageSize

func (r *TaobaoTaeBookBillsGetRequest) SetPageSize(pageSize int64) error

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

func (*TaobaoTaeBookBillsGetRequest) SetStartTime

func (r *TaobaoTaeBookBillsGetRequest) SetStartTime(startTime string) error

StartTime Setter 记账开始时间

type TaobaoTaeBookBillsGetResponse

type TaobaoTaeBookBillsGetResponse 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"`
	// 是否有下一页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
	// 当前查询的结果数,非总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

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

type TopAccountDto

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

TopAccountDto

type TopAcctCashJourDto

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