-
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.
Merge pull request #327 from nofrixion/feature/MOOV-3134-statement-re…
…factor MOOV-3134: Added transaction statement models
- Loading branch information
Showing
5 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/NoFrixion.MoneyMoov/Enums/StatementGenerationStatusEnum.cs
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// ----------------------------------------------------------------------------- | ||
// Filename: StatementGenerationStatusEnum.cs | ||
// | ||
// Description: Enum for the status of a transaction statement generation. | ||
// | ||
// Author(s): | ||
// Axel Granillo ([email protected]) | ||
// | ||
// History: | ||
// 09 05 2024 Axel Granillo Created, Remote, Mexico City, Mexico. | ||
// | ||
// License: | ||
// Proprietary NoFrixion. | ||
// ----------------------------------------------------------------------------- | ||
|
||
namespace NoFrixion.MoneyMoov.Enums; | ||
|
||
public enum StatementGenerationStatusEnum | ||
{ | ||
Unknown, | ||
Generating, | ||
Ready | ||
} |
22 changes: 22 additions & 0 deletions
22
src/NoFrixion.MoneyMoov/Enums/TransactionStatementFormat.cs
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// ----------------------------------------------------------------------------- | ||
// Filename: TransactionStatementFormat.cs | ||
// | ||
// Description: Enum for the format of a transaction statement. | ||
// | ||
// Author(s): | ||
// Axel Granillo ([email protected]) | ||
// | ||
// History: | ||
// 03 05 2024 Axel Granillo Created, Mexico City, Mexico. | ||
// | ||
// License: | ||
// Proprietary NoFrixion. | ||
// ----------------------------------------------------------------------------- | ||
|
||
namespace NoFrixion.MoneyMoov.Enums; | ||
|
||
public enum TransactionStatementFormat | ||
{ | ||
Pdf, | ||
Csv | ||
} |
44 changes: 44 additions & 0 deletions
44
src/NoFrixion.MoneyMoov/Models/Statement/GenerateStatementRequest.cs
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// ----------------------------------------------------------------------------- | ||
// Filename: GenerateStatementRequest.cs | ||
// | ||
// Description: Model for generating a transaction statement. | ||
// | ||
// Author(s): | ||
// Axel Granillo ([email protected]) | ||
// | ||
// History: | ||
// 03 05 2024 Axel Granillo Created, Mexico City, Mexico. | ||
// | ||
// License: | ||
// MIT. | ||
// ----------------------------------------------------------------------------- | ||
|
||
using NoFrixion.MoneyMoov.Enums; | ||
|
||
namespace NoFrixion.MoneyMoov.Models; | ||
|
||
/// <summary> | ||
/// Model for generating a transaction statement. | ||
/// </summary> | ||
public class GenerateStatementRequest | ||
{ | ||
/// <summary> | ||
/// ID of the account. | ||
/// </summary> | ||
public Guid AccountID { get; set; } | ||
|
||
/// <summary> | ||
/// Minimum transaction date for the statement. | ||
/// </summary> | ||
public DateTimeOffset FromDate { get; set; } | ||
|
||
/// <summary> | ||
/// Maximum transaction date for the statement. | ||
/// </summary> | ||
public DateTimeOffset ToDate { get; set; } | ||
|
||
/// <summary> | ||
/// File format to save the statement as. Defaults to PDF. | ||
/// </summary> | ||
public TransactionStatementFormat Format { get; set; } = TransactionStatementFormat.Pdf; | ||
} |
25 changes: 25 additions & 0 deletions
25
src/NoFrixion.MoneyMoov/Models/Statement/GenerateStatementResponse.cs
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// ----------------------------------------------------------------------------- | ||
// Filename: GenerateStatementResponse.cs | ||
// | ||
// Description: Response model when generating a transaction statement. | ||
// | ||
// Author(s): | ||
// Axel Granillo ([email protected]) | ||
// | ||
// History: | ||
// 03 05 2024 Axel Granillo Created, Mexico City, Mexico. | ||
// | ||
// License: | ||
// Proprietary NoFrixion. | ||
// ----------------------------------------------------------------------------- | ||
|
||
using NoFrixion.MoneyMoov.Enums; | ||
|
||
namespace NoFrixion.MoneyMoov.Models; | ||
|
||
public class GenerateStatementResponse | ||
{ | ||
public Guid ID { get; set; } | ||
public StatementGenerationStatusEnum Status { get; set; } = StatementGenerationStatusEnum.Unknown; | ||
public string StatementUrl { 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