NewGaoKaoApi/PaymentSDK/AliPay/Domain/GeneralInvoiceItem.cs

91 lines
3.2 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>
/// GeneralInvoiceItem Data Structure.
/// </summary>
[Serializable]
public class GeneralInvoiceItem : AopObject
{
/// <summary>
/// 价税合计。(等于sumPrice和tax之和) 单位格式为2位小数精度2位小数
/// </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>
/// 单价不含税2到6位小数。格式为2位小数。 折扣行此参数不能传,非折扣行必传
/// </summary>
[XmlElement("price")]
public string Price { get; set; }
/// <summary>
/// 数量最多6位小数。 折扣行此参数不能传,非折扣行必传。存在则需>0
/// </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>
/// 总价 (不含税)格式为2位小数 单位精度2位小数
/// </summary>
[XmlElement("sum_price")]
public string SumPrice { get; set; }
/// <summary>
/// 税额格式为2位小数
/// </summary>
[XmlElement("tax")]
public string Tax { get; set; }
/// <summary>
/// 单价含税格式为2位小数。最大支持6位小数不足2位小数时需转化为2位小数格式。 折扣行此参数不能传非折扣行必传。当auto_preprocess=true 只能传一个不能同时传。当auto_preprocess=false, tax_price字段无用勿传。此时开票需要传price
/// </summary>
[XmlElement("tax_price")]
public string TaxPrice { get; set; }
/// <summary>
/// 税率。税率只能为0.00或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的情况才有值0=出口零税率1=免税2=不征收3=普通零税率
/// </summary>
[XmlElement("zero_rate_flag")]
public string ZeroRateFlag { get; set; }
}
}