def METHOD_NAME(app_id: str) -> StorefrontInfo:
    """
    This endpoint is used by the flathub-hooks scripts to get information about an app to insert into the appstream
    file and commit metadata.
    """
    result = StorefrontInfo()
    if parent_id := summary.get_parent_id(app_id):
        app_id = parent_id
    verification = get_verification_status(app_id)
    if verification.verified:
        result.verification = verification
    if is_appid_runtime(app_id):
        result.is_free_software = True
        return result
    appstream = get_json_key(f"apps:{app_id}")
    if appstream is None:
        return result
    if app := models.ApplicationVendingConfig.by_appid(sqldb, app_id):
        result.pricing = PricingInfo()
        if app.recommended_donation > 0:
            result.pricing.recommended_donation = app.recommended_donation
        if app.minimum_payment > 0:
            result.pricing.minimum_payment = app.minimum_payment
    # Determine whether the app is FOSS
    app_licence = appstream.get("project_license", "")
    result.is_free_software = app_licence and AppStream.license_is_free_license(
        app_licence
    )
    if result.is_free_software == "":
        result.is_free_software = False
    return result