Skip to content

Commit

Permalink
Add Status and Metadata properties to CaptureResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
Viincenttt committed Dec 2, 2023
1 parent 0fd5700 commit 1ac3c95
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Mollie.Api/Models/Capture/Response/CaptureResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public class CaptureResponse : IResponseObject {
/// The amount captured.
/// </summary>
public Amount Amount { get; set; }

/// <summary>
/// The capture’s status.
/// </summary>
public string Status { get; set; }

/// <summary>
/// This optional field will contain the amount that will be settled to your account, converted to the currency your account is settled in. It follows the same syntax as the amount property.
Expand All @@ -50,9 +55,15 @@ public class CaptureResponse : IResponseObject {
/// The capture’s date and time of creation, in ISO 8601 format.
/// </summary>
public DateTime CreatedAt { get; set; }

/// <summary>
/// The optional metadata you provided upon payment creation. Metadata can be used to link an order to a payment.
/// </summary>
[JsonConverter(typeof(RawJsonConverter))]
public string Metadata { get; set; }

/// <summary>
/// An object with several URL objects relevant to the order. Every URL object will contain an href and a type field.
/// The optional metadata you provided upon capture creation. Metadata can for example be used to link an bookkeeping ID to a capture.
/// </summary>
[JsonProperty("_links")]
public CaptureResponseLinks Links { get; set; }
Expand Down

0 comments on commit 1ac3c95

Please sign in to comment.