Closed pepeh closed 7 months ago
Hi @sandervanhooft could you have a look into this?
Thanks for opening this ticket @pepeh !
I'll add the fields. Note that it will only help the IDE experience (autocomplete/hints) as Mollie's json response fields are assigned dynamically here.
Specifications
Describe the issue
Upon integrating the Mollie API SDK for PHP, I noticed that there are discrepancies between the JSON response documented for captures and the
Capture
class in the PHP SDK. Specifically, there are fields present in the JSON response that are not available or represented in theCapture
class, potentially leading to incomplete data handling or missing functionality for developers utilizing the SDK.Identified Missing Fields
status
: The JSON documentation includes astatus
field indicating the status of the capture (e.g., "succeeded"), but this field is not present in theCapture
PHP class. This field is crucial for understanding the state of a capture.metadata
: The JSON example includes ametadata
field that allows for the storage of additional information associated with the capture.