def _get_draft_object(**kwargs):
    customer = {
        "first_name": "John",
        "last_name": "Doe",
        "title": "mr",
        "date_of_birth": datetime.date(year=1985, month=8, day=4),
    }
    customer.update(kwargs)
    return types.CustomerDraft(**customer)
def _get_draft_object(**kwargs):
    customer = {
        "first_name": "John",
        "last_name": "Doe",
        "title": "mr",
        "date_of_birth": datetime.date(year=1985, month=8, day=4),
        "email": "*****@*****.**",
        "password": "******",
    }
    customer.update(kwargs)
    return types.CustomerDraft(**customer)
Example #3
0
 def post_load(self, data):
     return types.CustomerDraft(**data)