/*----------------------------------------------------------------
Copyright (C) 2019 Senparc
文件名:InvoiceResultJson.cs
文件功能描述:电子票据返回结果
创建标识:Senparc - 20180930
----------------------------------------------------------------*/
using Senparc.Weixin.Entities;
using System.Collections.Generic;
namespace Senparc.Weixin.MP.AdvancedAPIs
{
///
/// 查询支付后开票信息返回结果
///
public class GetPayMchResultJson : WxJsonResult
{
///
/// 授权页字段
///
public PayMchInfoData paymch_info { get; set; }
}
///
/// 查询授权页字段信息返回结果
///
public class AuthFieldResultJson : WxJsonResult
{
///
/// 授权页字段
///
public AuthFieldData auth_field { get; set; }
}
///
/// 查询开票信息返回结果
///
public class AuthDataResultJson : WxJsonResult
{
///
/// 订单授权状态
///
public string invoice_status { get; set; }
///
/// 授权时间,为十位时间戳(utc+8)
///
public int auth_time { get; set; }
///
/// 用户授权信息结构体,仅在type=1时出现
///
public UserAuthInfo user_auth_info { get; set; }
}
///
/// 获取授权页链接返回结果
///
public class AuthUrlResultJson : WxJsonResult
{
///
/// 授权链接
///
public string auth_url { get; set; }
///
/// source为wxa时才有
///
public string appid { get; set; }
}
///
/// 获取授权页链接返回结果
///
public class GetBillAuthUrlResultJson : WxJsonResult
{
///
/// 授权链接
///
public string auth_url { get; set; }
///
/// 过期时间,单位为秒,授权链接会在一段时间之后过期
///
public int expire_time { get; set; }
}
///
/// 将发票抬头信息录入到用户微信中返回结果
///
public class GetUserTitleUrlResultJson : WxJsonResult
{
///
/// 添加抬头卡链接
///
public string url { get; set; }
}
///
/// 获取用户抬头(方式二):商户扫描用户的发票抬头二维码返回结果
///
public class ScanTitleResultJson : WxJsonResult
{
///
/// 抬头类型
///
public int title_type { get; set; }
public string title { get; set; }
public string phone { get; set; }
public string tax_no { get; set; }
public string addr { get; set; }
public string bank_type { get; set; }
public string bank_no { get; set; }
}
///
/// 用户授权信息结构体
///
public class UserAuthInfo
{
///
/// 个人类型发票的授权信息结构体
///
public UserFiledInfo user_field { get; set; }
///
/// 单位类型发票的授权信息结构体
///
public BizFieldInfo biz_field { get; set; }
}
///
/// 单位类型发票的授权信息结构体
///
public class BizFieldInfo
{
public string title { get; set; }
///
/// 单位联系电话
///
public string phone { get; set; }
///
/// 单位税号
///
public string tax_no { get; set; }
///
/// 单位注册地址
///
public string addr { get; set; }
///
/// 单位开户银行
///
public string bank_type { get; set; }
///
/// 单位开户银行账号
///
public string bank_no { get; set; }
///
/// 商户自定义信息结构体
///
public List custom_field { get; set; }
}
///
/// 个人类型发票的授权信息结构体
///
public class UserFiledInfo
{
///
/// 个人抬头
///
public string title { get; set; }
///
/// 个人联系电话
///
public string phone { get; set; }
///
/// 个人邮箱
///
public string email { get; set; }
///
/// 商户自定义信息结构体
///
public List custom_field { get; set; }
}
///
/// 查询已开发票返回信息
///
public class QueryInvoiceResultJson : WxJsonResult
{
///
/// 发票详情
///
public InvoiceDetail invoicedetail { get; set; }
}
///
/// 发票详情
///
public class InvoiceDetail
{
///
/// 发票请求流水号,唯一查询发票的流水号
///
public string fpqqlsh { get; set; }
///
/// 校验码,位于电子发票右上方,开票日期下
///
public string jym { get; set; }
///
/// 校验码
///
public string kprq { get; set; }
///
/// 发票代码
///
public string fpdm { get; set; }
///
/// 发票号码
///
public string fphm { get; set; }
///
/// 发票url
///
public string pdfurl { get; set; }
}
///
/// 查询商户联系方式返回信息
///
public class GetContactResultJson : WxJsonResult
{
///
/// 联系方式信息
///
public Contact contact { get; set; }
}
///
/// 联系方式信息
///
public class Contact
{
///
/// 联系电话
///
public string phone { get; set; }
///
/// 开票超时时间
///
public int time_out { get; set; }
}
}