public class PayScoreOrder extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
appid
与传入的商户号建立了支付绑定关系的appid,必填
|
private String |
attach
商户数据包,选填
|
private Location |
location
服务位置,选填
|
private Boolean |
needUserConfirm
是否需要用户确认,选填
|
private String |
notifyUrl
商户回调地址,必填
|
private String |
openid
微信用户在商户对应appid下的唯一标识,条件选填
|
private String |
outOrderNo
商户服务订单号,必填
|
private List<PostDiscount> |
postDiscounts
后付费商户优惠,选填
|
private List<PostPayment> |
postPayments
后付费项目,选填
|
private RiskFund |
riskFund
订单风险金,必填
|
private String |
serviceId
服务ID,必填
|
private String |
serviceIntroduction
服务信息,必填
|
private TimeRange |
timeRange
服务时间段,必填
|
| Constructor and Description |
|---|
PayScoreOrder(String outOrderNo,
String appid,
String serviceId,
String serviceIntroduction,
List<PostPayment> postPayments,
List<PostDiscount> postDiscounts,
TimeRange timeRange,
Location location,
RiskFund riskFund,
String attach,
String notifyUrl,
String openid,
Boolean needUserConfirm)
Instantiates a new Pay score order.
|
| Modifier and Type | Method and Description |
|---|---|
PayScoreOrder |
attach(String attach)
Attach pay score order.
|
PayScoreOrder |
location(Location location)
Location pay score order.
|
PayScoreOrder |
openid(String openid)
Openid pay score order.
|
PayScoreOrder |
postDiscounts(List<PostDiscount> postDiscounts)
Post discounts pay score order.
|
PayScoreOrder |
postPayments(List<PostPayment> postPayments)
Post payments pay score order.
|
PayScoreOrder |
serviceIntroduction(String serviceIntroduction)
Service introduction pay score order.
|
private final String outOrderNo
商户系统内部服务订单号(不是交易单号),要求此参数只能由数字、大小写字母_-|*组成,且在同一个商户号下唯一。详见[商户订单号]。
private final String appid
private final String serviceId
该服务ID有本接口对应产品的权限。
private String serviceIntroduction
用于介绍本订单所提供的服务 ,当参数长度超过20个字符时,报错处理。
private List<PostPayment> postPayments
private List<PostDiscount> postDiscounts
private final TimeRange timeRange
private Location location
private final RiskFund riskFund
private String attach
商户数据包可存放本订单所需信息,需要先urlencode后传入。 当商户数据包总长度超出256字符时,报错处理。
private final String notifyUrl
private String openid
免确认订单:必填 需确认订单:不填
private final Boolean needUserConfirm
false:免确认订单 true:需确认订单 默认值true
PayScoreOrder(String outOrderNo, String appid, String serviceId, String serviceIntroduction, List<PostPayment> postPayments, List<PostDiscount> postDiscounts, TimeRange timeRange, Location location, RiskFund riskFund, String attach, String notifyUrl, String openid, Boolean needUserConfirm)
outOrderNo - the out order noappid - the appidserviceId - the service idserviceIntroduction - the service introductionpostPayments - the post paymentspostDiscounts - the post discountstimeRange - the time rangelocation - the locationriskFund - the risk fundattach - the attachnotifyUrl - the notify urlopenid - the openidneedUserConfirm - the need user confirmpublic PayScoreOrder serviceIntroduction(String serviceIntroduction)
serviceIntroduction - the service introductionpublic PayScoreOrder postPayments(List<PostPayment> postPayments)
postPayments - the post paymentspublic PayScoreOrder postDiscounts(List<PostDiscount> postDiscounts)
postDiscounts - the post discountspublic PayScoreOrder location(Location location)
location - the locationpublic PayScoreOrder attach(String attach)
attach - the attachpublic PayScoreOrder openid(String openid)
openid - the openidCopyright © 2023. All rights reserved.