Add checkout property to GatewayCharge api resource

This commit is contained in:
2025-03-28 13:31:48 +01:00
parent d2dd34c343
commit 06bc2ebcad
@@ -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.\
* \