/*----------------------------------------------------------------
Copyright (C) 2019 Senparc
文件名:InvoicePlatformResultJson.cs
文件功能描述:开票平台返回结果
创建标识:Senparc - 20180930
修改标识:Senparc - 20181030
修改描述:更新User_Info
----------------------------------------------------------------*/
using Senparc.Weixin.Entities;
using System.Collections.Generic;
namespace Senparc.Weixin.MP.AdvancedAPIs
{
///
/// 获取自身的开票平台识别码返回信息
///
public class SetUrlResultJson : WxJsonResult
{
///
/// 该开票平台专用的授权链接
///
public string invoice_url { get; set; }
}
///
/// 创建发票卡券模板返回信息
///
public class CreateCardResultJson : WxJsonResult
{
///
/// 当错误码为 0 时,返回发票卡券模板的编号,用于后续该商户发票生成后,作为必填参数在调用插卡接口时传入
///
public string card_id { get; set; }
}
///
/// 上传PDF返回信息
///
public class SetPDFResultJson : WxJsonResult
{
///
/// 64位整数,在 将发票卡券插入用户卡包 时使用用于关联pdf和发票卡券,s_media_id有效期有3天,3天内若未将s_media_id关联到发票卡券,pdf将自动销毁
///
public string s_media_id { get; set; }
}
///
/// 查询已上传的PDF文件返回信息
///
public class GetPDFResultJson : WxJsonResult
{
///
/// pdf 的 url ,两个小时有效期
///
public string pdf_url { get; set; }
///
/// pdf_url 过期时间, 7200 秒
///
public int pdf_url_expire_time { get; set; }
}
///
/// 将电子发票卡券插入用户卡包返回信息
///
public class InsertCardResultJson : WxJsonResult
{
///
/// 发票code
///
public string code { get; set; }
///
/// 获得发票用户的openid
///
public string openid { get; set; }
///
/// 只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段
///
public string unionid { get; set; }
}
///
/// 查询报销发票信息返回信息
///
public class GetInvoiceInfoResultJson : WxJsonResult
{
///
/// 发票 id
///
public string card_id { get; set; }
///
/// 发票的有效期起始时间
///
public int begin_time { get; set; }
///
/// 发票的有效期截止时间
///
public int end_time { get; set; }
///
/// 用户标识
///
public string openid { get; set; }
///
/// 发票的类型
///
public string type { get; set; }
///
/// 发票的收款方
///
public string payee { get; set; }
///
/// 发票详情
///
public string detail { get; set; }
///
/// 用户可在发票票面看到的主要信息
///
public User_Info user_info { get; set; }
}
///
/// 批量查询报销发票信息返回信息
///
public class GetInvoiceListResultJson : WxJsonResult
{
///
/// 发票信息列表
///
public List item_list { get; set; }
}
///
/// 发票信息
///
public class InvoiceItemInfo
{
///
/// 发票 id
///
public string card_id { get; set; }
///
/// 发票的有效期起始时间
///
public int begin_time { get; set; }
///
/// 发票的有效期截止时间
///
public int end_time { get; set; }
///
/// 用户标识
///
public string openid { get; set; }
///
/// 发票的类型
///
public string type { get; set; }
///
/// 发票的收款方
///
public string payee { get; set; }
///
/// 发票详情
///
public string detail { get; set; }
///
/// 用户可在发票票面看到的主要信息
///
public User_Info user_info { get; set; }
}
public class User_Info
{
public int fee { get; set; }
public string title { get; set; }
public int billing_time { get; set; }
public string billing_no { get; set; }
public string billing_code { get; set; }
public Info[] info { get; set; }
public bool accept { get; set; }
public int fee_without_tax { get; set; }
public int tax { get; set; }
public string pdf_url { get; set; }
public string trip_pdf_url { get; set; }
public Reimburse_Status reimburse_status { get; set; }
public string check_code { get; set; }
public string buyer_number { get; set; }
///
/// 购买方地址、电话
///
public string buyer_address_and_phone { get; set; }
///
/// 购买方开户行及账号
///
public string buyer_bank_account { get; set; }
///
/// 销售方纳税人识别号
///
public string seller_number { get; set; }
///
/// 销售方地址、电话
///
public string seller_address_and_phone { get; set; }
///
/// 销售方开户行及账号
///
public string seller_bank_account { get; set; }
///
/// 备注,发票右下角处
///
public string remarks { get; set; }
///
/// 收款人,发票左下角处
///
public string cashier { get; set; }
///
/// 开票人,发票下方处
///
public string maker { get; set; }
}
public class Info
{
public string name { get; set; }
public int num { get; set; }
public string unit { get; set; }
public int price { get; set; }
}
}