def METHOD_NAME(client, response):
    """Update a line by id through an order object."""
    response.get(f"https://api.mollie.com/v2/orders/{ORDER_ID}", "order_single")
    response.patch(f"https://api.mollie.com/v2/orders/{ORDER_ID}/lines/{LINE_ID}", "order_single")
    data = {
        "name": "LEGO 71043 Hogwarts Castle",
        "productUrl": "https://shop.lego.com/en-GB/product/Hogwarts-Castle-71043",
        "imageUrl": "https://sh-s7-live-s.legocdn.com/is/image//LEGO/71043_alt1?$main$",
        "quantity": 2,
        "sku": "335596985",
        "vatRate": "21.00",
        "unitPrice": {"currency": "EUR", "value": "349.00"},
        "totalAmount": {"currency": "EUR", "value": "598.00"},
        "discountAmount": {"currency": "EUR", "value": "100.00"},
        "vatAmount": {"currency": "EUR", "value": "103.79"},
    }
    order = client.orders.get(ORDER_ID)
    update = order.lines.update(LINE_ID, data)
    assert isinstance(update, OrderLine)
    # Inspect the request that was sent
    request = response.calls[-1].request
    assert request.url == f"https://api.mollie.com/v2/orders/{ORDER_ID}/lines/{LINE_ID}"
    assert json.loads(request.body) == data