bill

package
v0.0.0-...-f648943 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

提供商家账务信息查询 auto sdk from taobao ApiMetadata.xml version 20140725 auther: dz7changkong@qq.com

Index

Constants

View Source
const VersionNo = "20140725"

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	AccountCode string `json:"account_code"`
	AccountId   int    `json:"account_id"`
	AccountName string `json:"account_name"`
	AccountType int    `json:"account_type"`
}

费用科目

type Bill

type Bill struct {
	AccountId     int    `json:"account_id"`
	AlipayId      string `json:"alipay_id"`
	AlipayMail    string `json:"alipay_mail"`
	AlipayNo      string `json:"alipay_no"`
	AlipayNotice  string `json:"alipay_notice"`
	AlipayOutno   string `json:"alipay_outno"`
	Amount        int    `json:"amount"`
	Bid           int    `json:"bid"`
	BizTime       string `json:"biz_time"`
	BookTime      string `json:"book_time"`
	GmtCreate     string `json:"gmt_create"`
	GmtModified   string `json:"gmt_modified"`
	NumIid        string `json:"num_iid"`
	ObjAlipayId   string `json:"obj_alipay_id"`
	ObjAlipayMail string `json:"obj_alipay_mail"`
	OrderId       string `json:"order_id"`
	PayTime       string `json:"pay_time"`
	Status        int    `json:"status"`
	TotalAmount   int    `json:"total_amount"`
	TradeId       string `json:"trade_id"`
}

账单结构

type BillAccountsGetRequest

type BillAccountsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询费用账户信息

func (*BillAccountsGetRequest) GetResponse

func (r *BillAccountsGetRequest) GetResponse(accessToken string) (*BillAccountsGetResponse, []byte, error)

func (*BillAccountsGetRequest) SetAids

func (r *BillAccountsGetRequest) SetAids(value string)

需要获取的科目ID

func (*BillAccountsGetRequest) SetFields

func (r *BillAccountsGetRequest) SetFields(value string)

需要返回的字段

type BillAccountsGetResponse

type BillAccountsGetResponse struct {
	Accounts struct {
		Account []*Account `json:"account"`
	} `json:"accounts"`
	TotalResults int `json:"total_results"`
}

type BillAccountsGetResponseResult

type BillAccountsGetResponseResult struct {
	Response *BillAccountsGetResponse `json:"bill_accounts_get_response"`
}

type BillBillGetRequest

type BillBillGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询单笔账单明细

func (*BillBillGetRequest) GetResponse

func (r *BillBillGetRequest) GetResponse(accessToken string) (*BillBillGetResponse, []byte, error)

func (*BillBillGetRequest) SetBid

func (r *BillBillGetRequest) SetBid(value string)

账单编号

func (*BillBillGetRequest) SetFields

func (r *BillBillGetRequest) SetFields(value string)

传入需要返回的字段

type BillBillGetResponse

type BillBillGetResponse struct {
	Bill *Bill `json:"bill"`
}

type BillBillGetResponseResult

type BillBillGetResponseResult struct {
	Response *BillBillGetResponse `json:"bill_bill_get_response"`
}

type BillBillsGetRequest

type BillBillsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询账单明细数据

func (*BillBillsGetRequest) GetResponse

func (r *BillBillsGetRequest) GetResponse(accessToken string) (*BillBillsGetResponse, []byte, error)

func (*BillBillsGetRequest) SetAccountId

func (r *BillBillsGetRequest) SetAccountId(value string)

科目编号

func (*BillBillsGetRequest) SetEndTime

func (r *BillBillsGetRequest) SetEndTime(value string)

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

func (*BillBillsGetRequest) SetFields

func (r *BillBillsGetRequest) SetFields(value string)

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

func (*BillBillsGetRequest) SetOrderId

func (r *BillBillsGetRequest) SetOrderId(value string)

子订单编号

func (*BillBillsGetRequest) SetPageNo

func (r *BillBillsGetRequest) SetPageNo(value string)

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

func (*BillBillsGetRequest) SetPageSize

func (r *BillBillsGetRequest) SetPageSize(value string)

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

