PaymentReplayInput.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Webkul\BagistoApi\Dto;
  3. use ApiPlatform\Metadata\ApiProperty;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. use Symfony\Component\Serializer\Annotation\SerializedName;
  6. /**
  7. * GraphQL input for paymentReplayCreate.
  8. *
  9. * Used to issue a fresh gateway order id for an order that is still
  10. * pending payment (the customer cancelled / abandoned the original
  11. * gateway flow but the Bagisto order is intact).
  12. */
  13. class PaymentReplayInput
  14. {
  15. #[Groups(['mutation'])]
  16. #[ApiProperty(description: 'Bagisto order id to replay payment for')]
  17. #[SerializedName('orderId')]
  18. public ?int $orderId = null;
  19. #[Groups(['mutation'])]
  20. #[ApiProperty(description: 'Optional override of payment success URL')]
  21. #[SerializedName('paymentSuccessUrl')]
  22. public ?string $paymentSuccessUrl = null;
  23. #[Groups(['mutation'])]
  24. #[ApiProperty(description: 'Optional override of payment failure URL')]
  25. #[SerializedName('paymentFailureUrl')]
  26. public ?string $paymentFailureUrl = null;
  27. #[Groups(['mutation'])]
  28. #[ApiProperty(description: 'Optional override of payment cancel URL')]
  29. #[SerializedName('paymentCancelUrl')]
  30. public ?string $paymentCancelUrl = null;
  31. }