def payment_add(self, type_, value, rate=1, mode='payment', name=''): cmd = E.payment('', action='add', type=type_, value=str(value), rate=str(rate), mode=mode, name=name) self.send_command(cmd, check_for_errors=True)