# -*- coding: utf-8 -*- from apilib.monetary import RMB, Percent, Permillage from apps.web.core.validation import Schema, Coerce, ALLOW_EXTRA agentSchema = Schema( { 'username': basestring, 'password': basestring, 'nickname': basestring, 'annualTrafficCost': Coerce(RMB), 'managerProfitShare': Coerce(Percent), 'withdrawFeeRatio': Coerce(Permillage) }, extra=ALLOW_EXTRA)