bill

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 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

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.3.1

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

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

查询费用账户信息

func NewTaobaobillaccountsgetRequest added in v1.3.1

func NewTaobaobillaccountsgetRequest() *TaobaobillaccountsgetAPIRequest

NewTaobaobillaccountsgetRequest 初始化TaobaobillaccountsgetAPIRequest对象

func (TaobaobillaccountsgetAPIRequest) GetAids added in v1.3.1

GetAids Aids Getter

func (TaobaobillaccountsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaobillaccountsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaobillaccountsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaobillaccountsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaobillaccountsgetAPIRequest) GetFields added in v1.3.1

func (r TaobaobillaccountsgetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaobillaccountsgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaobillaccountsgetAPIRequest) GetRawParams() model.Params

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

func (*TaobaobillaccountsgetAPIRequest) SetAids added in v1.3.1

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

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

func (*TaobaobillaccountsgetAPIRequest) SetFields added in v1.3.1

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

SetFields is Fields Setter 需要返回的字段

type TaobaobillaccountsgetAPIResponse added in v1.3.1

type TaobaobillaccountsgetAPIResponse struct {
	model.CommonResponse
	TaobaobillaccountsgetAPIResponseModel
}

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

查询费用账户信息

type TaobaobillaccountsgetAPIResponseModel added in v1.3.1

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.3.1

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

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

查询账单明细数据

func NewTaobaobillbillsgetRequest added in v1.3.1

func NewTaobaobillbillsgetRequest() *TaobaobillbillsgetAPIRequest

NewTaobaobillbillsgetRequest 初始化TaobaobillbillsgetAPIRequest对象

func (TaobaobillbillsgetAPIRequest) GetAccountId added in v1.3.1

func (r TaobaobillbillsgetAPIRequest) GetAccountId() int64

GetAccountId AccountId Getter

func (TaobaobillbillsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaobillbillsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaobillbillsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaobillbillsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaobillbillsgetAPIRequest) GetEndTime added in v1.3.1

func (r TaobaobillbillsgetAPIRequest) GetEndTime() string

GetEndTime EndTime Getter

func (TaobaobillbillsgetAPIRequest) GetFields added in v1.3.1

func (r TaobaobillbillsgetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaobillbillsgetAPIRequest) GetOrderId added in v1.3.1

func (r TaobaobillbillsgetAPIRequest) GetOrderId() int64

GetOrderId OrderId Getter

func (TaobaobillbillsgetAPIRequest) GetPageNo added in v1.3.1

func (r TaobaobillbillsgetAPIRequest) GetPageNo() int64

GetPageNo PageNo Getter

func (TaobaobillbillsgetAPIRequest) GetPageSize added in v1.3.1

func (r TaobaobillbillsgetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaobillbillsgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaobillbillsgetAPIRequest) GetRawParams() model.Params

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

func (TaobaobillbillsgetAPIRequest) GetStartTime added in v1.3.1

func (r TaobaobillbillsgetAPIRequest) GetStartTime() string

GetStartTime StartTime Getter

func (TaobaobillbillsgetAPIRequest) GetTimeType added in v1.3.1

func (r TaobaobillbillsgetAPIRequest) GetTimeType() int64

GetTimeType TimeType Getter

func (TaobaobillbillsgetAPIRequest) GetTradeId added in v1.3.1

func (r TaobaobillbillsgetAPIRequest) GetTradeId() int64

GetTradeId TradeId Getter

func (*TaobaobillbillsgetAPIRequest) SetAccountId added in v1.3.1

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

SetAccountId is AccountId Setter 科目编号

func (*TaobaobillbillsgetAPIRequest) SetEndTime added in v1.3.1

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

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

func (*TaobaobillbillsgetAPIRequest) SetFields added in v1.3.1

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

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

func (*TaobaobillbillsgetAPIRequest) SetOrderId added in v1.3.1

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

SetOrderId is OrderId Setter 子订单编号

func (*TaobaobillbillsgetAPIRequest) SetPageNo added in v1.3.1

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

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

func (*TaobaobillbillsgetAPIRequest) SetPageSize added in v1.3.1

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

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

func (*TaobaobillbillsgetAPIRequest) SetStartTime added in v1.3.1

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

SetStartTime is StartTime Setter 开始时间

func (*TaobaobillbillsgetAPIRequest) SetTimeType added in v1.3.1

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

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

func (*TaobaobillbillsgetAPIRequest) SetTradeId added in v1.3.1

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

SetTradeId is TradeId Setter 交易编号

type TaobaobillbillsgetAPIResponse added in v1.3.1

type TaobaobillbillsgetAPIResponse struct {
	model.CommonResponse
	TaobaobillbillsgetAPIResponseModel
}

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

