bill

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseAccount added in v1.3.4

func ReleaseAccount(v *Account)

ReleaseAccount 释放Account

func ReleaseBill added in v1.3.4

func ReleaseBill(v *Bill)

ReleaseBill 释放Bill

func ReleaseBillDto added in v1.3.4

func ReleaseBillDto(v *BillDto)

ReleaseBillDto 释放BillDto

func ReleaseBookBill added in v1.3.4

func ReleaseBookBill(v *BookBill)

ReleaseBookBill 释放BookBill

func ReleaseTaobaoBillAccountsGetAPIRequest added in v1.3.4

func ReleaseTaobaoBillAccountsGetAPIRequest(v *TaobaoBillAccountsGetAPIRequest)

ReleaseTaobaoBillAccountsGetAPIRequest 将 TaobaoBillAccountsGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoBillAccountsGetAPIResponse added in v1.3.4

func ReleaseTaobaoBillAccountsGetAPIResponse(v *TaobaoBillAccountsGetAPIResponse)

ReleaseTaobaoBillAccountsGetAPIResponse 将 TaobaoBillAccountsGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoBillBillsGetAPIRequest added in v1.3.4

func ReleaseTaobaoBillBillsGetAPIRequest(v *TaobaoBillBillsGetAPIRequest)

ReleaseTaobaoBillBillsGetAPIRequest 将 TaobaoBillBillsGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoBillBillsGetAPIResponse added in v1.3.4

func ReleaseTaobaoBillBillsGetAPIResponse(v *TaobaoBillBillsGetAPIResponse)

ReleaseTaobaoBillBillsGetAPIResponse 将 TaobaoBillBillsGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoBillBookBillsGetAPIRequest added in v1.3.4

func ReleaseTaobaoBillBookBillsGetAPIRequest(v *TaobaoBillBookBillsGetAPIRequest)

ReleaseTaobaoBillBookBillsGetAPIRequest 将 TaobaoBillBookBillsGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoBillBookBillsGetAPIResponse added in v1.3.4

func ReleaseTaobaoBillBookBillsGetAPIResponse(v *TaobaoBillBookBillsGetAPIResponse)

ReleaseTaobaoBillBookBillsGetAPIResponse 将 TaobaoBillBookBillsGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTaeAccountsGetAPIRequest added in v1.3.4

func ReleaseTaobaoTaeAccountsGetAPIRequest(v *TaobaoTaeAccountsGetAPIRequest)

ReleaseTaobaoTaeAccountsGetAPIRequest 将 TaobaoTaeAccountsGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoTaeAccountsGetAPIResponse added in v1.3.4

func ReleaseTaobaoTaeAccountsGetAPIResponse(v *TaobaoTaeAccountsGetAPIResponse)

ReleaseTaobaoTaeAccountsGetAPIResponse 将 TaobaoTaeAccountsGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTaeBillGetAPIRequest added in v1.3.4

func ReleaseTaobaoTaeBillGetAPIRequest(v *TaobaoTaeBillGetAPIRequest)

ReleaseTaobaoTaeBillGetAPIRequest 将 TaobaoTaeBillGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoTaeBillGetAPIResponse added in v1.3.4

func ReleaseTaobaoTaeBillGetAPIResponse(v *TaobaoTaeBillGetAPIResponse)

ReleaseTaobaoTaeBillGetAPIResponse 将 TaobaoTaeBillGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTaeBillsGetAPIRequest added in v1.3.4

func ReleaseTaobaoTaeBillsGetAPIRequest(v *TaobaoTaeBillsGetAPIRequest)

ReleaseTaobaoTaeBillsGetAPIRequest 将 TaobaoTaeBillsGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoTaeBillsGetAPIResponse added in v1.3.4

func ReleaseTaobaoTaeBillsGetAPIResponse(v *TaobaoTaeBillsGetAPIResponse)

ReleaseTaobaoTaeBillsGetAPIResponse 将 TaobaoTaeBillsGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTaeBookBillGetAPIRequest added in v1.3.4

func ReleaseTaobaoTaeBookBillGetAPIRequest(v *TaobaoTaeBookBillGetAPIRequest)

