123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- namespace Dfs.WayneChina.PosModelMini
- {
- public class PosTrx
- {
- /// <summary>
- /// Unique id of the POS transaction.
- /// </summary>
- public Guid Id { get; set; }
- /// <summary>
- /// The line items of the POS transaction.
- /// </summary>
- public virtual List<PosTrxLineItem> Items { get; set; }
- /// <summary>
- /// The discounts of the POS transaction.
- /// </summary>
- public virtual List<PosTrxDiscount> Discounts { get; set; }
- /// <summary>
- /// The payments of the POS transaction.
- /// </summary>
- public virtual List<PosTrxMop> Payments { get; set; }
- /// <summary>
- /// Source of the POS transaction, indoor or outdoor.
- /// </summary>
- public PosTrxSource TransactionSource { get; set; }
- /// <summary>
- /// POS transaction type.
- /// </summary>
- public PosTrxType TransactionType { get; set; }
- /// <summary>
- /// notice, this value could be duplicated due to business requirment (used by rolling).
- /// </summary>
- [MaxLength(20)]
- public string ReceiptId { get; set; }
- /// <summary>
- /// notice, this value could be duplicated due to business requirment (used by rolling).
- /// </summary>
- public int ShiftId { get; set; }
- /// <summary>
- /// Gets or sets the time of the trx posted from POS, POS will set this value from its side.
- /// </summary>
- [Required]
- public DateTime TransactionInitTimeInPos { get; set; }
- /// <summary>
- /// Gets or sets the time of the trx posted from POS and received by server, server will set this value once received it.
- /// </summary>
- public DateTime TransactionArrivedAtServerTime { get; set; }
- /// <summary>
- /// amount that the customer finally needs to pay
- /// </summary>
- public decimal NetAmount { get; set; }
- /// <summary>
- /// total amount without discount deducted yet.
- /// </summary>
- public decimal GrossAmount { get; set; }
- /// <summary>
- /// Id of the currency used to pay the POS transaction.
- /// </summary>
- public Guid? CurrencyId { get; set; }
- /// <summary>
- /// Currency used to pay the transaction.
- /// </summary>
- public virtual Currency Currency { get; set; }
- /// <summary>
- /// POS Transaction status.
- /// </summary>
- public PosTrxStatus TransactionStatus { get; set; }
- /// <summary>
- /// Refund link.
- /// </summary>
- public Guid? RefundLink { get; set; }
- /// <summary>
- /// Id of the business unit this transaction is made.
- /// </summary>
- public Guid BusinessUnitId { get; set; }
- /// <summary>
- /// Gets or sets which BusinessUnit(typically a site) created this PosTrx.
- /// </summary>
- public virtual BusinessUnit CreatedFromSite { get; set; }
- /// <summary>
- /// Site device unique id.
- /// </summary>
- public Guid SiteDeviceId { get; set; }
- /// <summary>
- /// Gets or sets which SiteDevice created (by a operator operates on it) this PosTrx.
- /// </summary>
- public virtual SiteDevice CreatedFromSiteDevice { get; set; }
- /// <summary>
- /// Additional info regarding the current transaction.
- /// </summary>
- public string TrxComment { get; set; }
- }
- }
|