查询账单明细数据

type TaobaobillbillsgetAPIResponseModel added in v1.3.1

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.3.1

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

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

查询虚拟账户明细数据

func NewTaobaobillbookbillsgetRequest added in v1.3.1

func NewTaobaobillbookbillsgetRequest() *TaobaobillbookbillsgetAPIRequest

NewTaobaobillbookbillsgetRequest 初始化TaobaobillbookbillsgetAPIRequest对象

func (TaobaobillbookbillsgetAPIRequest) GetAccountId added in v1.3.1

func (r TaobaobillbookbillsgetAPIRequest) GetAccountId() int64

GetAccountId AccountId Getter

func (TaobaobillbookbillsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaobillbookbillsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaobillbookbillsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaobillbookbillsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaobillbookbillsgetAPIRequest) GetEndTime added in v1.3.1

GetEndTime EndTime Getter

func (TaobaobillbookbillsgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaobillbookbillsgetAPIRequest) GetJournalTypes added in v1.3.1

func (r TaobaobillbookbillsgetAPIRequest) GetJournalTypes() []int64

GetJournalTypes JournalTypes Getter

func (TaobaobillbookbillsgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaobillbookbillsgetAPIRequest) GetPageSize added in v1.3.1

func (r TaobaobillbookbillsgetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaobillbookbillsgetAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaobillbookbillsgetAPIRequest) GetStartTime added in v1.3.1

func (r TaobaobillbookbillsgetAPIRequest) GetStartTime() string

GetStartTime StartTime Getter

func (*TaobaobillbookbillsgetAPIRequest) SetAccountId added in v1.3.1

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

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

func (*TaobaobillbookbillsgetAPIRequest) SetEndTime added in v1.3.1

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

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

func (*TaobaobillbookbillsgetAPIRequest) SetFields added in v1.3.1

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.3.1

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

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

func (*TaobaobillbookbillsgetAPIRequest) SetPageNo added in v1.3.1

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

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

func (*TaobaobillbookbillsgetAPIRequest) SetPageSize added in v1.3.1

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

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

func (*TaobaobillbookbillsgetAPIRequest) SetStartTime added in v1.3.1

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

SetStartTime is StartTime Setter 记账开始时间

type TaobaobillbookbillsgetAPIResponse added in v1.3.1

type TaobaobillbookbillsgetAPIResponse struct {
	model.CommonResponse
	TaobaobillbookbillsgetAPIResponseModel
}

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

查询虚拟账户明细数据

type TaobaobillbookbillsgetAPIResponseModel added in v1.3.1

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.3.1

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

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

tae查询费用科目信息

func NewTaobaotaeaccountsgetRequest added in v1.3.1

func NewTaobaotaeaccountsgetRequest() *TaobaotaeaccountsgetAPIRequest

NewTaobaotaeaccountsgetRequest 初始化TaobaotaeaccountsgetAPIRequest对象

func (TaobaotaeaccountsgetAPIRequest) GetAids added in v1.3.1

func (r TaobaotaeaccountsgetAPIRequest) GetAids() []string

GetAids Aids Getter

func (TaobaotaeaccountsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaotaeaccountsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaotaeaccountsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaotaeaccountsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaotaeaccountsgetAPIRequest) GetFields added in v1.3.1

func (r TaobaotaeaccountsgetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaotaeaccountsgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaotaeaccountsgetAPIRequest) GetRawParams() model.Params

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

func (*TaobaotaeaccountsgetAPIRequest) SetAids added in v1.3.1

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

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

func (*TaobaotaeaccountsgetAPIRequest) SetFields added in v1.3.1

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

SetFields is Fields Setter 需要返回的字段

type TaobaotaeaccountsgetAPIResponse added in v1.3.1

type TaobaotaeaccountsgetAPIResponse struct {
	model.CommonResponse
	TaobaotaeaccountsgetAPIResponseModel
}

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

tae查询费用科目信息

type TaobaotaeaccountsgetAPIResponseModel added in v1.3.1

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.3.1

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

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

查询单笔账单明细

func NewTaobaotaebillgetRequest added in v1.3.1

func NewTaobaotaebillgetRequest() *TaobaotaebillgetAPIRequest

NewTaobaotaebillgetRequest 初始化TaobaotaebillgetAPIRequest对象

func (TaobaotaebillgetAPIRequest) GetAccountId added in v1.3.1

func (r TaobaotaebillgetAPIRequest) GetAccountId() int64

GetAccountId AccountId Getter

func (TaobaotaebillgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaotaebillgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaotaebillgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaotaebillgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaotaebillgetAPIRequest) GetBid added in v1.3.1

