Add checkout property to GatewayCharge api resource
This commit is contained in:
@@ -21,14 +21,18 @@ use Symfony\Component\Validator\Constraints as Assert;
|
||||
provider: ApiResourceStateProvider::class
|
||||
)]
|
||||
#[API\Get()]
|
||||
#[API\GetCollection(
|
||||
security: "is_granted('IS_AUTHENTICATED_FULLY')"
|
||||
)]
|
||||
#[API\GetCollection(security: "is_granted('IS_AUTHENTICATED_FULLY')")]
|
||||
class ChargeApiResource
|
||||
{
|
||||
#[API\ApiProperty(writable: false, identifier: true)]
|
||||
public ?int $id = null;
|
||||
|
||||
/**
|
||||
* The Checkout to which this Charge item belongs to.
|
||||
*/
|
||||
#[API\ApiProperty(writable: false)]
|
||||
public CheckoutApiResource $checkout;
|
||||
|
||||
/**
|
||||
* How this item should be processed by the Gateway.\
|
||||
* \
|
||||
|
||||
Reference in New Issue
Block a user