Merge pull request #117 from goteo/feat/gv4-104-update-states-in-code
GV4-104 Update Statuses
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -109,7 +109,7 @@ class Checkout
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->status = CheckoutStatus::Pending;
|
||||
$this->status = CheckoutStatus::InPending;
|
||||
$this->charges = new ArrayCollection();
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace App\Gateway;
|
||||
|
||||
enum ChargeStatus: string
|
||||
{
|
||||
case Pending = 'pending';
|
||||
case InPending = 'in_pending';
|
||||
|
||||
case Charged = 'charged';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace App\Gateway;
|
||||
|
||||
enum CheckoutStatus: string
|
||||
{
|
||||
case Pending = 'pending';
|
||||
case InPending = 'in_pending';
|
||||
|
||||
case Charged = 'charged';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user