func (r TaobaotaebillgetAPIRequest) GetBid() int64

GetBid Bid Getter

func (TaobaotaebillgetAPIRequest) GetFields added in v1.3.1

func (r TaobaotaebillgetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaotaebillgetAPIRequest) GetId added in v1.3.1

GetId Id Getter

func (TaobaotaebillgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaotaebillgetAPIRequest) GetRawParams() model.Params

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

func (*TaobaotaebillgetAPIRequest) SetAccountId added in v1.3.1

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

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

func (*TaobaotaebillgetAPIRequest) SetBid added in v1.3.1

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

SetBid is Bid Setter 账单编号

func (*TaobaotaebillgetAPIRequest) SetFields added in v1.3.1

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

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

func (*TaobaotaebillgetAPIRequest) SetId added in v1.3.1

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

SetId is Id Setter 账单编号

type TaobaotaebillgetAPIResponse added in v1.3.1

type TaobaotaebillgetAPIResponse struct {
	model.CommonResponse
	TaobaotaebillgetAPIResponseModel
}

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

查询单笔账单明细

type TaobaotaebillgetAPIResponseModel added in v1.3.1

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.3.1

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

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

tae查询账单明细

func NewTaobaotaebillsgetRequest added in v1.3.1

func NewTaobaotaebillsgetRequest() *TaobaotaebillsgetAPIRequest

NewTaobaotaebillsgetRequest 初始化TaobaotaebillsgetAPIRequest对象

func (TaobaotaebillsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaotaebillsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaotaebillsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaotaebillsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaotaebillsgetAPIRequest) GetCurrentPage added in v1.3.1

func (r TaobaotaebillsgetAPIRequest) GetCurrentPage() int64

GetCurrentPage CurrentPage Getter

func (TaobaotaebillsgetAPIRequest) GetFields added in v1.3.1

func (r TaobaotaebillsgetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaotaebillsgetAPIRequest) GetItemId added in v1.3.1

func (r TaobaotaebillsgetAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TaobaotaebillsgetAPIRequest) GetPTradeId added in v1.3.1

func (r TaobaotaebillsgetAPIRequest) GetPTradeId() int64

GetPTradeId PTradeId Getter

func (TaobaotaebillsgetAPIRequest) GetPageSize added in v1.3.1

func (r TaobaotaebillsgetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaotaebillsgetAPIRequest) GetQueryDateType added in v1.3.1

func (r TaobaotaebillsgetAPIRequest) GetQueryDateType() int64

GetQueryDateType QueryDateType Getter

func (TaobaotaebillsgetAPIRequest) GetQueryEndDate added in v1.3.1

func (r TaobaotaebillsgetAPIRequest) GetQueryEndDate() string

GetQueryEndDate QueryEndDate Getter

func (TaobaotaebillsgetAPIRequest) GetQueryStartDate added in v1.3.1

func (r TaobaotaebillsgetAPIRequest) GetQueryStartDate() string

GetQueryStartDate QueryStartDate Getter

func (TaobaotaebillsgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaotaebillsgetAPIRequest) GetRawParams() model.Params

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

func (TaobaotaebillsgetAPIRequest) GetTradeId added in v1.3.1

func (r TaobaotaebillsgetAPIRequest) GetTradeId() int64

GetTradeId TradeId Getter

func (*TaobaotaebillsgetAPIRequest) SetCurrentPage added in v1.3.1

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

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

func (*TaobaotaebillsgetAPIRequest) SetFields added in v1.3.1

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

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

func (*TaobaotaebillsgetAPIRequest) SetItemId added in v1.3.1

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

SetItemId is ItemId Setter 科目编号

func (*TaobaotaebillsgetAPIRequest) SetPTradeId added in v1.3.1

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

SetPTradeId is PTradeId Setter 交易编号

func (*TaobaotaebillsgetAPIRequest) SetPageSize added in v1.3.1

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

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

func (*TaobaotaebillsgetAPIRequest) SetQueryDateType added in v1.3.1

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

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

func (*TaobaotaebillsgetAPIRequest) SetQueryEndDate added in v1.3.1

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

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

func (*TaobaotaebillsgetAPIRequest) SetQueryStartDate added in v1.3.1

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

SetQueryStartDate is QueryStartDate Setter 开始时间

func (*TaobaotaebillsgetAPIRequest) SetTradeId added in v1.3.1

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

SetTradeId is TradeId Setter 子订单编号

type TaobaotaebillsgetAPIResponse added in v1.3.1

type TaobaotaebillsgetAPIResponse struct {
	model.CommonResponse
	TaobaotaebillsgetAPIResponseModel
}

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

