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