using Edge.Core.Domain.FccOrderInfo;
using HengshanPaymentTerminal.MessageEntity.Incoming;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HengshanPaymentTerminal.Http.Request
{
public class HttpRequest
{
}
///
/// 发送油枪信息到云端数据对象
///
public class SendNozzleInfo : HttpRequest
{
///
/// 加油点
///
public int PumpId { get; set; }
///
/// 内部枪号
///
public int InternalGunNumber { get; set; }
///
/// 外部枪号
///
public int ExternalGunNumber { get; set; }
///
/// 油罐号
///
public int TankNumber { get; set; }
///
/// 油罐容量
///
public decimal TankCapacity { get; set; }
///
/// 油品名
///
public string ProductName { get; set; }
///
/// 油品吗
///
public int ProductCode { get; set; }
///
/// 油品单价
///
public decimal ProductPrice { get; set; }
///
/// 1:创建;2:修改;3:删除
///
public int type { get; set; }
}
///
/// fcc 发送订单给云端数据对象
///
public class CreateTransaction : HttpRequest
{
public CreateTransaction(FccOrderInfo fccOrderInfo,string auserID)
{
this.NozzleId = fccOrderInfo.NozzleNum;
this.OriginalAmount = fccOrderInfo.Amount;
this.ActualPaymentAmount = fccOrderInfo.AmountPayable;
this.Qty = fccOrderInfo.Volume;
this.FuelItemTransactionEndTime = fccOrderInfo.EndTime ?? DateTime.Now;
this.TransactionTime = fccOrderInfo.PaymentTime;
this.Product = fccOrderInfo.OilName;
if(fccOrderInfo.CloundOrderId == null)
{
this.type = 2;
} else
{
this.type = 1;
}
this.userid = auserID;
}
///
/// 油枪号
///
public int NozzleId { get; set; }
///
/// 实际加油金额
///
public decimal OriginalAmount { get; set; }
///
/// 实际支付金额
///
public decimal? ActualPaymentAmount { get; set; }
///
/// 升数
///
public decimal Qty { get; set; }
///
/// 挂枪时间
///
public DateTime FuelItemTransactionEndTime { get; set; }
///
/// 交易时间
///
public DateTime? TransactionTime { get; set; }
///
/// 油品名
///
public string Product { get; set; }
///
/// 1:预支付;2:后支付
///
public int type { get; set; }
///
/// 用户id,预支付时候传入
///
public string? userid { get; set; }
}
///
/// 发送云端油枪状态数据对象
///
public class SendNozzleStatu : HttpRequest
{
public SendNozzleStatu(HeartBeatNozzleState heartBeatNozzleState)
{
this.NozzleId = heartBeatNozzleState.NozzleNum;
this.Status = heartBeatNozzleState.STATU == 0x03 ? 1 : 2;
}
///
/// 油枪号
///
public int NozzleId { get; set; }
///
/// 状态:1:空闲;2:非空闲
///
public int Status { get; set; }
}
}