public class PostPayment extends Object
最多包含100条付费项目。如果传入,用户侧则显示此参数。
| Modifier and Type | Field and Description |
|---|---|
private Long |
amount
金额,条件选填。修改订单必填
|
private Long |
count
付费数量,选填。
|
private String |
description
计费说明,条件选填。
|
private String |
name
付费项目名称,选填。 修改订单必填
|
| Constructor and Description |
|---|
PostPayment(Long amount,
String name,
String description,
Long count)
Instantiates a new Post payment.
|
PostPayment(String name) |
| Modifier and Type | Method and Description |
|---|---|
PostPayment |
amount(Long amount)
Amount post payment.
|
PostPayment |
count(Long count)
Count post payment.
|
PostPayment |
description(String description)
Description post payment.
|
private final String name
相同订单号下不能出现相同的付费项目名称,当参数长度超过20个字符时,报错处理。
private Long amount
此付费项目总金额,大于等于0,单位为分,等于0时代表不需要扣费,只能为整数,详见支付金额。如果填写了“付费项目名称”,则amount或description必须填写其一,或都填。
private String description
描述计费规则,不超过30个字符,超出报错处理。如果填写了“付费项目名称”,则amount或description必须填写其一,或都填。
private Long count
付费项目的数量。 特殊规则:数量限制100,不填时默认1。
PostPayment(Long amount, String name, String description, Long count)
amount - the amountname - the namedescription - the descriptioncount - the countpublic PostPayment(String name)
public PostPayment amount(Long amount)
amount - the amountpublic PostPayment description(String description)
description - the descriptionpublic PostPayment count(Long count)
count - the countCopyright © 2023. All rights reserved.