-
Notifications
You must be signed in to change notification settings - Fork 10
/
TaobaoXhotelOrderFutureInfoGetAPIRequest.go
174 lines (149 loc) · 5.33 KB
/
TaobaoXhotelOrderFutureInfoGetAPIRequest.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
package xhotelonlineorder
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoXhotelOrderFutureInfoGetAPIRequest 获取(查询)订单变更信息 API请求
// taobao.xhotel.order.future.info.get
//
// 支持操作类型 1.在线开发票请求 3.在线选房请求 4.自助checkIn请求 13.扫脸入住身份信息请求 10.房态信息查询请求 103.通用任务取消指令
type TaobaoXhotelOrderFutureInfoGetAPIRequest struct {
model.Params
// 请求流水号
_outUuid string
// 指定淘宝订单ID。以英文分号隔开的字符串“123455666;123455666;123455666”
_tids string
// 开始时间
_createdStart string
// 结束时间
_createdEnd string
// 酒店编码
_hotelCode string
// 系统商分配的身份识别
_vendor string
// 操作类型 1.在线开发票请求 3.在线选房请求 4.自助checkIn请求 13.扫脸入住身份信息请求 10.房态信息查询请求 103.通用任务取消指令
_operateType int64
}
// NewTaobaoXhotelOrderFutureInfoGetRequest 初始化TaobaoXhotelOrderFutureInfoGetAPIRequest对象
func NewTaobaoXhotelOrderFutureInfoGetRequest() *TaobaoXhotelOrderFutureInfoGetAPIRequest {
return &TaobaoXhotelOrderFutureInfoGetAPIRequest{
Params: model.NewParams(7),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) Reset() {
r._outUuid = ""
r._tids = ""
r._createdStart = ""
r._createdEnd = ""
r._hotelCode = ""
r._vendor = ""
r._operateType = 0
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetApiMethodName() string {
return "taobao.xhotel.order.future.info.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetOutUuid is OutUuid Setter
// 请求流水号
func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetOutUuid(_outUuid string) error {
r._outUuid = _outUuid
r.Set("out_uuid", _outUuid)
return nil
}
// GetOutUuid OutUuid Getter
func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetOutUuid() string {
return r._outUuid
}
// SetTids is Tids Setter
// 指定淘宝订单ID。以英文分号隔开的字符串“123455666;123455666;123455666”
func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetTids(_tids string) error {
r._tids = _tids
r.Set("tids", _tids)
return nil
}
// GetTids Tids Getter
func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetTids() string {
return r._tids
}
// SetCreatedStart is CreatedStart Setter
// 开始时间
func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetCreatedStart(_createdStart string) error {
r._createdStart = _createdStart
r.Set("created_start", _createdStart)
return nil
}
// GetCreatedStart CreatedStart Getter
func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetCreatedStart() string {
return r._createdStart
}
// SetCreatedEnd is CreatedEnd Setter
// 结束时间
func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetCreatedEnd(_createdEnd string) error {
r._createdEnd = _createdEnd
r.Set("created_end", _createdEnd)
return nil
}
// GetCreatedEnd CreatedEnd Getter
func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetCreatedEnd() string {
return r._createdEnd
}
// SetHotelCode is HotelCode Setter
// 酒店编码
func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetHotelCode(_hotelCode string) error {
r._hotelCode = _hotelCode
r.Set("hotel_code", _hotelCode)
return nil
}
// GetHotelCode HotelCode Getter
func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetHotelCode() string {
return r._hotelCode
}
// SetVendor is Vendor Setter
// 系统商分配的身份识别
func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetVendor(_vendor string) error {
r._vendor = _vendor
r.Set("vendor", _vendor)
return nil
}
// GetVendor Vendor Getter
func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetVendor() string {
return r._vendor
}
// SetOperateType is OperateType Setter
// 操作类型 1.在线开发票请求 3.在线选房请求 4.自助checkIn请求 13.扫脸入住身份信息请求 10.房态信息查询请求 103.通用任务取消指令
func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetOperateType(_operateType int64) error {
r._operateType = _operateType
r.Set("operate_type", _operateType)
return nil
}
// GetOperateType OperateType Getter
func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetOperateType() int64 {
return r._operateType
}
var poolTaobaoXhotelOrderFutureInfoGetAPIRequest = sync.Pool{
New: func() any {
return NewTaobaoXhotelOrderFutureInfoGetRequest()
},
}
// GetTaobaoXhotelOrderFutureInfoGetRequest 从 sync.Pool 获取 TaobaoXhotelOrderFutureInfoGetAPIRequest
func GetTaobaoXhotelOrderFutureInfoGetAPIRequest() *TaobaoXhotelOrderFutureInfoGetAPIRequest {
return poolTaobaoXhotelOrderFutureInfoGetAPIRequest.Get().(*TaobaoXhotelOrderFutureInfoGetAPIRequest)
}
// ReleaseTaobaoXhotelOrderFutureInfoGetAPIRequest 将 TaobaoXhotelOrderFutureInfoGetAPIRequest 放入 sync.Pool
func ReleaseTaobaoXhotelOrderFutureInfoGetAPIRequest(v *TaobaoXhotelOrderFutureInfoGetAPIRequest) {
v.Reset()
poolTaobaoXhotelOrderFutureInfoGetAPIRequest.Put(v)
}