
1package main
2
3import (
4 "bytes"
5 "demo/wxpay_brand_utility"
6 "encoding/json"
7 "fmt"
8 "net/http"
9 "net/url"
10 "strings"
11 "time"
12)
13
14func main() {
15
16 config, err := wxpay_brand_utility.CreateBrandConfig(
17 "xxxxxxxx",
18 "1DDE55AD98Exxxxxxxxxx",
19 "/path/to/apiclient_key.pem",
20 "PUB_KEY_ID_xxxxxxxxxxxxx",
21 "/path/to/wxp_pub.pem",
22 )
23 if err != nil {
24 fmt.Println(err)
25 return
26 }
27
28 request := &DeactivateUserProductCouponBundleRequest{
29 UserCouponBundleId: wxpay_brand_utility.String("123446565767"),
30 Openid: wxpay_brand_utility.String("oh-394z-6CGkNoJrsDLTTUKiAnp4"),
31 ProductCouponId: wxpay_brand_utility.String("1002323"),
32 StockBundleId: wxpay_brand_utility.String("100232301"),
33 Appid: wxpay_brand_utility.String("wx233544546545989"),
34 OutRequestNo: wxpay_brand_utility.String("1002600620019090123144054436"),
35 DeactivateReason: wxpay_brand_utility.String("商品已下线,使用户商品券失效"),
36 }
37
38 response, err := DeactivateUserProductCouponBundle(config, request)
39 if err != nil {
40 fmt.Printf("请求失败: %+v\n", err)
41
42 return
43 }
44
45
46 fmt.Printf("请求成功: %+v\n", response)
47}
48
49func DeactivateUserProductCouponBundle(config *wxpay_brand_utility.BrandConfig, request *DeactivateUserProductCouponBundleRequest) (response *DeactivateUserProductCouponBundleResponse, err error) {
50 const (
51 host = "https://api.mch.weixin.qq.com"
52 method = "POST"
53 path = "/brand/marketing/product-coupon/users/{openid}/coupon-bundles/{user_coupon_bundle_id}/deactivate"
54 )
55
56 reqUrl, err := url.Parse(fmt.Sprintf("%s%s", host, path))
57 if err != nil {
58 return nil, err
59 }
60 reqUrl.Path = strings.Replace(reqUrl.Path, "{user_coupon_bundle_id}", url.PathEscape(*request.UserCouponBundleId), -1)
61 reqUrl.Path = strings.Replace(reqUrl.Path, "{openid}", url.PathEscape(*request.Openid), -1)
62 reqBody, err := json.Marshal(request)
63 if err != nil {
64 return nil, err
65 }
66 httpRequest, err := http.NewRequest(method, reqUrl.String(), bytes.NewReader(reqBody))
67 if err != nil {
68 return nil, err
69 }
70 httpRequest.Header.Set("Accept", "application/json")
71 httpRequest.Header.Set("Wechatpay-Serial", config.WechatPayPublicKeyId())
72 httpRequest.Header.Set("Content-Type", "application/json")
73 authorization, err := wxpay_brand_utility.BuildAuthorization(config.BrandId(), config.CertificateSerialNo(), config.PrivateKey(), method, reqUrl.RequestURI(), reqBody)
74 if err != nil {
75 return nil, err
76 }
77 httpRequest.Header.Set("Authorization", authorization)
78
79 client := &http.Client{}
80 httpResponse, err := client.Do(httpRequest)
81 if err != nil {
82 return nil, err
83 }
84 respBody, err := wxpay_brand_utility.ExtractResponseBody(httpResponse)
85 if err != nil {
86 return nil, err
87 }
88 if httpResponse.StatusCode >= 200 && httpResponse.StatusCode < 300 {
89
90 err = wxpay_brand_utility.ValidateResponse(
91 config.WechatPayPublicKeyId(),
92 config.WechatPayPublicKey(),
93 &httpResponse.Header,
94 respBody,
95 )
96 if err != nil {
97 return nil, err
98 }
99 response := &DeactivateUserProductCouponBundleResponse{}
100 if err := json.Unmarshal(respBody, response); err != nil {
101 return nil, err
102 }
103
104 return response, nil
105 } else {
106 return nil, wxpay_brand_utility.NewApiException(
107 httpResponse.StatusCode,
108 httpResponse.Header,
109 respBody,
110 )
111 }
112}
113
114type DeactivateUserProductCouponBundleRequest struct {
115 ProductCouponId *string `json:"product_coupon_id,omitempty"`
116 StockBundleId *string `json:"stock_bundle_id,omitempty"`
117 UserCouponBundleId *string `json:"user_coupon_bundle_id,omitempty"`
118 Appid *string `json:"appid,omitempty"`
119 Openid *string `json:"openid,omitempty"`
120 OutRequestNo *string `json:"out_request_no,omitempty"`
121 DeactivateReason *string `json:"deactivate_reason,omitempty"`
122}
123
124func (o *DeactivateUserProductCouponBundleRequest) MarshalJSON() ([]byte, error) {
125 type Alias DeactivateUserProductCouponBundleRequest
126 a := &struct {
127 UserCouponBundleId *string `json:"user_coupon_bundle_id,omitempty"`
128 Openid *string `json:"openid,omitempty"`
129 *Alias
130 }{
131
132 UserCouponBundleId: nil,
133 Openid: nil,
134 Alias: (*Alias)(o),
135 }
136 return json.Marshal(a)
137}
138
139type DeactivateUserProductCouponBundleResponse struct {
140 UserCouponBundleId *string `json:"user_coupon_bundle_id,omitempty"`
141 UserProductCouponList []UserProductCouponEntity `json:"user_product_coupon_list,omitempty"`
142}
143
144type UserProductCouponEntity struct {
145 CouponCode *string `json:"coupon_code,omitempty"`
146 CouponState *UserProductCouponState `json:"coupon_state,omitempty"`
147 ValidBeginTime *time.Time `json:"valid_begin_time,omitempty"`
148 ValidEndTime *time.Time `json:"valid_end_time,omitempty"`
149 ReceiveTime *string `json:"receive_time,omitempty"`
150 SendRequestNo *string `json:"send_request_no,omitempty"`
151 SendChannel *UserProductCouponSendChannel `json:"send_channel,omitempty"`
152 ConfirmRequestNo *string `json:"confirm_request_no,omitempty"`
153 ConfirmTime *time.Time `json:"confirm_time,omitempty"`
154 DeactivateRequestNo *string `json:"deactivate_request_no,omitempty"`
155 DeactivateTime *string `json:"deactivate_time,omitempty"`
156 DeactivateReason *string `json:"deactivate_reason,omitempty"`
157 ProgressiveBundleUsageDetail *CouponUsageDetail `json:"progressive_bundle_usage_detail,omitempty"`
158 UserProductCouponBundleInfo *UserProductCouponBundleInfo `json:"user_product_coupon_bundle_info,omitempty"`
159 ProductCoupon *ProductCouponEntity `json:"product_coupon,omitempty"`
160 Stock *StockEntity `json:"stock,omitempty"`
161 Attach *string `json:"attach,omitempty"`
162 ChannelCustomInfo *string `json:"channel_custom_info,omitempty"`
163 CouponTagInfo *CouponTagInfo `json:"coupon_tag_info,omitempty"`
164}
165
166type UserProductCouponState string
167
168func (e UserProductCouponState) Ptr() *UserProductCouponState {
169 return &e
170}
171
172const (
173 USERPRODUCTCOUPONSTATE_CONFIRMING UserProductCouponState = "CONFIRMING"
174 USERPRODUCTCOUPONSTATE_PENDING UserProductCouponState = "PENDING"
175 USERPRODUCTCOUPONSTATE_EFFECTIVE UserProductCouponState = "EFFECTIVE"
176 USERPRODUCTCOUPONSTATE_USED UserProductCouponState = "USED"
177 USERPRODUCTCOUPONSTATE_EXPIRED UserProductCouponState = "EXPIRED"
178 USERPRODUCTCOUPONSTATE_DELETED UserProductCouponState = "DELETED"
179 USERPRODUCTCOUPONSTATE_DEACTIVATED UserProductCouponState = "DEACTIVATED"
180)
181
182type UserProductCouponSendChannel string
183
184func (e UserProductCouponSendChannel) Ptr() *UserProductCouponSendChannel {
185 return &e
186}
187
188const (
189 USERPRODUCTCOUPONSENDCHANNEL_BRAND_MANAGE UserProductCouponSendChannel = "BRAND_MANAGE"
190 USERPRODUCTCOUPONSENDCHANNEL_API UserProductCouponSendChannel = "API"
191 USERPRODUCTCOUPONSENDCHANNEL_RECEIVE_COMPONENT UserProductCouponSendChannel = "RECEIVE_COMPONENT"
192 USERPRODUCTCOUPONSENDCHANNEL_MEMBER UserProductCouponSendChannel = "MEMBER"
193 USERPRODUCTCOUPONSENDCHANNEL_STICKER_GIFT UserProductCouponSendChannel = "STICKER_GIFT"
194)
195
196type CouponUsageDetail struct {
197 UseRequestNo *string `json:"use_request_no,omitempty"`
198 UseTime *time.Time `json:"use_time,omitempty"`
199 ReturnRequestNo *string `json:"return_request_no,omitempty"`
200 ReturnTime *time.Time `json:"return_time,omitempty"`
201 AssociatedOrderInfo *UserProductCouponAssociatedOrderInfo `json:"associated_order_info,omitempty"`
202 AssociatedPayScoreOrderInfo *UserProductCouponAssociatedPayScoreOrderInfo `json:"associated_pay_score_order_info,omitempty"`
203 SavedAmount *int64 `json:"saved_amount,omitempty"`
204 UseProductNoList []string `json:"use_product_no_list,omitempty"`
205}
206
207type UserProductCouponBundleInfo struct {
208 UserCouponBundleId *string `json:"user_coupon_bundle_id,omitempty"`
209 UserCouponBundleIndex *int64 `json:"user_coupon_bundle_index,omitempty"`
210 TotalCount *int64 `json:"total_count,omitempty"`
211 UsedCount *int64 `json:"used_count,omitempty"`
212}
213
214type ProductCouponEntity struct {
215 ProductCouponId *string `json:"product_coupon_id,omitempty"`
216 Scope *ProductCouponScope `json:"scope,omitempty"`
217 Type *ProductCouponType `json:"type,omitempty"`
218 UsageMode *UsageMode `json:"usage_mode,omitempty"`
219 SingleUsageInfo *SingleUsageInfo `json:"single_usage_info,omitempty"`
220 ProgressiveBundleUsageInfo *ProgressiveBundleUsageInfo `json:"progressive_bundle_usage_info,omitempty"`
221 DisplayInfo *ProductCouponDisplayInfo `json:"display_info,omitempty"`
222 OutProductNo *string `json:"out_product_no,omitempty"`
223 State *ProductCouponState `json:"state,omitempty"`
224 DeactivateRequestNo *string `json:"deactivate_request_no,omitempty"`
225 DeactivateTime *string `json:"deactivate_time,omitempty"`
226 DeactivateReason *string `json:"deactivate_reason,omitempty"`
227 ShowAsExchange *bool `json:"show_as_exchange,omitempty"`
228 AvailableProductNoList []string `json:"available_product_no_list,omitempty"`
229}
230
231type StockEntity struct {
232 ProductCouponId *string `json:"product_coupon_id,omitempty"`
233 StockId *string `json:"stock_id,omitempty"`
234 Remark *string `json:"remark,omitempty"`
235 CouponCodeMode *CouponCodeMode `json:"coupon_code_mode,omitempty"`
236 CouponCodeCountInfo *CouponCodeCountInfo `json:"coupon_code_count_info,omitempty"`
237 StockSendRule *StockSendRule `json:"stock_send_rule,omitempty"`
238 ProgressiveBundleUsageRule *StockUsageRule `json:"progressive_bundle_usage_rule,omitempty"`
239 StockBundleInfo *StockBundleInfo `json:"stock_bundle_info,omitempty"`
240 UsageRuleDisplayInfo *UsageRuleDisplayInfo `json:"usage_rule_display_info,omitempty"`
241 CouponDisplayInfo *CouponDisplayInfo `json:"coupon_display_info,omitempty"`
242 NotifyConfig *NotifyConfig `json:"notify_config,omitempty"`
243 StoreScope *StockStoreScope `json:"store_scope,omitempty"`
244 SentCountInfo *StockSentCountInfo `json:"sent_count_info,omitempty"`
245 State *StockState `json:"state,omitempty"`
246 DeactivateRequestNo *string `json:"deactivate_request_no,omitempty"`
247 DeactivateTime *time.Time `json:"deactivate_time,omitempty"`
248 DeactivateReason *string `json:"deactivate_reason,omitempty"`
249}
250
251type CouponTagInfo struct {
252 CouponTagList []UserProductCouponTag `json:"coupon_tag_list,omitempty"`
253 MemberTagInfo *MemberTagInfo `json:"member_tag_info,omitempty"`
254}
255
256type UserProductCouponAssociatedOrderInfo struct {
257 TransactionId *string `json:"transaction_id,omitempty"`
258 OutTradeNo *string `json:"out_trade_no,omitempty"`
259 Mchid *string `json:"mchid,omitempty"`
260 SubMchid *string `json:"sub_mchid,omitempty"`
261}
262
263type UserProductCouponAssociatedPayScoreOrderInfo struct {
264 OrderId *string `json:"order_id,omitempty"`
265 OutOrderNo *string `json:"out_order_no,omitempty"`
266 Mchid *string `json:"mchid,omitempty"`
267 SubMchid *string `json:"sub_mchid,omitempty"`
268}
269
270type ProductCouponScope string
271
272func (e ProductCouponScope) Ptr() *ProductCouponScope {
273 return &e
274}
275
276const (
277 PRODUCTCOUPONSCOPE_ALL ProductCouponScope = "ALL"
278 PRODUCTCOUPONSCOPE_SINGLE ProductCouponScope = "SINGLE"
279 PRODUCTCOUPONSCOPE_CATEGORY ProductCouponScope = "CATEGORY"
280)
281
282type ProductCouponType string
283
284func (e ProductCouponType) Ptr() *ProductCouponType {
285 return &e
286}
287
288const (
289 PRODUCTCOUPONTYPE_NORMAL ProductCouponType = "NORMAL"
290 PRODUCTCOUPONTYPE_DISCOUNT ProductCouponType = "DISCOUNT"
291 PRODUCTCOUPONTYPE_EXCHANGE ProductCouponType = "EXCHANGE"
292)
293
294type UsageMode string
295
296func (e UsageMode) Ptr() *UsageMode {
297 return &e
298}
299
300const (
301 USAGEMODE_SINGLE UsageMode = "SINGLE"
302 USAGEMODE_PROGRESSIVE_BUNDLE UsageMode = "PROGRESSIVE_BUNDLE"
303)
304
305type SingleUsageInfo struct {
306 NormalCoupon *NormalCouponUsageRule `json:"normal_coupon,omitempty"`
307 DiscountCoupon *DiscountCouponUsageRule `json:"discount_coupon,omitempty"`
308}
309
310type ProgressiveBundleUsageInfo struct {
311 Count *int64 `json:"count,omitempty"`
312 IntervalDays *int64 `json:"interval_days,omitempty"`
313}
314
315type ProductCouponDisplayInfo struct {
316 Name *string `json:"name,omitempty"`
317 ImageUrl *string `json:"image_url,omitempty"`
318 BackgroundUrl *string `json:"background_url,omitempty"`
319 DetailImageUrlList []string `json:"detail_image_url_list,omitempty"`
320 OriginalPrice *int64 `json:"original_price,omitempty"`
321 ComboPackageList []ComboPackage `json:"combo_package_list,omitempty"`
322}
323
324type ProductCouponState string
325
326func (e ProductCouponState) Ptr() *ProductCouponState {
327 return &e
328}
329
330const (
331 PRODUCTCOUPONSTATE_AUDITING ProductCouponState = "AUDITING"
332 PRODUCTCOUPONSTATE_EFFECTIVE ProductCouponState = "EFFECTIVE"
333 PRODUCTCOUPONSTATE_DEACTIVATED ProductCouponState = "DEACTIVATED"
334)
335
336type CouponCodeMode string
337
338func (e CouponCodeMode) Ptr() *CouponCodeMode {
339 return &e
340}
341
342const (
343 COUPONCODEMODE_WECHATPAY CouponCodeMode = "WECHATPAY"
344 COUPONCODEMODE_UPLOAD CouponCodeMode = "UPLOAD"
345)
346
347type CouponCodeCountInfo struct {
348 TotalCount *int64 `json:"total_count,omitempty"`
349 AvailableCount *int64 `json:"available_count,omitempty"`
350}
351
352type StockSendRule struct {
353 MaxCount *int64 `json:"max_count,omitempty"`
354 MaxCountPerDay *int64 `json:"max_count_per_day,omitempty"`
355 MaxCountPerUser *int64 `json:"max_count_per_user,omitempty"`
356}
357
358type StockUsageRule struct {
359 CouponAvailablePeriod *CouponAvailablePeriod `json:"coupon_available_period,omitempty"`
360 NormalCoupon *NormalCouponUsageRule `json:"normal_coupon,omitempty"`
361 DiscountCoupon *DiscountCouponUsageRule `json:"discount_coupon,omitempty"`
362 ExchangeCoupon *ExchangeCouponUsageRule `json:"exchange_coupon,omitempty"`
363}
364
365type StockBundleInfo struct {
366 StockBundleId *string `json:"stock_bundle_id,omitempty"`
367 StockBundleIndex *int64 `json:"stock_bundle_index,omitempty"`
368}
369
370type UsageRuleDisplayInfo struct {
371 CouponUsageMethodList []CouponUsageMethod `json:"coupon_usage_method_list,omitempty"`
372 MiniProgramAppid *string `json:"mini_program_appid,omitempty"`
373 MiniProgramPath *string `json:"mini_program_path,omitempty"`
374 AppPath *string `json:"app_path,omitempty"`
375 UsageDescription *string `json:"usage_description,omitempty"`
376 CouponAvailableStoreInfo *CouponAvailableStoreInfo `json:"coupon_available_store_info,omitempty"`
377 AppJumpType *AppJumpType `json:"app_jump_type,omitempty"`
378 PasscodeLink *string `json:"passcode_link,omitempty"`
379}
380
381type CouponDisplayInfo struct {
382 CodeDisplayMode *CouponCodeDisplayMode `json:"code_display_mode,omitempty"`
383 BackgroundColor *string `json:"background_color,omitempty"`
384 EntranceMiniProgram *EntranceMiniProgram `json:"entrance_mini_program,omitempty"`
385 EntranceOfficialAccount *EntranceOfficialAccount `json:"entrance_official_account,omitempty"`
386}
387
388type NotifyConfig struct {
389 NotifyAppid *string `json:"notify_appid,omitempty"`
390}
391
392type StockStoreScope string
393
394func (e StockStoreScope) Ptr() *StockStoreScope {
395 return &e
396}
397
398const (
399 STOCKSTORESCOPE_NONE StockStoreScope = "NONE"
400 STOCKSTORESCOPE_ALL StockStoreScope = "ALL"
401 STOCKSTORESCOPE_SPECIFIC StockStoreScope = "SPECIFIC"
402)
403
404type StockSentCountInfo struct {
405 TotalCount *int64 `json:"total_count,omitempty"`
406 TodayCount *int64 `json:"today_count,omitempty"`
407}
408
409type StockState string
410
411func (e StockState) Ptr() *StockState {
412 return &e
413}
414
415const (
416 STOCKSTATE_AUDITING StockState = "AUDITING"
417 STOCKSTATE_SENDING StockState = "SENDING"
418 STOCKSTATE_PAUSED StockState = "PAUSED"
419 STOCKSTATE_STOPPED StockState = "STOPPED"
420 STOCKSTATE_DEACTIVATED StockState = "DEACTIVATED"
421)
422
423type UserProductCouponTag string
424
425func (e UserProductCouponTag) Ptr() *UserProductCouponTag {
426 return &e
427}
428
429const (
430 USERPRODUCTCOUPONTAG_MEMBER UserProductCouponTag = "MEMBER"
431 USERPRODUCTCOUPONTAG_MEMBER_ACTIVITY UserProductCouponTag = "MEMBER_ACTIVITY"
432)
433
434type MemberTagInfo struct {
435 MemberCardId *string `json:"member_card_id,omitempty"`
436}
437
438type NormalCouponUsageRule struct {
439 Threshold *int64 `json:"threshold,omitempty"`
440 DiscountAmount *int64 `json:"discount_amount,omitempty"`
441}
442
443type DiscountCouponUsageRule struct {
444 Threshold *int64 `json:"threshold,omitempty"`
445 PercentOff *int64 `json:"percent_off,omitempty"`
446}
447
448type ComboPackage struct {
449 Name *string `json:"name,omitempty"`
450 PickCount *int64 `json:"pick_count,omitempty"`
451 ChoiceList []ComboPackageChoice `json:"choice_list,omitempty"`
452}
453
454type CouponAvailablePeriod struct {
455 AvailableBeginTime *string `json:"available_begin_time,omitempty"`
456 AvailableEndTime *string `json:"available_end_time,omitempty"`
457 AvailableDays *int64 `json:"available_days,omitempty"`
458 WaitDaysAfterReceive *int64 `json:"wait_days_after_receive,omitempty"`
459 WeeklyAvailablePeriod *FixedWeekPeriod `json:"weekly_available_period,omitempty"`
460 IrregularAvailablePeriodList []TimePeriod `json:"irregular_available_period_list,omitempty"`
461 AvailableSeconds *int64 `json:"available_seconds,omitempty"`
462}
463
464type ExchangeCouponUsageRule struct {
465 Threshold *int64 `json:"threshold,omitempty"`
466 ExchangePrice *int64 `json:"exchange_price,omitempty"`
467}
468
469type CouponUsageMethod string
470
471func (e CouponUsageMethod) Ptr() *CouponUsageMethod {
472 return &e
473}
474
475const (
476 COUPONUSAGEMETHOD_OFFLINE CouponUsageMethod = "OFFLINE"
477 COUPONUSAGEMETHOD_MINI_PROGRAM CouponUsageMethod = "MINI_PROGRAM"
478 COUPONUSAGEMETHOD_APP CouponUsageMethod = "APP"
479 COUPONUSAGEMETHOD_PAYMENT_CODE CouponUsageMethod = "PAYMENT_CODE"
480)
481
482type CouponAvailableStoreInfo struct {
483 Description *string `json:"description,omitempty"`
484 MiniProgramAppid *string `json:"mini_program_appid,omitempty"`
485 MiniProgramPath *string `json:"mini_program_path,omitempty"`
486}
487
488type AppJumpType string
489
490func (e AppJumpType) Ptr() *AppJumpType {
491 return &e
492}
493
494const (
495 APPJUMPTYPE_H5 AppJumpType = "H5"
496 APPJUMPTYPE_PASSCODE_LINK AppJumpType = "PASSCODE_LINK"
497 APPJUMPTYPE_USAGE_GUIDE AppJumpType = "USAGE_GUIDE"
498)
499
500type CouponCodeDisplayMode string
501
502func (e CouponCodeDisplayMode) Ptr() *CouponCodeDisplayMode {
503 return &e
504}
505
506const (
507 COUPONCODEDISPLAYMODE_INVISIBLE CouponCodeDisplayMode = "INVISIBLE"
508 COUPONCODEDISPLAYMODE_BARCODE CouponCodeDisplayMode = "BARCODE"
509 COUPONCODEDISPLAYMODE_QRCODE CouponCodeDisplayMode = "QRCODE"
510)
511
512type EntranceMiniProgram struct {
513 Appid *string `json:"appid,omitempty"`
514 Path *string `json:"path,omitempty"`
515 EntranceWording *string `json:"entrance_wording,omitempty"`
516 GuidanceWording *string `json:"guidance_wording,omitempty"`
517}
518
519type EntranceOfficialAccount struct {
520 Appid *string `json:"appid,omitempty"`
521}
522
523type ComboPackageChoice struct {
524 Name *string `json:"name,omitempty"`
525 Price *int64 `json:"price,omitempty"`
526 Count *int64 `json:"count,omitempty"`
527 ImageUrl *string `json:"image_url,omitempty"`
528 MiniProgramAppid *string `json:"mini_program_appid,omitempty"`
529 MiniProgramPath *string `json:"mini_program_path,omitempty"`
530}
531
532type FixedWeekPeriod struct {
533 DayList []WeekEnum `json:"day_list,omitempty"`
534 DayPeriodList []PeriodOfTheDay `json:"day_period_list,omitempty"`
535}
536
537type TimePeriod struct {
538 BeginTime *string `json:"begin_time,omitempty"`
539 EndTime *string `json:"end_time,omitempty"`
540}
541
542type WeekEnum string
543
544func (e WeekEnum) Ptr() *WeekEnum {
545 return &e
546}
547
548const (
549 WEEKENUM_MONDAY WeekEnum = "MONDAY"
550 WEEKENUM_TUESDAY WeekEnum = "TUESDAY"
551 WEEKENUM_WEDNESDAY WeekEnum = "WEDNESDAY"
552 WEEKENUM_THURSDAY WeekEnum = "THURSDAY"
553 WEEKENUM_FRIDAY WeekEnum = "FRIDAY"
554 WEEKENUM_SATURDAY WeekEnum = "SATURDAY"
555 WEEKENUM_SUNDAY WeekEnum = "SUNDAY"
556)
557
558type PeriodOfTheDay struct {
559 BeginTime *int64 `json:"begin_time,omitempty"`
560 EndTime *int64 `json:"end_time,omitempty"`
561}
562