@@ -25,37 +25,45 @@ public class AdvancedInfo implements Serializable {
2525// timeLimit = new TimeLimit();
2626// }
2727
28- /**
29- * 使用门槛(条件),若不填写使用条件则在券面拼写 :无最低消费限制,全场通用,不限品类;并在使用说明显示: 可与其他优惠共享
30- */
31- @ SerializedName ( "use_condition" )
32- private UseCondition useCondition ;
33-
34- /**
35- * 封面摘要
36- */
37- @ SerializedName ( "abstract" )
38- private Abstract abstractInfo ;
39-
40- /**
41- * 图文列表,显示在详情内页 ,优惠券券开发者须至少传入 一组图文列表
42- */
43- @ SerializedName ( "text_image_list" )
44- private List <TextImageList > textImageList ;
45-
46- /**
47- * 商家服务类型,数组类型:BIZ_SERVICE_DELIVER 外卖服务; BIZ_SERVICE_FREE_PARK 停车位; BIZ_SERVICE_WITH_PET 可带宠物; BIZ_SERVICE_FREE_WIFI 免费wifi, 可多选
48- */
49- @ SerializedName ( "business_service" )
50- private String businessService ;
51-
52- /**
53- * 使用时段限制
54- */
55- @ SerializedName ( "time_limit" )
56- private TimeLimit timeLimit ;
57-
58- public String toString (){
59- return ToStringBuilder .reflectionToString (this , ToStringStyle .JSON_STYLE );
28+ /**
29+ * 使用门槛(条件),若不填写使用条件则在券面拼写 :无最低消费限制,全场通用,不限品类;并在使用说明显示: 可与其他优惠共享
30+ */
31+ @ SerializedName ("use_condition" )
32+ private UseCondition useCondition ;
33+
34+ /**
35+ * 封面摘要
36+ */
37+ @ SerializedName ("abstract" )
38+ private Abstract abstractInfo ;
39+
40+ /**
41+ * 图文列表,显示在详情内页 ,优惠券券开发者须至少传入 一组图文列表
42+ */
43+ @ SerializedName ("text_image_list" )
44+ private List <TextImageList > textImageList ;
45+
46+ /**
47+ * 商家服务类型,数组类型:BIZ_SERVICE_DELIVER 外卖服务; BIZ_SERVICE_FREE_PARK 停车位; BIZ_SERVICE_WITH_PET 可带宠物; BIZ_SERVICE_FREE_WIFI 免费wifi, 可多选
48+ */
49+ @ SerializedName ("business_service" )
50+ private List <String > businessServiceList ;
51+
52+ /**
53+ * 使用时段限制
54+ */
55+ @ SerializedName ("time_limit" )
56+ private TimeLimit timeLimit ;
57+
58+ public void addBusinessService (BusinessServiceType businessServiceType ) {
59+ if (businessServiceType != null ) {
60+ if (businessServiceList == null )
61+ businessServiceList = new ArrayList <String >();
62+ businessServiceList .add (businessServiceType .name ());
6063 }
64+ }
65+
66+ public String toString () {
67+ return ToStringBuilder .reflectionToString (this , ToStringStyle .JSON_STYLE );
68+ }
6169}
0 commit comments