123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Fuel.Infrastructure.Payment.Models
- {
- public class ElectronicOrderModel
- {
- [Key]
- public int Id { get; set; }
- [Required]
- [MaxLength(192)]
- public string SiteId { get; set; }
-
-
- public Object Config { get; set; }
- public Object Certification { get; set; }
-
-
-
- public DateTime? CreationTime { get; set; }
-
-
-
- [Required]
- public string Channel { get; set; }
- [Required]
- public bool IsRefund { get; set; }
-
-
-
- public TradeStatus TradeStatus { get; set; }
-
-
-
-
- [Required]
- public decimal NetAmount { get; set; }
-
-
-
-
- public decimal GrossAmount { get; set; }
- public decimal TotalAmount { get; set; }
-
-
-
- [Required]
- [MaxLength(128)]
- public string BillNumber { get; set; }
-
-
-
- [MaxLength(32)]
- public string Title { get; set; }
-
-
-
- [Required]
- public string AuthCode { get; set; }
-
-
-
- [MaxLength(128)]
- public string OperatorId { get; set; }
-
-
-
- [MaxLength(128)]
- public string TerminalId { get; set; }
-
-
-
- public DateTime? ReceivedTime { get; set; }
-
-
-
-
-
- public Dictionary<string, object> Optional { get; set; } = new Dictionary<string, object>();
- [Required(ErrorMessage = "Need provide at least one FuelOrderDetail")]
- public List<FuelOrderDetailModel> FuelOrderDetails { get; set; }
-
-
-
- public List<ElectronicOrderProcessResultModel> ProcessResults { get; set; }
- public string ToSimpleLogString()
- {
- return "SiteId: " + this.SiteId + ", BillNumber: " + this.BillNumber;
- }
- }
- }
|