1 /**
2 * @schema AdminTransaction
3 * type: object
4 * description: The transaction's details.
5 * x-schemaName: AdminTransaction
6 * required:
7 * - account
8 * - id
9 * - account_id
10 * - type
11 * - amount
12 * - metadata
13 * - created_at
14 * - updated_at
15 * properties:
16 * id:
17 * type: string
18 * title: id
19 * description: The transaction's ID.
20 * account_id:
21 * type: string
22 * title: account_id
23 * description: The ID of the store credit account that the transaction belongs to.
24 * type:
25 * type: string
26 * description: The transaction's type.
27 * enum:
28 * - credit
29 * - debit
30 * amount:
31 * type: number
32 * title: amount
33 * description: The transaction's amount.
34 * account:
35 * $ref: "#/components/schemas/AdminStoreCreditAccount"
36 * note:
37 * type: string
38 * title: note
39 * description: The transaction's note.
40 * reference:
41 * type: string
42 * title: reference
43 * description: The transaction's reference.
44 * reference_id:
45 * type: string
46 * title: reference_id
47 * description: The transaction's reference ID.
48 * metadata:
49 * type: object
50 * description: The transaction's metadata, can hold custom key-value pairs.
51 * externalDocs:
52 * url: https://docs.medusajs.com/api/admin#manage-metadata
53 * description: Learn how to manage metadata
54 * created_at:
55 * type: string
56 * format: date-time
57 * title: created_at
58 * description: The date the transaction was created at.
59 * updated_at:
60 * type: string
61 * format: date-time
62 * title: updated_at
63 * description: The date the transaction was updated at.
64 *
65 */
66