Make GatewayCharge output as IRI strings on GatewayCheckout

This commit is contained in:
2024-10-23 12:51:21 +02:00
parent ffa74ca0f1
commit fee7bb852e
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ use Symfony\Component\Validator\Constraints as Assert;
/**
* A GatewayCharge represents a monetary payment that can be done by an issuer at checkout with the Gateway.
*/
#[API\Get()]
#[ORM\Entity(repositoryClass: GatewayChargeRepository::class)]
class GatewayCharge
{
+1
View File
@@ -60,6 +60,7 @@ class GatewayCheckout
*
* @var Collection<int, GatewayCharge>
*/
#[API\ApiProperty(readableLink: true)]
#[Assert\NotBlank()]
#[Assert\Count(min: 1)]
#[ORM\OneToMany(mappedBy: 'checkout', targetEntity: GatewayCharge::class, cascade: ['persist'])]