Merge pull request #117 from goteo/feat/gv4-104-update-states-in-code

GV4-104 Update Statuses
This commit is contained in:
2025-05-12 09:44:51 +02:00
committed by GitHub
8 changed files with 8 additions and 8 deletions
@@ -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;
}
@@ -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.
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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
+1 -1
View File
@@ -109,7 +109,7 @@ class Checkout
public function __construct()
{
$this->status = CheckoutStatus::Pending;
$this->status = CheckoutStatus::InPending;
$this->charges = new ArrayCollection();
}
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -4,7 +4,7 @@ namespace App\Gateway;
enum ChargeStatus: string
{
case Pending = 'pending';
case InPending = 'in_pending';
case Charged = 'charged';
+1 -1
View File
@@ -4,7 +4,7 @@ namespace App\Gateway;
enum CheckoutStatus: string
{
case Pending = 'pending';
case InPending = 'in_pending';
case Charged = 'charged';
}