Skip to content

Commit 7a734db

Browse files
committed
chore: Move SummitAttendeeTicket to its own file
Signed-off-by: Matias Perrone <github@matiasperrone.com>
1 parent 58a8b9c commit 7a734db

File tree

1 file changed

+0
-79
lines changed

1 file changed

+0
-79
lines changed

app/Swagger/SummitRegistrationSchemas.php

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -528,85 +528,6 @@ class SummitOrderSchema
528528
{
529529
}
530530

531-
#[OA\Schema(
532-
schema: 'SummitAttendeeTicket',
533-
description: 'Generic SummitAttendeeTicket response - fields may vary based on context and serializer type',
534-
type: 'object',
535-
required: [
536-
'id',
537-
'number',
538-
'status',
539-
'external_order_id',
540-
'external_attendee_id',
541-
'bought_date',
542-
'ticket_type_id',
543-
'owner_id',
544-
'order_id',
545-
'badge_id',
546-
'promo_code_id',
547-
'raw_cost',
548-
'net_selling_cost',
549-
'raw_cost_in_cents',
550-
'final_amount',
551-
'final_amount_in_cents',
552-
'discount',
553-
'discount_rate',
554-
'discount_in_cents',
555-
'refunded_amount',
556-
'refunded_amount_in_cents',
557-
'total_refunded_amount',
558-
'total_refunded_amount_in_cents',
559-
'currency',
560-
'currency_symbol',
561-
'taxes_amount',
562-
'taxes_amount_in_cents',
563-
'is_active',
564-
'qr_code',
565-
'owner_email',
566-
'created'
567-
],
568-
properties: [
569-
new OA\Property(property: 'id', type: 'integer'),
570-
new OA\Property(property: 'created', type: 'integer', description: 'Unix timestamp'),
571-
new OA\Property(property: 'last_edited', type: 'integer', description: 'Unix timestamp'),
572-
new OA\Property(property: 'number', type: 'string'),
573-
new OA\Property(property: 'status', type: 'string'),
574-
new OA\Property(property: 'external_order_id', type: 'string'),
575-
new OA\Property(property: 'external_attendee_id', type: 'string'),
576-
new OA\Property(property: 'bought_date', type: 'integer'),
577-
new OA\Property(property: 'ticket_type_id', type: 'integer'),
578-
new OA\Property(property: 'owner_id', type: 'integer'),
579-
new OA\Property(property: 'order_id', type: 'integer'),
580-
new OA\Property(property: 'badge_id', type: 'integer'),
581-
new OA\Property(property: 'promo_code_id', type: 'integer'),
582-
new OA\Property(property: 'raw_cost', type: 'float'),
583-
new OA\Property(property: 'net_selling_cost', type: 'float'),
584-
new OA\Property(property: 'raw_cost_in_cents', type: 'integer'),
585-
new OA\Property(property: 'final_amount', type: 'float'),
586-
new OA\Property(property: 'final_amount_in_cents', type: 'integer'),
587-
new OA\Property(property: 'discount', type: 'float'),
588-
new OA\Property(property: 'discount_rate', type: 'float'),
589-
new OA\Property(property: 'discount_in_cents', type: 'integer'),
590-
new OA\Property(property: 'refunded_amount', type: 'float'),
591-
new OA\Property(property: 'refunded_amount_in_cents', type: 'integer'),
592-
new OA\Property(property: 'total_refunded_amount', type: 'float'),
593-
new OA\Property(property: 'total_refunded_amount_in_cents', type: 'integer'),
594-
new OA\Property(property: 'currency', type: 'string'),
595-
new OA\Property(property: 'currency_symbol', type: 'string'),
596-
new OA\Property(property: 'taxes_amount', type: 'float'),
597-
new OA\Property(property: 'taxes_amount_in_cents', type: 'integer'),
598-
new OA\Property(property: 'is_active', type: 'boolean'),
599-
new OA\Property(property: 'qr_code', type: 'string'),
600-
new OA\Property(property: 'owner_email', type: 'string'),
601-
new OA\Property(property: 'owner', ref: '#/components/schemas/SummitAttendee', description: 'Owner of the ticket, only available when ?expand=owner'),
602-
new OA\Property(property: 'order', ref: '#/components/schemas/SummitOrder', description: 'Order associated to the ticket, only available when ?expand=order'),
603-
]
604-
)]
605-
class SummitAttendeeTicketSchema
606-
{
607-
}
608-
609-
610531
#[OA\Schema(
611532
schema: 'SummitOrderReservation',
612533
description: 'SummitOrder with ReservationType serialization - used for order reservations',

0 commit comments

Comments
 (0)