src/DTO/SubscriberOutputDTO.php line 8
<?php
namespace App\DTO;
use ApiPlatform\Metadata\ApiProperty;
use JetBrains\PhpStorm\ArrayShape;
class SubscriberOutputDTO
{
#[ArrayShape([
"id" => "string",
"names" => "string",
])]
#[ApiProperty(required: true, openapiContext: [
"type" => "object",
"properties" => [
"id" => ["example" => "123456789", "type" => "string"],
"names" => ["example" => "juan", "type" => "string"],
],
])]
public array $subscriber;
#[ArrayShape([
"id" => "string",
"finalDate" => "string"
])]
#[ApiProperty(required: true, openapiContext: [
"type" => "object",
"properties" => [
"id" => ["example" => "123456789", "type" => "string"],
"finalDate" => ["example" => "05-04-1998 12:00", "type" => "string"]
],
])]
public array $freeTrial;
#[ArrayShape([
"id" => "string",
"status" => "string",
"planId" => "string",
"plan" => "string",
"nextRenewalDate" => "string",
])]
#[ApiProperty(required: true, openapiContext: [
"type" => "object",
"properties" => [
"id" => ["example" => "123456789", "type" => "string"],
"status" => ["example" => "someStatus", "type" => "string"],
"planId" => ["example" => "someId", "type" => "string"],
"plan" => ["example" => "somePlan", "type" => "string"],
"nextRenewalDate" => ["example" => "someRenewalDate", "type" => "string"],
],
])]
public array $subscription;
}