/*---------------------------------------------------------------- Copyright (C) 2019 Senparc 文件名:InvoiceData.cs 文件功能描述:电子票据post数据 创建标识:Senparc - 20180930 ----------------------------------------------------------------*/ using System.Collections.Generic; namespace Senparc.Weixin.MP.AdvancedAPIs { /// /// 获取授权页链接数据 /// public class GetBillAuthUrlData { /// /// 财政局id,需要找财政局提供 /// public string s_pappid { get; set; } /// /// 订单id /// public string order_id { get; set; } /// /// 订单金额,以分为单位 /// public int money { get; set; } /// /// 时间戳 /// public int timestamp { get; set; } /// /// 开票来源,web:公众号开票,app:app开票 /// public SourceType source { get; set; } /// /// 授权成功后跳转页面 /// public string redirect_url { get; set; } /// /// Api_ticket,参考获取api_ticket接口获取 /// public string ticket { get; set; } } /// /// 开票授权页字段 /// public class PayMchInfoData { /// /// 微信支付商户号 /// public string mchid { get; set; } /// /// 开票平台id,需要找开票平台提供 /// public string s_pappid { get; set; } } /// /// 用户授权数据 /// public class AuthFieldData { /// /// 授权页个人发票字段 /// public UserFiledData user_field { get; set; } /// /// 授权页单位发票字段 /// public BizField biz_field { get; set; } } /// /// 授权页个人发票字段 /// public class UserFiledData { /// /// 是否填写抬头,0为否,1为是 /// public int show_title { get; set; } /// /// 是否填写电话号码,0为否,1为是 /// public int show_phone { get; set; } /// /// 是否填写邮箱,0为否,1为是 /// public int show_email { get; set; } /// /// 自定义字段 /// public List custom_field { get; set; } } /// /// 授权页单位发票字段 /// public class BizField { /// /// 是否填写抬头,0为否,1为是 /// public int show_title { get; set; } /// /// 是否填写税号,0为否,1为是 /// public int show_tax_no { get; set; } /// /// 是否填写单位地址,0为否,1为是 /// public int show_addr { get; set; } /// /// 是否填写电话号码,0为否,1为是 /// public int show_phone { get; set; } /// /// 是否填写开户银行,0为否,1为是 /// public int show_bank_type { get; set; } /// /// 是否填写银行帐号,0为否,1为是 /// public int show_bank_no { get; set; } /// /// 自定义字段 /// public List custom_field { get; set; } } /// /// 自定义字段 /// public class CustomFieldItem { /// /// 自定义字段名称,最长5个字 /// public string key { get; set; } /// /// 自定义填写项用户填写的信息 /// public string value { get; set; } } /// /// 获取授权页链接数据 /// public class GetAuthUrlData { /// /// 开票平台在微信的标识号,商户需要找开票平台提供 /// public string s_pappid { get; set; } /// /// 订单id,在商户内单笔开票请求的唯一识别号 /// public string order_id { get; set; } /// /// 订单金额,以分为单位 /// public int money { get; set; } /// /// 时间戳 /// public int timestamp { get; set; } /// /// 开票来源,app:app开票,web:微信h5开票,wxa:小程序开发票,wap:普通网页开票 /// public SourceType source { get; set; } /// /// 授权成功后跳转页面 /// public string redirect_url { get; set; } /// /// /// public string ticket { get; set; } /// /// 授权类型 /// public AuthType type { get; set; } } }