func (*BillBillsGetRequest) SetStartTime

func (r *BillBillsGetRequest) SetStartTime(value string)

开始时间

func (*BillBillsGetRequest) SetTimeType

func (r *BillBillsGetRequest) SetTimeType(value string)

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

func (*BillBillsGetRequest) SetTradeId

func (r *BillBillsGetRequest) SetTradeId(value string)

交易编号

type BillBillsGetResponse

type BillBillsGetResponse struct {
	Bills struct {
		Bill []*Bill `json:"bill"`
	} `json:"bills"`
	HasNext      bool `json:"has_next"`
	TotalResults int  `json:"total_results"`
}

type BillBillsGetResponseResult

type BillBillsGetResponseResult struct {
	Response *BillBillsGetResponse `json:"bill_bills_get_response"`
}

type BillBookBillGetRequest

type BillBookBillGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询单笔虚拟账户明细

func (*BillBookBillGetRequest) GetResponse

func (r *BillBookBillGetRequest) GetResponse(accessToken string) (*BillBookBillGetResponse, []byte, error)

func (*BillBookBillGetRequest) SetBid

func (r *BillBookBillGetRequest) SetBid(value string)

虚拟账户流水编号

func (*BillBookBillGetRequest) SetFields

func (r *BillBookBillGetRequest) SetFields(value string)

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

type BillBookBillGetResponse

type BillBookBillGetResponse struct {
	Bookbill *BookBill `json:"bookbill"`
}

type BillBookBillGetResponseResult

type BillBookBillGetResponseResult struct {
	Response *BillBookBillGetResponse `json:"bill_book_bill_get_response"`
}

type BillBookBillsGetRequest

type BillBookBillsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询虚拟账户明细数据

func (*BillBookBillsGetRequest) GetResponse

func (r *BillBookBillsGetRequest) GetResponse(accessToken string) (*BillBookBillsGetResponse, []byte, error)

func (*BillBookBillsGetRequest) SetAccountId

func (r *BillBookBillsGetRequest) SetAccountId(value string)

虚拟账户科目编号

func (*BillBookBillsGetRequest) SetEndTime

func (r *BillBookBillsGetRequest) SetEndTime(value string)

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

func (*BillBookBillsGetRequest) SetFields

func (r *BillBookBillsGetRequest) SetFields(value string)

需要返回的字段:bid,account_id,journal_type,amount,book_time,description,gmt_create,gmt_modified ,如果不是以上字段将自动忽略<br /> 支持的最大列表长度为:300

func (*BillBookBillsGetRequest) SetJournalTypes

func (r *BillBookBillsGetRequest) SetJournalTypes(value string)

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

func (*BillBookBillsGetRequest) SetPageNo

func (r *BillBookBillsGetRequest) SetPageNo(value string)

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

func (*BillBookBillsGetRequest) SetPageSize

func (r *BillBookBillsGetRequest) SetPageSize(value string)

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

func (*BillBookBillsGetRequest) SetStartTime

func (r *BillBookBillsGetRequest) SetStartTime(value string)

记账开始时间

type BillBookBillsGetResponse

type BillBookBillsGetResponse struct {
	Bills struct {
		BookBill []*BookBill `json:"book_bill"`
	} `json:"bills"`
	HasNext      bool `json:"has_next"`
	TotalResults int  `json:"total_results"`
}

type BillBookBillsGetResponseResult

type BillBookBillsGetResponseResult struct {
	Response *BillBookBillsGetResponse `json:"bill_book_bills_get_response"`
}

type BookBill

type BookBill struct {
	AccountId      int    `json:"account_id"`
	Amount         int    `json:"amount"`
	Bid            int    `json:"bid"`
	BookTime       string `json:"book_time"`
	Description    string `json:"description"`
	GmtCreate      string `json:"gmt_create"`
	JournalType    int    `json:"journal_type"`
	OtherAlipayId  string `json:"other_alipay_id"`
	TaobaoAlipayId string `json:"taobao_alipay_id"`
}

虚拟账户账单结构

Jump to

Keyboard shortcuts

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