def METHOD_NAME(
    app_api_client, site_settings, permission_manage_gift_card
):
    # given
    assert (
        site_settings.gift_card_expiry_type == GiftCardSettingsExpiryType.NEVER_EXPIRE
    )
    expiry_type = GiftCardSettingsExpiryTypeEnum.EXPIRY_PERIOD.name
    expiry_period_type = TimePeriodTypeEnum.DAY.name
    expiry_period = 50
    variables = {
        "input": {
            "expiryType": expiry_type,
            "expiryPeriod": {
                "type": expiry_period_type,
                "amount": expiry_period,
            },
        }
    }
    # when
    response = app_api_client.post_graphql(
        GIFT_CARD_SETTINGS_UPDATE_MUTATION,
        variables,
        permissions=(permission_manage_gift_card,),
    )
    # then
    content = get_graphql_content(response)
    data = content["data"]["giftCardSettingsUpdate"]
    assert not data["errors"]
    assert data["giftCardSettings"]
    assert data["giftCardSettings"]["expiryType"] == expiry_type
    assert data["giftCardSettings"]["expiryPeriod"]["type"] == expiry_period_type
    assert data["giftCardSettings"]["expiryPeriod"]["amount"] == expiry_period