You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

156 lines
7.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2023 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language governing permissions
and limitations under the License.
Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
----------------------------------------------------------------*/
#endregion Apache License Version 2.0
/*----------------------------------------------------------------
Copyright (C) 2023 Senparc
文件名BusinessCircleNotifyJson.cs
文件功能描述商圈支付结果通知Json
创建标识Senparc - 20210925
----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Senparc.Weixin.TenPayV3.Apis.Entities;
namespace Senparc.Weixin.TenPayV3.Apis.BusinessCircle
{
/// <summary>
/// 商圈支付结果通知Json
/// <para>详细请参考微信支付官方文档 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_1_10.shtml </para>
/// </summary>
public class BusinessCircleNotifyJson : ReturnJsonBase
{
/// <summary>
/// 含参构造函数
/// </summary>
/// <param name="mchid">商户号 <para>微信支付分配的商户号</para><para>示例值1230000109</para></param>
/// <param name="merchant_name">商圈商户名称 <para>商圈商户名称</para><para>示例值:微信支付</para></param>
/// <param name="shop_name">门店名称 <para>门店名称,商圈在商圈小程序上圈店时填写的门店名称</para><para>示例值:微信支付</para></param>
/// <param name="shop_number">门店编号 <para>门店编号,商圈在商圈小程序上圈店时填写的门店编号,用于跟商圈自身已有的商户识别码对齐</para><para>示例值123456</para></param>
/// <param name="appid">小程序APPID <para>顾客授权积分时使用的小程序的appid</para><para>示例值wxd678efh567hg6787</para></param>
/// <param name="openid">用户标识 <para>顾客授权时使用的小程序上的openid</para><para>示例值oUpF8uMuAJ2pxb1Q9zNjWeS6o</para></param>
/// <param name="time_end">交易完成时间 <para>交易完成时间遵循rfc3339标准格式格式为YYYY-MM-DDTHH:mm:ss+TIMEZONEYYYY-MM-DD表示年月日T出现在字符串中表示time元素的开头HH:mm:ss表示时分秒毫秒TIMEZONE表示时区+08:00表示东八区时间领先UTC8小时即北京时间。例如2015-05-20T13:29:35+08:00表示北京时间2015年05月20日13点29分35秒需要增加所有跟时间有关的参数的描述</para><para>示例值2015-05-20T13:29:35+08:00</para></param>
/// <param name="amount">金额 <para>用户实际消费金额,单位(分)</para><para>示例值200</para></param>
/// <param name="transaction_id">微信支付订单号 <para>微信支付订单号</para><para>示例值1234567890</para></param>
/// <param name="commit_tag">手动提交积分标记 <para>手动提交积分标记,自动提交时无该字段,用于区分用户手动申请后推送的积分数据</para><para>示例值oUpF8uMuAJ2pxb1Q9zNjWUHsd</para><para>可为null</para></param>
public BusinessCircleNotifyJson(string mchid, string merchant_name, string shop_name, string shop_number, string appid, string openid, string time_end, int amount, string transaction_id, string commit_tag)
{
this.mchid = mchid;
this.merchant_name = merchant_name;
this.shop_name = shop_name;
this.shop_number = shop_number;
this.appid = appid;
this.openid = openid;
this.time_end = time_end;
this.amount = amount;
this.transaction_id = transaction_id;
this.commit_tag = commit_tag;
}
/// <summary>
/// 无参构造函数
/// </summary>
public BusinessCircleNotifyJson()
{
}
/// <summary>
/// 商户号
/// <para>微信支付分配的商户号 </para>
/// <para>示例值1230000109</para>
/// </summary>
public string mchid { get; set; }
/// <summary>
/// 商圈商户名称
/// <para>商圈商户名称 </para>
/// <para>示例值:微信支付</para>
/// </summary>
public string merchant_name { get; set; }
/// <summary>
/// 门店名称
/// <para>门店名称,商圈在商圈小程序上圈店时填写的门店名称 </para>
/// <para>示例值:微信支付</para>
/// </summary>
public string shop_name { get; set; }
/// <summary>
/// 门店编号
/// <para>门店编号,商圈在商圈小程序上圈店时填写的门店编号,用于跟商圈自身已有的商户识别码对齐</para>
/// <para>示例值123456</para>
/// </summary>
public string shop_number { get; set; }
/// <summary>
/// 小程序APPID
/// <para>顾客授权积分时使用的小程序的appid </para>
/// <para>示例值wxd678efh567hg6787</para>
/// </summary>
public string appid { get; set; }
/// <summary>
/// 用户标识
/// <para>顾客授权时使用的小程序上的openid </para>
/// <para>示例值oUpF8uMuAJ2pxb1Q9zNjWeS6o</para>
/// </summary>
public string openid { get; set; }
/// <summary>
/// 交易完成时间
/// <para>交易完成时间遵循rfc3339标准格式格式为YYYY-MM-DDTHH:mm:ss+TIMEZONEYYYY-MM-DD表示年月日T出现在字符串中表示time元素的开头HH:mm:ss表示时分秒毫秒TIMEZONE表示时区+08:00表示东八区时间领先UTC 8小时即北京时间。例如2015-05-20T13:29:35+08:00表示北京时间2015年05月20日13点29分35秒需要增加所有跟时间有关的参数的描述 </para>
/// <para>示例值2015-05-20T13:29:35+08:00</para>
/// </summary>
public string time_end { get; set; }
/// <summary>
/// 金额
/// <para>用户实际消费金额,单位(分) </para>
/// <para>示例值200</para>
/// </summary>
public int amount { get; set; }
/// <summary>
/// 微信支付订单号
/// <para>微信支付订单号</para>
/// <para>示例值1234567890</para>
/// </summary>
public string transaction_id { get; set; }
/// <summary>
/// 手动提交积分标记
/// <para>手动提交积分标记,自动提交时无该字段,用于区分用户手动申请后推送的积分数据</para>
/// <para>示例值oUpF8uMuAJ2pxb1Q9zNjWUHsd</para>
/// <para>可为null</para>
/// </summary>
public string commit_tag { get; set; }
}
}