-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '4.0.0.0' of https://github.com/Viincenttt/MollieApi int…
…o 4.0.0.0
- Loading branch information
Showing
16 changed files
with
97 additions
and
142 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
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
48 changes: 0 additions & 48 deletions
48
src/Mollie.Api/Models/Balance/Response/BalanceTransaction/BalanceTransaction.cs
This file was deleted.
Oops, something went wrong.
49 changes: 34 additions & 15 deletions
49
src/Mollie.Api/Models/Balance/Response/BalanceTransaction/BalanceTransactionResponse.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,29 +1,48 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace Mollie.Api.Models.Balance.Response.BalanceTransaction { | ||
public class BalanceTransactionResponse { | ||
/// <summary> | ||
/// The number of transactions found in _embedded, which is either the requested number | ||
/// (with a maximum of 250) or the default number. | ||
/// Indicates the response contains a balance transaction object. Will always contain balance_transaction | ||
/// for this endpoint. | ||
/// </summary> | ||
public required int Count { get; set; } | ||
public required string Resource { get; set; } | ||
|
||
/// <summary> | ||
/// The object containing the queried data. | ||
/// The identifier uniquely referring to this balance transaction. Mollie assigns this identifier at | ||
/// transaction creation time. For example baltr_QM24QwzUWR4ev4Xfgyt29d. | ||
/// </summary> | ||
[JsonProperty("_embedded")] | ||
public required BalanceTransactionEmbeddedResponse Embedded { get; set; } | ||
public required string Id { get; set; } | ||
|
||
/// <summary> | ||
/// Links to help navigate through the lists of balance transactions. Every URL object will contain an href and a type field. | ||
/// The type of movement, for example payment or refund. See Mollie docs for a full list of values | ||
/// </summary> | ||
[JsonProperty("_links")] | ||
public required BalanceTransactionResponseLinks Links { get; set; } | ||
} | ||
public required string Type { get; set; } | ||
|
||
/// <summary> | ||
/// The final amount that was moved to or from the balance, e.g. {"currency":"EUR", "value":"100.00"}. | ||
/// If the transaction moves funds away from the balance, for example when it concerns a refund, the | ||
/// amount will be negative. | ||
/// </summary> | ||
public required Amount ResultAmount { get; set; } | ||
|
||
/// <summary> | ||
/// The amount that was to be moved to or from the balance, excluding deductions. If the transaction | ||
/// moves funds away from the balance, for example when it concerns a refund, the amount will be negative. | ||
/// </summary> | ||
public required Amount InitialAmount { get; set; } | ||
|
||
/// <summary> | ||
/// The total amount of deductions withheld from the movement. For example, if a €10,00 payment comes in | ||
/// with a €0,29 fee, the deductions amount will be {"currency":"EUR", "value":"-0.29"}. When moving funds | ||
/// to a balance, we always round the deduction to a ‘real’ amount. Any differences between these realtime | ||
/// rounded amounts and the final invoice will be compensated when the invoice is generated. | ||
/// </summary> | ||
public required Amount Deductions { get; set; } | ||
|
||
public class BalanceTransactionEmbeddedResponse { | ||
[JsonProperty("balance_transactions")] | ||
public required IEnumerable<BalanceTransaction> BalanceTransactions { get; set; } | ||
/// <summary> | ||
/// The date and time of the movement, in ISO 8601 format. | ||
/// </summary> | ||
public required DateTime CreatedAt { get; set; } | ||
} | ||
} |
25 changes: 0 additions & 25 deletions
25
src/Mollie.Api/Models/Balance/Response/BalanceTransaction/BalanceTransactionResponseLinks.cs
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ion/Specific/CaptureBalanceTransaction.cs → ...ific/CaptureBalanceTransactionResponse.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
2 changes: 1 addition & 1 deletion
2
.../Specific/ChargebackBalanceTransaction.cs → ...c/ChargebackBalanceTransactionResponse.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
2 changes: 1 addition & 1 deletion
2
...ion/Specific/InvoiceBalanceTransaction.cs → ...ific/InvoiceBalanceTransactionResponse.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
2 changes: 1 addition & 1 deletion
2
...ion/Specific/PaymentBalanceTransaction.cs → ...ific/PaymentBalanceTransactionResponse.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
2 changes: 1 addition & 1 deletion
2
...tion/Specific/RefundBalanceTransaction.cs → ...cific/RefundBalanceTransactionResponse.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
2 changes: 1 addition & 1 deletion
2
.../Specific/SettlementBalanceTransaction.cs → ...c/SettlementBalanceTransactionResponse.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
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.