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.

120 lines
6.4 KiB

2 years ago
#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
AddProfitsharingReceiverRequestData.cs
Senparc - 20210915
----------------------------------------------------------------*/
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_8.shtml </para>
/// </summary>
public class AddProfitsharingReceiverRequestData
{
/// <summary>
/// 含参构造函数
/// </summary>
/// <param name="appid">应用ID <para>body微信分配的公众账号ID</para><para>示例值wx8888888888888888</para></param>
/// <param name="type">分账接收方类型 <para>body枚举值MERCHANT_ID商户IDPERSONAL_OPENID个人openid由父商户APPID转换得到</para><para>示例值MERCHANT_ID</para></param>
/// <param name="account">分账接收方账号 <para>body类型是MERCHANT_ID时是商户号类型是PERSONAL_OPENID时是个人openid</para><para>示例值86693852</para></param>
/// <param name="name">分账个人接收方姓名 <para>body分账接收方类型是MERCHANT_ID时是商户全称必传当商户是小微商户或个体户时是开户人姓名分账接收方类型是PERSONAL_OPENID时是个人姓名选传传则校验1、此字段需要加密加密方法详见敏感信息加密说明2、使用微信支付平台证书中的公钥3、使用RSAES-OAEP算法进行加密4、将请求中HTTP头部的Wechatpay-Serial设置为证书序列号</para><para>示例值hu89ohu89ohu89o</para><para>可为null</para></param>
/// <param name="relation_type">与分账方的关系类型 <para>body子商户与接收方的关系。本字段值为枚举STORE门店STAFF员工STORE_OWNER店主PARTNER合作伙伴HEADQUARTER总部BRAND品牌方DISTRIBUTOR分销商USER用户SUPPLIER供应商CUSTOM自定义</para><para>示例值STORE</para></param>
/// <param name="custom_relation">自定义的分账关系 <para>body子商户与接收方具体的关系本字段最多10个字。当字段relation_type的值为CUSTOM时本字段必填;当字段relation_type的值不为CUSTOM时本字段无需填写。</para><para>示例值:代理商</para><para>可为null</para></param>
public AddProfitsharingReceiverRequestData(string appid, string type, string account, string name, string relation_type, string custom_relation)
{
this.appid = appid;
this.type = type;
this.account = account;
this.name = name;
this.relation_type = relation_type;
this.custom_relation = custom_relation;
}
/// <summary>
/// 无参构造函数
/// </summary>
public AddProfitsharingReceiverRequestData()
{
}
/// <summary>
/// 应用ID
/// <para>body微信分配的公众账号ID</para>
/// <para>示例值wx8888888888888888</para>
/// </summary>
public string appid { get; set; }
/// <summary>
/// 分账接收方类型
/// <para>body枚举值 MERCHANT_ID商户ID PERSONAL_OPENID个人openid由父商户APPID转换得到 </para>
/// <para>示例值MERCHANT_ID</para>
/// </summary>
public string type { get; set; }
/// <summary>
/// 分账接收方账号
/// <para>body类型是MERCHANT_ID时是商户号 类型是PERSONAL_OPENID时是个人openid</para>
/// <para>示例值86693852</para>
/// </summary>
public string account { get; set; }
/// <summary>
/// 分账个人接收方姓名
/// <para>body分账接收方类型是MERCHANT_ID时是商户全称必传当商户是小微商户或个体户时是开户人姓名 分账接收方类型是PERSONAL_OPENID时是个人姓名选传传则校验 1、此字段需要加密加密方法详见敏感信息加密说明 2、使用微信支付平台证书中的公钥 3、使用RSAES-OAEP算法进行加密 4、将请求中HTTP头部的Wechatpay-Serial设置为证书序列号</para>
/// <para>示例值hu89ohu89ohu89o</para>
/// <para>可为null</para>
/// </summary>
public string name { get; set; }
/// <summary>
/// 与分账方的关系类型
/// <para>body子商户与接收方的关系。 本字段值为枚举: STORE门店 STAFF员工 STORE_OWNER店主 PARTNER合作伙伴 HEADQUARTER总部 BRAND品牌方 DISTRIBUTOR分销商 USER用户 SUPPLIER 供应商 CUSTOM自定义 </para>
/// <para>示例值STORE</para>
/// </summary>
public string relation_type { get; set; }
/// <summary>
/// 自定义的分账关系
/// <para>body子商户与接收方具体的关系本字段最多10个字。 当字段relation_type的值为CUSTOM时本字段必填; 当字段relation_type的值不为CUSTOM时本字段无需填写。</para>
/// <para>示例值:代理商</para>
/// <para>可为null</para>
/// </summary>
public string custom_relation { get; set; }
}
}