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