using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Dfs.WayneChina.HengshanFPos.FPosDbManager.Model
{
///
/// Represents an FPOS transaction, to be submitted to cloud.
///
public class FPosTransaction
{
///
/// Identity.
///
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
///
/// Indicates whether it's reserved for processing.
///
public bool Reserved { get; set; }
///
/// Pump id.
///
public int PumpId { get; set; }
///
/// Nozzle id.
///
public int NozzleId { get; set; }
///
/// FPos transaction sequence number.
///
public ushort FPosSqNo { get; set; }
///
/// FDC transaction sequence number.
///
public int FcSqNo { get; set; }
///
/// Token to change the status of the FDC transaction
///
public int ReleaseToken { get; set; }
///
/// The filling amount on pump.
///
public decimal FillingAmount { get; set; }
///
/// Card type of the transaction, customer or operator.
///
public int CardType { get; set; }
///
/// POS item id retreived from cloud service.
///
public Guid PosItemId { get; set; }
///
/// The actual payment amount, not necessarily the filling amount.
///
public decimal ActualPayAmount { get; set; }
///
/// Transaction id generated on cloud serivce.
///
public Guid CloudTrxId { get; set; }
///
/// Indicates whether the transaction is committed or not.
///
public bool Submitted { get; set; }
}
}