-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix csv incompatibility with entities (#33)
* fix: add tracking-id header to transaction entity and add a migration for it * fix: we no longer need persian-date-converter * fix: change account and transaction
- Loading branch information
1 parent
346be34
commit 9deb06e
Showing
15 changed files
with
136 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
namespace Application.DTOs.Account; | ||
using CsvHelper.Configuration.Attributes; | ||
|
||
namespace Application.DTOs.Account; | ||
|
||
public class AccountCsvModel | ||
{ | ||
public long AccountID { get; set; } | ||
public long CardID { get; set; } | ||
public string IBAN { get; set; } = string.Empty; | ||
[Name("AccountId", "AccountID")] | ||
public long AccountId { get; set; } | ||
[Name("CardId", "CardID")] | ||
public long CardId { get; set; } | ||
[Name("Iban", "IBAN", "Sheba")] | ||
public string Iban { get; set; } = string.Empty; | ||
[Name("AccountType")] | ||
public string AccountType { get; set; } = string.Empty; | ||
[Name("BranchTelephone")] | ||
public string BranchTelephone { get; set; } = string.Empty; | ||
public string BranchAdress { get; set; } = string.Empty; | ||
[Name("BranchAddress", "BranchAdress")] | ||
public string BranchAddress { get; set; } = string.Empty; | ||
[Name("BranchName")] | ||
public string BranchName { get; set; } = string.Empty; | ||
[Name("OwnerName")] | ||
public string OwnerName { get; set; } = string.Empty; | ||
[Name("OwnerLastName", "OwnerFamilyName")] | ||
public string OwnerLastName { get; set; } = string.Empty; | ||
public long OwnerID { get; set; } | ||
[Name("OwnerId", "OwnerID")] | ||
public long OwnerId { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
src/Application/Services/SharedService/PersianDateConverter.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 8 additions & 5 deletions
13
...9152618_accounts-transactions.Designer.cs → ...333_update-transaction-entity.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.