-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace init with set in all models (#363)
* Use { get; set; } everywhere instead of { get; init; } so we can continue to support lower C# language versions
- Loading branch information
1 parent
3cf73a8
commit d7800b6
Showing
130 changed files
with
567 additions
and
568 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
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
6 changes: 3 additions & 3 deletions
6
src/Mollie.Api/Models/Balance/Response/BalanceReport/BalanceReportAmount.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
namespace Mollie.Api.Models.Balance.Response.BalanceReport { | ||
public record BalanceReportAmount { | ||
public required Amount Amount { get; init; } | ||
public required Amount Amount { get; set; } | ||
|
||
public override string ToString() { | ||
return Amount.ToString(); | ||
} | ||
} | ||
} | ||
} |
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
10 changes: 5 additions & 5 deletions
10
...ls/Balance/Response/BalanceReport/Specific/StatusBalance/StatusBalanceAvailableBalance.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
namespace Mollie.Api.Models.Balance.Response.BalanceReport.Specific.StatusBalance { | ||
public record StatusBalanceAvailableBalance { | ||
public required BalanceReportAmount Open { get; init; } | ||
public required BalanceReportAmount Close { get; init; } | ||
public required BalanceReportAmountWithSubtotals MovedFromPending { get; init; } | ||
public required BalanceReportAmountWithSubtotals ImmediatelyAvailable { get; init; } | ||
public required BalanceReportAmount Open { get; set; } | ||
public required BalanceReportAmount Close { get; set; } | ||
public required BalanceReportAmountWithSubtotals MovedFromPending { get; set; } | ||
public required BalanceReportAmountWithSubtotals ImmediatelyAvailable { get; set; } | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...dels/Balance/Response/BalanceReport/Specific/StatusBalance/StatusBalanceReportResponse.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
namespace Mollie.Api.Models.Balance.Response.BalanceReport.Specific.StatusBalance { | ||
public record StatusBalanceReportResponse : BalanceReportResponse { | ||
public required StatusBalancesTotal Totals { get; init; } | ||
public required StatusBalancesTotal Totals { get; set; } | ||
} | ||
} | ||
} |
10 changes: 5 additions & 5 deletions
10
...els/Balance/Response/BalanceReport/Specific/StatusBalance/StatusBalancesPendingBalance.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
namespace Mollie.Api.Models.Balance.Response.BalanceReport.Specific.StatusBalance { | ||
public record StatusBalancesPendingBalance { | ||
public required BalanceReportAmount Open { get; init; } | ||
public required BalanceReportAmount Close { get; init; } | ||
public required BalanceReportAmountWithSubtotals Pending { get; init; } | ||
public required BalanceReportAmountWithSubtotals MovedToAvailable { get; init; } | ||
public required BalanceReportAmount Open { get; set; } | ||
public required BalanceReportAmount Close { get; set; } | ||
public required BalanceReportAmountWithSubtotals Pending { get; set; } | ||
public required BalanceReportAmountWithSubtotals MovedToAvailable { get; set; } | ||
} | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...e.Api/Models/Balance/Response/BalanceReport/Specific/StatusBalance/StatusBalancesTotal.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace Mollie.Api.Models.Balance.Response.BalanceReport.Specific.StatusBalance { | ||
public record StatusBalancesTotal { | ||
public required StatusBalancesPendingBalance PendingBalance { get; init; } | ||
public required StatusBalanceAvailableBalance AvailableBalance { get; init; } | ||
public required StatusBalancesPendingBalance PendingBalance { get; set; } | ||
public required StatusBalanceAvailableBalance AvailableBalance { get; set; } | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...ponse/BalanceReport/Specific/TransactionCategories/TransactionCategoriesReportResponse.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
namespace Mollie.Api.Models.Balance.Response.BalanceReport.Specific.TransactionCategories { | ||
public record TransactionCategoriesReportResponse : BalanceReportResponse { | ||
public required TransactionCategoriesTotal Totals { get; init; } | ||
public required TransactionCategoriesTotal Totals { get; set; } | ||
} | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...onse/BalanceReport/Specific/TransactionCategories/TransactionCategoriesSummaryBalances.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace Mollie.Api.Models.Balance.Response.BalanceReport.Specific.TransactionCategories { | ||
public record TransactionCategoriesSummaryBalances { | ||
public required BalanceReportAmount Pending { get; init; } | ||
public required BalanceReportAmount Available { get; init; } | ||
public required BalanceReportAmount Pending { get; set; } | ||
public required BalanceReportAmount Available { 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
8 changes: 4 additions & 4 deletions
8
...Response/BalanceReport/Specific/TransactionCategories/TransactionCategoriesTransaction.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
namespace Mollie.Api.Models.Balance.Response.BalanceReport.Specific.TransactionCategories { | ||
public record TransactionCategoriesTransaction { | ||
public required BalanceReportAmountWithSubtotals Pending { get; init; } | ||
public required BalanceReportAmountWithSubtotals MovedToAvailable { get; init; } | ||
public required BalanceReportAmountWithSubtotals ImmediatelyAvailable { get; init; } | ||
public required BalanceReportAmountWithSubtotals Pending { get; set; } | ||
public required BalanceReportAmountWithSubtotals MovedToAvailable { get; set; } | ||
public required BalanceReportAmountWithSubtotals ImmediatelyAvailable { 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
Oops, something went wrong.