From 6d625f0de2475fc676c31cb8e204c4f05d2b4240 Mon Sep 17 00:00:00 2001 From: cmorenov1402 Date: Fri, 9 May 2025 09:22:10 +0200 Subject: [PATCH 1/2] Update project status --- src/Entity/Project/ProjectStatus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/Project/ProjectStatus.php b/src/Entity/Project/ProjectStatus.php index a2ca179..388fa95 100644 --- a/src/Entity/Project/ProjectStatus.php +++ b/src/Entity/Project/ProjectStatus.php @@ -15,7 +15,7 @@ enum ProjectStatus: string /** * Owner finished editing and Project is ready for review. */ - case InPending = 'in_pending'; + case ToReview = 'to_review'; /** * An admin is reviewing the Project. From cdb9b33feec6c172360e8c1dcc853c411e58c443 Mon Sep 17 00:00:00 2001 From: cmorenov1402 Date: Fri, 9 May 2025 09:37:08 +0200 Subject: [PATCH 2/2] Update checkout and charge status --- src/ApiResource/Gateway/ChargeApiResource.php | 2 +- src/ApiResource/Gateway/CheckoutApiResource.php | 2 +- src/Benzina/CheckoutsPump.php | 2 +- src/Entity/Gateway/Charge.php | 2 +- src/Entity/Gateway/Checkout.php | 2 +- src/Gateway/ChargeStatus.php | 2 +- src/Gateway/CheckoutStatus.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ApiResource/Gateway/ChargeApiResource.php b/src/ApiResource/Gateway/ChargeApiResource.php index 7ecb0c2..fc3f331 100644 --- a/src/ApiResource/Gateway/ChargeApiResource.php +++ b/src/ApiResource/Gateway/ChargeApiResource.php @@ -85,5 +85,5 @@ class ChargeApiResource */ #[Assert\NotBlank()] #[API\ApiFilter(Filter\SearchFilter::class, strategy: 'exact')] - public ChargeStatus $status = ChargeStatus::Pending; + public ChargeStatus $status = ChargeStatus::InPending; } diff --git a/src/ApiResource/Gateway/CheckoutApiResource.php b/src/ApiResource/Gateway/CheckoutApiResource.php index ca76b60..e02656d 100644 --- a/src/ApiResource/Gateway/CheckoutApiResource.php +++ b/src/ApiResource/Gateway/CheckoutApiResource.php @@ -88,7 +88,7 @@ class CheckoutApiResource * The status of this Checkout, as confirmed by the Gateway. */ #[API\ApiProperty(writable: false)] - public CheckoutStatus $status = CheckoutStatus::Pending; + public CheckoutStatus $status = CheckoutStatus::InPending; /** * A list of related hyperlinks, as provided by the Gateway. diff --git a/src/Benzina/CheckoutsPump.php b/src/Benzina/CheckoutsPump.php index a7cd1a2..010a92a 100644 --- a/src/Benzina/CheckoutsPump.php +++ b/src/Benzina/CheckoutsPump.php @@ -182,7 +182,7 @@ class CheckoutsPump implements PumpInterface private function getCheckoutStatus(array $record): CheckoutStatus { if ($record['status'] < 1) { - return CheckoutStatus::Pending; + return CheckoutStatus::InPending; } return CheckoutStatus::Charged; diff --git a/src/Entity/Gateway/Charge.php b/src/Entity/Gateway/Charge.php index 802396c..65b35bb 100644 --- a/src/Entity/Gateway/Charge.php +++ b/src/Entity/Gateway/Charge.php @@ -90,7 +90,7 @@ class Charge public function __construct() { $this->transactions = new ArrayCollection(); - $this->status = ChargeStatus::Pending; + $this->status = ChargeStatus::InPending; } public function getId(): ?int diff --git a/src/Entity/Gateway/Checkout.php b/src/Entity/Gateway/Checkout.php index ab31a94..de40774 100644 --- a/src/Entity/Gateway/Checkout.php +++ b/src/Entity/Gateway/Checkout.php @@ -109,7 +109,7 @@ class Checkout public function __construct() { - $this->status = CheckoutStatus::Pending; + $this->status = CheckoutStatus::InPending; $this->charges = new ArrayCollection(); } diff --git a/src/Gateway/ChargeStatus.php b/src/Gateway/ChargeStatus.php index e25cda7..06af830 100644 --- a/src/Gateway/ChargeStatus.php +++ b/src/Gateway/ChargeStatus.php @@ -4,7 +4,7 @@ namespace App\Gateway; enum ChargeStatus: string { - case Pending = 'pending'; + case InPending = 'in_pending'; case Charged = 'charged'; diff --git a/src/Gateway/CheckoutStatus.php b/src/Gateway/CheckoutStatus.php index b82392f..a288d55 100644 --- a/src/Gateway/CheckoutStatus.php +++ b/src/Gateway/CheckoutStatus.php @@ -4,7 +4,7 @@ namespace App\Gateway; enum CheckoutStatus: string { - case Pending = 'pending'; + case InPending = 'in_pending'; case Charged = 'charged'; }