1 /**
2 * @schema BaseRefund
3 * type: object
4 * description: The refund's details.
5 * x-schemaName: BaseRefund
6 * required:
7 * - id
8 * - amount
9 * - created_at
10 * - payment
11 * properties:
12 * id:
13 * type: string
14 * title: id
15 * description: The refund's ID.
16 * amount:
17 * type: number
18 * title: amount
19 * description: The refund's amount.
20 * refund_reason_id:
21 * type: string
22 * title: refund_reason_id
23 * description: The ID of the refund reason.
24 * note:
25 * type: string
26 * title: note
27 * description: More details about the refund.
28 * created_at:
29 * type: string
30 * format: date-time
31 * title: created_at
32 * description: The date the refund was created.
33 * created_by:
34 * type: string
35 * title: created_by
36 * description: The ID of the user that created the refund.
37 * payment:
38 * $ref: "#/components/schemas/BasePayment"
39 * refund_reason:
40 * $ref: "#/components/schemas/BaseRefundReason"
41 *
42 */
43