PaymentMethodOutput.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace Webkul\BagistoApi\Dto;
  3. use ApiPlatform\Metadata\ApiProperty;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. /**
  6. * PaymentMethodOutput - GraphQL Output DTO for Payment Methods
  7. *
  8. * Output for retrieving available payment methods during checkout
  9. */
  10. class PaymentMethodOutput
  11. {
  12. #[Groups(['query'])]
  13. #[ApiProperty(identifier: true, readable: true, writable: false)]
  14. public ?string $id = null;
  15. #[Groups(['query'])]
  16. #[ApiProperty(readable: true, writable: false)]
  17. public ?string $method = null;
  18. #[Groups(['query'])]
  19. #[ApiProperty(readable: true, writable: false)]
  20. public ?string $title = null;
  21. #[Groups(['query'])]
  22. #[ApiProperty(readable: true, writable: false)]
  23. public ?string $description = null;
  24. #[Groups(['query'])]
  25. #[ApiProperty(readable: true, writable: false)]
  26. public ?string $icon = null;
  27. #[Groups(['query'])]
  28. #[ApiProperty(readable: true, writable: false)]
  29. public ?array $additionalData = null;
  30. #[Groups(['query'])]
  31. #[ApiProperty(readable: true, writable: false)]
  32. public ?bool $isAllowed = null;
  33. }