1 /**
2 * @schema OrderCreditLine
3 * type: object
4 * description: The credit line's details.
5 * x-schemaName: OrderCreditLine
6 * required:
7 * - id
8 * - order_id
9 * - order
10 * - amount
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 credit line's ID.
21 * order_id:
22 * type: string
23 * title: order_id
24 * description: The ID of the associated order.
25 * order:
26 * $ref: "#/components/schemas/Order"
27 * reference:
28 * type: string
29 * title: reference
30 * description: The table that this credit line references. For example, `payment_collection`.
31 * reference_id:
32 * type: string
33 * title: reference_id
34 * description: The ID of the record in the referenced table. For example, `paycol_123`.
35 * metadata:
36 * type: object
37 * description: The credit line's metadata, can hold custom key-value pairs.
38 * externalDocs:
39 * url: https://docs.medusajs.com/api/store#manage-metadata
40 * description: Learn how to manage metadata
41 * created_at:
42 * type: string
43 * format: date-time
44 * title: created_at
45 * description: The date the credit line was created.
46 * updated_at:
47 * type: string
48 * format: date-time
49 * title: updated_at
50 * description: The date the credit line was updated.
51 * amount:
52 * type: number
53 * title: amount
54 * description: The credit line's amount.
55 *
56 */
57