NewGaoKaoApi/PaymentSDK/AliPay/Domain/AntInvoiceItem.cs

85 lines
2.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Xml.Serialization;
namespace Aop.Api.Domain
{
/// <summary>
/// AntInvoiceItem Data Structure.
/// </summary>
[Serializable]
public class AntInvoiceItem : AopObject
{
/// <summary>
/// 价税合计。(等于sumPrice和tax之和)
/// </summary>
[XmlElement("amount")]
public string Amount { get; set; }
/// <summary>
/// 发票项目名称(或商品名称)
/// </summary>
[XmlElement("item_name")]
public string ItemName { get; set; }
/// <summary>
/// 税收分类编码
/// </summary>
[XmlElement("item_no")]
public string ItemNo { get; set; }
/// <summary>
/// 单价格式100.00(不含税)
/// </summary>
[XmlElement("price")]
public string Price { get; set; }
/// <summary>
/// 数量
/// </summary>
[XmlElement("quantity")]
public string Quantity { get; set; }
/// <summary>
/// 发票行性质。0表示正常行1表示折扣行2表示被折扣行。 比如充电器单价100元折扣10元则明细为2行充电器行性质为2折扣行性质为1。如果充电器没有折扣则值应为0。
/// </summary>
[XmlElement("row_type")]
public string RowType { get; set; }
/// <summary>
/// 规格型号,可选
/// </summary>
[XmlElement("specification")]
public string Specification { get; set; }
/// <summary>
/// 总价格式100.00(不含税)
/// </summary>
[XmlElement("sum_price")]
public string SumPrice { get; set; }
/// <summary>
/// 税额格式100.00
/// </summary>
[XmlElement("tax")]
public string Tax { get; set; }
/// <summary>
/// 税率。税率只能为0或0.03或0.04或0.06或0.11或0.13或0.17
/// </summary>
[XmlElement("tax_rate")]
public string TaxRate { get; set; }
/// <summary>
/// 单位
/// </summary>
[XmlElement("unit")]
public string Unit { get; set; }
/// <summary>
/// 0税率标识0=出口零税率1=免税2=不征收3=普通零税率
/// </summary>
[XmlElement("zero_rate_flag")]
public string ZeroRateFlag { get; set; }
}
}