Skip to content

Commit

Permalink
Update Gateway api resource
Browse files Browse the repository at this point in the history
  • Loading branch information
subiabre committed Dec 9, 2024
1 parent 2e32896 commit 4735512
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ApiResource/Gateway/CheckoutApiResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CheckoutApiResource
* The desired Gateway to checkout with.
*/
#[Assert\NotBlank()]
public Gateway $gateway;
public GatewayApiResource $gateway;

/**
* The Accounting paying for the charges.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@
* These implementations make use of external or internal services to gather the funds that are inside a Transaction,
* perform corroboration of funds and store the Transactions into the system.
*/
#[API\ApiResource()]
#[API\GetCollection(provider: GatewayStateProvider::class)]
#[API\Get(provider: GatewayStateProvider::class)]
class Gateway
#[API\ApiResource(
shortName: 'Gateway',
provider: GatewayStateProvider::class
)]
#[API\GetCollection()]
#[API\Get()]
class GatewayApiResource
{
#[API\ApiProperty(identifier: true)]
public ?string $name = null;
public string $name;

/**
* @var array<int, \App\Gateway\ChargeType>
*/
public ?array $supports = null;
public array $supports;
}

0 comments on commit 4735512

Please sign in to comment.