182 lines
5.2 KiB
C#
182 lines
5.2 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using Newtonsoft.Json;
|
|||
|
|
|
|||
|
|
namespace Alipay.AopSdk.Core.Domain
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// InvoiceModelContent Data Structure.
|
|||
|
|
/// </summary>
|
|||
|
|
[Serializable]
|
|||
|
|
public class InvoiceModelContent : AopObject
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// key=value,每组键值对以回车分割
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("extend_fields")]
|
|||
|
|
public string ExtendFields { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 下载的发票文件类型 可选值: pdf(发票原文件) jpg(发票原文件缩略图)
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("file_download_type")]
|
|||
|
|
public string FileDownloadType { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 文件下载地址,当同步发票tax_type=PLAIN时,必传; 此处的链接请务必传入可下载PDF的链接
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("file_download_url")]
|
|||
|
|
public string FileDownloadUrl { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 发票金额,大于0且精确到小数点两位,以元为单位 需要传入税价合计金额
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("invoice_amount")]
|
|||
|
|
public string InvoiceAmount { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 发票代码,国税局生成的唯一值,不可为空串
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("invoice_code")]
|
|||
|
|
public string InvoiceCode { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 发票内容项
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("invoice_content")]
|
|||
|
|
|
|||
|
|
public List<InvoiceItemContent> InvoiceContent { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 发票日期,用户填写,目前精确到日
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("invoice_date")]
|
|||
|
|
public string InvoiceDate { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 发票防伪码
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("invoice_fake_code")]
|
|||
|
|
public string InvoiceFakeCode { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 原始发票PDF文件流
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("invoice_file_data")]
|
|||
|
|
public string InvoiceFileData { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 发票原始文件jpg文件地址
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("invoice_img_url")]
|
|||
|
|
public string InvoiceImgUrl { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 发票号码,国税局生成的唯一号码,不可为空串; 使用时请注意,invoice_no+invoice_code唯一,不能重复
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("invoice_no")]
|
|||
|
|
public string InvoiceNo { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 发票开具操作人
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("invoice_operator")]
|
|||
|
|
public string InvoiceOperator { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 发票title
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("invoice_title")]
|
|||
|
|
public InvoiceTitleModel InvoiceTitle { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 发票类型,按照可选值只传入英文部分,该字段严格要求大小写 可选值: blue(蓝票) red(红票)
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("invoice_type")]
|
|||
|
|
public string InvoiceType { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 仅用于同步红票,原始蓝票发票代码,同步红票时必传
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("original_blue_invoice_code")]
|
|||
|
|
public string OriginalBlueInvoiceCode { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 仅用于同步红票,原始蓝票发票号码,同步红票时必传
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("original_blue_invoice_no")]
|
|||
|
|
public string OriginalBlueInvoiceNo { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 商户交易流水号,不可为空串; 传入红票时请注意,此字段的值要和蓝票保持一致
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("out_biz_no")]
|
|||
|
|
public string OutBizNo { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 商户唯一开票申请业务流水号,同一个isv下不能重复
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("out_invoice_id")]
|
|||
|
|
public string OutInvoiceId { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 开票单位地址
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("register_address")]
|
|||
|
|
public string RegisterAddress { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 开票单位开户行账号
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("register_bank_account")]
|
|||
|
|
public string RegisterBankAccount { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 开票单位开户行名称
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("register_bank_name")]
|
|||
|
|
public string RegisterBankName { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 开票单位
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("register_name")]
|
|||
|
|
public string RegisterName { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 纳税人识别号,不可为空串
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("register_no")]
|
|||
|
|
public string RegisterNo { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 开票人电话,支持座机和手机两种格式
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("register_phone_no")]
|
|||
|
|
public string RegisterPhoneNo { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 价税合计
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("sum_amount")]
|
|||
|
|
public string SumAmount { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 税额
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("tax_amount")]
|
|||
|
|
public string TaxAmount { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 税种 可选值: PLAIN(普票的情况) SPECIAL(专票的情况)
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("tax_type")]
|
|||
|
|
public string TaxType { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 支付宝用户id,当同步的是蓝票时,必传。红票时不需传。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("user_id")]
|
|||
|
|
public string UserId { get; set; }
|
|||
|
|
}
|
|||
|
|
}
|