2021-12-10 03:04:48 +03:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using MapTo;
|
|
|
|
|
|
|
|
|
|
namespace BlueWest.Data
|
|
|
|
|
{
|
|
|
|
|
[MapFrom(typeof(FinanceTransaction))]
|
|
|
|
|
|
2022-08-04 03:59:04 +03:00
|
|
|
|
public partial class FinanceTransactionInsertDto
|
2021-12-10 03:04:48 +03:00
|
|
|
|
{
|
2022-08-01 00:09:39 +03:00
|
|
|
|
public string Currency { get; }
|
|
|
|
|
public double Amount { get; } // To Buy
|
|
|
|
|
public double Quantity { get; } // Bought
|
|
|
|
|
public double Fee { get; }
|
|
|
|
|
public TimeSpan UploadedDate { get; }
|
|
|
|
|
public TimeSpan TransactionDate { get; }
|
|
|
|
|
|
|
|
|
|
|
2021-12-10 03:04:48 +03:00
|
|
|
|
|
|
|
|
|
public FinanceTransactionInsertDto(
|
2022-08-01 00:09:39 +03:00
|
|
|
|
string currency,
|
2021-12-10 03:04:48 +03:00
|
|
|
|
double amount ,
|
|
|
|
|
double quantity,
|
|
|
|
|
double fee,
|
2022-08-01 00:09:39 +03:00
|
|
|
|
TimeSpan uploadedDate,
|
|
|
|
|
TimeSpan transactionDate)
|
2021-12-10 03:04:48 +03:00
|
|
|
|
{
|
2022-08-01 00:09:39 +03:00
|
|
|
|
Currency = currency;
|
2021-12-10 03:04:48 +03:00
|
|
|
|
Amount = amount;
|
|
|
|
|
Quantity = quantity;
|
|
|
|
|
Fee = fee;
|
2022-08-01 00:09:39 +03:00
|
|
|
|
UploadedDate = uploadedDate;
|
|
|
|
|
TransactionDate = transactionDate;
|
2021-12-10 03:04:48 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|