def METHOD_NAME(
    staff_api_client, gift_card, permission_manage_gift_card
):
    # given
    gift_card.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
    gift_card.save(update_fields=["metadata"])
    variables = {"id": graphene.Node.to_global_id("GiftCard", gift_card.pk)}
    # when
    response = staff_api_client.post_graphql(
        QUERY_GIFT_CARD_PUBLIC_META,
        variables,
        [permission_manage_gift_card],
        check_no_permissions=False,
    )
    content = get_graphql_content(response)
    # then
    metadata = content["data"]["giftCard"]["metadata"][0]
    assert metadata["key"] == PUBLIC_KEY
    assert metadata["value"] == PUBLIC_VALUE