From 1ac3c951215f5dbf0ff2e97ea0030a41c96e847f Mon Sep 17 00:00:00 2001 From: Vincent Date: Sat, 2 Dec 2023 11:09:05 +0100 Subject: [PATCH] Add Status and Metadata properties to CaptureResponse --- .../Models/Capture/Response/CaptureResponse.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Mollie.Api/Models/Capture/Response/CaptureResponse.cs b/src/Mollie.Api/Models/Capture/Response/CaptureResponse.cs index 66803494..89201e6b 100644 --- a/src/Mollie.Api/Models/Capture/Response/CaptureResponse.cs +++ b/src/Mollie.Api/Models/Capture/Response/CaptureResponse.cs @@ -25,6 +25,11 @@ public class CaptureResponse : IResponseObject { /// The amount captured. /// public Amount Amount { get; set; } + + /// + /// The capture’s status. + /// + public string Status { get; set; } /// /// 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. @@ -50,9 +55,15 @@ public class CaptureResponse : IResponseObject { /// The capture’s date and time of creation, in ISO 8601 format. /// public DateTime CreatedAt { get; set; } + + /// + /// The optional metadata you provided upon payment creation. Metadata can be used to link an order to a payment. + /// + [JsonConverter(typeof(RawJsonConverter))] + public string Metadata { get; set; } /// - /// 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. /// [JsonProperty("_links")] public CaptureResponseLinks Links { get; set; }