tae查询账单明细

type TaobaotaebillsgetAPIResponseModel added in v1.3.1

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.3.1

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

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

tae查询单笔虚拟账户明细

func NewTaobaotaebookbillgetRequest added in v1.3.1

func NewTaobaotaebookbillgetRequest() *TaobaotaebookbillgetAPIRequest

NewTaobaotaebookbillgetRequest 初始化TaobaotaebookbillgetAPIRequest对象

func (TaobaotaebookbillgetAPIRequest) GetAccountId added in v1.3.1

func (r TaobaotaebookbillgetAPIRequest) GetAccountId() int64

GetAccountId AccountId Getter

func (TaobaotaebookbillgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaotaebookbillgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaotaebookbillgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaotaebookbillgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaotaebookbillgetAPIRequest) GetFields added in v1.3.1

func (r TaobaotaebookbillgetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaotaebookbillgetAPIRequest) GetId added in v1.3.1

GetId Id Getter

func (TaobaotaebookbillgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaotaebookbillgetAPIRequest) GetRawParams() model.Params

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

func (*TaobaotaebookbillgetAPIRequest) SetAccountId added in v1.3.1

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

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

func (*TaobaotaebookbillgetAPIRequest) SetFields added in v1.3.1

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

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

func (*TaobaotaebookbillgetAPIRequest) SetId added in v1.3.1

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

type TaobaotaebookbillgetAPIResponse added in v1.3.1

type TaobaotaebookbillgetAPIResponse struct {
	model.CommonResponse
	TaobaotaebookbillgetAPIResponseModel
}

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

tae查询单笔虚拟账户明细

type TaobaotaebookbillgetAPIResponseModel added in v1.3.1

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.3.1

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

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

tae查询虚拟账户明细数据

func NewTaobaotaebookbillsgetRequest added in v1.3.1

func NewTaobaotaebookbillsgetRequest() *TaobaotaebookbillsgetAPIRequest

NewTaobaotaebookbillsgetRequest 初始化TaobaotaebookbillsgetAPIRequest对象

func (TaobaotaebookbillsgetAPIRequest) GetAccountId added in v1.3.1

func (r TaobaotaebookbillsgetAPIRequest) GetAccountId() int64

GetAccountId AccountId Getter

func (TaobaotaebookbillsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaotaebookbillsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaotaebookbillsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaotaebookbillsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaotaebookbillsgetAPIRequest) GetEndTime added in v1.3.1

func (r TaobaotaebookbillsgetAPIRequest) GetEndTime() string

GetEndTime EndTime Getter

func (TaobaotaebookbillsgetAPIRequest) GetFields added in v1.3.1

func (r TaobaotaebookbillsgetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaotaebookbillsgetAPIRequest) GetJournalTypes added in v1.3.1

func (r TaobaotaebookbillsgetAPIRequest) GetJournalTypes() []int64

GetJournalTypes JournalTypes Getter

func (TaobaotaebookbillsgetAPIRequest) GetPageNo added in v1.3.1

func (r TaobaotaebookbillsgetAPIRequest) GetPageNo() int64

GetPageNo PageNo Getter

func (TaobaotaebookbillsgetAPIRequest) GetPageSize added in v1.3.1

func (r TaobaotaebookbillsgetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaotaebookbillsgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaotaebookbillsgetAPIRequest) GetRawParams() model.Params

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

func (TaobaotaebookbillsgetAPIRequest) GetStartTime added in v1.3.1

func (r TaobaotaebookbillsgetAPIRequest) GetStartTime() string

GetStartTime StartTime Getter

func (*TaobaotaebookbillsgetAPIRequest) SetAccountId added in v1.3.1

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

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

func (*TaobaotaebookbillsgetAPIRequest) SetEndTime added in v1.3.1

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

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

func (*TaobaotaebookbillsgetAPIRequest) SetFields added in v1.3.1

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.3.1

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

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

func (*TaobaotaebookbillsgetAPIRequest) SetPageNo added in v1.3.1

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

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

func (*TaobaotaebookbillsgetAPIRequest) SetPageSize added in v1.3.1

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

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

func (*TaobaotaebookbillsgetAPIRequest) SetStartTime added in v1.3.1

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

SetStartTime is StartTime Setter 记账开始时间

type TaobaotaebookbillsgetAPIResponse added in v1.3.1

type TaobaotaebookbillsgetAPIResponse struct {
	model.CommonResponse
	TaobaotaebookbillsgetAPIResponseModel
}

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

tae查询虚拟账户明细数据

type TaobaotaebookbillsgetAPIResponseModel added in v1.3.1

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

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

Jump to

Keyboard shortcuts

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