from typing import List


def convert_to_line_items(my_products: List[dict]) -> List[dict]:
    """
    Turn our data format into Stripe's line_items API.

    To accomplish this we must locate any existing Products or Prices registered on Stripe,
    or create them if they do not exist already.

    A Stripe Price is an object on Stripe that contains the price of 1 product;
    the Price object itself contains the Product object.
    The `line_items` output is a bundling of Prices, Products, and quantities
    for one specific checkout session.

    Documentation: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items
    """
    return [
        {
            "price": product["payment_uuid"],
            "quantity": product["quantity"],
        }
        for product in my_products
    ]