forked from smartwalle/alipay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bill_type.go
37 lines (31 loc) · 1.08 KB
/
bill_type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package alipay
// https://docs.open.alipay.com/api_15/alipay.data.dataservice.bill.downloadurl.query
type BillDownloadURLQuery struct {
AppAuthToken string `json:"-"` // 可选
BillType string `json:"bill_type"`
BillDate string `json:"bill_date"`
}
func (this BillDownloadURLQuery) APIName() string {
return "alipay.data.dataservice.bill.downloadurl.query"
}
func (this BillDownloadURLQuery) Params() map[string]string {
var m = make(map[string]string)
m["app_auth_token"] = this.AppAuthToken
return m
}
func (this BillDownloadURLQuery) ExtJSONParamName() string {
return "biz_content"
}
func (this BillDownloadURLQuery) ExtJSONParamValue() string {
return marshal(this)
}
type BillDownloadURLQueryResponse struct {
AliPayDataServiceBillDownloadURLQueryResponse struct {
Code string `json:"code"`
Msg string `json:"msg"`
SubCode string `json:"sub_code"`
SubMsg string `json:"sub_msg"`
BillDownloadUrl string `json:"bill_download_url"`
} `json:"alipay_data_dataservice_bill_downloadurl_query_response"`
Sign string `json:"sign"`
}