添加文件: ymt_v3_2/types.go
This commit is contained in:
parent
475414a5e5
commit
f03c51655e
|
|
@ -0,0 +1,66 @@
|
||||||
|
package ymt_v3_2
|
||||||
|
|
||||||
|
type GetKeyRequest struct {
|
||||||
|
OutBizNo string `json:"out_biz_no"`
|
||||||
|
ActivityNo string `json:"activity_no"`
|
||||||
|
Account string `json:"account,omitempty"`
|
||||||
|
NotifyURL string `json:"notify_url,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetKeyResponse struct {
|
||||||
|
OutBizNo string `json:"out_biz_no"`
|
||||||
|
TradeNo string `json:"trade_no"`
|
||||||
|
Key string `json:"key,omitempty"`
|
||||||
|
URL string `json:"url,omitempty"`
|
||||||
|
ValidBeginTime string `json:"valid_begin_time,omitempty"`
|
||||||
|
ValidEndTime string `json:"valid_end_time,omitempty"`
|
||||||
|
UsableNum uint32 `json:"usable_num"`
|
||||||
|
UsageNum uint32 `json:"usage_num"`
|
||||||
|
Status uint32 `json:"status"`
|
||||||
|
SettlementPrice float64 `json:"settlement_price,omitempty"`
|
||||||
|
Account string `json:"account,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type QueryKeyRequest struct {
|
||||||
|
OutBizNo string `json:"out_biz_no,omitempty"`
|
||||||
|
TradeNo string `json:"trade_no,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type QueryKeyResponse = GetKeyResponse
|
||||||
|
|
||||||
|
type DiscardKeyRequest struct {
|
||||||
|
OutBizNo string `json:"out_biz_no,omitempty"`
|
||||||
|
TradeNo string `json:"trade_no,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type DiscardKeyResponse struct {
|
||||||
|
OutBizNo string `json:"out_biz_no"`
|
||||||
|
TradeNo string `json:"trade_no"`
|
||||||
|
Status uint32 `json:"status"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type BatchOrderRequest struct {
|
||||||
|
OutBizNo string `json:"out_biz_no"`
|
||||||
|
ActivityNo string `json:"activity_no"`
|
||||||
|
Number int32 `json:"number"`
|
||||||
|
NotifyURL string `json:"notify_url,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type BatchOrderResponse struct {
|
||||||
|
OutBizNo string `json:"out_biz_no"`
|
||||||
|
TradeNo string `json:"trade_no"`
|
||||||
|
Status string `json:"status"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type BatchQueryRequest struct {
|
||||||
|
OutBizNo string `json:"out_biz_no,omitempty"`
|
||||||
|
TradeNo string `json:"trade_no,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type BatchQueryResponse struct {
|
||||||
|
OutBizNo string `json:"out_biz_no"`
|
||||||
|
TradeNo string `json:"trade_no"`
|
||||||
|
Status string `json:"status"`
|
||||||
|
DownloadURL string `json:"download_url,omitempty"`
|
||||||
|
ZipPassword string `json:"zip_password,omitempty"`
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue