code: def get_referenced_object(self):
          
  
          if self._Payment is not None:
              return self._Payment
  
          if self._PaymentBatch is not None:
              return self._PaymentBatch
  
          raise exception.BunqException(self._ERROR_NULL_FIELDS)
docs: :rtype: core.BunqModel
          :raise: BunqException