def create_with_user(self, user_params, **kwargs):
affiliate = self.create(**kwargs)<EOL>self.api.affiliate_users.create(affiliate_id=affiliate.id, **user_params)<EOL>return affiliate<EOL>
Creates an affiliate and corresponding affiliate user
:param user_params: kwargs for user creation
:param kwargs:
:return: affiliate instance