123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- using FreeSql.DatabaseModel;using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Reflection;
- using System.Threading.Tasks;
- using Newtonsoft.Json;
- using FreeSql.DataAnnotations;
- namespace FuelServer.Core.Entity
- {
-
-
-
- [JsonObject(MemberSerialization.OptIn), Table(DisableSyncStructure = true)]
- public partial class transactions {
-
-
-
- [JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
- public long Id { get; set; }
-
-
-
- [JsonProperty]
- public Guid Buid { get; set; }
-
-
-
- [JsonProperty]
- public long MiniProgramID { get; set; }
-
-
-
- [JsonProperty]
- public long NozzleId { get; set; }
-
-
-
- [JsonProperty]
- public long ProductId { get; set; }
-
-
-
- [JsonProperty]
- public decimal? ActualPaymentAmount { get; set; }
-
-
-
- [JsonProperty, Column(DbType = "timestamp", InsertValueSql = "CURRENT_TIMESTAMP")]
- public DateTime? AuthorizationTime { get; set; }
- [JsonProperty, Column(StringLength = 100)]
- public string CreateBy { get; set; }
- [JsonProperty, Column(DbType = "timestamp", InsertValueSql = "CURRENT_TIMESTAMP")]
- public DateTime? CreateTime { get; set; }
-
-
-
- [JsonProperty, Column(DbType = "timestamp", InsertValueSql = "CURRENT_TIMESTAMP")]
- public DateTime? FuelItemTransactionEndTime { get; set; }
-
-
-
- [JsonProperty, Column(DbType = "tinyint(1)")]
- public sbyte? IsDeleted { get; set; } = 0;
-
-
-
- [JsonProperty]
- public transactionsORDERSTATUS OrderStatus { get; set; }
-
-
-
- [JsonProperty]
- public transactionsORDERTYPE OrderType { get; set; }
-
-
-
- [JsonProperty]
- public decimal? OriginalAmount { get; set; }
-
-
-
- [JsonProperty]
- public long? PaymentMethod { get; set; }
-
-
-
- [JsonProperty, Column(StringLength = 100, IsNullable = false)]
- public string ProductName { get; set; }
-
-
-
- [JsonProperty]
- public decimal Qty { get; set; }
-
-
-
- [JsonProperty]
- public decimal? OriginalQty { get; set; }
-
-
-
- [JsonProperty]
- public decimal? RefundAmount { get; set; }
-
-
-
- [JsonProperty, Column(StringLength = 50, IsNullable = false)]
- public string TransactionNumber { get; set; }
-
-
-
- [JsonProperty, Column(DbType = "timestamp", InsertValueSql = "CURRENT_TIMESTAMP")]
- public DateTime? TransactionTime { get; set; }
-
-
-
- [JsonProperty, Column(StringLength = 255, IsNullable = false)]
- public string secret { get; set; }
-
-
-
- [JsonProperty, Column(StringLength = 500, IsNullable = false)]
- public string RawResult { get; set; }
-
-
-
- [JsonProperty, Column(StringLength = 500, IsNullable = false)]
- public string ErrorDetail { get; set; }
-
-
-
- [JsonProperty, Column(StringLength = 20, IsNullable = false)]
- public string ResultCode { get; set; }
-
-
-
- public AuthorizationStatus authorizationStatus { get; set; }
-
-
-
- public decimal? Price { get; set; }
- }
- public enum AuthorizationStatus
- {
-
-
-
- Unauthorized,
-
-
-
- Authorized
- }
- public enum transactionsORDERSTATUS
- {
-
-
-
- Unpaid,
-
-
-
- Paid,
-
-
-
-
-
-
-
- FullyRefunded,
-
-
-
- PartiallyRefunded,
-
-
-
- CardPayment
- }
-
-
-
- public enum transactionsORDERTYPE
- {
-
-
-
- Prepayment,
-
-
-
- Postpayment
- }
- }
|