|
| 1 | +package com.github.binarywang.wxpay.bean.payscore; |
| 2 | + |
| 3 | +import lombok.Data; |
| 4 | +import lombok.NoArgsConstructor; |
| 5 | + |
| 6 | +import java.io.Serializable; |
| 7 | +import java.util.List; |
| 8 | + |
| 9 | +/** |
| 10 | + * @author doger.wang |
| 11 | + * @date 2020/5/12 16:36 |
| 12 | + */ |
| 13 | +@NoArgsConstructor |
| 14 | +@Data |
| 15 | +public class WxPayScoreRequest implements Serializable { |
| 16 | + |
| 17 | + |
| 18 | + private static final long serialVersionUID = 364764508076146082L; |
| 19 | + /** |
| 20 | + * out_order_no : 1234323JKHDFE1243252 |
| 21 | + * appid : wxd678efh567hg6787 |
| 22 | + * service_id : 500001 |
| 23 | + * service_introduction : 某某酒店 |
| 24 | + * post_payments : [{"name":"就餐费用服务费","amount":4000,"description":"就餐人均100元服务费:100/小时","count":1}] |
| 25 | + * post_discounts : [{"name":"满20减1元","description":"不与其他优惠叠加"}] |
| 26 | + * time_range : {"start_time":"20091225091010","end_time":"20091225121010"} |
| 27 | + * location : {"start_location":"嗨客时尚主题展餐厅","end_location":"嗨客时尚主题展餐厅"} |
| 28 | + * risk_fund : {"name":"ESTIMATE_ORDER_COST","amount":10000,"description":"就餐的预估费用"} |
| 29 | + * attach : Easdfowealsdkjfnlaksjdlfkwqoi&wl3l2sald |
| 30 | + * notify_url : https://api.test.com |
| 31 | + * openid : oUpF8uMuAJO_M2pxb1Q9zNjWeS6o |
| 32 | + * need_user_confirm : true |
| 33 | + */ |
| 34 | + |
| 35 | + private String out_order_no; |
| 36 | + private String appid; |
| 37 | + private String service_id; |
| 38 | + private String service_introduction; |
| 39 | + private TimeRange time_range; |
| 40 | + private Location location; |
| 41 | + private RiskFund risk_fund; |
| 42 | + private String attach; |
| 43 | + private String notify_url; |
| 44 | + private String openid; |
| 45 | + private boolean need_user_confirm; |
| 46 | + private boolean profit_sharing; |
| 47 | + private List<PostPayments> post_payments; |
| 48 | + private List<PostDiscounts> post_discounts; |
| 49 | + private int total_amount; |
| 50 | + private String reason; |
| 51 | + private String goods_tag; |
| 52 | + private String type; |
| 53 | + private Detail detail; |
| 54 | + |
| 55 | + @NoArgsConstructor |
| 56 | + @Data |
| 57 | + public static class Detail { |
| 58 | + private String paid_time; |
| 59 | + } |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + @NoArgsConstructor |
| 64 | + @Data |
| 65 | + public static class TimeRange { |
| 66 | + /** |
| 67 | + * start_time : 20091225091010 |
| 68 | + * end_time : 20091225121010 |
| 69 | + */ |
| 70 | + |
| 71 | + private String start_time; |
| 72 | + private String end_time; |
| 73 | + } |
| 74 | + |
| 75 | + @NoArgsConstructor |
| 76 | + @Data |
| 77 | + public static class Location { |
| 78 | + /** |
| 79 | + * start_location : 嗨客时尚主题展餐厅 |
| 80 | + * end_location : 嗨客时尚主题展餐厅 |
| 81 | + */ |
| 82 | + |
| 83 | + private String start_location; |
| 84 | + private String end_location; |
| 85 | + } |
| 86 | + |
| 87 | + @NoArgsConstructor |
| 88 | + @Data |
| 89 | + public static class RiskFund { |
| 90 | + /** |
| 91 | + * name : ESTIMATE_ORDER_COST |
| 92 | + * amount : 10000 |
| 93 | + * description : 就餐的预估费用 |
| 94 | + */ |
| 95 | + |
| 96 | + private String name; |
| 97 | + private int amount; |
| 98 | + private String description; |
| 99 | + } |
| 100 | + |
| 101 | + @NoArgsConstructor |
| 102 | + @Data |
| 103 | + public static class PostPayments { |
| 104 | + /** |
| 105 | + * name : 就餐费用服务费 |
| 106 | + * amount : 4000 |
| 107 | + * description : 就餐人均100元服务费:100/小时 |
| 108 | + * count : 1 |
| 109 | + */ |
| 110 | + |
| 111 | + private String name; |
| 112 | + private int amount; |
| 113 | + private String description; |
| 114 | + private int count; |
| 115 | + } |
| 116 | + |
| 117 | + @NoArgsConstructor |
| 118 | + @Data |
| 119 | + public static class PostDiscounts { |
| 120 | + /** |
| 121 | + * name : 满20减1元 |
| 122 | + * description : 不与其他优惠叠加 |
| 123 | + */ |
| 124 | + |
| 125 | + private String name; |
| 126 | + private String description; |
| 127 | + private int count; |
| 128 | + private int amount; |
| 129 | + } |
| 130 | +} |
0 commit comments