-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaLstVendingShippingCallbackAPIRequest.go
111 lines (95 loc) · 2.97 KB
/
AlibabaLstVendingShippingCallbackAPIRequest.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package lstvending
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// AlibabaLstVendingShippingCallbackAPIRequest 售货机出货回传接口 API请求
// alibaba.lst.vending.shipping.callback
//
// 零售通自动售货机商品出货回传接口,同步商品出库最新状态。
type AlibabaLstVendingShippingCallbackAPIRequest struct {
model.Params
// 厂商设备编码
_equipmentCode string
// 交易流水号
_tradeFlowNo string
// 处理结果代码
_code string
// 处理结果代码描述
_message string
// 出货时间
_time string
}
// NewAlibabaLstVendingShippingCallbackRequest 初始化AlibabaLstVendingShippingCallbackAPIRequest对象
func NewAlibabaLstVendingShippingCallbackRequest() *AlibabaLstVendingShippingCallbackAPIRequest {
return &AlibabaLstVendingShippingCallbackAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaLstVendingShippingCallbackAPIRequest) GetApiMethodName() string {
return "alibaba.lst.vending.shipping.callback"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaLstVendingShippingCallbackAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetEquipmentCode is EquipmentCode Setter
// 厂商设备编码
func (r *AlibabaLstVendingShippingCallbackAPIRequest) SetEquipmentCode(_equipmentCode string) error {
r._equipmentCode = _equipmentCode
r.Set("equipment_code", _equipmentCode)
return nil
}
// GetEquipmentCode EquipmentCode Getter
func (r AlibabaLstVendingShippingCallbackAPIRequest) GetEquipmentCode() string {
return r._equipmentCode
}
// SetTradeFlowNo is TradeFlowNo Setter
// 交易流水号
func (r *AlibabaLstVendingShippingCallbackAPIRequest) SetTradeFlowNo(_tradeFlowNo string) error {
r._tradeFlowNo = _tradeFlowNo
r.Set("trade_flow_no", _tradeFlowNo)
return nil
}
// GetTradeFlowNo TradeFlowNo Getter
func (r AlibabaLstVendingShippingCallbackAPIRequest) GetTradeFlowNo() string {
return r._tradeFlowNo
}
// SetCode is Code Setter
// 处理结果代码
func (r *AlibabaLstVendingShippingCallbackAPIRequest) SetCode(_code string) error {
r._code = _code
r.Set("code", _code)
return nil
}
// GetCode Code Getter
func (r AlibabaLstVendingShippingCallbackAPIRequest) GetCode() string {
return r._code
}
// SetMessage is Message Setter
// 处理结果代码描述
func (r *AlibabaLstVendingShippingCallbackAPIRequest) SetMessage(_message string) error {
r._message = _message
r.Set("message", _message)
return nil
}
// GetMessage Message Getter
func (r AlibabaLstVendingShippingCallbackAPIRequest) GetMessage() string {
return r._message
}
// SetTime is Time Setter
// 出货时间
func (r *AlibabaLstVendingShippingCallbackAPIRequest) SetTime(_time string) error {
r._time = _time
r.Set("time", _time)
return nil
}
// GetTime Time Getter
func (r AlibabaLstVendingShippingCallbackAPIRequest) GetTime() string {
return r._time
}