using System; using System.Xml.Serialization; using System.Collections.Generic; namespace Aop.Api.Domain { /// /// ApInvoiceOrderRequest Data Structure. /// [Serializable] public class ApInvoiceOrderRequest : AopObject { /// /// (invoiceType !=07时,必填;修改操作必填)发票行信息,发票行数大于等于1,不能超过8 /// [XmlArray("ap_invoice_line_orders")] [XmlArrayItem("ap_invoice_line_order_request")] public List ApInvoiceLineOrders { get; set; } /// /// 发票附件名称 /// [XmlElement("attachment_name")] public string AttachmentName { get; set; } /// /// 发票附件key /// [XmlElement("attachment_oss_key")] public string AttachmentOssKey { get; set; } /// /// 业务类型,为空时默认 COMMISSION /// [XmlElement("biz_type")] public string BizType { get; set; } /// /// (invoiceType=01时,必填)购方公司地址 /// [XmlElement("buyer_address")] public string BuyerAddress { get; set; } /// /// (invoiceType=01时,必填)购方银行账号 /// [XmlElement("buyer_bank_account")] public string BuyerBankAccount { get; set; } /// /// (invoiceType=01时,必填)购方开户行名称 /// [XmlElement("buyer_bank_name")] public string BuyerBankName { get; set; } /// /// (invoiceType !=07时,必填)购方机构id /// [XmlElement("buyer_inst_id")] public string BuyerInstId { get; set; } /// /// (invoiceType !=07时,必填)购方发票抬头 /// [XmlElement("buyer_invoice_title")] public string BuyerInvoiceTitle { get; set; } /// /// (invoiceType=01时,必填)购方税号 /// [XmlElement("buyer_tax_no")] public string BuyerTaxNo { get; set; } /// /// (invoiceType=01时,必填)购方公司电话 /// [XmlElement("buyer_telephone")] public string BuyerTelephone { get; set; } /// /// 票面金额,不能为空或小于等于0 /// [XmlElement("invoice_amt")] public MultiCurrencyMoneyOpenApi InvoiceAmt { get; set; } /// /// (invoiceType != 07时,必填;修改操作必填)发票代码 /// [XmlElement("invoice_code")] public string InvoiceCode { get; set; } /// /// (invoiceType != 07时,必填;修改操作必填)开票日期 格式(yyyyMMdd) /// [XmlElement("invoice_date")] public string InvoiceDate { get; set; } /// /// (invoiceType != 07时,必填;修改操作必填)发票号码 /// [XmlElement("invoice_no")] public string InvoiceNo { get; set; } /// /// 发票备注 /// [XmlElement("invoice_note")] public string InvoiceNote { get; set; } /// /// (invoiceType != 07时,必填;修改操作必填)收票日期 格式(yyyyMMdd) /// [XmlElement("invoice_receive_date")] public string InvoiceReceiveDate { get; set; } /// /// (invoiceType !=07时,必填;修改操作必填)发票来源 01-手工输入 02-扫描录入 /// [XmlElement("invoice_source")] public string InvoiceSource { get; set; } /// /// 发票种类 {"01":"增值税专用发票","02":"增值税普通发票","03":"营业税发票","04":"国际形式发票","05":"其它发票","07":"虚拟发票(无法收票时使用)"} 批量新增发票时,发票类型必须一致 /// [XmlElement("invoice_type")] public string InvoiceType { get; set; } /// /// 备注 /// [XmlElement("memo")] public string Memo { get; set; } /// /// 是否红字 Y红字 N蓝字;发票必须为蓝字发票 /// [XmlElement("red")] public string Red { get; set; } /// /// (invoiceType=01时,必填)销方公司地址 /// [XmlElement("seller_address")] public string SellerAddress { get; set; } /// /// (invoiceType=01时,必填)销方银行账号 /// [XmlElement("seller_bank_account")] public string SellerBankAccount { get; set; } /// /// (invoiceType=01时,必填)销方开户行名称 /// [XmlElement("seller_bank_name")] public string SellerBankName { get; set; } /// /// (invoiceType != 07时,必填;修改操作必填)销方公司名称 /// [XmlElement("seller_company_name")] public string SellerCompanyName { get; set; } /// /// (invoiceType != 07时,必填;修改操作必填)销方角色id-主站为uid /// [XmlElement("seller_ip_role_id")] public string SellerIpRoleId { get; set; } /// /// 销方mid /// [XmlElement("seller_mid")] public string SellerMid { get; set; } /// /// (invoiceType=01时,必填)销方税号 /// [XmlElement("seller_tax_no")] public string SellerTaxNo { get; set; } /// /// invoiceType=01时,必填)销方公司电话 /// [XmlElement("seller_telephone")] public string SellerTelephone { get; set; } } }