1 /**
2 * @schema UpdateCartData
3 * type: object
4 * description: The details to update in a cart.
5 * x-schemaName: UpdateCartData
6 * properties:
7 * region_id:
8 * type: string
9 * title: region_id
10 * description: The ID of the associated region. This can affect the prices and currency code of the cart.
11 * customer_id:
12 * type: string
13 * title: customer_id
14 * description: The ID of the customer that the cart belongs to.
15 * sales_channel_id:
16 * type: string
17 * title: sales_channel_id
18 * description: |
19 * The ID of the associated sales channel.
20 *
21 * A product's availability in a sales channel only filters the products you retrieve. Medusa doesn't reject a variant added to the cart when its product isn't available in the cart's sales channel. Refer to the guide in the external documentation to learn how to enforce that validation.
22 * externalDocs:
23 * url: https://docs.medusajs.com/resources/commerce-modules/cart/sales-channel-availability
24 * email:
25 * type: string
26 * title: email
27 * description: The email of the customer that the cart belongs to.
28 * format: email
29 * currency_code:
30 * type: string
31 * title: currency_code
32 * description: The cart's currency code.
33 * example: usd
34 * shipping_address_id:
35 * type: string
36 * title: shipping_address_id
37 * description: The ID of the cart's shipping address.
38 * billing_address_id:
39 * type: string
40 * title: billing_address_id
41 * description: The ID of the cart's billing address.
42 * billing_address:
43 * oneOf:
44 * - $ref: "#/components/schemas/CreateAddress"
45 * - $ref: "#/components/schemas/UpdateAddress"
46 * shipping_address:
47 * oneOf:
48 * - $ref: "#/components/schemas/CreateAddress"
49 * - $ref: "#/components/schemas/UpdateAddress"
50 * metadata:
51 * type: object
52 * description: The cart's metadata, ca hold custom key-value pairs.
53 * externalDocs:
54 * url: https://docs.medusajs.com/api/store#manage-metadata
55 * description: Learn how to manage metadata
56 *
57 */
58