Make GatewayCharge output as IRI strings on GatewayCheckout
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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'])]
|
||||
|
||||
Reference in New Issue
Block a user