public class UserServiceOrderParams 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 |
|---|
UserServiceOrderParams() |
| Modifier and Type | Method and Description |
|---|---|
UserServiceOrderParams |
attach(String attach) |
UserServiceOrderParams |
location(Location location) |
UserServiceOrderParams |
needUserConfirm(Boolean needUserConfirm) |
UserServiceOrderParams |
openid(String openid) |
UserServiceOrderParams |
postDiscounts(List<PostDiscount> postDiscounts) |
UserServiceOrderParams |
postPayments(List<PostPayment> postPayments) |
private final String outOrderNo
商户系统内部服务订单号(不是交易单号),要求此参数只能由数字、大小写字母_-|*组成,且在同一个商户号下唯一。详见[商户订单号]。
private final String appid
private final String serviceId
该服务ID有本接口对应产品的权限。
private final String serviceIntroduction
用于介绍本订单所提供的服务 ,当参数长度超过20个字符时,报错处理。
private final TimeRange timeRange
private final RiskFund riskFund
private final String notifyUrl
private List<PostPayment> postPayments
private List<PostDiscount> postDiscounts
private Location location
private String attach
商户数据包可存放本订单所需信息,需要先urlencode后传入。 当商户数据包总长度超出256字符时,报错处理。
private String openid
免确认订单:必填 需确认订单:不填
private Boolean needUserConfirm
false:免确认订单 true:需确认订单 默认值true
public UserServiceOrderParams postPayments(List<PostPayment> postPayments)
public UserServiceOrderParams postDiscounts(List<PostDiscount> postDiscounts)
public UserServiceOrderParams location(Location location)
public UserServiceOrderParams attach(String attach)
public UserServiceOrderParams openid(String openid)
public UserServiceOrderParams needUserConfirm(Boolean needUserConfirm)
Copyright © 2023. All rights reserved.