/*----------------------------------------------------------------
Copyright (C) 2019 Senparc
文件名:MakeOutInvoiceData.cs
文件功能描述:统一开票post数据
创建标识:Senparc - 20180930
----------------------------------------------------------------*/
using System.Collections.Generic;
using Senparc.Weixin.MP.AdvancedAPIs.GroupMessage;
namespace Senparc.Weixin.MP.AdvancedAPIs
{
///
/// 统一开票接口-开具蓝票数据
///
public class MakeOutInvoiceData
{
///
/// 用户的openid 用户知道是谁在开票
///
public string wxopenid { get; set; }
///
/// 订单号,企业自己内部的订单号码
///
public string ddh { get; set; }
///
/// 发票请求流水号,唯一识别开票请求的流水号
///
public string fpqqlsh { get; set; }
///
/// 纳税人识别码
///
public string nsrsbh { get; set; }
///
/// 纳税人名称
///
public string nsrmc { get; set; }
///
/// 纳税人地址
///
public string nsrdz { get; set; }
///
/// 纳税人电话
///
public string nsrdh { get; set; }
///
/// 纳税人开户行
///
public string nsrbank { get; set; }
///
/// 纳税人银行账号
///
public string nsrbankid { get; set; }
///
/// 购货方名称
///
public string ghfmc { get; set; }
///
/// 购货方识别号
///
public string ghfnsrsbh { get; set; }
///
/// 购货方地址
///
public string ghfdz { get; set; }
///
/// 购货方电话
///
public string ghfdh { get; set; }
///
/// 购货方开户行
///
public string ghfbank { get; set; }
///
/// 购货方银行帐号
///
public string ghfbankid { get; set; }
///
/// 开票人
///
public string kpr { get; set; }
///
/// 收款人
///
public string skr { get; set; }
///
/// 复核人
///
public string fhr { get; set; }
///
/// 价税合计
///
public string jshj { get; set; }
///
/// 合计金额
///
public string hjse { get; set; }
///
/// 备注
///
public string bz { get; set; }
///
/// 行业类型 0 商业 1其它
///
public string hylx { get; set; }
///
/// 发票行项目数据
///
public List invoicedetail_list { get; set; }
}
///
/// 发票行项目数据
///
public class InvoiceDetailItem
{
///
/// 发票行性质 0 正常 1折扣 2 被折扣
///
public Fphxz fphxz { get; set; }
///
/// 19位税收分类编码
///
public string spbm { get; set; }
///
/// 项目名称
///
public string xmmc { get; set; }
///
/// 计量单位
///
public string dw { get; set; }
///
/// 规格型号
///
public string ggxh { get; set; }
///
/// 项目数量
///
public string xmsl { get; set; }
///
/// 项目单价
///
public string xmdj { get; set; }
///
/// 项目金额 不含税,单位元 两位小数
///
public string xmje { get; set; }
///
/// 税率 精确到两位小数 如0.01
///
public string sl { get; set; }
///
/// 税额 单位元 两位小数
///
public string se { get; set; }
}
///
/// 统一开票接口-发票冲红数据
///
public class ClearOutInvoiceData
{
///
/// 用户的openid 用户知道是谁在开票
///
public string wxopenid { get; set; }
///
/// 发票请求流水号,唯一识别开票请求的流水号
///
public string fpqqlsh { get; set; }
///
/// 纳税人识别码
///
public string nsrsbh { get; set; }
///
/// 纳税人名称
///
public string nsrmc { get; set; }
///
/// 原发票代码
///
public string yfpdm { get; set; }
///
/// 原发票号码
///
public string yfphm { get; set; }
}
///
/// 将发票抬头信息录入到用户微信中数据
///
public class GetUserTitleUrlData
{
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 int user_fill { get; set; }
public string out_title_id { get; set; }
}
}