From 06bc2ebcad38d3d1777f7a655bcf6451c8a0cc6c Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Fri, 28 Mar 2025 13:31:48 +0100 Subject: [PATCH] Add checkout property to GatewayCharge api resource --- src/ApiResource/Gateway/ChargeApiResource.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ApiResource/Gateway/ChargeApiResource.php b/src/ApiResource/Gateway/ChargeApiResource.php index 9136e83..98c1d5a 100644 --- a/src/ApiResource/Gateway/ChargeApiResource.php +++ b/src/ApiResource/Gateway/ChargeApiResource.php @@ -21,14 +21,18 @@ use Symfony\Component\Validator\Constraints as Assert; provider: ApiResourceStateProvider::class )] #[API\Get()] -#[API\GetCollection( - security: "is_granted('IS_AUTHENTICATED_FULLY')" -)] +#[API\GetCollection(security: "is_granted('IS_AUTHENTICATED_FULLY')")] class ChargeApiResource { #[API\ApiProperty(writable: false, identifier: true)] public ?int $id = null; + /** + * The Checkout to which this Charge item belongs to. + */ + #[API\ApiProperty(writable: false)] + public CheckoutApiResource $checkout; + /** * How this item should be processed by the Gateway.\ * \