-
Notifications
You must be signed in to change notification settings - Fork 12
/
AlibabaServiceSettlementQueryAPIRequest.go
238 lines (205 loc) · 7.49 KB
/
AlibabaServiceSettlementQueryAPIRequest.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
package tmallsc
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaServiceSettlementQueryAPIRequest 服务平台结算单明细查询服务 API请求
// alibaba.service.settlement.query
//
// 给服务商提供结算单明细查询功能
type AlibabaServiceSettlementQueryAPIRequest struct {
model.Params
// 账单查询开始时间。格式示例 2019-03-26 17:15:28
_gmtCreateStart string
// 账单查询结束时间,时间区间限制未15分钟。 格式示例 2019-03-26 17:15:28
_gmtCreateEnd string
// 账单修改开始时间。
_gmtModifiedEnd string
// 账单修改结束时间,时间区间限制未15分钟。
_gmtModifiedStart string
// 当前页面,开始值为1
_currentPage int64
// 页面展示条数大小
_pageSize int64
// 工单ID
_workcardId int64
// 交易主订单号码
_parentTradeOrderId int64
// 服务单号
_serviceOrderId int64
// 交易实物订单号
_masterTradeOrderId int64
// 交易服务订单号
_serviceTradeOrderId int64
}
// NewAlibabaServiceSettlementQueryRequest 初始化AlibabaServiceSettlementQueryAPIRequest对象
func NewAlibabaServiceSettlementQueryRequest() *AlibabaServiceSettlementQueryAPIRequest {
return &AlibabaServiceSettlementQueryAPIRequest{
Params: model.NewParams(11),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *AlibabaServiceSettlementQueryAPIRequest) Reset() {
r._gmtCreateStart = ""
r._gmtCreateEnd = ""
r._gmtModifiedEnd = ""
r._gmtModifiedStart = ""
r._currentPage = 0
r._pageSize = 0
r._workcardId = 0
r._parentTradeOrderId = 0
r._serviceOrderId = 0
r._masterTradeOrderId = 0
r._serviceTradeOrderId = 0
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaServiceSettlementQueryAPIRequest) GetApiMethodName() string {
return "alibaba.service.settlement.query"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaServiceSettlementQueryAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r AlibabaServiceSettlementQueryAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetGmtCreateStart is GmtCreateStart Setter
// 账单查询开始时间。格式示例 2019-03-26 17:15:28
func (r *AlibabaServiceSettlementQueryAPIRequest) SetGmtCreateStart(_gmtCreateStart string) error {
r._gmtCreateStart = _gmtCreateStart
r.Set("gmt_create_start", _gmtCreateStart)
return nil
}
// GetGmtCreateStart GmtCreateStart Getter
func (r AlibabaServiceSettlementQueryAPIRequest) GetGmtCreateStart() string {
return r._gmtCreateStart
}
// SetGmtCreateEnd is GmtCreateEnd Setter
// 账单查询结束时间,时间区间限制未15分钟。 格式示例 2019-03-26 17:15:28
func (r *AlibabaServiceSettlementQueryAPIRequest) SetGmtCreateEnd(_gmtCreateEnd string) error {
r._gmtCreateEnd = _gmtCreateEnd
r.Set("gmt_create_end", _gmtCreateEnd)
return nil
}
// GetGmtCreateEnd GmtCreateEnd Getter
func (r AlibabaServiceSettlementQueryAPIRequest) GetGmtCreateEnd() string {
return r._gmtCreateEnd
}
// SetGmtModifiedEnd is GmtModifiedEnd Setter
// 账单修改开始时间。
func (r *AlibabaServiceSettlementQueryAPIRequest) SetGmtModifiedEnd(_gmtModifiedEnd string) error {
r._gmtModifiedEnd = _gmtModifiedEnd
r.Set("gmt_modified_end", _gmtModifiedEnd)
return nil
}
// GetGmtModifiedEnd GmtModifiedEnd Getter
func (r AlibabaServiceSettlementQueryAPIRequest) GetGmtModifiedEnd() string {
return r._gmtModifiedEnd
}
// SetGmtModifiedStart is GmtModifiedStart Setter
// 账单修改结束时间,时间区间限制未15分钟。
func (r *AlibabaServiceSettlementQueryAPIRequest) SetGmtModifiedStart(_gmtModifiedStart string) error {
r._gmtModifiedStart = _gmtModifiedStart
r.Set("gmt_modified_start", _gmtModifiedStart)
return nil
}
// GetGmtModifiedStart GmtModifiedStart Getter
func (r AlibabaServiceSettlementQueryAPIRequest) GetGmtModifiedStart() string {
return r._gmtModifiedStart
}
// SetCurrentPage is CurrentPage Setter
// 当前页面,开始值为1
func (r *AlibabaServiceSettlementQueryAPIRequest) SetCurrentPage(_currentPage int64) error {
r._currentPage = _currentPage
r.Set("current_page", _currentPage)
return nil
}
// GetCurrentPage CurrentPage Getter
func (r AlibabaServiceSettlementQueryAPIRequest) GetCurrentPage() int64 {
return r._currentPage
}
// SetPageSize is PageSize Setter
// 页面展示条数大小
func (r *AlibabaServiceSettlementQueryAPIRequest) SetPageSize(_pageSize int64) error {
r._pageSize = _pageSize
r.Set("page_size", _pageSize)
return nil
}
// GetPageSize PageSize Getter
func (r AlibabaServiceSettlementQueryAPIRequest) GetPageSize() int64 {
return r._pageSize
}
// SetWorkcardId is WorkcardId Setter
// 工单ID
func (r *AlibabaServiceSettlementQueryAPIRequest) SetWorkcardId(_workcardId int64) error {
r._workcardId = _workcardId
r.Set("workcard_id", _workcardId)
return nil
}
// GetWorkcardId WorkcardId Getter
func (r AlibabaServiceSettlementQueryAPIRequest) GetWorkcardId() int64 {
return r._workcardId
}
// SetParentTradeOrderId is ParentTradeOrderId Setter
// 交易主订单号码
func (r *AlibabaServiceSettlementQueryAPIRequest) SetParentTradeOrderId(_parentTradeOrderId int64) error {
r._parentTradeOrderId = _parentTradeOrderId
r.Set("parent_trade_order_id", _parentTradeOrderId)
return nil
}
// GetParentTradeOrderId ParentTradeOrderId Getter
func (r AlibabaServiceSettlementQueryAPIRequest) GetParentTradeOrderId() int64 {
return r._parentTradeOrderId
}
// SetServiceOrderId is ServiceOrderId Setter
// 服务单号
func (r *AlibabaServiceSettlementQueryAPIRequest) SetServiceOrderId(_serviceOrderId int64) error {
r._serviceOrderId = _serviceOrderId
r.Set("service_order_id", _serviceOrderId)
return nil
}
// GetServiceOrderId ServiceOrderId Getter
func (r AlibabaServiceSettlementQueryAPIRequest) GetServiceOrderId() int64 {
return r._serviceOrderId
}
// SetMasterTradeOrderId is MasterTradeOrderId Setter
// 交易实物订单号
func (r *AlibabaServiceSettlementQueryAPIRequest) SetMasterTradeOrderId(_masterTradeOrderId int64) error {
r._masterTradeOrderId = _masterTradeOrderId
r.Set("master_trade_order_id", _masterTradeOrderId)
return nil
}
// GetMasterTradeOrderId MasterTradeOrderId Getter
func (r AlibabaServiceSettlementQueryAPIRequest) GetMasterTradeOrderId() int64 {
return r._masterTradeOrderId
}
// SetServiceTradeOrderId is ServiceTradeOrderId Setter
// 交易服务订单号
func (r *AlibabaServiceSettlementQueryAPIRequest) SetServiceTradeOrderId(_serviceTradeOrderId int64) error {
r._serviceTradeOrderId = _serviceTradeOrderId
r.Set("service_trade_order_id", _serviceTradeOrderId)
return nil
}
// GetServiceTradeOrderId ServiceTradeOrderId Getter
func (r AlibabaServiceSettlementQueryAPIRequest) GetServiceTradeOrderId() int64 {
return r._serviceTradeOrderId
}
var poolAlibabaServiceSettlementQueryAPIRequest = sync.Pool{
New: func() any {
return NewAlibabaServiceSettlementQueryRequest()
},
}
// GetAlibabaServiceSettlementQueryRequest 从 sync.Pool 获取 AlibabaServiceSettlementQueryAPIRequest
func GetAlibabaServiceSettlementQueryAPIRequest() *AlibabaServiceSettlementQueryAPIRequest {
return poolAlibabaServiceSettlementQueryAPIRequest.Get().(*AlibabaServiceSettlementQueryAPIRequest)
}
// ReleaseAlibabaServiceSettlementQueryAPIRequest 将 AlibabaServiceSettlementQueryAPIRequest 放入 sync.Pool
func ReleaseAlibabaServiceSettlementQueryAPIRequest(v *AlibabaServiceSettlementQueryAPIRequest) {
v.Reset()
poolAlibabaServiceSettlementQueryAPIRequest.Put(v)
}