def METHOD_NAME(attendee):
    assert attendee.amount_paid == 0
    assert attendee.paid == c.NOT_PAID
    attendee.apply({'paid': str(c.HAS_PAID), 'amount_paid': '123.45'}, restricted=False)
    assert attendee.amount_paid == 123
    assert attendee.paid == c.HAS_PAID