Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ public class CompleteServiceOrderRequestData
/// <param name="location">服务位置 <para>body服务位置如果传入,用户侧则显示此参数。</para><para>可为null</para></param>
/// <param name="profit_sharing">微信支付服务分账标记 <para>body完结订单分账接口标记。分账开通流程,详见false:不分账,默认:falsetrue:分账。</para><para>示例值:false</para><para>可为null</para></param>
/// <param name="goods_tag">订单优惠标记 <para>body订单优惠标记,代金券或立减金优惠的参数,说明详见代金券或立减金优惠</para><para>示例值:goods_tag</para><para>可为null</para></param>
/// <param name="device">设备信息</param>
public CompleteServiceOrderRequestData(string out_order_no, string appid, string service_id, Post_Payment[] post_payments, Post_Discount
[] post_discounts, long total_amount, Time_Range time_range, Location location, bool? profit_sharing, string goods_tag)
[] post_discounts, long total_amount, Time_Range time_range, Location location, bool? profit_sharing, string goods_tag, Device device = default)
{
this.out_order_no = out_order_no;
this.appid = appid;
Expand All @@ -73,6 +74,7 @@ public CompleteServiceOrderRequestData(string out_order_no, string appid, string
this.location = location;
this.profit_sharing = profit_sharing;
this.goods_tag = goods_tag;
this.device = device;
}

/// <summary>
Expand Down Expand Up @@ -153,6 +155,11 @@ public CompleteServiceOrderRequestData()
/// </summary>
public string goods_tag { get; set; }

/// <summary>
/// 设备信息
/// </summary>
public Device device { get; set; }

#region 子数据类型
public class Post_Payment
{
Expand Down Expand Up @@ -359,7 +366,47 @@ public Location()

}

public class Device
{

/// <summary>
/// 含参构造函数
/// </summary>
/// <param name="start_device_id">服务开始的设备ID <para>某一设备在商户对应服务ID下的唯一标识,由商户自行填写,建议采用设备SN值。售货机、充电宝、充电桩等无人自助设备行业必传。</para></param>
/// <param name="end_device_id">服务结束的设备ID <para>某一设备在商户对应服务ID下的唯一标识,由商户自行填写,建议采用设备SN值。售货机、充电宝、充电桩等无人自助设备行业必传。</para></param>
/// <param name="materiel_no">物料编码 <para>若商家参与政策,则商家填写行业侧给到商家的物料码(字母+数字的形式);若商家未参与政策,则商家填写URL链接。</para></param>
public Device(string start_device_id, string end_device_id, string materiel_no)
{
this.start_device_id = start_device_id;
this.end_device_id = end_device_id;
this.materiel_no = materiel_no;
}

/// <summary>
/// 无参构造函数
/// </summary>
public Device()
{
}

/// <summary>
/// 服务开始的设备ID
/// <para>某一设备在商户对应服务ID下的唯一标识,由商户自行填写,建议采用设备SN值。售货机、充电宝、充电桩等无人自助设备行业必传。</para>
/// </summary>
public string start_device_id { get; set; }

/// <summary>
/// 服务结束的设备ID
/// <para> 某一设备在商户对应服务ID下的唯一标识,由商户自行填写,建议采用设备SN值。售货机、充电宝、充电桩等无人自助设备行业必传。</para>
/// </summary>
public string end_device_id { get; set; }

/// <summary>
/// 物料编码
/// <para>若商家参与政策,则商家填写行业侧给到商家的物料码(字母+数字的形式);若商家未参与政策,则商家填写URL链接。</para>
/// </summary>
public string materiel_no { get; set; }
}
#endregion
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public class CreateServiceOrderRequestData
/// <param name="notify_url">商户回调地址 <para>body商户接收用户确认订单和付款成功回调通知的地址。</para><para>示例值:https://api.test.com</para></param>
/// <param name="openid">用户标识 <para>body微信用户在商户对应appid下的唯一标识。免确认订单:必填需确认订单:不填</para><para>获取用户openid指引</para></param>
/// <param name="need_user_confirm">是否需要用户确认 <para>body枚举值:false:免确认订单true:需确认订单默认值true</para><para>示例值:true</para><para>可为null</para></param>
public CreateServiceOrderRequestData(string out_order_no, string appid, string service_id, string service_introduction, Post_Payment[] post_payments, Post_Discount[] post_discounts, Time_Range time_range, Location location, Risk_Fund risk_fund, string attach, string notify_url, string openid, bool? need_user_confirm)
/// <param name="device">设备信息</param>
public CreateServiceOrderRequestData(string out_order_no, string appid, string service_id, string service_introduction, Post_Payment[] post_payments, Post_Discount[] post_discounts, Time_Range time_range, Location location, Risk_Fund risk_fund, string attach, string notify_url, string openid, bool? need_user_confirm, Device device = default)
{
this.out_order_no = out_order_no;
this.appid = appid;
Expand All @@ -77,6 +78,7 @@ public CreateServiceOrderRequestData(string out_order_no, string appid, string s
this.notify_url = notify_url;
this.openid = openid;
this.need_user_confirm = need_user_confirm;
this.device = device;
}

/// <summary>
Expand Down Expand Up @@ -180,6 +182,11 @@ public CreateServiceOrderRequestData()
/// </summary>
public bool? need_user_confirm { get; set; }

/// <summary>
/// 设备信息
/// </summary>
public Device device { get; set; }

#region 子数据类型
public class Post_Payment
{
Expand Down Expand Up @@ -422,6 +429,47 @@ public Risk_Fund()

}

public class Device
{

/// <summary>
/// 含参构造函数
/// </summary>
/// <param name="start_device_id">服务开始的设备ID <para>某一设备在商户对应服务ID下的唯一标识,由商户自行填写,建议采用设备SN值。售货机、充电宝、充电桩等无人自助设备行业必传。</para></param>
/// <param name="end_device_id">服务结束的设备ID <para>某一设备在商户对应服务ID下的唯一标识,由商户自行填写,建议采用设备SN值。售货机、充电宝、充电桩等无人自助设备行业必传。</para></param>
/// <param name="materiel_no">物料编码 <para>若商家参与政策,则商家填写行业侧给到商家的物料码(字母+数字的形式);若商家未参与政策,则商家填写URL链接。</para></param>
public Device(string start_device_id, string end_device_id, string materiel_no)
{
this.start_device_id = start_device_id;
this.end_device_id = end_device_id;
this.materiel_no = materiel_no;
}

/// <summary>
/// 无参构造函数
/// </summary>
public Device()
{
}

/// <summary>
/// 服务开始的设备ID
/// <para>某一设备在商户对应服务ID下的唯一标识,由商户自行填写,建议采用设备SN值。售货机、充电宝、充电桩等无人自助设备行业必传。</para>
/// </summary>
public string start_device_id { get; set; }

/// <summary>
/// 服务结束的设备ID
/// <para> 某一设备在商户对应服务ID下的唯一标识,由商户自行填写,建议采用设备SN值。售货机、充电宝、充电桩等无人自助设备行业必传。</para>
/// </summary>
public string end_device_id { get; set; }

/// <summary>
/// 物料编码
/// <para>若商家参与政策,则商家填写行业侧给到商家的物料码(字母+数字的形式);若商家未参与政策,则商家填写URL链接。</para>
/// </summary>
public string materiel_no { get; set; }
}

#endregion
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public class ModifyServiceOrderRequestData
/// <param name="post_discounts">后付费商户优惠 <para>body后付费商户优惠列表,最多包含30条商户优惠。如果传入,用户侧则显示此参数。</para><para>可为null</para></param>
/// <param name="total_amount">总金额 <para>body总金额,单位为分,不能超过完结订单时候的总金额,只能为整数,详见支付金额。此参数需满足:总金额=(修改后付费项目1…+修改后完结付费项目n)-(修改后付费商户优惠项目1…+修改后付费商户优惠项目n)</para><para>示例值:50000</para></param>
/// <param name="reason">修改原因 <para>body按照字符计算,超过长度报错处理。</para><para>示例值:用户投诉</para></param>
public ModifyServiceOrderRequestData(string out_order_no, string appid, string service_id, Post_Payment[] post_payments, Post_Discount[] post_discounts, long total_amount, string reason)
/// <param name="device">设备信息</param>
public ModifyServiceOrderRequestData(string out_order_no, string appid, string service_id, Post_Payment[] post_payments, Post_Discount[] post_discounts, long total_amount, string reason, Device device = default)
{
this.out_order_no = out_order_no;
this.appid = appid;
Expand All @@ -59,6 +60,7 @@ public ModifyServiceOrderRequestData(string out_order_no, string appid, string s
this.post_discounts = post_discounts;
this.total_amount = total_amount;
this.reason = reason;
this.device = device;
}

/// <summary>
Expand Down Expand Up @@ -117,6 +119,11 @@ public ModifyServiceOrderRequestData()
/// </summary>
public string reason { get; set; }

/// <summary>
/// 设备信息
/// </summary>
public Device device { get; set; }

#region 子数据类型
public class Post_Payment
{
Expand Down Expand Up @@ -234,6 +241,48 @@ public Post_Discount()

}

public class Device
{

/// <summary>
/// 含参构造函数
/// </summary>
/// <param name="start_device_id">服务开始的设备ID <para>某一设备在商户对应服务ID下的唯一标识,由商户自行填写,建议采用设备SN值。售货机、充电宝、充电桩等无人自助设备行业必传。</para></param>
/// <param name="end_device_id">服务结束的设备ID <para>某一设备在商户对应服务ID下的唯一标识,由商户自行填写,建议采用设备SN值。售货机、充电宝、充电桩等无人自助设备行业必传。</para></param>
/// <param name="materiel_no">物料编码 <para>若商家参与政策,则商家填写行业侧给到商家的物料码(字母+数字的形式);若商家未参与政策,则商家填写URL链接。</para></param>
public Device(string start_device_id, string end_device_id, string materiel_no)
{
this.start_device_id = start_device_id;
this.end_device_id = end_device_id;
this.materiel_no = materiel_no;
}

/// <summary>
/// 无参构造函数
/// </summary>
public Device()
{
}

/// <summary>
/// 服务开始的设备ID
/// <para>某一设备在商户对应服务ID下的唯一标识,由商户自行填写,建议采用设备SN值。售货机、充电宝、充电桩等无人自助设备行业必传。</para>
/// </summary>
public string start_device_id { get; set; }

/// <summary>
/// 服务结束的设备ID
/// <para> 某一设备在商户对应服务ID下的唯一标识,由商户自行填写,建议采用设备SN值。售货机、充电宝、充电桩等无人自助设备行业必传。</para>
/// </summary>
public string end_device_id { get; set; }

/// <summary>
/// 物料编码
/// <para>若商家参与政策,则商家填写行业侧给到商家的物料码(字母+数字的形式);若商家未参与政策,则商家填写URL链接。</para>
/// </summary>
public string materiel_no { get; set; }
}


#endregion
}
Expand Down