ReleaseTaobaoTaeBookBillGetAPIRequest 将 TaobaoTaeBookBillGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoTaeBookBillGetAPIResponse added in v1.3.4

func ReleaseTaobaoTaeBookBillGetAPIResponse(v *TaobaoTaeBookBillGetAPIResponse)

ReleaseTaobaoTaeBookBillGetAPIResponse 将 TaobaoTaeBookBillGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTaeBookBillsGetAPIRequest added in v1.3.4

func ReleaseTaobaoTaeBookBillsGetAPIRequest(v *TaobaoTaeBookBillsGetAPIRequest)

ReleaseTaobaoTaeBookBillsGetAPIRequest 将 TaobaoTaeBookBillsGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoTaeBookBillsGetAPIResponse added in v1.3.4

func ReleaseTaobaoTaeBookBillsGetAPIResponse(v *TaobaoTaeBookBillsGetAPIResponse)

ReleaseTaobaoTaeBookBillsGetAPIResponse 将 TaobaoTaeBookBillsGetAPIResponse 保存到 sync.Pool

func ReleaseTopAccountDto added in v1.3.4

func ReleaseTopAccountDto(v *TopAccountDto)

ReleaseTopAccountDto 释放TopAccountDto

func ReleaseTopAcctCashJourDto added in v1.3.4

func ReleaseTopAcctCashJourDto(v *TopAcctCashJourDto)

ReleaseTopAcctCashJourDto 释放TopAcctCashJourDto

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 结构体

func GetAccount added in v1.3.4

func GetAccount() *Account

GetAccount() 从对象池中获取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 结构体

func GetBill added in v1.3.4

func GetBill() *Bill

GetBill() 从对象池中获取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 结构体

func GetBillDto added in v1.3.4

func GetBillDto() *BillDto

GetBillDto() 从对象池中获取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 结构体

func GetBookBill added in v1.3.4

func GetBookBill() *BookBill

GetBookBill() 从对象池中获取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 GetTaobaoBillAccountsGetAPIRequest added in v1.3.4

func GetTaobaoBillAccountsGetAPIRequest() *TaobaoBillAccountsGetAPIRequest

