1 /**
2 * @schema BaseOrderTransaction
3 * type: object
4 * description: An order transaction's details.
5 * x-schemaName: BaseOrderTransaction
6 * required:
7 * - id
8 * - order_id
9 * - amount
10 * - currency_code
11 * - reference
12 * - reference_id
13 * - metadata
14 * - created_at
15 * - updated_at
16 * properties:
17 * id:
18 * type: string
19 * title: id
20 * description: The transaction's ID.
21 * order_id:
22 * type: string
23 * title: order_id
24 * description: The ID of the order this transaction belongs to.
25 * amount:
26 * type: number
27 * title: amount
28 * description: The transaction's amount.
29 * currency_code:
30 * type: string
31 * title: currency_code
32 * description: The transaction's currency code.
33 * example: usd
34 * reference:
35 * type: string
36 * title: reference
37 * description: The name of a table that this transaction references. If this transaction is for captured payment, its value is `capture`. If this transaction is for refunded payment, its value is `refund`.
38 * enum:
39 * - capture
40 * - refund
41 * reference_id:
42 * type: string
43 * title: reference_id
44 * description: The ID of the referenced record in the referenced table.
45 * metadata:
46 * type: object
47 * description: The transaction's metadata, can hold custom key-value pairs.
48 * externalDocs:
49 * url: https://docs.medusajs.com/api/store#manage-metadata
50 * description: Learn how to manage metadata
51 * created_at:
52 * type: string
53 * format: date-time
54 * title: created_at
55 * description: The date that the transaction was created.
56 * updated_at:
57 * type: string
58 * format: date-time
59 * title: updated_at
60 * description: The date that the transaction was updated.
61 *
62 */
63