def METHOD_NAME(
    staff_api_client,
    gift_card,
    permission_manage_gift_card,
    permission_manage_users,
    permission_manage_apps,
):
    # given
    gift_card.is_active = False
    gift_card.expiry_date = date.today() - timedelta(days=1)
    gift_card.save(update_fields=["expiry_date", "is_active"])
    variables = {"id": graphene.Node.to_global_id("GiftCard", gift_card.id)}
    # when
    response = staff_api_client.post_graphql(
        ACTIVATE_GIFT_CARD_MUTATION,
        variables,
        permissions=[
            permission_manage_gift_card,
            permission_manage_users,
            permission_manage_apps,
        ],
    )
    # then
    content = get_graphql_content(response)
    errors = content["data"]["giftCardActivate"]["errors"]
    data = content["data"]["giftCardActivate"]["giftCard"]
    assert not data
    assert len(errors) == 1
    assert errors[0]["field"] == "id"
    assert errors[0]["code"] == GiftCardErrorCode.EXPIRED_GIFT_CARD.name