public class PostDiscount extends Object
最多包含30条商户优惠。如果传入,用户侧则显示此参数。
| Modifier and Type | Field and Description |
|---|---|
private Long |
amount
总金额,单位分,必填
|
private Long |
count
优惠数量,选填。
|
private String |
description
优惠说明,条件选填
|
private String |
name
优惠名称,条件选填
|
| Constructor and Description |
|---|
PostDiscount(Long amount,
String name,
String description,
Long count)
Instantiates a new Post discount.
|
| Modifier and Type | Method and Description |
|---|---|
PostDiscount |
count(Long count)
Count post discount.
|
PostDiscount |
name(String name,
String description)
Name post discount.
|
private final Long amount
private String name
优惠名称说明;description若填写,则必须同时填写,优惠名称不可重复描述。
private String description
优惠使用条件说明。name若填写,则必须同时填写。
private Long count
优惠的数量。 特殊规则:数量限制100,不填时默认1。
public PostDiscount name(String name, String description)
name - the namedescription - the descriptionpublic PostDiscount count(Long count)
count - the countCopyright © 2023. All rights reserved.