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.

213 lines
12 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
文件名UnfreezeProfitsharingReturnJson.cs
文件功能描述:解冻分账剩余资金接口请求数据
创建标识Senparc - 20210915
----------------------------------------------------------------*/
using Senparc.Weixin.TenPayV3.Apis.Entities;
using Senparc.Weixin.TenPayV3.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Senparc.Weixin.TenPayV3.Apis.Profitsharing
{
/// <summary>
/// 解冻分账剩余资金接口请求数据
/// <para>详细请参考微信支付官方文档 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_1_5.shtml </para>
/// </summary>
public class UnfreezeProfitsharingReturnJson : ReturnJsonBase
{
/// <summary>
/// 含参构造函数
/// </summary>
/// <param name="transaction_id">微信订单号 <para>微信支付订单号</para><para>示例值4208450740201411110007820472</para></param>
/// <param name="out_order_no">商户分账单号 <para>商户系统内部的分账单号在商户系统内部唯一同一分账单号多次请求等同一次。只能是数字、大小写字母_-|*@</para><para>示例值P20150806125346</para></param>
/// <param name="order_id">微信分账单号 <para>微信分账单号,微信系统返回的唯一标识</para><para>示例值3008450740201411110007820472</para></param>
/// <param name="state">分账单状态 <para>分账单状态每个接收方的分账结果请查看receivers中的result字段枚举值1、PROCESSING处理中2、FINISHED分账完成</para><para>示例值FINISHED</para></param>
/// <param name="receivers">分账接收方列表 <para>分账接收方列表</para><para>可为null</para></param>
public UnfreezeProfitsharingReturnJson(string transaction_id, string out_order_no, string order_id, string state, Receivers[] receivers)
{
this.transaction_id = transaction_id;
this.out_order_no = out_order_no;
this.order_id = order_id;
this.state = state;
this.receivers = receivers;
}
/// <summary>
/// 无参构造函数
/// </summary>
public UnfreezeProfitsharingReturnJson()
{
}
/// <summary>
/// 微信订单号
/// <para>微信支付订单号</para>
/// <para>示例值4208450740201411110007820472</para>
/// </summary>
public string transaction_id { get; set; }
/// <summary>
/// 商户分账单号
/// <para>商户系统内部的分账单号在商户系统内部唯一同一分账单号多次请求等同一次。只能是数字、大小写字母_-|*@ </para>
/// <para>示例值P20150806125346</para>
/// </summary>
public string out_order_no { get; set; }
/// <summary>
/// 微信分账单号
/// <para>微信分账单号,微信系统返回的唯一标识</para>
/// <para>示例值3008450740201411110007820472</para>
/// </summary>
public string order_id { get; set; }
/// <summary>
/// 分账单状态
/// <para>分账单状态每个接收方的分账结果请查看receivers中的result字段枚举值 1、PROCESSING处理中 2、FINISHED分账完成 </para>
/// <para>示例值FINISHED</para>
/// </summary>
public string state { get; set; }
/// <summary>
/// 分账接收方列表
/// <para>分账接收方列表</para>
/// <para>可为null</para>
/// </summary>
public Receivers[] receivers { get; set; }
#region 子数据类型
public class Receivers
{
/// <summary>
/// 含参构造函数
/// </summary>
/// <param name="amount">分账金额 <para>分账金额,单位为分,只能为整数,不能超过原订单支付金额及最大分账比例金额</para><para>示例值100</para></param>
/// <param name="description">分账描述 <para>分账的原因描述,分账账单中需要体现</para><para>示例值分给商户1900000110</para></param>
/// <param name="type">分账接收方类型 <para>1、MERCHANT_ID商户号2、PERSONAL_OPENID个人openid由父商户APPID转换得到</para><para>示例值MERCHANT_ID</para></param>
/// <param name="account">分账接收方账号 <para>1、分账接收方类型为MERCHANT_ID时分账接收方账号为商户号2、分账接收方类型为PERSONAL_OPENID时分账接收方账号为个人openid</para><para>示例值1900000109</para></param>
/// <param name="result">分账结果 <para>枚举值1、PENDING待分账2、SUCCESS分账成功3、CLOSED已关闭</para><para>示例值SUCCESS</para></param>
/// <param name="fail_reason">分账失败原因 <para>分账失败原因。包含以下枚举值1、ACCOUNT_ABNORMAL:分账接收账户异常2、NO_RELATION:分账关系已解除3、RECEIVER_HIGH_RISK:高风险接收方4、RECEIVER_REAL_NAME_NOT_VERIFIED:接收方未实名5、NO_AUTH:分账权限已解除</para><para>示例值ACCOUNT_ABNORMAL</para></param>
/// <param name="create_time">分账创建时间 <para>分账创建时间遵循rfc3339标准格式格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONEYYYY-MM-DD表示年月日T出现在字符串中表示time元素的开头HH:mm:ss.sss表示时分秒毫秒TIMEZONE表示时区+08:00表示东八区时间领先UTC8小时即北京时间。例如2015-05-20T13:29:35.120+08:00表示北京时间2015年5月20日13点29分35秒。</para><para>示例值2015-05-20T13:29:35.120+08:00</para></param>
/// <param name="finish_time">分账完成时间 <para>分账完成时间遵循rfc3339标准格式格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONEYYYY-MM-DD表示年月日T出现在字符串中表示time元素的开头HH:mm:ss.sss表示时分秒毫秒TIMEZONE表示时区+08:00表示东八区时间领先UTC8小时即北京时间。例如2015-05-20T13:29:35.120+08:00表示北京时间2015年5月20日13点29分35秒。</para><para>示例值2015-05-20T13:29:35.120+08:00</para></param>
/// <param name="detail_id">分账明细单号 <para>微信分账明细单号,每笔分账业务执行的明细单号,可与资金账单对账使用</para><para>示例值36011111111111111111111</para></param>
public Receivers(int amount, string description, string type, string account, string result, string fail_reason, string create_time, string finish_time, string detail_id)
{
this.amount = amount;
this.description = description;
this.type = type;
this.account = account;
this.result = result;
this.fail_reason = fail_reason;
this.create_time = create_time;
this.finish_time = finish_time;
this.detail_id = detail_id;
}
/// <summary>
/// 无参构造函数
/// </summary>
public Receivers()
{
}
/// <summary>
/// 分账金额
/// <para>分账金额,单位为分,只能为整数,不能超过原订单支付金额及最大分账比例金额</para>
/// <para>示例值100</para>
/// </summary>
public int amount { get; set; }
/// <summary>
/// 分账描述
/// <para>分账的原因描述,分账账单中需要体现</para>
/// <para>示例值分给商户1900000110</para>
/// </summary>
public string description { get; set; }
/// <summary>
/// 分账接收方类型
/// <para>1、MERCHANT_ID商户号 2、PERSONAL_OPENID个人openid由父商户APPID转换得到</para>
/// <para>示例值MERCHANT_ID</para>
/// </summary>
public string type { get; set; }
/// <summary>
/// 分账接收方账号
/// <para>1、分账接收方类型为MERCHANT_ID时分账接收方账号为商户号 2、分账接收方类型为PERSONAL_OPENID时分账接收方账号为个人openid</para>
/// <para>示例值1900000109</para>
/// </summary>
public string account { get; set; }
/// <summary>
/// 分账结果
/// <para>枚举值: 1、PENDING待分账 2、SUCCESS分账成功 3、CLOSED已关闭 </para>
/// <para>示例值SUCCESS</para>
/// </summary>
public string result { get; set; }
/// <summary>
/// 分账失败原因
/// <para>分账失败原因。包含以下枚举值: 1、ACCOUNT_ABNORMAL : 分账接收账户异常 2、NO_RELATION : 分账关系已解除 3、RECEIVER_HIGH_RISK : 高风险接收方 4、RECEIVER_REAL_NAME_NOT_VERIFIED : 接收方未实名 5、NO_AUTH : 分账权限已解除 </para>
/// <para>示例值ACCOUNT_ABNORMAL</para>
/// </summary>
public string fail_reason { get; set; }
/// <summary>
/// 分账创建时间
/// <para>分账创建时间遵循rfc3339标准格式格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONEYYYY-MM-DD表示年月日T出现在字符串中表示time元素的开头HH:mm:ss.sss表示时分秒毫秒TIMEZONE表示时区+08:00表示东八区时间领先UTC 8小时即北京时间。例如2015-05-20T13:29:35.120+08:00表示北京时间2015年5月20日 13点29分35秒。</para>
/// <para>示例值2015-05-20T13:29:35.120+08:00</para>
/// </summary>
public string create_time { get; set; }
/// <summary>
/// 分账完成时间
/// <para>分账完成时间遵循rfc3339标准格式格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONEYYYY-MM-DD表示年月日T出现在字符串中表示time元素的开头HH:mm:ss.sss表示时分秒毫秒TIMEZONE表示时区+08:00表示东八区时间领先UTC 8小时即北京时间。例如2015-05-20T13:29:35.120+08:00表示北京时间2015年5月20日 13点29分35秒。</para>
/// <para>示例值2015-05-20T13:29:35.120+08:00</para>
/// </summary>
public string finish_time { get; set; }
/// <summary>
/// 分账明细单号
/// <para>微信分账明细单号,每笔分账业务执行的明细单号,可与资金账单对账使用</para>
/// <para>示例值36011111111111111111111</para>
/// </summary>
public string detail_id { get; set; }
}
#endregion
}
}