GetTaobaoBillAccountsGetRequest 从 sync.Pool 获取 TaobaoBillAccountsGetAPIRequest

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(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBillAccountsGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoBillAccountsGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoBillAccountsGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoBillAccountsGetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaoBillAccountsGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

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

查询费用账户信息

func GetTaobaoBillAccountsGetAPIResponse added in v1.3.4

func GetTaobaoBillAccountsGetAPIResponse() *TaobaoBillAccountsGetAPIResponse

GetTaobaoBillAccountsGetAPIResponse 从 sync.Pool 获取 TaobaoBillAccountsGetAPIResponse

func (*TaobaoBillAccountsGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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 查询费用科目信息(限自研商家) 成功返回结果

func (*TaobaoBillAccountsGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoBillBillsGetAPIRequest added in v1.2.0

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

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

查询账单明细数据

func GetTaobaoBillBillsGetAPIRequest added in v1.3.4

func GetTaobaoBillBillsGetAPIRequest() *TaobaoBillBillsGetAPIRequest

GetTaobaoBillBillsGetRequest 从 sync.Pool 获取 TaobaoBillBillsGetAPIRequest

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(params 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) GetRawParams added in v1.2.8

func (r TaobaoBillBillsGetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

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) Reset added in v1.3.4

func (r *TaobaoBillBillsGetAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

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

查询账单明细数据

func GetTaobaoBillBillsGetAPIResponse added in v1.3.4

func GetTaobaoBillBillsGetAPIResponse() *TaobaoBillBillsGetAPIResponse

GetTaobaoBillBillsGetAPIResponse 从 sync.Pool 获取 TaobaoBillBillsGetAPIResponse

func (*TaobaoBillBillsGetAPIResponse) Reset added in v1.3.4

func (m *TaobaoBillBillsGetAPIResponse) Reset()

Reset 清空结构体

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 查询账单明细数据(自研发商家专用) 成功返回结果

func (*TaobaoBillBillsGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

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 GetTaobaoBillBookBillsGetAPIRequest added in v1.3.4

func GetTaobaoBillBookBillsGetAPIRequest() *TaobaoBillBookBillsGetAPIRequest

GetTaobaoBillBookBillsGetRequest 从 sync.Pool 获取 TaobaoBillBookBillsGetAPIRequest

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(params 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) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoBillBookBillsGetAPIRequest) GetStartTime added in v1.2.0

func (r TaobaoBillBookBillsGetAPIRequest) GetStartTime() string

GetStartTime StartTime Getter

func (*TaobaoBillBookBillsGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

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

查询虚拟账户明细数据

func GetTaobaoBillBookBillsGetAPIResponse added in v1.3.4

func GetTaobaoBillBookBillsGetAPIResponse() *TaobaoBillBookBillsGetAPIResponse

GetTaobaoBillBookBillsGetAPIResponse 从 sync.Pool 获取 TaobaoBillBookBillsGetAPIResponse

func (*TaobaoBillBookBillsGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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 查询虚拟账户明细数据(自研发商家专用) 成功返回结果

func (*TaobaoBillBookBillsGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

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 GetTaobaoTaeAccountsGetAPIRequest added in v1.3.4

func GetTaobaoTaeAccountsGetAPIRequest() *TaobaoTaeAccountsGetAPIRequest

GetTaobaoTaeAccountsGetRequest 从 sync.Pool 获取 TaobaoTaeAccountsGetAPIRequest

func NewTaobaoTaeAccountsGetRequest

func NewTaobaoTaeAccountsGetRequest() *TaobaoTaeAccountsGetAPIRequest

NewTaobaoTaeAccountsGetRequest 初始化TaobaoTaeAccountsGetAPIRequest对象

func (TaobaoTaeAccountsGetAPIRequest) GetAids added in v1.2.0

func (r TaobaoTaeAccountsGetAPIRequest) GetAids() []string

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(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTaeAccountsGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoTaeAccountsGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoTaeAccountsGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoTaeAccountsGetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaoTaeAccountsGetAPIRequest) Reset added in v1.3.4

func (r *TaobaoTaeAccountsGetAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTaeAccountsGetAPIRequest) SetAids added in v1.2.0

func (r *TaobaoTaeAccountsGetAPIRequest) SetAids(_aids []string) 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查询费用科目信息

func GetTaobaoTaeAccountsGetAPIResponse added in v1.3.4

func GetTaobaoTaeAccountsGetAPIResponse() *TaobaoTaeAccountsGetAPIResponse

GetTaobaoTaeAccountsGetAPIResponse 从 sync.Pool 获取 TaobaoTaeAccountsGetAPIResponse

func (*TaobaoTaeAccountsGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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查询费用科目信息 成功返回结果

func (*TaobaoTaeAccountsGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

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 GetTaobaoTaeBillGetAPIRequest added in v1.3.4

func GetTaobaoTaeBillGetAPIRequest() *TaobaoTaeBillGetAPIRequest

GetTaobaoTaeBillGetRequest 从 sync.Pool 获取 TaobaoTaeBillGetAPIRequest

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(params 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) GetRawParams added in v1.2.8

func (r TaobaoTaeBillGetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaoTaeBillGetAPIRequest) Reset added in v1.3.4

func (r *TaobaoTaeBillGetAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

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

查询单笔账单明细

func GetTaobaoTaeBillGetAPIResponse added in v1.3.4

func GetTaobaoTaeBillGetAPIResponse() *TaobaoTaeBillGetAPIResponse

GetTaobaoTaeBillGetAPIResponse 从 sync.Pool 获取 TaobaoTaeBillGetAPIResponse

func (*TaobaoTaeBillGetAPIResponse) Reset added in v1.3.4

func (m *TaobaoTaeBillGetAPIResponse) Reset()

Reset 清空结构体

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查询单笔账单明细 成功返回结果

func (*TaobaoTaeBillGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

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 GetTaobaoTaeBillsGetAPIRequest added in v1.3.4

func GetTaobaoTaeBillsGetAPIRequest() *TaobaoTaeBillsGetAPIRequest

GetTaobaoTaeBillsGetRequest 从 sync.Pool 获取 TaobaoTaeBillsGetAPIRequest

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(params 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) GetRawParams added in v1.2.8

func (r TaobaoTaeBillsGetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoTaeBillsGetAPIRequest) GetTradeId added in v1.2.0

func (r TaobaoTaeBillsGetAPIRequest) GetTradeId() int64

GetTradeId TradeId Getter

func (*TaobaoTaeBillsGetAPIRequest) Reset added in v1.3.4

func (r *TaobaoTaeBillsGetAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

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查询账单明细

func GetTaobaoTaeBillsGetAPIResponse added in v1.3.4

func GetTaobaoTaeBillsGetAPIResponse() *TaobaoTaeBillsGetAPIResponse

GetTaobaoTaeBillsGetAPIResponse 从 sync.Pool 获取 TaobaoTaeBillsGetAPIResponse

func (*TaobaoTaeBillsGetAPIResponse) Reset added in v1.3.4

func (m *TaobaoTaeBillsGetAPIResponse) Reset()

Reset 清空结构体

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查询账单明细 成功返回结果

func (*TaobaoTaeBillsGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

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 GetTaobaoTaeBookBillGetAPIRequest added in v1.3.4

func GetTaobaoTaeBookBillGetAPIRequest() *TaobaoTaeBookBillGetAPIRequest

GetTaobaoTaeBookBillGetRequest 从 sync.Pool 获取 TaobaoTaeBookBillGetAPIRequest

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(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

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) GetRawParams added in v1.2.8

func (r TaobaoTaeBookBillGetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaoTaeBookBillGetAPIRequest) Reset added in v1.3.4

func (r *TaobaoTaeBookBillGetAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTaeBookBillGetAPIRequest) SetAccountId added in v1.2.0

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

SetAccountId is AccountId 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查询单笔虚拟账户明细

func GetTaobaoTaeBookBillGetAPIResponse added in v1.3.4

func GetTaobaoTaeBookBillGetAPIResponse() *TaobaoTaeBookBillGetAPIResponse

GetTaobaoTaeBookBillGetAPIResponse 从 sync.Pool 获取 TaobaoTaeBookBillGetAPIResponse

func (*TaobaoTaeBookBillGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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查询单笔虚拟账户明细 成功返回结果

func (*TaobaoTaeBookBillGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

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 GetTaobaoTaeBookBillsGetAPIRequest added in v1.3.4

func GetTaobaoTaeBookBillsGetAPIRequest() *TaobaoTaeBookBillsGetAPIRequest

GetTaobaoTaeBookBillsGetRequest 从 sync.Pool 获取 TaobaoTaeBookBillsGetAPIRequest

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(params 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) GetRawParams added in v1.2.8

func (r TaobaoTaeBookBillsGetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoTaeBookBillsGetAPIRequest) GetStartTime added in v1.2.0

func (r TaobaoTaeBookBillsGetAPIRequest) GetStartTime() string

GetStartTime StartTime Getter

func (*TaobaoTaeBookBillsGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

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查询虚拟账户明细数据

func GetTaobaoTaeBookBillsGetAPIResponse added in v1.3.4

func GetTaobaoTaeBookBillsGetAPIResponse() *TaobaoTaeBookBillsGetAPIResponse

GetTaobaoTaeBookBillsGetAPIResponse 从 sync.Pool 获取 TaobaoTaeBookBillsGetAPIResponse

func (*TaobaoTaeBookBillsGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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查询虚拟账户明细数据 成功返回结果

func (*TaobaoTaeBookBillsGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

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"`
	// 费用科目编号
	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"`
}

TopAccountDto 结构体

func GetTopAccountDto added in v1.3.4

func GetTopAccountDto() *TopAccountDto

GetTopAccountDto() 从对象池中获取TopAccountDto

type TopAcctCashJourDto

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

TopAcctCashJourDto 结构体

func GetTopAcctCashJourDto added in v1.3.4

func GetTopAcctCashJourDto() *TopAcctCashJourDto

GetTopAcctCashJourDto() 从对象池中获取TopAcctCashJourDto

Jump to

Keyboard shortcuts

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